/* ===== RESET & VARIABILE ===== */
:root {
    --bg-primary: #f5f7f8;
    --bg-secondary: #ffffff;
    --bg-dark: #0d2137;
    --bg-darker: #091a2b;
    --text-primary: #1a2b3c;
    --text-secondary: #4a5b6c;
    --text-light: #8a9aaa;
    --accent-cyan: #3db8d8;
    --accent-purple: #7b68ee;
    --accent-teal: #2ec4b6;
    --accent-blue: #4d80e4;
    --border-color: #e0e5ea;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER & NAVIGAȚIE ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
}

.logo svg {
    color: var(--accent-cyan);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    transition: all var(--transition);
    position: relative;
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--bg-dark);
    color: #ffffff;
    border-color: var(--bg-dark);
}

.nav-btn.active {
    background: var(--bg-dark);
    color: #ffffff;
    border-color: var(--bg-dark);
    font-weight: 600;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 850px;
    overflow: hidden;
    margin-top: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 40px;
    text-align: left;
    color: #ffffff;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    background: rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.hero-content h1 em {
    font-style: normal;
    color: var(--accent-cyan);
}

.hero-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--accent-cyan);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
}

.hero-cta:hover {
    background: #fff;
    color: var(--bg-dark);
}

.hero-cta span {
    transition: transform var(--transition);
}

.hero-cta:hover span {
    transform: translateX(4px);
}

.hero-visual {
    position: relative;
    z-index: 2;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 40px;
}

/* Animații vizuale */
.dna-helix-animation svg {
    width: 180px;
    height: 240px;
    animation: floatRotate 8s ease-in-out infinite;
}

@keyframes floatRotate {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(2deg) translateY(-8px); }
    50% { transform: rotate(-1deg) translateY(4px); }
    75% { transform: rotate(1deg) translateY(-4px); }
}

.pulse-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-cyan);
    opacity: 0;
    animation: pulseExpand 3s ease-out infinite;
}

.pulse-ring.delay { animation-delay: 1s; }
.pulse-ring.delay2 { animation-delay: 2s; }

@keyframes pulseExpand {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.brain-icon svg {
    width: 140px;
    height: 140px;
    animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.molecule-animation svg {
    width: 160px;
    height: 160px;
    animation: floatRotate 10s ease-in-out infinite;
}

.simulation-grid svg {
    width: 150px;
    height: 150px;
    animation: gridPulse 5s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-arrow {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 12px;
}

.slider-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 3;
}

.slider-progress-fill {
    height: 100%;
    background: var(--accent-cyan);
    transition: width 0.3s linear;
    width: 0%;
}

/* ===== CAROUSEL FOTO (FADE) ===== */
.photo-carousel-section {
    padding: 80px 24px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-header h2 em {
    font-style: normal;
    color: var(--accent-cyan);
}

.section-subtitle {
    color: var(--text-light);
    margin-top: 8px;
    font-size: 0.9rem;
}

.section-subtitle code {
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    background: #e8ecf0;
}

/* Imagini suprapuse pentru fade */
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.carousel-track img.active {
    opacity: 1;
    z-index: 2;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-counter {
    text-align: center;
    margin-top: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.carousel-thumb {
    width: 60px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    transition: var(--transition);
    border: 2px solid transparent;
}

.carousel-thumb.active {
    opacity: 1;
    border-color: var(--accent-cyan);
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== INFO CARDS ===== */
.info-cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.info-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-cyan);
}

.info-card-icon {
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 0;
    margin-top: 40px;
}

.footer-media-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
}

.media-toggle-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.media-toggle-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.media-toggle-buttons {
    display: flex;
    gap: 8px;
}

.media-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 24px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.media-toggle-btn.active {
    background: var(--bg-dark);
    color: #fff;
    border-color: var(--bg-dark);
}

.media-toggle-btn:hover:not(.active) {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.footer-media-display {
    position: relative;
}

.footer-photo-carousel {
    display: none;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 9;
    background: #e8ecf0;
}

.footer-photo-carousel.active {
    display: block;
}

/* Imagini suprapuse și în footer */
.footer-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.footer-carousel-track img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.footer-carousel-track img.active {
    opacity: 1;
    z-index: 2;
}

.footer-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.footer-carousel-arrow:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
}

.f-prev { left: 12px; }
.f-next { right: 12px; }

.footer-video-player {
    display: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}

.footer-video-player.active {
    display: block;
}

.footer-video-player video {
    width: 100%;
    display: block;
    max-height: 450px;
}

.video-note {
    color: var(--text-light);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 8px;
}

.video-note code {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 3px;
}

.footer-bottom {
    text-align: center;
    padding: 16px 24px;
    color: var(--text-light);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
}

/* ===== PAGINI INTERNE ===== */
.page-content {
    padding-top: 100px;
    min-height: 70vh;
}

.page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
}

.page-hero-inner h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.page-hero-inner h1 em {
    font-style: normal;
    color: var(--accent-cyan);
}

.page-hero-inner p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 12px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.content-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--text-primary);
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.content-section ul {
    list-style: disc;
    padding-left: 24px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.content-section ul li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fff;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(61,184,216,0.12);
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form button {
    padding: 13px 28px;
    background: var(--accent-cyan);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    align-self: flex-start;
}

.contact-form button:hover {
    background: var(--bg-dark);
}

.contact-info {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-slide {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 20px;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-visual {
        margin-left: 0;
        width: 200px;
        height: 200px;
        margin-top: 20px;
    }
    
    .hero-slider {
        height: auto;
        min-height: 100vh;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(16px);
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-120%);
        transition: transform var(--transition);
        z-index: 999;
    }
    
    .main-nav.open {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }
    
    .nav-btn {
        display: block;
        text-align: center;
        padding: 12px 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-visual {
        width: 160px;
        height: 160px;
    }
    
    .page-hero-inner h1 {
        font-size: 1.8rem;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .info-cards-section {
        grid-template-columns: 1fr;
    }
}