:root {
    /* Light Mode Variables */
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #4b5563;
    --primary: #00D664;
    --primary-hover: #00B855;
    --nav-text: #111111;
    --cursor-yellow: #FFCC00;
    --cursor-green: #4ADE80;
    --cursor-orange: #FB923C;
    --cursor-blue: #60A5FA;
    --cursor-stroke: #ffffff;
    --grid-color: rgba(0, 214, 100, 0.15);
}

[data-theme="dark"] {
    /* Dark Mode Variables */
    --bg-color: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --nav-text: #ffffff;
    --cursor-stroke: #0A0A0A;
    --grid-color: rgba(255, 255, 255, 0.05);
}

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

html, body {
    max-width: 100vw;
    overflow-x: clip;
}

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 120px 120px;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease, border-bottom 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(229, 229, 229, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    padding: 1rem 3rem;
}

[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(17, 17, 17, 0.85);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo-image {
    max-height: 28px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--nav-text);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-outline-pill {
    text-decoration: none;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-pill:hover {
    background-color: var(--primary);
    color: #111111;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 48px;
    height: 24px;
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon svg {
    width: 14px;
    height: 14px;
}

.btn-icon:hover {
    background-color: var(--primary);
    color: #111111;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    z-index: 1;
}

/* Studio Section */
.studio-section {
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
    padding: 8rem 6rem 12rem 6rem;
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.studio-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 6rem;
}

.studio-label-text {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-transform: uppercase;
}

.studio-line {
    height: 1px;
    width: 80px;
    background-color: var(--primary);
}

.studio-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.studio-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 5.5rem;
    line-height: 1.1;
    padding-bottom: 0.5em;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.animate-studio-text {
    padding-bottom: 0.3em;
    margin-bottom: -0.3em;
}

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

.studio-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 800px;
}

.studio-signature {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 800px;
}

.signature-line {
    display: inline-block;
    width: 25px;
    height: 1px;
    background-color: var(--text-primary);
}

/* Tech Stack Section */
.tech-stack-section {
    padding: 6rem 0;
    margin-top: -200px;
    background-color: var(--bg-color);
    position: relative;
    z-index: 2; /* Match studio section to overlay hero correctly */
    overflow: hidden;
}

.tech-stack-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Gradient fade masks on left and right */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll-marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 6rem;
    padding: 0 3rem; /* Half of gap to perfectly tile */
}

.tech-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.4);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Make Three.js logo more visible since it has thin lines */
.tech-icon-threejs {
    width: 65px;
    height: 65px;
    filter: grayscale(100%) opacity(0.65);
}

.tech-icon:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

[data-theme="dark"] .tech-icon {
    /* Improve visibility of black logos in dark mode by boosting brightness */
    filter: grayscale(100%) brightness(1.5) opacity(0.5);
}

[data-theme="dark"] .tech-icon-threejs {
    filter: invert(1) opacity(0.65);
}

[data-theme="dark"] .tech-icon:hover {
    filter: grayscale(0%) brightness(1) opacity(1);
}

[data-theme="dark"] .tech-icon-threejs:hover {
    filter: invert(1) opacity(1);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Moves exactly one full track width since track is duplicated */
    }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    margin-top: -40px;
}

.main-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 9rem;
    line-height: 0.85;
    letter-spacing: 0.02em;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title-line {
    display: block;
    white-space: nowrap;
    text-align: center;
}

.title-rare {
    color: var(--text-primary);
}

.title-aesthetics {
    color: var(--primary);
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-primary);
    max-width: 650px;
    margin: 0 auto 3rem auto;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-solid {
    background-color: var(--primary);
    color: #111111;
    text-decoration: none;
    padding: 1rem 3rem;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 214, 100, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--primary);
    padding: 1rem 3rem;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #111111;
}

/* Floating Cursors */
.floating-cursor {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transform: translateY(20px);
}

