/* CodeX - Design System */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;500;700&display=swap');

:root {
    color-scheme: dark;
    --color-carbon: #111111;
    --color-off-white: #F5F5F5;
    --color-neon-lime: #CCFF00;

    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --edge-sharp: 0px;
}

/* Custom Kinetic Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background: var(--color-carbon);
}

::-webkit-scrollbar-track {
    background: var(--color-carbon);
}

::-webkit-scrollbar-thumb {
    background: var(--color-neon-lime);
    box-shadow: 0 0 10px var(--color-neon-lime);
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--color-neon-lime);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

body {
    background-color: var(--color-carbon);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    color: var(--color-off-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

html[dir="rtl"] body {
    direction: rtl;
    font-family: "F29LT Kaff", var(--font-body);
}

html[dir="rtl"] {
    --font-heading: "F29LT Kaff", var(--font-body);
    --font-body: "F29LT Kaff", 'Manrope', sans-serif;
}

html[dir="rtl"] body {
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Kinetic Typography */
.kinetic-text {
    font-style: italic;
    font-weight: 800;
    /* Extra bold if available, or just bold */
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.kinetic-accent {
    color: var(--color-neon-lime);
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

/* Ambient Glows */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: floatingGlow 10s infinite ease-in-out;
}

@keyframes floatingGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-20px, 20px) scale(1.1);
        opacity: 0.8;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20%;
}

.section-padding {
    padding: 10rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--color-off-white);
    position: relative;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.margin-bottom {
    margin-bottom: 3rem;
}

.bg-darker {
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    background-color: var(--color-neon-lime);
    color: var(--color-carbon);
    border: none;
    border-radius: var(--edge-sharp);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.btn:hover {
    box-shadow: 0 0 25px var(--color-neon-lime);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-off-white);
    border: 1px solid var(--color-neon-lime);
    /* Changed to neon for higher visibility */
    margin-top: 2rem;
}

.btn-secondary:hover {
    background: var(--color-neon-lime);
    color: var(--color-carbon);
    box-shadow: 0 0 15px var(--color-neon-lime);
}

.btn-massive {
    font-size: 1.8rem;
    padding: 2rem 5rem;
    background-color: var(--color-neon-lime);
    color: var(--color-carbon);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.3);
}

.btn-massive:hover {
    box-shadow: 0 0 80px var(--color-neon-lime);
    transform: scale(1.02);
}

/* SECTION: Navigation (Header) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 20%;
    width: 100%;
    position: relative;
}

.lang-toggle {
    display: flex;
    gap: 0.5rem;
    margin: 0 1.5rem;
}

.lang-btn {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.7rem;
    background: transparent;
    color: var(--color-off-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.is-active,
.lang-btn:hover {
    color: var(--color-carbon);
    background: var(--color-neon-lime);
    border-color: var(--color-neon-lime);
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.4);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-off-white);
    /* Can be removed if only image, but good for fallback/wrapper */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    /* Constrained height to fit header */
    width: auto;
    object-fit: contain;

}



.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-off-white);
    opacity: 0.7;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-neon-lime);
    transition: width 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-neon-lime);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-item {
    position: relative;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: inherit;
    color: inherit;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid rgba(204, 255, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 0.5rem 0;
    margin-top: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 1001;
}

html[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
    text-align: right;
}

html[dir="rtl"] .nav-links {
    direction: rtl;
}

.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 12px;
    top: 100%;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-off-white);
    opacity: 0.85;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    color: var(--color-neon-lime);
    opacity: 1;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu:hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* SECTION: The Ignition (Hero - Overhauled) */
.hero-section {
    position: relative;
    padding-top: 15rem;
    /* Space for headline */
    padding-bottom: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Top aligned now */
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 20%, rgba(204, 255, 0, 0.08), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.05), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(204, 255, 0, 0.06), transparent 45%);
    filter: blur(10px);
    animation: heroGlowDrift 14s ease-in-out infinite;
    z-index: 0;
}

