/* 
   CSS Styling for Cristian Soitu Portfolio Website
   This file contains all the visual styling for the website
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3e50;  /* Darker text for better readability */
    background: #ffffff;  /* Clean white background */
    min-height: 100vh;
}

/* Container for content width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;  /* Professional blue */
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #2c3e50;  /* Dark navigation text */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    color: #2c3e50;  /* Dark text for better readability */
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #2c3e50;  /* Dark text for hero subtitle */
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #34495e;  /* Slightly lighter dark text for description */
}

/* Research Focus Tags */
.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.research-tag {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #667eea;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: #5a67d8;
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Photo Section */
.hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-container {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(102, 126, 234, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.current-position h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.current-position p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.2rem;
}

/* Sections */
.section {
    padding: 80px 0;
    color: #2c3e50;  /* Dark text for all sections */
}

.section-dark {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #34495e;  /* Dark subtitle text */
    margin-bottom: 3rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.project-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;  /* Dark project titles */
}

.project-card p {
    margin-bottom: 1rem;
    color: #34495e;  /* Dark project descriptions */
}

.project-tech {
    font-size: 0.9rem;
    color: #5a6c7d;  /* Slightly lighter for tech tags */
    font-style: italic;
}

/* Visualizations Section */
.viz-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.viz-placeholder {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.viz-placeholder h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;  /* Dark visualization titles */
}

.viz-placeholder p {
    margin-bottom: 1.5rem;
    color: #34495e;  /* Dark visualization descriptions */
}

.placeholder-box {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 3rem;
    font-size: 1.1rem;
    color: #34495e;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;  /* Dark timeline line */
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 150px;
    text-align: center;
    font-weight: 600;
    color: #34495e;
    padding: 1rem;
}

.timeline-content {
    flex: 1;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin: 0 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-info {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.5);
    transition: border-color 0.3s ease;
}

.contact-info a:hover {
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none; /* Hide navigation on mobile - you can add a hamburger menu later */
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 40px;
    }
    
    .timeline-content {
        margin: 1rem 0 0 0;
    }
    
    .photo-container {
        width: 250px;
        height: 300px;
    }
}

/* Featured Demo Styling */
.featured-demo {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.demo-header {
    text-align: center;
    margin-bottom: 30px;
}

.demo-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.demo-header p {
    font-size: 1.1rem;
    color: #34495e;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.demo-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 20px;
}

.demo-window {
    position: relative;
    width: 100%;
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.demo-window.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    border: none;
}

.demo-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Loading state for iframe */
.demo-window::before {
    content: "Loading interactive visualization...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #5a6c7d;
    font-size: 1.1rem;
    z-index: 1;
}

.demo-iframe:loaded + .demo-window::before {
    display: none;
}

/* Mobile responsiveness for demo */
@media (max-width: 768px) {
    .featured-demo {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .demo-window {
        height: 500px;
    }
    
    .demo-header h3 {
        font-size: 1.5rem;
    }
    
    .demo-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Dash Integration Styling */
.dash-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.embedly-container {
    background: transparent !important;
}

/* Override Dash default styling */
.dash-container .js-plotly-plot {
    border-radius: 10px;
    overflow: hidden;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.skill-category {
    text-align: center;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-tag {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #667eea;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.award-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.award-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.award-year {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.award-institution {
    color: #34495e;
    margin-bottom: 0.5rem;
}

.award-details {
    color: #5a6c7d;
    font-style: italic;
}

.award-link {
    margin-top: 1rem;
}

.award-snapshot {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.award-snapshot:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.award-image {
    margin-bottom: 1rem;
}

.award-logo {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.award-content {
    width: 100%;
}

/* Teaching Section */
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.teaching-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.teaching-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.teaching-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.teaching-institution {
    color: #34495e;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.teaching-period {
    color: #667eea;
    font-weight: 600;
}

/* Publications Section */
.publications-list {
    max-width: 1000px;
    margin: 3rem auto 0;
}

.publication-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.publication-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: center;
}

.publication-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.pub-journal {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pub-doi {
    color: #5a6c7d;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
}

.pub-doi a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    transition: border-color 0.3s ease;
}

.pub-doi a:hover {
    border-color: #667eea;
}

.publication-video {
    margin-top: 1rem;
}

.video-link {
    display: inline-block;
    background: rgba(255, 0, 0, 0.1);
    color: #d63384;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.video-link:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-2px);
}

.publication-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.paper-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.paper-image:hover {
    transform: scale(1.05);
}

.publication-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.publication-placeholder .placeholder-box {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: #5a6c7d;
    font-size: 0.9rem;
    width: 100%;
    max-width: 250px;
}

.publication-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
}

.publication-note a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.5);
    transition: border-color 0.3s ease;
}

.publication-note a:hover {
    border-color: #667eea;
}

/* Publication Video Styles */
.publication-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.video-container {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.video-container h4 {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.youtube-embed iframe,
.video-container video {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    height: 200px;
    transition: transform 0.3s ease;
}

.youtube-embed iframe:hover,
.video-container video:hover {
    transform: scale(1.02);
}

/* Update publication content layout to accommodate videos */
.publication-content {
    display: block;
}

.publication-text {
    margin-bottom: 1rem;
}

.pub-authors {
    color: #5a6c7d;
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Keep simple mobile nav for now */
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    .awards-grid,
    .teaching-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-item {
        padding: 1.5rem;
    }
    
    .publication-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .publication-placeholder {
        height: 150px;
    }
    
    .publication-videos {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .youtube-embed iframe,
    .video-container video {
        max-width: 100%;
        height: 180px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
/* Demo section styling for smaller windows */
.demo-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.demo-window-small {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.2);
    margin-top: 1rem;
}

.demo-iframe-small {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}

/* Demo header styling */
.demo-header h3, .demo-header h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.demo-header p {
    color: #5a6c7d;
    margin-bottom: 1rem;
    line-height: 1.5;
}
