@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #050510;
    --text-color: #ffffff;
    --primary-color: #59208e;
    --secondary-color: #3b2899;
    --accent-gradient: linear-gradient(135deg, #59208e, #3b2899);
    --accent-color: #59208e;
    /* Fallback/Solid usage */

    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-blur: 25px;
    --liquid-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.05) 100%);
    --font-main: 'Poppins', sans-serif;
    --container-width: 1200px;
    --transition-speed: 0.4s;
}

/* Preloader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050510;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Infinity Loader Animation */
.loader-svg {
    width: 150px;
    /* Reduced from 180px */
    height: auto;
    overflow: visible;
}

.loader-svg path {
    fill: transparent;
    stroke: var(--accent-color);
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    animation: drawStroke 3s ease-in-out infinite alternate,
        fillPulse 3s ease-in-out infinite alternate;
}

@keyframes drawStroke {
    0% {
        stroke-dashoffset: 4000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fillPulse {

    0%,
    40% {
        fill: transparent;
        fill-opacity: 0;
    }

    100% {
        fill: var(--accent-color);
        fill-opacity: 1;
    }
}

.loader-glow {
    display: none;
}


/* Reduce overall loader content width to allow movement range */
.loader-content {
    position: relative;
    width: 200px;
    /* Give space for movement */
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes pulseGlow {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.2;
    }

    to {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    /* Background moved to .bg-elements to allow layers */
    background-color: transparent;
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
    /* Ensure stacking context */
}

/* Background Space Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    /* Deepest layer */
    background-color: var(--bg-color);
    /* Base color here */
    overflow: hidden;
    pointer-events: none;
}

.bg-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle 4s infinite ease-in-out;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Star Positions & Sizes */
.star-1 {
    width: 3px;
    height: 3px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    width: 2px;
    height: 2px;
    top: 25%;
    left: 85%;
    animation-delay: 1s;
}

.star-3 {
    width: 4px;
    height: 4px;
    top: 60%;
    left: 15%;
    animation-delay: 2.5s;
}

.star-4 {
    width: 2px;
    height: 2px;
    top: 80%;
    left: 75%;
    animation-delay: 0.5s;
}

.star-5 {
    width: 3px;
    height: 3px;
    top: 10%;
    left: 50%;
    animation-delay: 3s;
}

.star-6 {
    width: 2px;
    height: 2px;
    top: 90%;
    left: 30%;
    animation-delay: 1.5s;
}

/* Planets / Orbs */
.bg-planet {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
}

.planet-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 30% 30%, var(--primary-color), transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.planet-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 70% 70%, var(--secondary-color), transparent 70%);
    bottom: -50px;
    left: -50px;
    opacity: 0.1;
    animation: floatOrb 25s infinite ease-in-out alternate-reverse;
}

/* Parallax Interactive Shapes */
.parallax-shape {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
    transition: transform 0.1s linear;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #59208e, transparent);
    top: 20%;
    right: 15%;
    filter: blur(40px);
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 70% 30%, #3b2899, transparent);
    top: 55%;
    left: 10%;
    filter: blur(50px);
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: #fff;
    top: 85%;
    right: 25%;
    filter: blur(60px);
    opacity: 0.05;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}



/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--liquid-shine);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(89, 32, 142, 0.4);
    color: #fff;
}


/* Update Nav Hover Line */
.nav-links a::after {
    background: var(--accent-gradient);
}

.nav-links a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
}

/* Service Icons with Gradient */
.service-icon {
    font-size: 2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
}


/* Service Card Hover Border */
.service-card:hover {
    border-color: var(--primary-color);
    /* Simplified for border */
    box-shadow: 0 10px 30px -10px rgba(89, 32, 142, 0.3);
}

/* Glow effect gradient */
.service-card::before {
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
}

/* Portfolio Category */
.portfolio-cat {
    color: var(--primary-color);
}

/* Footer Link Hover */
.footer-col ul li a:hover {
    color: var(--primary-color);
}


/* Header/Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition-speed);
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 20, 0.4);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
    margin-left: 2px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition-speed);
    position: relative;
    padding-bottom: 5px;
}

/* Hover Line Animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #fff;
    /* Keep text white, let line do the color work */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 1rem;
    padding-bottom: 10vh;
}