.cursor-label {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 14px;
    margin-top: -8px; /* Pull label closer to cursor tip */
    margin-left: 20px;
    border-radius: 0;
    color: #111111;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.label-yellow { background-color: var(--cursor-yellow); }
.label-green { background-color: var(--cursor-green); }
.label-orange { background-color: var(--cursor-orange); }
.label-blue { background-color: var(--cursor-blue); color: #111111;}

/* Exact Cursor Positioning based on image */
.cursor-design {
    top: 25%;
    left: 15%;
}
.cursor-ship {
    top: 30%;
    right: 25%;
}
.cursor-develop {
    bottom: -5%;
    left: 45%;
}
.cursor-ideate {
    bottom: -5%;
    right: 15%;
}

/* Animations */
.char {
    display: inline;
    opacity: 0;
}

.char.visible {
    opacity: 1;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up-delay {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.animate-fade-up-delay.visible {
    opacity: 1;
    transform: translateY(0);
}

/* (Figma cursor movement is now handled via JS) */
.floating-cursor.visible {
    opacity: 1;
    transition: opacity 0.8s ease;
}

/* Mobile Menu Button - hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hamburger-icon {
    width: 28px;
    height: 28px;
    transition: color 0.3s ease;
}
.nav-num {
    display: none; /* Hidden on desktop */
}

/* Responsive */
/* Services Section */
/* Services Section */
.services-section {
    padding: 8rem 0; /* Padding top/bottom, 0 for left/right to span full width */
    background-color: var(--bg-color); /* Responsive background */
    position: relative;
    z-index: 2;
    width: 100%;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.services-section .services-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary); 
    position: relative;
}

.services-section .services-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    border: 1px solid rgba(128, 128, 128, 0.2);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .service-card {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

[data-theme="dark"] .service-card {
    background-color: #111111;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 214, 100, 0.1);
}

.service-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 214, 100, 0.1);
    border: 1px solid rgba(0, 214, 100, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-radius: 4px;
}

.services-section .service-heading {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.services-section .service-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.services-section .service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.services-section .service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.service-features li svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.services-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-service {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 3rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: auto;
    border-radius: 4px;
}

.btn-service.btn-primary {
    background-color: var(--primary);
    color: #111111;
}

.btn-service.btn-primary:hover {
    background-color: #111111;
    color: #ffffff;
}

.btn-dark {
    background-color: #111111;
    color: #ffffff;
}

[data-theme="dark"] .btn-dark {
    background-color: #2a2a2a;
}

.btn-primary {
    background-color: var(--primary);
    color: #111111;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-title { font-size: 7rem; }
    .nav-links { display: none; }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Services Section Mobile */
    .services-section {
        padding: 5rem 1.5rem;
    }
    .services-title {
        font-size: 2.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Navbar Mobile - Floating Pill */
    .navbar {
        padding: 0.8rem 1.5rem;
        margin: 1rem auto 0;
        width: calc(100% - 2rem);
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
    }
    
    [data-theme="dark"] .navbar {
        background: rgba(30, 30, 30, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        width: 100%;
        height: auto;
        padding: 2rem 2rem 3rem 2rem;
        border-radius: 1.5rem;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid var(--primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1.5rem;
        z-index: 9;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }

    [data-theme="dark"] .nav-links.active {
        background: rgba(20, 20, 20, 0.85);
        border: 1px solid var(--primary);
    }

    .nav-links.active .nav-item {
        font-size: 1.25rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text-primary);
    }

    .nav-num {
        display: inline-block;
        font-size: 0.65rem;
        opacity: 0.5;
        font-weight: 400;
        margin-top: 0.2rem;
    }

    .btn-outline-pill {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-actions {
        gap: 0.95rem;
    }

    .logo-image {
        max-height: 19px;
    }

    .btn-icon {
        width: 44px;
        height: 24px;
    }

    .btn-icon svg {
        width: 13px;
        height: 13px;
    }

    .hamburger-icon {
        width: 24px;
        height: 24px;
    }

    /* Hero Section Mobile — all content visible in viewport */
    .hero {
        height: 100vh;
        height: 100dvh;
        padding: 6.5rem 1.5rem 2.5rem; /* Increased top padding to clear the pill navbar */
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        margin-top: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .main-title {
        font-size: min(14.5vw, 4.5rem); /* Dynamically scales to fit screen width */
        line-height: 0.9;
        margin-bottom: 1.5rem; /* Reduced margin to fit vertically */
        width: 100%;
    }

    .title-line {
        text-align: center;
    }

    .hero-description {
        font-size: 1.1rem; 
        line-height: 1.5;
        max-width: 100%;
        margin: 0 auto 1.5rem auto; /* Reduced margin */
        padding: 0 0.5rem;
    }

    .hero-actions {
        gap: 1rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap; /* Allows buttons to stack if screen is too narrow */
    }

    .btn-solid {
        padding: 1.1rem 2.25rem; 
        border-radius: 9999px;
        font-size: 1rem; 
        flex: 0 0 auto;
    }

    .btn-outline {
        padding: 1.1rem 2.25rem; 
        border-radius: 9999px;
        font-size: 1rem; 
        flex: 0 0 auto;
    }

    /* Floating Cursors Mobile — tightly hugging the title */
    .floating-cursor svg {
        width: 28px; /* Increased size */
        height: 28px; /* Increased size */
    }

    .cursor-label {
        font-size: 0.7rem; /* Increased size */
        padding: 4px 8px; /* Increased padding */
        margin-left: 14px; /* Adjusted margin */
        margin-top: -6px;
    }

    .cursor-design {
        top: 30%;
        left: -2%;
    }

    .cursor-ship {
        top: 25%;
        right: 0%;
    }

    .cursor-develop {
        bottom: 0%;
        left: 20%;
    }

    .cursor-ideate {
        bottom: -5%;
        right: 0%;
    }

    /* Studio Section Mobile */
    .studio-section {
        padding: 5rem 1.5rem;
    }

    .studio-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .studio-title {
        font-size: 3.2rem;
    }

    .studio-description {
        font-size: 1rem;
    }

    /* Tech Stack Mobile */
    .tech-stack-section {
        margin-top: -100px;
    }

    /* Hide custom mouse cursor on mobile */
    .custom-mouse-cursor {
        display: none !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .main-title {
        font-size: 2.6rem;
    }

    .hero-description {
        font-size: 0.8rem;
        padding: 0 0.25rem;
    }

    .btn-solid,
    .btn-outline {
        padding: 0.7rem 1.6rem;
        font-size: 0.7rem;
    }

    .cursor-design {
        top: 28%;
        left: -3%;
    }

    .cursor-ship {
        top: 22%;
        right: -1%;
    }

    .cursor-develop {
        bottom: 2%;
        left: 15%;
    }

    .cursor-ideate {
        bottom: -3%;
        right: -1%;
    }

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

/* Process Section */
.process-section {
    padding: 8rem 6rem;
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}

.process-header {
    text-align: center;
    margin-bottom: 5rem;
}

.process-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 4.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-style: italic;
}

.process-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.process-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    align-items: stretch;
}

.process-card {
    border-radius: 32px;
    padding: 2.5rem;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Badges */
.card-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Serif', serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.card-heading {
    font-family: 'IBM Plex Serif', serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.card-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Card Specific Themes & Graphics */

/* 1. Ideate (Blue Card) */
.card-ideate {
    background-color: #3b82f6;
    color: #ffffff;
}

.card-ideate .card-badge {
    background-color: #ffffff;
    color: #3b82f6;
}

.card-ideate .card-heading {
    color: #ffffff;
}

.card-ideate .card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* 2. Design (Green Card) */
.card-design {
    background-color: #10b981;
    color: #ffffff;
}

.card-design .card-badge {
    background-color: #ffffff;
    color: #10b981;
}

.card-design .card-heading {
    color: #ffffff;
    margin-top: 1rem;
}

.card-face-drawing {
    width: 165px;
    height: 165px;
    margin: 1rem auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.face-svg {
    width: 100%;
    height: 100%;
}

/* 3. Development (Yellow Card) */
.card-development {
    background-color: #ffd84d;
    color: #111111;
    border: none;
}

[data-theme="dark"] .card-development {
    background-color: #ffd84d;
}

.card-development .card-badge {
    background-color: #111111;
    color: #ffd84d;
}

.card-development .card-heading {
    color: #111111;
}

.card-development .card-text {
    color: #222222;
}

[data-theme="dark"] .card-development .card-text {
    color: #222222;
}

/* 4. Launch (Red Card) */
.card-launch {
    background-color: #ff4747;
    color: #ffffff;
}

.card-launch .card-badge {
    background-color: #ffffff;
    color: #ff4747;
}

.card-launch .card-heading {
    color: #ffffff;
}

.card-launch .card-text {
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive adjustment for Process Section */
@media (max-width: 1200px) {
    .process-section {
        padding: 6rem 3rem;
    }
    
    .process-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .process-section {
        padding: 5rem 1.5rem;
    }
    
    .process-title {
        font-size: 3rem;
    }
    
    .process-cards-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

/* Principles Section (Accordion Redesign) */
.principles-section {
    padding: 40px 0;
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}

.principles-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem auto;
    padding: 0 2rem;
}

.principles-header-center h2 {
    font-family: 'IBM Plex Serif', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.principles-header-center p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.principles-accordion {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    transition: all 0.3s ease;
}

.accordion-item:first-child {
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-item:hover .accordion-header {
    opacity: 0.8;
}

.accordion-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 3rem;
}

.accordion-num {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    min-width: 30px;
}

.accordion-heading {
    font-family: 'IBM Plex Serif', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
    margin: 0;
}

.accordion-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-right {
    color: var(--primary);
    transition: all 0.3s ease;
}

.active-icon-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #111111;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

/* Active State Styles */
.accordion-item.active .accordion-num,
.accordion-item.active .accordion-heading {
    color: var(--primary);
}

.accordion-item.active .arrow-right {
    opacity: 0;
    transform: scale(0);
}

.accordion-item.active .active-icon-circle {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.accordion-item.active .accordion-header {
    padding-bottom: 1.5rem;
    opacity: 1;
}

/* Accordion Content Transitions */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-inner {
    padding-bottom: 3rem;
    padding-left: calc(30px + 3rem); /* Align with heading */
    padding-right: 5rem;
}

.accordion-inner p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Responsive Principles Accordion */
@media (max-width: 992px) {
    .accordion-title-wrap {
        gap: 1.5rem;
    }
    
    .accordion-heading {
        font-size: 2rem;
    }
    
    .accordion-inner {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .principles-header-center h2 {
        font-size: 2.5rem;
    }
    
    .accordion-header {
        padding: 2rem 0;
    }
    
    .accordion-heading {
        font-size: 1.5rem;
    }
    
    .accordion-num {
        font-size: 1rem;
    }
    
    .active-icon-circle {
        width: 45px;
        height: 45px;
    }
}

/* Marquee Ribbon */
.marquee-ribbon {
    width: 100%;
    background-color: var(--primary);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    z-index: 10;
}

.marquee-ribbon .marquee-content {
    display: inline-block;
    animation: scroll-marquee 30s linear infinite;
    font-family: 'IBM Plex Serif', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #111111;
}

.marquee-ribbon .marquee-content span {
    padding: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-ribbon .marquee-content .bullet {
    font-size: 1.2rem;
    padding: 0 2rem;
    color: rgba(17, 17, 17, 0.5);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Contact & Footer Section */
.contact-section {
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding-top: 8rem;
    position: relative;
    z-index: 2;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-left .contact-title {
    font-size: 6.5rem;
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.02em;
}

.contact-left .highlight-serif {
    font-family: 'IBM Plex Serif', serif;
    color: var(--primary);
    font-weight: 400;
}

.contact-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 6rem;
}

.contact-info-block {
    margin-bottom: 3rem;
}

.contact-label {
    display: block;
    font-size: 0.65rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.contact-detail {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
    margin: 0;
}

.btn-contact {
    display: inline-block;
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 1rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 1.5rem;
    transition: opacity 0.3s ease;
}

.btn-contact:hover {
    opacity: 0.8;
}

/* Footer styling */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
    padding: 2rem 4rem;
    margin-top: 8rem;
}

.footer-copyright {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-made-with {
    border: 1px solid rgba(128, 128, 128, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Responsive Contact & Footer */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }
    
    .contact-left .contact-title {
        font-size: 4.5rem;
        margin-bottom: 4rem;
    }
    
    .contact-right {
        padding-left: 0;
    }
    
    .main-footer {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
        margin-top: 5rem;
    }
}

@media (max-width: 768px) {
    .contact-left .contact-title {
        font-size: min(12vw, 3.5rem);
    }
    
    .contact-detail {
        font-size: 1.1rem;
    }
}

/* Custom Mouse Cursor */
.custom-mouse-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transform: translate(var(--mouse-x, 0), var(--mouse-y, 0)) scale(var(--cursor-scale, 1));
    transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1);
    /* Remove transition for translate to prevent lag, but keep it if scale changes */
    /* By default, changing --mouse-x will transition, which adds a slight drag effect. We'll set transition only on scale in JS, or keep a very short transition */
    transition-property: transform;
    transition-duration: 0.05s;
    mix-blend-mode: difference;
}

/* Remove default cursors for interactive elements too since we hide them globally */
a, button, input, select, textarea {
    cursor: none;
}

/* =========================================================================
   ABOUT PAGE STYLES
   ========================================================================= */

.about-hero {
    min-height: 100vh;
    padding: 10rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.about-label-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.about-line {
    height: 1px;
    width: 40px;
    background-color: rgba(128, 128, 128, 0.3);
}

.about-title {
    font-size: 5.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.about-title .highlight-serif {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 600;
    font-style: italic;
}

.about-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 5rem;
}

/* Founder Cards */
.about-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
}

.founder-card {
    background-color: var(--bg-color);
    border: 1px solid rgba(128, 128, 128, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    padding: 4rem 3rem;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
}

[data-theme="dark"] .founder-card {
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.founder-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.4s ease;
}

.founder-card:hover .founder-avatar {
    filter: grayscale(0%) contrast(1);
}

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

.founder-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

a.founder-name {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

a.founder-name:hover,
a.founder-name:active {
    color: var(--primary);
}

.founder-name .arrow {
    font-size: 1rem;
    font-weight: 400;
}

.founder-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary); /* You mentioned red in UI but green for brand - sticking to primary */
    margin-bottom: 2rem;
}

/* Hardcode Dhiya's title to match mock if needed, but primary green is better brand-wise */
.founder-card:first-child .founder-title { color: #f43f5e; } /* Red for technical lead */
.founder-card:last-child .founder-title { color: #f43f5e; } /* Red for creative dir */
/* Wait, sticking to mockup colors for titles since they look intentionally red */

.founder-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-cards-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: min(12vw, 3.5rem);
    }
    .about-subtitle {
        font-size: 1.1rem;
    }
    .founder-card {
        padding: 3rem 1.5rem;
    }
}