.hero-heading-container {
    z-index: 2;
    margin-bottom: 4rem;
    position: relative;
    animation: heroFadeUp 1.2s ease both;
}

.hero-heading-container .impact-headline {
    animation: none;
}

.hero-heading-container .kinetic-text {
    display: inline-block;
    animation: textFloat 4.5s ease-in-out infinite, textGlow 4.5s ease-in-out infinite;
}

.hero-heading {
    font-size: 6rem;
    line-height: 0.9;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--color-off-white);
    opacity: 0.6;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-logo {
    width: 350px;
    height: 350px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(204, 255, 0, 0.3));
    animation: floatLogo 4.5s ease-in-out infinite, heroSoftPulse 4.5s ease-in-out infinite, logoTilt 7s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform, filter;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-off-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}




/* Gradient Fade Out Overlay */
.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    /* Extended height for smoother transition */
    background: linear-gradient(to top, var(--color-carbon) 20%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

@keyframes heroGlowDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate3d(-10px, 12px, 0) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.7;
    }
}

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

@keyframes heroSoftPulse {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(204, 255, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 45px rgba(204, 255, 0, 0.45));
    }
}

@keyframes textFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes logoTilt {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(1.5deg);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 12px rgba(204, 255, 0, 0.35);
    }
    50% {
        text-shadow: 0 0 26px rgba(204, 255, 0, 0.6);
    }
}



/* SECTION: Programs */
.programs-section {
    padding: 8rem 0;
    position: relative;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.program-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-neon-lime), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover {
    border-color: var(--color-neon-lime);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(204, 255, 0, 0.2);
}

.program-card:hover::before {
    opacity: 1;
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.program-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-off-white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.program-card:hover .program-title {
    color: var(--color-neon-lime);
}

/* SECTION: About */
.about-section {
    padding: 8rem 0;
    background: rgba(13, 13, 13, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-off-white);
    opacity: 0.9;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* POLICY SECTIONS */
.policy-section .about-content-text {
    text-align: left;
}

html[dir="rtl"] .policy-section .about-content-text {
    text-align: right;
}

.policy-intro {
    margin-bottom: 2rem;
}

.policy-list {
    list-style: none;
    display: grid;
    gap: 1.2rem;
    padding: 0;
    margin: 0;
}

.policy-list li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.policy-list li::before {
    content: '•';
    color: var(--color-neon-lime);
    margin-right: 0.75rem;
}

html[dir="rtl"] .policy-list li::before {
    margin-right: 0;
    margin-left: 0.75rem;
}

@media (max-width: 900px) {
    .policy-list li {
        padding: 1rem 1.2rem;
    }
}

/* SECTION: The Pulse (About) */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--color-neon-lime);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.05);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-neon-lime);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}


.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    /* Stylistic choice matching hero */
    transition: all 0.5s ease;
}

.about-image:hover {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-image-wrapper:hover .about-image {
    filter: grayscale(0%);
}

.about-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about-text strong {
    color: var(--color-neon-lime);
    font-weight: 700;
}

/* SECTION: Kinetic Vault (Work) */
.work-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.work-tab {
    background: transparent;
    border: none;
    color: var(--color-off-white);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.work-tab:hover,
.work-tab.active {
    color: var(--color-neon-lime);
    opacity: 1;
    text-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
}

.tab-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    /* Strict layout control */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-viewport {
    width: 100%;
    height: 850px;
    /* Increased height */
    overflow-x: auto;
    /* Enable scroll if needed, hide scrollbar below */
    overflow-y: hidden;
    position: relative;
    cursor: grab;
    /* Hide scrollbar standard */
    scrollbar-width: none;
}

.gallery-viewport::-webkit-scrollbar {
    display: none;
}

.gallery-viewport:active {
    cursor: grabbing;
}

.work-category {
    display: none;
    width: 100%;
    height: 100%;
}

.work-category.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.scroll-track {
    display: flex;
    gap: 2rem;
    height: 100%;
    align-items: center;
    /* Center items horizontally if they don't fill width */
    justify-content: center;
    min-width: 100%;
    /* Ensure track fills viewport to allow centering */
    width: max-content;
    /* Allow growing beyond 100% if many items */
    padding: 0 50vw;
    /* Push first/last items to center? No, let's try simple centering first */
    padding: 0;
    /* Remove padding to ensure symmetric edge-to-edge scrolling */
    transition: transform 0.3s ease-out;
}



.work-item {
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    height: 90%;
    /* Fit within container */
}

/* Aspect Ratio Enforcement via Height */
.work-item.portrait {
    aspect-ratio: 9/16;
}

.work-item.landscape {
    aspect-ratio: 16/9;
}

.work-item:hover {
    transform: scale(1.02);
    border-color: var(--color-neon-lime);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.2);
    z-index: 10;
}



.gallery-pagination {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--color-neon-lime);
    box-shadow: 0 0 10px var(--color-neon-lime);
    transform: scale(1.2);
}