/* Hero Title Refinement */
.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: none;
}

.text-outline {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}

/* Animation Parts */
.anim-part {
    transition: background-color 0.3s ease,
        opacity 0.8s ease,
        font-size 0.8s ease,
        letter-spacing 0.8s ease;
    display: inline;
    border-radius: 2px;
}

.anim-part.selected {
    background-color: var(--accent-color);
    /* Highlight color */
}

.anim-part.hidden-part {
    opacity: 0;
    font-size: 0;
    letter-spacing: -5px;
    margin: 0;
    pointer-events: none;
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    color: #fff;
    margin-left: 2px;
    animation: blinkCursor 1s infinite;
    font-weight: 300;
    vertical-align: text-bottom;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem since we added subdesc */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subdesc {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.astronaut-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
    /* Prevent overflow */
}

.astronaut-img {
    width: 100%;
    height: auto;
    /* max-width: none; Removed to allow full width stretch */
    object-fit: contain;
    transition: transform 0.1s linear;
    filter: drop-shadow(0 0 50px rgba(0, 0, 0, 0.5));
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-color);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* Mobile Toggle and Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above everything */
    width: 30px;
    height: 30px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Active State (Turn to X) */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 250px;
    height: 100vh;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

[dir="rtl"] .mobile-menu {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

[dir="rtl"] .mobile-menu.active {
    left: 0;
}

.close-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

[dir="rtl"] .close-menu {
    right: auto;
    left: 20px;
}

.mobile-nav-links {
    list-style: none;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    display: block;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--accent-color);
}

.mobile-actions {
    margin-top: auto;
    /* Push to bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.mobile-lang {
    justify-content: center;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-video {
        display: block;
        /* Show video on mobile */
    }

    .hero {
        background: none;
        /* Remove image fallback if video is playing */
    }

    .hero-title {
        font-size: 2.5rem;
        /* Adjusted size */
    }

    .hero-desc {
        font-size: 1rem;
    }

    /* Hide Desktop Elements */
    .desktop-nav,
    .desktop-btn,
    .desktop-lang {
        display: none !important;
    }

    /* Show Mobile Toggle */
    .mobile-toggle {
        display: block;
    }

    .nav-actions {
        gap: 0;
        /* Just the toggle */
    }

    /* Mobile adjustments: make astronaut much bigger */
    .astronaut-img {
        width: auto;
        max-width: 150%;
        /* Allow some overflow for a larger presence */
        max-height: 85vh;
        /* Take up more vertical space */
        display: block;
        margin: 0 auto;
        /* Base scale is significantly increased in script.js */
    }


    .hero-content {
        padding-bottom: 0;
        /* Center content exactly */
        text-align: center;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Sections General */
section {
    position: relative;
    z-index: 10;
}

/* Services / Expertise */
.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Liquid Glass Logic for Cards */
.service-card {
    background: var(--liquid-shine);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 30px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.4);
}


/* Glow effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    border-color: rgba(106, 13, 173, 0.3);
    /* Subtle purple border on hover */
}

.service-card:hover::before {
    opacity: 1;
}


.service-card:hover .service-icon {
    transform: rotate(10deg) scale(1.1);
    background: var(--accent-gradient);
    color: #fff;
}

.service-card:hover .service-number {
    color: rgba(255, 255, 255, 0.6);
}


.service-name {
    font-size: 1.5rem;
    margin: 0;
}

.service-desc {
    color: #aeaeae;
    font-size: 1rem;
    line-height: 1.7;
}

/* Portfolio cards */
/* Portfolio Slider */
.portfolio-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.portfolio-track-container {
    overflow: hidden;
    width: 100%;
    /* Keep mask for elegant fade for the CORNERS */
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    padding: 3rem 0;
}

.portfolio-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-slide {
    min-width: 300px;
    flex: 0 0 33.33%;
    transition: all 0.5s ease;

    /* Default: Side Items (Slightly smaller, but CLEAR) */
    /* REMOVED filter: blur() so they are straight and clear */
    transform: scale(0.9);
    opacity: 0.8;
    z-index: 1;
    position: relative;
    pointer-events: auto;
}

