:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #86868b;
    --accent-color: #2997ff;
    /* Apple Blue-ish */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000000 100%);
    /* Subtle top spotlight */
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    box-sizing: border-box;
}

.nav-bar .logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    margin: 0;
    display: block;
    margin-right: 10px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: inline-block;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
}

.logo-text::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.9),
        transparent
    );
    transform: skewX(-20deg) scale(1);
    animation: logoFlash 5s ease-in-out infinite;
}

@keyframes logoFlash {
    0% {
        left: -100%;
        transform: skewX(-20deg) scale(1);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    10% {
        transform: skewX(-20deg) scale(1.2);
    }
    15% {
        left: 100%;
        transform: skewX(-20deg) scale(1);
        opacity: 1;
    }
    20% {
        opacity: 0;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Hide hamburger by default (desktop) */
.nav-bar .hamburger {
    display: none;
    /* Default to hidden on desktop */
}

/* Force display hamburger on mobile with very specific selector */
@media (max-width: 768px) {
    .nav-bar > .hamburger {
        display: block !important;
    }
}

/* Hero */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    /* Blend with the liquid effect */
    filter: blur(10px);
    /* Artistic blur */
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    margin: 0 10px;
    transition: transform 0.2s;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: scale(1.05);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.lang-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Vision */
.vision-section {
    padding: 4rem 2rem;
    background: #050505;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.quote {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 4rem;
}

.quote footer {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 400;
}

.vision-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem auto;
    padding: 0 2rem;
    white-space: normal;
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
    word-break: keep-all;
}

.vision-text br {
    display: block;
    content: "";
    margin: 0.5rem 0;
}

.evolution-path {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 6rem;
    position: relative;
    padding-top: 2rem;
}

.evolution-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.3) 80%, transparent);
    z-index: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.step {
    background: transparent;
    z-index: 2;
    text-align: center;
    position: relative;
    width: 30%;
    opacity: 1;
    /* transition: opacity 0.5s, transform 0.5s, color 0.5s; */
}

.step::before {
    content: '';
    position: absolute;
    top: -2.4rem;
    /* Align with the line */
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    z-index: 3;
}

.step.active {
    opacity: 0.2;
    transform: translateY(-10px);
}

.step.active::before {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
}

.step h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    z-index: 4;
    position: relative;
}

.step p {
    color: #cccccc;
    margin: 0;
    z-index: 4;
    position: relative;
}

.step .desc {
    font-size: 0.8rem;
    color: var(--accent-color);
    display: block;
    margin-top: 0.5rem;
    z-index: 4;
    position: relative;
}

/* Tech */
.tech-section {
    padding: 4rem 2rem;
    background: #000;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    /* transition: transform 0.3s, background 0.3s; */
    backdrop-filter: blur(10px);
    overflow: hidden;
    /* For images */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 380px;
    max-height: 450px;
}

.card-glass:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

/* .card-icon removed */

.card-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    /* Subtle background */
    transition: opacity 0.3s, transform 0.3s;
}

.card-glass:hover .card-bg-img {
    opacity: 0.6;
    transform: scale(1.05);
}

.card-glass h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    z-index: 1;
    min-height: 3rem;
    display: flex;
    align-items: flex-end;
    font-weight: 600;
    flex-shrink: 0;
}

.card-glass p {
    color: var(--text-secondary);
    /* Ensure text is readable */
    z-index: 1;
    margin: 0;
    flex-grow: 1;
    max-height: 150px;
    overflow-y: auto;
    line-height: 1.6;
    padding-right: 0.5rem;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.card-glass p::-webkit-scrollbar {
    width: 4px;
}

/* Track */
.card-glass p::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Handle */
.card-glass p::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

/* Handle on hover */
.card-glass p::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Products */
.products-section {
    padding: 2rem 0;
    overflow: hidden;
}

.product-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 10%;
    min-height: 60vh;
}

.product-showcase.left-text {
    flex-direction: row-reverse;
}

