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

:root {
    /* Culori principale NOU PENTRU HEADER */
    --header-bg-color-new: rgba(12, 18, 33, 0.95); /* Culoarea de fundal a headerului */
    --header-border-color-new: rgba(139, 69, 255, 0.2); /* Bordura sub header */
    --header-logo-color-new: white;
    --header-logo-hover-color-new: #a855f7; /* Hover pentru logo */
    --nav-link-color-new: rgba(255, 255, 255, 0.9); /* Culoarea link-urilor de navigare */
    --nav-link-hover-color-new: #a855f7; /* Hover pentru link-uri */
    --nav-link-underline-gradient-new: linear-gradient(90deg, #a855f7, #c084fc); /* Subliniere link-uri */
    --cta-button-gradient-new: linear-gradient(135deg, #8b45ff 0%, #00d4ff 100%); /* Gradient CTA */
    --cta-button-hover-gradient-new: linear-gradient(135deg, #7c3aed 0%, #00c0e0 100%); /* Hover CTA */
    --cta-button-shadow-new: rgba(139, 69, 255, 0.3); /* Shadow CTA */
    --cta-button-hover-shadow-new: rgba(139, 69, 255, 0.4); /* Hover Shadow CTA */
    --mobile-menu-bg-new: rgba(12, 18, 33, 0.98); /* Fundal meniu mobil */
    --mobile-menu-border-new: rgba(139, 69, 255, 0.2); /* Bordura meniu mobil */
    --mobile-toggle-hover-bg-new: rgba(139, 69, 255, 0.2); /* Hover pentru hamburger */
    --mobile-ripple-color-new: rgba(168, 85, 247, 0.5); /* Culoare ripple meniu mobil */
    --mobile-nav-link-hover-bg-new: rgba(139, 69, 255, 0.1); /* Hover link meniu mobil */
    --mobile-nav-link-shine-new: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent); /* Efect shine link meniu mobil */
    --mobile-cta-shine-new: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); /* Efect shine CTA mobil */

    /* NOU: Tranzitii si animatii pentru header */
    --menu-transition-new: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0c1221 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 70px; /* Valoare implicită, va fi suprascrisă de JS */
    position: relative; /* Asigură că poziționarea fixă funcționează corect pentru elementele copil */
}

/* Particule animate de fundal */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(139, 69, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #0c1221 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 69, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8b45ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 10px rgba(139, 69, 255, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(139, 69, 255, 0.6)); }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #b8c5d6;
    animation: subtitleSlide 1.2s ease-out 0.3s both;
}

@keyframes subtitleSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #8b45ff, #00d4ff);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 69, 255, 0.3);
    animation: buttonPulse 1.2s ease-out 0.6s both;
}

@keyframes buttonPulse {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(139, 69, 255, 0.4);
    filter: brightness(1.1);
}

/* Section Styling */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #8b45ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Story Section */
.story {
    background: rgba(26, 26, 46, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 40px 0;
    border: 1px solid rgba(139, 69, 255, 0.2);
    backdrop-filter: blur(10px);
}

.story-block {
    margin-bottom: 2rem;
    padding: 20px;
    border-left: 3px solid #8b45ff;
    background: rgba(139, 69, 255, 0.05);
    border-radius: 0 10px 10px 0;
}

.story-block h3 {
    color: #8b45ff;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* USP Cards */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.usp-card {
    background: rgba(26, 26, 46, 0.4);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(139, 69, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.usp-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 69, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}

.usp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8b45ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.skill-item {
    background: rgba(26, 26, 46, 0.4);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(139, 69, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(139, 69, 255, 0.1);
    transform: translateY(-5px);
}

.skill-progress {
    width: 100%;
    height: 8px;
    background: rgba(139, 69, 255, 0.2);
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b45ff, #00d4ff);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #8b45ff, #00d4ff);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    margin-right: 50%;
}

.timeline-item:nth-child(even) {
    text-align: left;
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #8b45ff, #00d4ff);
    border-radius: 50%;
    border: 3px solid #0c1221;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: rgba(26, 26, 46, 0.4);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(139, 69, 255, 0.2);
    backdrop-filter: blur(10px);
}

.timeline-year {
    color: #8b45ff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(139, 69, 255, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 20px;
    margin: 40px 20px;
    border: 1px solid rgba(139, 69, 255, 0.3);
}

.final-cta h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        margin-left: 40px !important; /* Adăugat !important pentru a suprascrie stilurile inline */
        margin-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-dot {
        left: 10px !important; /* Adăugat !important pentru a suprascrie stilurile inline */
        right: auto !important;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(139, 69, 255, 0.8);
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* NOU: Stiluri pentru Headerul principal */
.header-new {
    background: var(--header-bg-color-new);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border-color-new);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Z-index pentru header */
}

.container { /* Asigură că `.container` este definit pentru a fi folosit în header */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-container-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px; /* Redundant dacă containerul e la 1200px, dar păstrat pentru claritate */
    margin: 0 auto;
    padding: 0 20px;
}

.logo-new {
    color: var(--header-logo-color-new);
    font-family: 'Poppins', sans-serif; /* Am actualizat font-family pentru a se potrivi cu restul site-ului */
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-new:hover {
    color: var(--header-logo-hover-color-new);
}

/* Navigatie Desktop NOUL */
.desktop-nav-main-new .nav-new {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
}

.desktop-nav-main-new .nav-new a {
    color: var(--nav-link-color-new);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.desktop-nav-main-new .nav-new a:hover {
    color: var(--nav-link-hover-color-new);
}

.desktop-nav-main-new .nav-new a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nav-link-underline-gradient-new);
    transition: width 0.3s ease;
}

.desktop-nav-main-new .nav-new a:hover::after {
    width: 100%;
}

.cta-button-new {
    background: var(--cta-button-gradient-new);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--cta-button-shadow-new);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.cta-button-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--cta-button-hover-shadow-new);
    background: var(--cta-button-hover-gradient-new);
}

/* Hamburger Toggle pentru Mobil NOUL */
.mobile-menu-toggle-new {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--menu-transition-new);
    position: relative;
    overflow: hidden;
    z-index: 1001;
}