.portfolio-slide.active {
    /* Active: Center (Big, Clear, Focused) */
    transform: scale(1.1) !important;
    opacity: 1 !important;
    /* Blur is 0 by default if we removed it above */
    z-index: 10 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

/* Remove side specific transforms as we just use scale now */
.portfolio-slide.prev,
.portfolio-slide.next {
    /* Optional: Ensure they are definitely small/blurred if 'active' overrides didn't catch */
    transform: scale(0.8);
    filter: blur(4px);
}

@media (max-width: 992px) {
    .portfolio-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 600px) {
    .portfolio-slide {
        flex: 0 0 80%;
        /* Almost full width mobile */
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent-color);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Portfolio cards updated for slider */
/* Portfolio Image-Only Slider Items */
.portfolio-item-image-only {
    width: 100%;
    height: 350px;
    /* Taller for image focus */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item-image-only:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.portfolio-img-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    /* Start dark */
    /* Add a subtle gradient or pattern to placeholder if no image */
    background: linear-gradient(135deg, #1a1a2e, #162447);
    transition: transform 0.5s ease;
}

.portfolio-item-image-only:hover .portfolio-img-placeholder {
    transform: scale(1.1);
    /* Zoom effect inside container */
}

/* Scroll Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for grid items */
.service-card,
.portfolio-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.service-card.is-visible,
.portfolio-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact / Launch */
.launch-section {
    padding: 8rem 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(30, 30, 60, 0.5) 0%, transparent 70%);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-input {
    background: transparent;
    border: none;
    padding: 1rem;
    flex-grow: 1;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: #020205;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #888;
    margin-top: 1rem;
    max-width: 250px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1;
}

.about-desc {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .about-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

/* Team Section */
/* Visionaries Section (Minimal & Clean) */
.visionaries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 4rem 2rem;
    margin-top: 3rem;
}

.visionary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Image Container */
.visionary-image {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.visionary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Hover Interaction */
.visionary-card:hover .visionary-image {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.visionary-card:hover .visionary-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Typography */
.visionary-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.visionary-info span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 992px) {
    .visionaries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .visionaries-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-desc {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--accent-color);
}

.glass-form {
    background: var(--liquid-shine);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 30px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #aeaeae;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


footer {
    background-color: #0b0612;
    /* Dark purple black as requested */
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.9rem;

}

/* Partners Section (Infinite Slider) */
.partners-slider {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

.partners-slider::before,
.partners-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(to right, #0b0b14, transparent);
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(to left, #0b0b14, transparent);
}

.partners-track {
    display: inline-flex;
    align-items: center;
    gap: 5rem;
    animation: scroll 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    transition: all 0.4s ease;
    filter: grayscale(100%) brightness(0.8);
}

.partner-item:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .partners-track {
        gap: 3rem;
    }

    .partner-item {
        width: 100px;
        height: 70px;
    }
}


/* Testimonials Section (Infinite Slider) */
.testimonials-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* Masking for fade effect on edges */
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.testimonials-track {
    display: inline-flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    /* Slower for reading */
    padding-left: 2rem;
    /* Initial offset */
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    width: 400px;
    /* Fixed width for slider */
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.testimonial-quote {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-color), #4a00e0);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
}

.author-info h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.author-info span {
    color: #777;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.05);
}

/* Mobile Tweak Testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
        padding: 1.5rem;
    }
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.9);
    /* Dark overlay */
    backdrop-filter: blur(10px);
    /* Modern blur */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    /* Start slightly smaller */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    /* Pop in */
}

.lightbox-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    /* Ensure fits vertically */
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: 0.3s;
    z-index: 10001;
}


.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}


.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10010;
    /* Ensure on top of everything */
    outline: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Mobile responsiveness for arrows */
@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.5);
        /* More contrast on mobile */
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    /* Increase astronaut size on mobile naturally to avoid pixelated scaling */
    /* Increase astronaut size on mobile naturally to avoid pixelated scaling */
    /* Hide astronauts on mobile to prevent overflow/spacing issues */
    /* Hide parallax astro (floating elements) on mobile but KEEP main astronaut */
    .parallax-astro {
        display: none !important;
    }

    /* Mobile Astronaut Styling */
    .astronaut-container {
        display: flex !important;
        align-items: flex-end;
        bottom: -50px;
        /* Start slightly lower */
        z-index: 1;
        /* Behind text/buttons on mobile to avoid blocking touches */
        pointer-events: none;
    }

    .astronaut-img {
        width: 180%;
        /* 50% bigger (was 120%) */
        max-width: none;
    }
}

/* Global Scroll Reveal Animation */
.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, filter, transform;
}