@media (max-width: 1600px) {
    .gallery-nav.prev {
        left: 0;
    }

    .gallery-nav.next {
        right: 0;
    }
}

.work-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.work-thumbnail:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--color-neon-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.work-thumbnail:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn {
    color: var(--color-neon-lime);
    font-size: 1.5rem;
    margin-left: 4px;
    /* Optical adjustment */
}

/* The Cut Line */
.cut-line {
    width: 100%;
    height: 1px;
    background-color: var(--color-neon-lime);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
    margin: 0;
    position: relative;
    z-index: 10;
}

/* SECTION: Client Echoes (Testimonials) */
/* SECTION: Client Echoes (Testimonials - Redesign) */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--color-neon-lime);
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.testimonial-nav {
    display: flex;
    gap: 1rem;
}

.nav-arrow {
    width: 60px;
    height: 60px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--color-off-white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: var(--color-neon-lime);
    color: #000;
    border-color: var(--color-neon-lime);
    box-shadow: 0 0 20px var(--color-neon-lime);
    transform: scale(1.1);
}

.testimonials-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* Hide scrollbar */
    padding: 4rem 0 2rem 0;
    /* Updated padding */
    /* Buffer for shadow/hover */
    cursor: grab;
    margin-top: -2rem;
}

.testimonials-viewport::-webkit-scrollbar {
    display: none;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Removed infinite scroll animation in favor of manual nav */
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    width: 500px;
    /* Specific width for card look */
    min-height: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    border-color: rgba(204, 255, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

/* Green Glow Accent on Card */
.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-neon-lime), transparent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.quote-icon {
    font-family: serif;
    font-size: 5rem;
    color: var(--color-neon-lime);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 2rem;
    font-weight: 300;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: none;
    /* Removed line */
    padding-top: 0;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.client-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.2rem;
    letter-spacing: 0.05em;
}

.client-role {
    font-size: 0.85rem;
    color: var(--color-neon-lime);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* Hide rating as requested by new design logic implicitly */
.star-rating {
    display: none;
}

/* SECTION: The Architect's Path (Process) */
/* SECTION: The Architect's Path (Process - Redesign) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.process-card {
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--edge-sharp);
    backdrop-filter: blur(10px);
    padding: 2px;
    /* Double border effect container */
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    /* Initial state for animation */
}

.process-card.active {
    opacity: 1;
    transform: translateY(0);
}

.process-card:hover {
    border-color: var(--color-neon-lime);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.15);
    transform: translateY(-10px);
}