.mobile-menu-toggle-new:hover {
    background: var(--mobile-toggle-hover-bg-new);
    transform: scale(1.1);
}

.mobile-menu-toggle-new:active {
    transform: scale(0.95);
}

.hamburger-new {
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.hamburger-new span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-new.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-new.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-new.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Meniu Mobil Overlay NOUL - cu efect de deschidere */
.mobile-menu-new {
    position: absolute;
    top: 70px; /* Asigură că meniul mobil începe sub header */
    left: 0;
    right: 0;
    background: var(--mobile-menu-bg-new);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--mobile-menu-border-new);
    padding: 0; /* Important for smooth max-height transition */
    max-height: 0; /* Initial state: closed */
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, transform 0.5s ease-out; /* Adjusted transition */
    opacity: 0; /* Initial state: hidden */
    transform: translateY(-20px); /* Initial state: slightly above */
    z-index: 999;
}

.mobile-menu-new.active {
    max-height: 500px; /* Set a value large enough to contain all content */
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Final position */
    padding: 30px 20px; /* Apply padding only when active */
}

.mobile-nav-new {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-new li {
    margin-bottom: 8px;
    opacity: 0; /* Initial state for staggered animation */
    transform: translateX(-30px); /* Initial state for staggered animation */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-new.active .mobile-nav-new li {
    opacity: 1;
    transform: translateX(0);
}

/* Adjust transition delay for staggered animation */
.mobile-menu-new.active .mobile-nav-new li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-new.active .mobile-nav-new li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-new.active .mobile-nav-new li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-new.active .mobile-nav-new li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-new.active .mobile-nav-new li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-new.active .mobile-nav-new li:nth-child(6) { transition-delay: 0.35s; }


.mobile-nav-new a {
    color: var(--nav-link-color-new);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 15px 20px;
    margin: 0 -10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-nav-new a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--mobile-nav-link-shine-new);
    transition: left 0.5s ease;
}

.mobile-nav-new a:hover::before {
    left: 100%;
}

.mobile-nav-new a:hover {
    color: var(--nav-link-hover-color-new);
    background: var(--mobile-nav-link-hover-bg-new);
    transform: translateX(10px);
}

.mobile-cta-new {
    margin-top: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-new.active .mobile-cta-new {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.mobile-cta-new .cta-button-new {
    display: block;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mobile-cta-new .cta-button-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--mobile-cta-shine-new);
    transition: left 0.6s ease;
}

.mobile-cta-new .cta-button-new:hover::before {
    left: 100%;
}

/* Keyframes pentru ripple effect */
@keyframes ripple {
    0% {
        width: 4px;
        height: 4px;
        opacity: 1;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

/* Clasa pentru efectul ripple adăugată dinamic de JS */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: var(--mobile-ripple-color-new);
    animation: ripple 0.6s ease-out forwards;
    pointer-events: none; /* Make sure ripple doesn't block clicks */
    transform: translate(-50%, -50%); /* Center the ripple */
    top: 50%;
    left: 50%;
}

/* Media Queries pentru noul Header */
@media (max-width: 768px) {
    .header-container-new {
        padding: 0 15px;
        height: 60px; /* Înălțime ajustată pentru mobil */
    }

    .logo-new {
        font-size: 20px;
    }

    .desktop-nav-main-new {
        display: none;
    }

    .cta-button-new.desktop-cta-new {
        display: none;
    }

    .mobile-menu-toggle-new {
        display: block;
    }

    .mobile-menu-new {
        top: 60px; /* Ajustează poziția meniului mobil sub header-ul ajustat */
    }
}

@media (max-width: 480px) {
    .header-container-new {
        padding: 0 10px;
    }

    .logo-new {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .mobile-nav-new a {
        font-size: 16px;
    }
}