.reveal-blur.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Service Page Styles */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    background: radial-gradient(circle at center, #1a1a2e, #050510);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-title {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

#services {
    position: relative;
    overflow: hidden;
    /* Prevent parallax elements from causing scroll */
    /* Ensure it contains absolute elements like astronaut */
}

.service-icon-large {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-text h2,
.service-text h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.service-description-content p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li {
    margin-bottom: 1rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-features li i {
    color: var(--accent-color);
}

/* Portfolio Grid in Service Detail */
.service-portfolio {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-portfolio h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.service-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.service-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-portfolio-item:hover img {
    transform: scale(1.05);
}

.service-sidebar {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-links {
    list-style: none;
    margin-top: 1.5rem;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    display: block;
    padding: 1rem;
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 1.5rem;
}

.sidebar-links a i {
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }
}

/* Background Planets for Service Pages */
.bg-planet {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Increased blur for stronger glow */
    opacity: 0.8;
    /* Increased opacity */
    z-index: 0;
    pointer-events: none;
}

.planet-1 {
    width: 600px;
    /* Increased size */
    height: 600px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: 20%;
    right: -10%;
    /* Animation removed to allow JS parallax */
}

/* Parallax Astronaut */
.parallax-astro {
    position: absolute;
    width: 250px;
    height: auto;
    /* Middle Right */
    top: 40%;
    right: 5%;
    left: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
    /* Faster and smoother float */
    will-change: transform;
    /* Removed individual float animation to favor scroll-driven parallax */
}

@keyframes floatAstro {
    0% {
        margin-top: 0px;
    }

    100% {
        margin-top: -30px;
    }
}

/* Modern Who We Are Section */
.who-we-are-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

/* Watermark Text */
.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
    letter-spacing: 20px;
    white-space: nowrap;
    user-select: none;
}

/* Glass Card Container */
.about-glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 4rem;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.5fr 0.6fr;
    /* Text dominates */
    gap: 4rem;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Video Thumbnail Wrapper */
.about-video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
    cursor: pointer;
    background: #000;
}

.about-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-video-wrapper:hover .about-video-thumb {
    transform: scale(1.1);
}

.about-video-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(var(--accent-rgb), 0.3);
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    overflow: hidden;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.modal-video-container {
    width: 100%;
    height: 100%;
}

.modal-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.video-modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Decorative Glow behind card */
.about-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.about-header {
    position: relative;
}

.about-title {
    font-size: 4rem;
    line-height: 1;
    margin-top: 1rem;
    text-transform: uppercase;
}

.outline-text {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
    font-family: var(--font-main);
}

.highlight-text {
    color: var(--accent-color);
}

.about-desc.lead {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.text-white {
    color: #fff;
    font-weight: 500;
}

.about-decoration-line {
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    margin-top: 2rem;
    border-radius: 2px;
}

/* Mobile Responsiveness for About */
@media (max-width: 992px) {
    .about-glass-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .about-title {
        font-size: 3rem;
    }

    .watermark-text {
        font-size: 20vw;
    }
}

/* Planet 2 (Who We Are Background) */
.planet-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 0, 224, 0.4) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Play Icon Overlay */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    /* Smaller icon for thumbnail */
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: breathe 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

.play-icon-overlay i {
    margin-left: 5px;
}

@keyframes breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    }
}

/* Hero Subtitle White */
.hero-subdesc {
    color: #ffffff !important;
    opacity: 0.9;
}

/* =========================================
   3D Carousel / Showcase Section
   ========================================= */
.showcase-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.showcase-header-wrapper {
    margin-bottom: 4rem;
}

.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.theme-label {
    font-size: 3rem;
    font-weight: 300;
    color: #fff;
    opacity: 0.8;
}

.theme-counter {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.header-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.carousel-3d-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    perspective: 1000px;
}