.process-card-inner {
    background: #111;
    height: 100%;
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.card-icon-glow {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(204, 255, 0, 0.3);
    transition: all 0.3s ease;
}

.process-card:hover .card-icon-glow {
    background: radial-gradient(circle, rgba(204, 255, 0, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 15px var(--color-neon-lime);
}

.process-icon {
    font-size: 1.8rem;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.process-card:hover .process-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-off-white);
    font-weight: 700;
}

.process-card:hover .step-title {
    color: var(--color-neon-lime);
}

.step-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}

.step-number-bg {
    position: absolute;
    bottom: -1rem;
    right: -0.5rem;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 0;
    transition: all 0.3s ease;
}

.process-card:hover .step-number-bg {
    color: rgba(204, 255, 0, 0.05);
    transform: scale(1.1);
}

/* Staggered Delay Helpers (can be added via JS or manual classes) */
.process-card:nth-child(1) {
    transition-delay: 0.1s;
}

.process-card:nth-child(2) {
    transition-delay: 0.2s;
}

.process-card:nth-child(3) {
    transition-delay: 0.3s;
}

.process-card:nth-child(4) {
    transition-delay: 0.4s;
}

.process-card:nth-child(5) {
    transition-delay: 0.5s;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes content is duplicated once for seamless loop */
}

/* SECTION: Impact Finale (Footer) */
.impact-section {
    padding: 10rem 0;
    /* More padding */
    background: radial-gradient(circle at center, #1a1a1a 0%, #111 70%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Cut line feel */
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.impact-headline {
    font-size: 3rem;
    margin-bottom: 3rem;
    line-height: 1.1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--edge-sharp);
    font-family: var(--font-heading);
    color: var(--color-off-white);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--color-neon-lime);
    color: var(--color-neon-lime);
    box-shadow: 0 0 15px var(--color-neon-lime);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 4rem;
    font-size: 0.9rem;
    opacity: 0.5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px var(--color-neon-lime);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
    }
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid var(--color-neon-lime);
    color: var(--color-neon-lime);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: var(--edge-sharp);
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-neon-lime);
    color: #000;
    box-shadow: 0 0 25px var(--color-neon-lime);
    transform: translateY(-5px);
}