.product-img-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Animated in JS with gsap.from */
    position: relative;
    height: 500px;
    /* Fixed height for consistency */
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    /* Deeper shadow */
    background-color: transparent;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop to fit */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Carousel Navigation Styles */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-dot:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
    border-color: #ffffff;
    box-shadow: 0 0 12px var(--accent-color), 0 0 20px rgba(255, 255, 255, 0.6);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    font-weight: bold;
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(41, 151, 255, 0.4);
    transform: translateY(-50%) scale(1.15);
    color: var(--accent-color);
}

.carousel-arrow-prev {
    left: 25px;
}

.carousel-arrow-next {
    right: 25px;
}

.product-info {
    flex: 0.8;
    padding: 3rem;
    /* More breathing room */
    /* Animated in JS with gsap.from */
}

.product-info .category {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.product-info h2 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

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

/* Footer */
.footer {
    padding: 4rem 2rem;
    background: #000;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    text-align: left;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
}

.footer-legal a {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
}

.icp-number {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s;
}

.icp-number:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .icp-number {
        margin: 0.5rem 0;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 2rem 0;
        z-index: 999;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        margin: 0;
        font-size: 1.2rem;
    }

    .nav-bar > .hamburger {
        cursor: pointer;
        padding: 10px;
        z-index: 9999;
        /* Higher z-index to ensure visibility */
        position: relative;
        /* Ensure proper stacking context */
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 6px auto;
        transition: all 0.3s ease;
        background-color: white;
        /* Explicit white color for better visibility */
        background-color: var(--text-primary) !important;
        /* Ensure color is applied */
    }

    /* Ensure nav-bar has proper flex layout for mobile */
    .nav-bar {
        justify-content: space-between !important;
        padding: 1rem !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .evolution-path {
        flex-wrap: wrap;
        /* allow wrapping if needed */
    }

    .evolution-path::before {
        display: none;
        /* Hide line on mobile */
    }

    .step {
        width: 100%;
        /* Stack steps on mobile */
        margin-bottom: 2rem;
        padding-left: 2rem;
        text-align: left;
        position: relative;
    }

    .step::before {
        top: 0.5rem;
        /* Align with text on mobile */
        left: 0;
        transform: none;
        margin-right: 1rem;
    }

    .product-showcase,
    .product-showcase.left-text {
        flex-direction: column-reverse;
        text-align: center;
        padding: 4rem 2rem;
    }

    .product-img-wrapper {
        margin-bottom: 2rem;
        height: auto;
        /* Allow height to adapt on mobile */
        min-height: 300px;
        /* Ensure minimum height for visibility */
    }

    .product-img-wrapper img {
        object-fit: contain;
        /* Show complete image on mobile */
        max-height: 400px;
        /* Limit maximum height to prevent overflow */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 10px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.video-close:hover,
.video-close:focus {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Video Modal */
@media (max-width: 768px) {
    .video-modal-content {
        margin: 15% auto;
        width: 95%;
    }
    
    .video-close {
        top: -30px;
        font-size: 25px;
    }
}

/* About Page Styles */

/* About Hero Section */
.about-hero-section {
    height: 60vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    overflow: hidden;
}

.about-hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.about-hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.04em;
}

.about-hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* About Sections */
.about-section {
    padding: 6rem 2rem;
    background: #000000;
    border-top: 1px solid var(--glass-border);
}

.about-section.light-bg {
    background: #050505;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-grid.reverse {
    grid-template-columns: 1fr 1fr;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Job Positions */
.job-positions {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.job-positions h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.job-positions ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.job-positions li {
    color: var(--text-secondary);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.job-positions li:last-child {
    border-bottom: none;
}

.job-positions li:hover {
    color: var(--text-primary);
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* About Page Responsive */
@media (max-width: 768px) {
    .about-hero-title {
        font-size: 2.5rem;
    }
    
    .about-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-section {
        padding: 4rem 1rem;
    }
    
    .about-grid,
    .about-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .job-positions {
        padding: 1.5rem;
    }
}