.carousel-3d-track {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-card {
    position: absolute;
    width: 350px;
    height: 450px;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    z-index: 1;
    transform: translateX(0) scale(0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    font-size: 2rem;
    font-weight: 300;
}

/* Active State (Center) */
.carousel-card.active {
    opacity: 1;
    z-index: 10;
    transform: translateX(0) scale(1.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    filter: blur(0);
}

/* Previous (Left) */
.carousel-card.prev {
    opacity: 0.6;
    z-index: 5;
    transform: translateX(-350px) scale(0.85);
    /* Adjust based on card width */
    filter: blur(2px);
    cursor: pointer;
}

/* Next (Right) */
.carousel-card.next {
    opacity: 0.6;
    z-index: 5;
    transform: translateX(350px) scale(0.85);
    filter: blur(2px);
    cursor: pointer;
}

/* Hidden Items */
.carousel-card.hidden {
    opacity: 0;
    z-index: 0;
    transform: scale(0.5);
    pointer-events: none;
}

/* Controls */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    z-index: 20;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-nav.prev-btn {
    left: 5%;
}

.carousel-nav.next-btn {
    right: 5%;
}

/* Pagination Dots */
/* Carousel Progress Bar (Matches Team Section) */
.carousel-progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 2rem auto 0;
    position: relative;
    overflow: hidden;
}

.carousel-progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel-card {
        width: 280px;
        height: 380px;
    }

    .carousel-card.active {
        transform: translateX(0) scale(1);
    }

    .carousel-card.prev {
        transform: translateX(-150px) scale(0.8);
        opacity: 0.4;
    }

    .carousel-card.next {
        transform: translateX(150px) scale(0.8);
        opacity: 0.4;
    }

    .theme-label {
        font-size: 2rem;
    }
}

.section-padding {
    padding: 100px 0;
}

/* Team Carousel Section */
.team-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 0 4rem;
    /* Reduced top padding from 2rem to 0 */
}

.team-track-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding: 2rem 0;
    scroll-behavior: smooth;
    cursor: grab;
    display: flex;
    justify-content: flex-start;
    /* items align left */
}

.team-track-container::-webkit-scrollbar {
    display: none;
}

.team-track-container:active {
    cursor: grabbing;
}

.team-track {
    display: inline-flex;
    gap: 2rem;
    padding: 0 4rem;
    /* Initial padding */
    width: max-content;
    align-items: center;
    /* Center cards vertically */
    height: 500px;
    /* Container height */
}

/* Card Styling */
.team-card {
    flex: 0 0 280px;
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: default;
    /* No click action */
    border: none;
    background: #000;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
    /* Always fully visible */
}

/* Hover Zoom Effect */
.team-card:hover img {
    transform: scale(1.1);
}

/* Floating Glass Overlay */
.team-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    width: auto;
    height: auto;
    padding: 20px;

    background: rgba(30, 30, 35, 0.6);
    /* Dark glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;

    /* Ensure it sits on top */
    z-index: 2;

    /* Hidden by default */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Show on Hover */
.team-card:hover .team-overlay {
    opacity: 1;
    transform: translateY(0);
}

.team-info h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 700;
    text-transform: capitalize;
    /* Cleaner look */
    letter-spacing: 0.5px;
}

.team-role {
    font-size: 0.8rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    display: block;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}



/* Remove old Active States */
.team-card.active {
    /* No change on active, concepts merged */
    flex: 0 0 280px;
    height: 400px;
    background: #000;
    border: none;
    box-shadow: none;
    z-index: 1;
}

.team-card.active img {
    opacity: 1;
    mix-blend-mode: normal;
    transform: none;
    /* Keep normal */
}

/* Hover on card doesn't need to change overlay, it's static */

/* Navigation Buttons */
.team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    /* Match Portfolio */
    border: none;
    /* Match Portfolio */
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    /* Match Portfolio */
}

.team-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    /* Match Portfolio */
    box-shadow: none;
}

.prev-team {
    left: 0;
    /* Edge Corner */
}

.next-team {
    right: 0;
    /* Edge Corner */
}

/* Reduce gap */
.team-carousel-wrapper {
    margin-top: 1rem;
    position: relative;
}