/* ============================================ */
/* COMPREHENSIVE RESPONSIVE DESIGN */
/* ============================================ */

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-neon-lime);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================ */
/* TABLET & SMALL DESKTOP (1400px and below) */
/* ============================================ */
@media (max-width: 1400px) {

    .container,
    .nav-container {
        padding: 0 10%;
    }

    .hero-logo {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* ============================================ */
/* TABLET (1100px and below) */
/* ============================================ */
@media (max-width: 1100px) {

    /* Hide desktop navigation */
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        gap: 0.5rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-top: 1px solid rgba(204, 255, 0, 0.2);
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.9rem 1.2rem;
        width: 90%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .dropdown {
        width: 90%;
    }

    .dropdown-toggle {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 6px;
        margin: 0.5rem 0 0;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        text-align: center;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Adjust header button */
    .nav-container .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .hero-logo {
        width: 280px;
        height: 280px;
    }

    .impact-headline {
        font-size: 2.5rem;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ============================================ */
/* TABLET PORTRAIT (900px and below) */
/* ============================================ */
@media (max-width: 900px) {

    .container,
    .nav-container {
        padding: 0 8%;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-section {
        padding-top: 12rem;
        padding-bottom: 6rem;
        min-height: 80vh;
    }

    .hero-logo {
        width: 250px;
        height: 250px;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .impact-headline {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .programs-section,
    .about-section {
        padding: 6rem 0;
    }

    .program-card {
        padding: 2rem 1.5rem;
    }

    .program-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .program-title {
        font-size: 1.2rem;
    }

    .about-content-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .btn-massive {
        font-size: 1.4rem;
        padding: 1.5rem 3rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* ============================================ */
/* MOBILE LANDSCAPE & SMALL TABLET (768px and below) */
/* ============================================ */
@media (max-width: 768px) {

    .container,
    .nav-container {
        padding: 0 5%;
    }

    /* Header adjustments */
    .main-header {
        height: auto;
    }

    .nav-container {
        height: 70px;
        padding: 0 5%;
    }

    .logo-image {
        height: 35px;
    }

    .nav-container .btn {
        display: none;
        /* Hide header button on mobile */
    }

    .nav-links {
        top: 70px;
        height: calc(100vh - 70px);
        padding: 1.5rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.85rem 1.2rem;
    }

    /* Hero section */
    .hero-section {
        padding-top: 10rem;
        padding-bottom: 4rem;
        min-height: 70vh;
    }

    .hero-logo {
        width: 200px;
        height: 200px;
        margin-bottom: 1.5rem;
    }

    .hero-heading {
        font-size: 2rem;
    }

    .impact-headline {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    /* Sections */
    .section-padding {
        padding: 4rem 0;
    }

    .programs-section,
    .about-section,
    .impact-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Programs grid */
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .program-card {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .program-icon {
        font-size: 2.5rem;
    }

    .program-title {
        font-size: 1.1rem;
    }

    /* About section */
    .about-content-text {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
    }

    /* Footer/Contact */
    .btn-massive {
        width: 100%;
        padding: 1.2rem 1rem;
        font-size: 1.1rem;
    }

    .social-links {
        gap: 1rem;
        margin-top: 3rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }

    .footer-bottom {
        margin-top: 3rem;
        font-size: 0.85rem;
    }

    /* Scroll to top button */
    .scroll-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }

    /* Testimonials */
    .testimonial-card {
        width: 280px;
        min-height: 350px;
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Process grid */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================ */
/* MOBILE PORTRAIT (480px and below) */
/* ============================================ */
@media (max-width: 480px) {

    .container,
    .nav-container {
        padding: 0 4%;
    }

    /* Header */
    .nav-container {
        height: 65px;
    }

    .logo-image {
        height: 30px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }

    /* Hero section */
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 3rem;
        min-height: 60vh;
    }

    .hero-logo {
        width: 160px;
        height: 160px;
        margin-bottom: 1rem;
    }

    .hero-heading {
        font-size: 1.5rem;
    }

    .impact-headline {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Remove blinking cursor on mobile */
    .impact-headline::after {
        display: none;
    }

    /* Sections */
    .programs-section,
    .about-section,
    .impact-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Program cards */
    .program-card {
        padding: 1.5rem 1rem;
    }

    .program-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .program-title {
        font-size: 1rem;
    }

    /* About */
    .about-content-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .btn-massive {
        padding: 1rem 0.8rem;
        font-size: 1rem;
    }

    /* Social links */
    .social-links {
        gap: 0.8rem;
        margin-top: 2rem;
        flex-wrap: wrap;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer-bottom {
        margin-top: 2rem;
        font-size: 0.75rem;
        padding-top: 1.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        width: 260px;
        min-height: 320px;
        padding: 1.5rem;
    }

    .quote-icon {
        font-size: 3.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .client-name {
        font-size: 0.9rem;
    }

    .client-role {
        font-size: 0.75rem;
    }

    /* Scroll to top */
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.1rem;
    }
}

/* ============================================ */
/* EXTRA SMALL MOBILE (360px and below) */
/* ============================================ */
@media (max-width: 360px) {

    .container,
    .nav-container {
        padding: 0 3%;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    .hero-heading,
    .impact-headline {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .program-card {
        padding: 1.2rem 0.8rem;
    }

    .program-icon {
        font-size: 1.8rem;
    }

    .program-title {
        font-size: 0.95rem;
    }

    .about-content-text {
        font-size: 0.9rem;
    }

    .btn-massive {
        font-size: 0.95rem;
        padding: 0.9rem 0.6rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* ============================================ */
/* TOUCH DEVICE OPTIMIZATIONS */
/* ============================================ */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .nav-link,
    .btn,
    .social-link,
    .program-card {
        min-height: 44px;
        /* iOS minimum touch target */
    }

    /* Remove hover effects on touch devices */
    .program-card:hover,
    .social-link:hover,
    .nav-link:hover {
        transform: none;
    }

    /* Add active states instead */
    .program-card:active {
        transform: scale(0.98);
    }

    .btn:active,
    .social-link:active {
        transform: scale(0.95);
    }
}

/* ============================================ */
/* LANDSCAPE ORIENTATION FIXES */
/* ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* ============================================ */
/* HIGH RESOLUTION DISPLAYS */
/* ============================================ */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Optimize for retina displays */
    .hero-logo,
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================ */
/* PRINT STYLES */
/* ============================================ */
@media print {

    .main-header,
    .scroll-top-btn,
    .mobile-menu-toggle,
    .particle-container,
    .cursor-glow {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero-section,
    .programs-section,
    .about-section {
        page-break-inside: avoid;
    }
}


/* ============================================ */
/* ENHANCED ANIMATIONS & INTERACTIVE EFFECTS */
/* ============================================ */

/* Fade-in Animation for Scroll */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Program Cards Initial State */
.program-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Program Icon Rotation */
.program-icon {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Kinetic Text Enhanced */
.kinetic-accent {
    transition: all 0.3s ease;
    display: inline-block;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Particle Container */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-neon-lime);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
    box-shadow: 0 0 10px var(--color-neon-lime);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Ripple Effect for Social Links */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(204, 255, 0, 0.4);
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Social Links Enhanced */
.social-link {
    position: relative;
    overflow: hidden;
}

/* Header Transition Enhancement */
.main-header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hero Logo Enhanced Transition */
.hero-logo {
    transition: filter 0.4s ease, transform 0.3s ease;
    cursor: pointer;
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Button Glow Animation */
@keyframes buttonGlow {

    0%,
    100% {
        box-shadow: 0 0 25px var(--color-neon-lime);
    }

    50% {
        box-shadow: 0 0 40px var(--color-neon-lime), 0 0 60px rgba(204, 255, 0, 0.5);
    }
}

.btn:hover {
    animation: buttonGlow 2s ease-in-out infinite;
}

/* Section Title Animation */
.section-title {
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Program Card Hover Glow */
.program-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.program-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Nav Link Enhanced Animation */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* About Content Text Animation */
.about-content-text {
    animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scroll Top Button Enhanced */
.scroll-top-btn {
    animation: pulse 2s ease-in-out infinite;
}

.scroll-top-btn:hover {
    animation: none;
}

/* Impact Headline Typing Cursor */
.impact-headline::after {
    content: '|';
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    color: var(--color-neon-lime);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Gradient Border Animation */
@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Program Card Border */
.program-card {
    position: relative;
    z-index: 1;
}

.program-card::before {
    animation: rotateBorder 3s linear infinite;
}

/* Footer Social Links Stagger Animation */
.social-link:nth-child(1) {
    animation-delay: 0.1s;
}

.social-link:nth-child(2) {
    animation-delay: 0.2s;
}

.social-link:nth-child(3) {
    animation-delay: 0.3s;
}

.social-link:nth-child(4) {
    animation-delay: 0.4s;
}

.social-link:nth-child(5) {
    animation-delay: 0.5s;
}

/* Text Glow on Hover */
.program-title {
    transition: all 0.3s ease;
}

.program-card:hover .program-title {
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
}

/* Smooth Transitions for All Interactive Elements */
a,
button,
.btn,
.program-card,
.social-link,
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Animation for Page */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

body {
    animation: pageLoad 0.5s ease;
}

/* Hero Section Enhanced */
.hero-section {
    transition: transform 0.1s ease-out;
}

/* Neon Pulse Effect */
@keyframes neonPulse {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
    }

    50% {
        text-shadow: 0 0 40px rgba(204, 255, 0, 0.8), 0 0 60px rgba(204, 255, 0, 0.4);
    }
}

.kinetic-accent {
    animation: neonPulse 3s ease-in-out infinite;
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }

    .particle {
        display: none;
    }

    .program-card {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Override reduce-motion for hero if animations are required */
.hero-logo,
.hero-heading-container .kinetic-text {
    animation-duration: 6s !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
}