#team .section-header {
    margin-bottom: 1.5rem;
    /* Reduced from potential default */
}

/* Pagination Dots (Wide Dots) */
.pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2rem;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    /* Rounded pill shape when wide */
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
}

.pagination-dot.active {
    width: 30px;
    /* Wide dot */
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.pagination-dot.active:hover {
    background: var(--accent-color);
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .team-track {
        padding: 0 2rem;
    }

    .team-card {
        flex: 0 0 260px;
        height: 380px;
        filter: grayscale(0%);
        /* Remove grayscale on mobile */
    }

    .team-overlay {
        opacity: 1;
        transform: translateY(0);
        /* Force visible on mobile */
        background: rgba(20, 20, 25, 0.85);
        /* Slightly darker for readability */
    }
}



/* Testimonials Redesign */
.testimonials-slider {
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2rem 0;
    /* Reduced padding */
    scroll-behavior: smooth;
    width: 60%;
    /* Center the track */
    margin: 0 auto;
    animation: none;
    position: relative;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    /* No background */
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: none;
    /* Remove blur */
    font-size: 1.2rem;
}

.testimonial-nav:hover {
    background: transparent;
    /* No hover bg */
    transform: translateY(-50%) scale(1.1);
    /* Slight scale only */
    box-shadow: none;
}

.testimonial-nav.prev {
    left: 10%;
    /* Closer to content */
}

.testimonial-nav.next {
    right: 10%;
    /* Closer to content */
}

/* Minimal Card Style (Reference Look) */
.testimonial-card {
    background: transparent !important;
    border: none !important;
    padding: 2rem 0;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    gap: 1.5rem;
    position: relative;
    text-align: center;
    cursor: default;
    opacity: 0.4;
    transform: none;
    /* No scaling */
    transition: opacity 0.4s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: none;
}

.testimonial-card:hover {
    border: none;
}

/* Avatar Top */
.testimonial-author-avatar {
    margin-bottom: 0.5rem;
}

.author-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    /* Soft rounded rectangle */
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Large Quote Icon */
.quote-icon-large {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: -0.5rem;
}

/* Quote Text */
.testimonial-quote {
    font-size: 1.1rem;
    /* Smaller */
    font-weight: 300;
    /* Lighter */
    font-style: italic;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Author Info */
.testimonial-author-info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.testimonial-author-info span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Stars */
.testimonial-stars {
    color: #fff;
    /* White stars as per some minimalist designs, or keep gold? Ref showed white/light stars in dark mode typically, but user said "like this". Let's stick to white or very pale gold. */
    color: #ffd700;
    /* Gold */
    font-size: 0.9rem;
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

/* Hide Old elements if any remain */
.testimonial-author {
    display: none;
}

/* Hide Quote Icon if present */
.quote-icon {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonial-nav.prev {
        left: 2%;
    }

    .testimonial-nav.next {
        right: 2%;
    }

    .testimonials-track {
        width: 90%;
    }

    .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Footer Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}


.social-links a:hover {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transform: translateY(-3px);
}

/* Footer Responsive Logic */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on tablet */
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        /* Stack on mobile */
        gap: 3rem;
    }

    .footer-col {
        width: 100%;
        /* Ensure full width */
    }

    .social-links {
        justify-content: flex-start;
    }

    /* Simplify Titles on Mobile */
    .hero-title,
    .section-title,
    .about-title,
    .page-title {
        font-size: 2.2rem !important;
        /* Smaller size */
        background: none !important;
        /* Remove gradients */
        -webkit-text-stroke: 0 !important;
        /* Remove outline */
        -webkit-text-fill-color: #fff !important;
        /* Solid white */
        color: #fff !important;
        /* Solid white */
        text-shadow: none !important;
        /* Remove shadows */
        letter-spacing: 0px !important;
        /* Simple spacing */
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    /* Simplify outline text Specifically */
    .outline-text,
    .text-outline {
        -webkit-text-stroke: 0 !important;
        color: #ffffff !important;
        opacity: 0.9;
    }

    /* Adjust Watermark to be subtle */
    .watermark-text {
        font-size: 3rem !important;
        opacity: 0.05;
        letter-spacing: 5px;
    }
}