:root {
    /* Colors */
    --sc-orange: #FEAA52;
    --sc-pink: #ED3588;
    --sc-light-pink: #FD6ACA;
    --sc-purple: #AA4A9B;
    --sc-blue: #009BFF;
    --sc-dark-blue: #2947D7;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --size-title: 2.5rem;
    --size-subtitle: 18px;
    --size-text: 12px;
    --sc-gradient: linear-gradient(135deg, #FEAA52, #ED3588, #FD6ACA, #AA4A9B, #009BFF, #2947D7);

    /* Light Mode Variables override */
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body.light-mode {
    --bg-color: #e9e9e9;
    --text-color: #1a1a1a;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    /* Deep dark background */
    color: var(--text-color);
    overflow-x: hidden;
    font-size: var(--size-text);
}

.no-scroll {
    overflow: hidden !important;
}

/* Utilities */
.text-right {
    text-align: right !important;
    align-items: flex-end !important;
}

.text-left {
    text-align: left !important;
    align-items: flex-start !important;
}

.text-center {
    text-align: center !important;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.glass-pill {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.4rem 0.8rem;
}

.glass-pill ion-icon {
    font-size: 17.59px !important;
    min-width: 17.59px;
    width: 17.59px;
    height: 17.59px;
}

body.light-mode .glass-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #444;
}

body.light-mode .glass-card h3 {
    color: #333 !important;
}

/* Layout & Sections */
section {
    position: relative;
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Watermarks */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12vw;
    font-weight: 700;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 1;
    text-transform: uppercase;
}

.watermark.left {
    left: 10%;
    transform: translate(0, -50%);
    text-align: left;
}

.watermark.right {
    left: auto;
    right: 10%;
    transform: translate(0, -50%);
    text-align: right;
}

/* Typography & Effects */
.hero-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.4em;
    /* Reserve space for 2 lines */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    white-space: normal;
}

.typewriter-text {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Cursor removed per request */

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.content-wrapper p {
    font-size: var(--size-subtitle);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0;
    animation: textReveal 1s forwards;
}

.content-wrapper p.text-reveal {
    font-size: 16px;
}

.delay-1 {
    animation-delay: 0.5s;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glow-text {
    transition: all 0.3s ease;
    cursor: default;
}

.glow-text:hover {
    color: var(--sc-purple);
    text-shadow: 0 0 10px var(--sc-purple), 0 0 20px var(--sc-purple);
}

/* Text Gradient Utility */
.text-gradient {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    /* Force transparent to show gradient */
    display: inline;
}

/* Buttons */
.cta-button,
.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    padding: 10px 24px;
    background: #1a1a1a !important;
    /* Unified Style */
    color: white !important;
    text-decoration: none;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-transform: uppercase;
}

.cta-button:hover,
.tab-btn:hover,
.tab-btn.active {
    background: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.cta-button ion-icon,
.tab-btn ion-icon {
    color: white;
    transition: color 0.3s ease;
}

.cta-button:hover ion-icon,
.tab-btn:hover ion-icon {
    color: var(--sc-blue);
}

.cta-button:hover .cta-text,
.cta-button:hover span,
.tab-btn:hover span {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.cta-button:hover .spin-icon,
.tab-btn:hover .spin-icon {
    animation: pulse 2s infinite ease-in-out;
}

/* Utility for non-uppercase text */
.normal-case {
    text-transform: none !important;
}

/* Specific overrides for tab-btn to remove border and align */
.tab-btn {
    margin-top: 0;
    border: none;
}

/* Section 02 - About */
.sticky {
    position: fixed;
    top: 20%;
    right: -10%;
    transform: rotate(90deg);
    font-size: 8vw;
    opacity: 0.05;
}

.about-card {
    padding: 2rem;
    margin-bottom: 3rem;
}

.about-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 1.5rem 0;
}

.purpose-block {
    margin: 3rem 0;
    text-align: center;
}

.purpose-block h2 {
    font-weight: 500;
    margin-bottom: 1rem;
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.1rem;
}

.purpose-statement {
    font-size: 1.1rem;
    line-height: 1.4rem;
}

.highlight-anim {
    color: white;
    transition: color 2s ease;
}

.highlight-anim.active {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Tabs */
.focus-areas h3 {
    margin-bottom: 1.5rem;
    font-size: var(--size-subtitle);
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.tab-btn ion-icon {
    font-size: 1.2rem;
}

.tab-btn:hover .spin-icon {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.tab-content {
    display: none;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    /* border-left replaced by pseudo-element for gradient */
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.tab-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--sc-gradient);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section 03 - Philosophy */
.wipe-text {
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--sc-orange);
    transition: width 2s steps(40, end);
}

.wipe-text.start-wipe {
    width: 100%;
    border-right-color: transparent;
}

.philosophy-intro {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.4rem;
}

.highlight-bold {
    font-weight: 700;
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.principle-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.principle-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--sc-gradient);
}

.principle-card:hover {
    /* Removed blue border override */
    box-shadow: 0 0 15px rgba(0, 155, 255, 0.2);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.card-header ion-icon {
    font-size: 1.5rem;
    color: var(--sc-blue);
    /* Changed from white to blue */
    transition: transform 0.3s ease;
}

.principle-card:hover ion-icon {
    animation: pulse 2s infinite ease-in-out;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    /* Changed from var(--sc-blue) to white */
}

/* Section 04 - FOSS */
.flicker-text {
    animation: flicker 4s infinite 2s;
    opacity: 0.03;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 0.03;
    }

    5%,
    10% {
        opacity: 0.08;
    }

    15% {
        opacity: 0.03;
    }

    25%,
    30% {
        opacity: 0.06;
    }

    35% {
        opacity: 0.03;
    }
}

.section-title {
    font-size: var(--size-title);
    margin-bottom: 2.5rem;
    color: var(--sc-blue);
    position: relative;
    display: block;
    /* Changed from inline-block to allow text-align center */
    width: 100%;
    /* Ensure full width for centering */
}

.foss-intro {
    font-size: 1.1rem;
    line-height: 1.4rem;
    margin-bottom: 3rem;
}

.foss-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Removed media query as it is now default stacked */

.stats-container {
    margin-top: 2rem;
}

.stats-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--sc-gradient);
    width: 0;
    transition: width 1.5s ease-out;
}

.foundation-block {
    padding: 3rem;
    text-align: center;
    width: 100%;
}

.foundation-block h3 {
    margin-bottom: 1rem;
    color: var(--sc-blue);
    /* Changed from purple to blue 009bff */
}

.logo-placeholder {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Heart styling */
.gradient-heart {
    font-size: 4rem;
    color: #E91E63;
    display: inline-block;
    line-height: 1;
    margin-bottom: 10px;
    padding-right: 0;
    animation: pulse 2s infinite ease-in-out;
    /* Breathing effect */
}



.highlight-pulse:hover ion-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.collaboration-footer {
    text-align: center;
    margin-top: 3rem;
}

.collaboration-footer p {
    font-size: 12px;
    line-height: 1.4rem;
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hands-anim {
    margin-top: 1.5rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

.hands-anim:hover ion-icon {
    animation: pulse 2s infinite ease-in-out;
}

.pulse-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Section 05 - Careers */
.marquee-container {
    width: 100vw;
    overflow: hidden;
    position: absolute;
    top: 20%;
    left: 0;
    transform: none;
    opacity: 0.05;
}

.marquee-text {
    white-space: nowrap;
    font-size: 8vw;
    font-weight: 700;
    text-transform: uppercase;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.careers-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.careers-intro {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.4rem;
}

.highlight-underline {
    position: relative;
    display: inline-block;
    color: white;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--sc-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-out;
}

.section:hover .highlight-underline::after {
    transform: scaleX(1);
}

.culture-card {
    padding: 2.5rem;
    text-align: left;
    margin-bottom: 2rem;
    /* border-left replaced by pseudo-element for gradient */
    position: relative;
    overflow: hidden;
}

.culture-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--sc-gradient);
}

/* Section 06 - Contact */
.contact-container {
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.4rem;
}

.contact-grid {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    font-size: 12px;
    line-height: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-cta-wrapper h3 {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* .primary-cta removed specific override to share standard cta style */
/* New Header, Footer, and UI Styles from GYWV */

/* Header - Floating Pill */
.header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 95%;
    height: 64px;
    background: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    z-index: 10001;
    /* Above mobile menu (9999) */
    display: flex;
    align-items: center;
    padding: 0 10px 0 20px;
    /* Adjusted: 10px right, 20px left for balance */
    /* Increased padding for symmetry and less edge crowding */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 0;
    /* Remove internal padding, handled by .header */
}

.logo-container {
    flex: 1;
    flex-basis: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    order: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    /* Reduced gap */
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-block;
    color: white !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    /* Reduced padding */
    border-radius: 0;
    /* No pill shape */
    transition: all 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-link:hover {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    /* Gradient text on hover */
    backdrop-filter: none;
}

.header-actions {
    flex: 1;
    flex-basis: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    order: 3;
}

/* Enhanced CTA Button for Header */
.header .cta-button {
    background: #1a1a1a !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    width: fit-content;
    margin-top: 0;
    /* Override generic cta-button margin */
    border: none;
}

.header .cta-button:hover {
    background: #333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header .cta-button:hover .cta-text {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Mobile Menu Toggle Removed */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        /* Flex to center icon */
    }
}

/* Fixed Controls (Bottom Right) */
.fixed-controls {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    /* Slightly lighter on hover */
}

body.light-mode .control-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.social-popup {
    position: absolute;
    bottom: 125px;
    /* Moved up to clear Share + Theme buttons (48+16+48 + buffer) */
    right: 0;
    /* Aligned with buttons */
    /* Remove box styles */
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 12px gap between circles */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .social-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
.footer {
    padding: 48px 0;
    border-top: none;
    background: transparent;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Needed for absolute centering */
}

.footer-center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-logo {
    font-weight: 700;
    margin-right: 24px;
    font-size: 0.7rem;
    /* Reduced font size */
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    /* Reduced font size */
}

.footer-right a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 24px;
    font-size: 0.7rem;
    /* Reduced font size */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-right a:hover {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Gradient hover */
}

/* Mobile Menu Container */
.mobile-menu-container {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0;
    transform: none !important;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
}

.mobile-menu-container::before {
    content: '';
    position: absolute;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: -1;
}

.mobile-menu-container.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: center;
    width: 100%;
}

.mobile-nav-list li {
    margin: 20px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu-container.active .mobile-nav-list li {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation delay for list items */
.mobile-menu-container.active .mobile-nav-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-container.active .mobile-nav-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-container.active .mobile-nav-list li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-container.active .mobile-nav-list li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-container.active .mobile-nav-list li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-link {
    font-size: 0.9rem;
    /* Match desktop */
    font-weight: 500;
    /* Match desktop */
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

.mobile-link:hover {
    color: var(--sc-orange);
    /* Use Siliconcrib accent */
}

.mobile-cta {
    font-size: 0.9rem;
    /* Match desktop */
    font-weight: 500;
    /* Match desktop */
    padding: 10px 24px;
    /* Adjust padding for smaller font */
    display: inline-flex;
    /* Ensure button layout */
    align-items: center;
    justify-content: center;
    width: auto;
    text-transform: uppercase;
}

.mobile-cta:hover .cta-text {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Gradient text hover */
}

.mobile-cta:hover {
    background: #333;
    /* Darken background on hover like header button */
    transform: translateY(-1px);
}

.mobile-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    /* Ensure centering */
    margin-top: 20px;
    /* Match spacing of list items */
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    /* Header Adjustments for Mobile Pill Shape */
    .header {
        min-width: 140px;
        /* Force pill shape */
        padding: 0 20px;
        /* Symmetric padding */
    }

    .header-container {
        padding: 0;
        justify-content: center;
        /* Center logo */
    }

    .logo-container {
        flex: 0 1 auto;
        /* Allow auto width */
        width: auto;
        display: flex;
        justify-content: center;
        /* Removed absolute positioning */
    }

    .nav {
        display: none;
    }

    .header-actions {
        display: none;
        /* Hide CTA on mobile header, show in menu */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        position: static;
        /* Reset relative for absolute child */
    }

    .footer-center-logo {
        position: static;
        /* Reset absolute */
        transform: none;
        margin-bottom: 16px;
        order: -1;
        /* Move to top */
    }

    .footer-left {
        flex-direction: column;
        gap: 8px;
        order: 2;
        /* Move below logo */
    }

    .footer-logo {
        margin-right: 0;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        gap: 16px;
        order: 3;
        /* Move to bottom */
    }

    .footer-right a {
        margin-left: 0;
    }
}

/* Light Mode Overrides */
body.light-mode .watermark {
    color: rgba(0, 0, 0, 0.05);
    /* Darker watermark for light bg */
}

body.light-mode .cta-button,
body.light-mode .tab-btn {
    background: #000000;
    /* Pure black button on light mode */
    color: white;
    border: none;
}

body.light-mode .cta-button:hover,
body.light-mode .tab-btn.active,
body.light-mode .tab-btn:hover {
    background: #333;
    /* color: white; Removed to allow text gradient transparency */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Ensure Icon turns blue on hover in Light Mode */
body.light-mode .cta-button:hover ion-icon,
body.light-mode .tab-btn:hover ion-icon {
    color: var(--sc-blue) !important;
}

body.light-mode ion-icon {
    color: #1a1a1a;
    /* Dark icons */
}

body.light-mode .header .cta-button ion-icon,
body.light-mode .fixed-controls ion-icon,
body.light-mode .social-popup ion-icon,
body.light-mode .cta-button ion-icon,
body.light-mode .tab-btn ion-icon {
    /* Added tab-btn */
    color: inherit;
    /* Inherit white from button or proper parent */
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.2);
    /* Reduced opacity for better glass effect */
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.light-mode .card-header ion-icon {
    color: var(--sc-blue);
    /* Blue icon in light mode */
}

body.light-mode .principle-card h3 {
    color: black;
    /* Black text for Section 3 headers in light mode */
    font-weight: 600;
}

body.light-mode .progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-info p,
body.light-mode .section p {
    color: #333;
}

body.light-mode .highlight-underline {
    color: #000;
}

body.light-mode .curiosity-text,
body.light-mode .tab-content {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.5);
    /* Increased opacity */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.industry-card {
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.industry-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--sc-blue);
}

.industry-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

body.light-mode .industry-card h3 {
    color: var(--sc-blue);
}

body.light-mode .industry-card p {
    color: #333;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
    color: #009bff;
}

/* Re-override Section 3 headers specifically after generic h3 rule */
body.light-mode #philosophy h3 {
    color: black;
}

body.light-mode .culture-card {
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a1a;
}

/* Light Mode Footer Text Visibility */
body.light-mode .footer-copy,
body.light-mode .footer-right a {
    color: #333;
    /* Dark text for light mode footer */
}

/* Mobile Break Utility */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }

    /* Fix Typewriter Height Jitter */
    .mobile-block {
        display: inline-block;
        min-height: 1.3em;
        vertical-align: bottom;
        /* Reserve height for one line */
    }

    .header-container {
        padding: 0;
        justify-content: center;
        /* Center logo */
    }

    .logo-container {
        flex: 0 1 auto;
        /* Allow auto width */
        width: auto;
        display: flex;
        justify-content: center;
        /* Removed absolute positioning */
    }

    .nav {
        display: none;
    }

    .watermark,
    .watermark.left,
    .watermark.right {
        /* Force center and horizontal visibility on mobile */
        left: 50% !important;
        right: auto !important;
        top: 15% !important;
        /* Move higher up to be visible but not blocking center content */
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        font-size: 15vw !important;
        /* Larger for visibility */
        width: 100%;
        opacity: 0.5;
        /* Slightly more visible */
    }

    .header-actions {
        display: none;
        /* Hide CTA on mobile header, show in menu */
    }

    /* Mobile Section Navigation */
    .section-nav {
        display: block !important;
        position: fixed;
        top: 95px !important;
        /* Increased gap from header */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: none !important;
        transform: none !important;
        padding: 5px 0;
        height: auto;
        display: flex;
        justify-content: center;
        overflow: visible;
        z-index: 90;
    }

    .section-nav::-webkit-scrollbar {
        display: none;
    }

    .section-nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0px 5px;
        /* Reduced horiz gap */
        padding: 0;
        height: auto;
        width: 100%;
        margin: 0;
        text-align: center;
        line-height: 1.2;
    }

    .section-nav li {
        margin: 0;
        display: flex;
        justify-content: center;
        line-height: 1;
    }

    .section-nav a {
        padding: 1px 0.1rem !important;
        /* Reduced horizontal padding */
        font-size: 11px;
        white-space: nowrap;
        height: auto;
        display: inline-block;
        color: rgba(255, 255, 255, 0.6);
        border: none;
        line-height: 1.2;
    }

    .section-nav a::after {
        display: none !important;
        /* Remove desktop side-line */
    }

    .section-nav a.active {
        color: white;
        background: transparent;
        -webkit-text-fill-color: initial;
        border-bottom: none !important;
        /* Remove blue line */
        font-weight: 700;
        /* Bold instead of line */
    }

    /* Light Mode Mobile Nav */
    body.light-mode .section-nav {
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.light-mode .section-nav a {
        color: rgba(0, 0, 0, 0.6);
    }

    body.light-mode .section-nav a.active {
        color: black;
        border-bottom: none !important;
        /* Remove blue line */
        font-weight: 700;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        position: static;
        /* Reset relative for absolute child */
    }

    .footer-center-logo {
        position: static;
        /* Reset absolute */
        transform: none;
        margin-bottom: 16px;
        order: -1;
        /* Move to top */
    }

    .footer-left {
        flex-direction: column;
        gap: 8px;
        order: 2;
        /* Move below logo */
    }

    .footer-logo {
        margin-right: 0;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        gap: 16px;
        order: 3;
        /* Move to bottom */
    }

    .footer-right a {
        margin-left: 0;
    }
}

/* Light Mode Overrides */
body.light-mode .watermark {
    color: rgba(0, 0, 0, 0.05);
    /* Darker watermark for light bg */
}

body.light-mode .cta-button,
body.light-mode .tab-btn {
    background: #000000;
    /* Pure black button on light mode */
    color: white;
    border: none;
}

body.light-mode .cta-button:hover,
body.light-mode .tab-btn.active,
body.light-mode .tab-btn:hover {
    background: #333;
    /* color: white; Removed to allow text gradient transparency */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Ensure Icon turns blue on hover in Light Mode */
body.light-mode .cta-button:hover ion-icon,
body.light-mode .tab-btn:hover ion-icon {
    color: var(--sc-blue) !important;
}

body.light-mode ion-icon {
    color: #1a1a1a;
    /* Dark icons */
}

body.light-mode .header .cta-button ion-icon,
body.light-mode .fixed-controls ion-icon,
body.light-mode .social-popup ion-icon,
body.light-mode .cta-button ion-icon,
body.light-mode .tab-btn ion-icon {
    /* Added tab-btn */
    color: inherit;
    /* Inherit white from button or proper parent */
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.2);
    /* Reduced opacity for better glass effect */
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.light-mode .card-header ion-icon {
    color: var(--sc-blue);
    /* Blue icon in light mode */
}

body.light-mode .principle-card h3 {
    color: black;
    /* Black text for Section 3 headers in light mode */
    font-weight: 600;
}

body.light-mode .progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-info p,
body.light-mode .section p {
    color: #333;
}

body.light-mode .highlight-underline {
    color: #000;
}

body.light-mode .curiosity-text,
body.light-mode .tab-content {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.5);
    /* Increased opacity */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
    color: #009bff;
}

/* Re-override Section 3 headers specifically after generic h3 rule */
body.light-mode #philosophy h3 {
    color: black;
}

body.light-mode .culture-card {
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a1a;
}

/* Light Mode Footer Text Visibility */
body.light-mode .footer-copy,
body.light-mode .footer-right a {
    color: #333;
    /* Dark text for light mode footer */
}



body.light-mode .footer-right a:hover {
    color: transparent;
}

/* Mobile Break Utility */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }

    /* Fix Typewriter Height Jitter */
    .mobile-block {
        display: inline-block;
        min-height: 1.3em;
        vertical-align: bottom;
        /* Reserve height for one line */
    }

    /* Adjust Hero Title Line Height for multi-line */
    .hero-title {
        line-height: 1.3 !important;
        white-space: normal;
    }
}

/* Special Gradient Glow for Section 06 */
.special-glow {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Enhance border slightly */
}

.special-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--sc-gradient);
    z-index: -1;
    border-radius: 14px;
    padding: 2px;
    /* Thickness of the glow source */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    filter: blur(6px);
    /* Tighter, cleaner glow */
    opacity: 0.5;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Contact Intro Text */
.contact-intro {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
}

body.light-mode .contact-intro {
    color: #333;
}

/* Section Navigation */
.section-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.section-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.section-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
    position: relative;
    padding-right: 1.5rem;
    /* Space for indicator line if desired, or just space */
}

/* Add a small line indicator */
.section-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 12px;
    height: 1px;
    background: currentColor;
    transform: translateY(-50%);
    transition: width 0.3s ease, background 0.3s ease;
}

.section-nav a:hover,
.section-nav a.active {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-nav a:hover::after,
.section-nav a.active::after {
    width: 20px;
    background: var(--sc-blue);
}

/* Light Mode Overrides for Section Nav */
body.light-mode .section-nav a {
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .section-nav a:hover,
body.light-mode .section-nav a.active {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Industries Section Refinements */
/* Industries Section Refinements */
#industries .section-title {
    text-align: center !important;
    width: 100%;
    display: block;
}

.industry-pills-container {
    width: 100%;
}

.industry-pill {
    /* Match Service Nav Pill Style */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    box-shadow: none;
    /* Remove circle shadow */
    width: auto;
    /* Allow flexible width */
    height: auto;
    /* Allow flexible height */
    flex-shrink: 0;
}

.industry-pill ion-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: currentColor;
    display: inline-block;
}

.industry-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: none;
    /* Reset lift */
    box-shadow: none;
}

.industry-pill:hover ion-icon {
    color: var(--sc-blue);
    transform: scale(1.1);
    animation: breathing 2s infinite ease-in-out;
}

.industry-pill.active {
    background: transparent;
    border-color: #9e9e9e;
    color: white;
    transform: none;
    box-shadow: none;
}

.industry-pill.active span {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.industry-pill.active ion-icon {
    color: var(--sc-blue);
    animation: breathing 2s infinite ease-in-out;
}

.industry-detail-card {
    /* Matching Principle Card Style */
    padding: 2rem;
    border-radius: 16px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Removed left border default */
    transition: opacity 0.2s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Principle card specific */
    min-height: 250px;
    /* Prevent layout shift */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Principle Card Gradient Border Line */
.industry-detail-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--sc-gradient);
}

.industry-detail-card .card-header ion-icon {
    font-size: 24px !important;
    color: var(--sc-blue);
    margin-bottom: 0.5rem;
}

.industry-detail-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem;
    color: white;
}

.industry-detail-card p {
    font-size: 12px !important;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}


/* Light Mode Overrides for Industries */
body.light-mode .industry-pill {
    background: #000000;
    /* Matching CTA button in light mode */
    color: white;
}

body.light-mode .industry-pill ion-icon {
    color: white;
}

body.light-mode .industry-pill:hover,
body.light-mode .industry-pill.active {
    background: #333;
    /* text gradient handled by pill-text rule which works on both modes */
}

body.light-mode .industry-pill:hover ion-icon,
body.light-mode .industry-pill.active ion-icon {
    color: var(--sc-blue);
}

body.light-mode .industry-detail-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .industry-detail-card h3 {
    color: #009bff;
    /* Siliconcrib Blue for title in light mode */
}

body.light-mode .industry-detail-card p {
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .industry-pills-container {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .industry-detail-card {
        padding: 2rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                          Services Page (Tab Layout)                        */
/* -------------------------------------------------------------------------- */

/* Navigation Container */
#services {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 0 60px 0;
    /* Increased top padding for optical center */
}

.services-nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

/* Nav Pills - CTA Button Match */
.service-nav-pill {
    /* Base CTA Style */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.6rem;
    /* Updated */
    font-weight: 600;
    /* Updated */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.service-nav-pill ion-icon {
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: currentColor;
    /* Base color match */
}

/* Hover State */
.service-nav-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.service-nav-pill:hover ion-icon {
    color: var(--sc-blue);
    transform: scale(1.1);
    animation: breathing 2s infinite ease-in-out;
}

/* Active State */
.service-nav-pill.active {
    background: transparent;
    border-color: #9e9e9e;
    /* Updated to match light mode grey border */
    color: white;
    /* Font weight is already 600, so no shift needed. text-shadow removed. */
}

/* Active Text Gradient */
.service-nav-pill.active span {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Ensure only text gets gradient, icon stays separate */
}

.service-nav-pill.active ion-icon {
    color: var(--sc-blue);
    animation: breathing 2s infinite ease-in-out;
}

@keyframes breathing {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* Display Container */
.services-display-container {
    position: relative;
    min-height: 550px;
    /* Prevent collapse and minimize jumping */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Pane */
.service-content-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 3rem;
    text-align: center;
    /* Use industry-detail-card styles */
    border-radius: 16px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.service-content-pane::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--sc-gradient);
}

.service-content-pane.active {
    display: flex;
    /* or block */
    flex-direction: column;
    align-items: center;
    opacity: 1;
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.service-content-pane .card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-content-pane .card-header ion-icon {
    font-size: 24px;
    /* Updated */
    color: var(--sc-blue);
}

.service-content-pane h3 {
    font-size: 1.1rem;
    /* Updated */
    font-weight: 700;
    margin: 0;
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-description {
    font-size: 12px;
    /* Updated */
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-bottom: 2rem;
}

/* Sub-service Pills inside Pane */
.service-content-pane .sub-service-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    border-left: none;
    /* Reset */
    padding-left: 0;
}

.service-pill {
    /* Existing base styles adjusted for icon */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    /* Updated */
    font-weight: 600;
    /* Updated */
    text-transform: uppercase;
    /* Updated */
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    /* Full pill */
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    white-space: normal;
}

.service-pill ion-icon {
    font-size: 1.1rem;
    color: var(--sc-blue);
    /* Default blue for checkmarks */
}

/* Light Mode Overrides for Services v2 */
body.light-mode .service-nav-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #444;
}



body.light-mode .service-nav-pill:hover,
body.light-mode .service-nav-pill.active {
    background: #1a1a1a;
    /* Dark fill to resemble dark mode aesthetics */
    border: 1px solid #9e9e9e;
    /* Gradient Text for Active State */
    background-image: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    box-shadow: none;
}

body.light-mode .service-nav-pill.active span {
    background: none;
    -webkit-text-fill-color: transparent;
    /* Apply gradient from parent */
    color: transparent;
}

body.light-mode .service-nav-pill.active ion-icon {
    color: var(--sc-blue);
}

/* Light Mode Sub-service Pills */
body.light-mode .service-pill {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #444;
}

body.light-mode .service-pill ion-icon {
    color: var(--sc-blue);
}


body.light-mode .service-content-pane {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .service-description {
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .services-nav-container {
        gap: 0.5rem;
    }

    .service-nav-pill {
        font-size: 0.6rem;
        padding: 0.4rem 1rem;
    }

    /* Match Section 05 Pills to Section 01 on Mobile */
    .industry-pills {
        gap: 0.5rem !important;
    }

    /* Add horizontal padding to #services to prevent edge touching */
    #services {
        padding-left: 20px;
        padding-right: 20px;
    }




    /* Explicitly enforce watermark style like About page */
    #services .watermark,
    #web-engineering .watermark,
    #mobile-app-development .watermark {
        left: 50% !important;
        right: auto !important;
        top: 15% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        font-size: 15vw !important;
        width: 100%;
        opacity: 0.5;
    }

    #web-engineering .watermark {
        font-size: 8vw !important;
        top: 120px !important;
    }

    #mobile-app-development .watermark {
        font-size: 6vw !important;
        /* Smaller text size */
        top: 120px !important;
        /* Fixed position for tall section */
    }

    /* Fix Alignment for Sections 02, 04 & 05 */
    /* Headers & Intros - Mimic Section 03 */
    /* Fix Alignment for Sections 02, 04 & 05 */
    /* Enforce container width to respect viewport/section padding */
    #web-engineering .container,
    #social-media-management .container {
        width: 100% !important;
    }

    #industries .industry-pills-container {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        display: block !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        box-sizing: border-box !important;
    }

    /* Carousel Mobile Centering Fix */
    .packages-scroll-wrapper {
        padding: 20px 7.5vw !important;
        /* Symmetric padding for center alignment */
        scroll-padding: 0 7.5vw;
        gap: 1rem !important;
    }

    .packages-scroll-wrapper .feature-block {
        min-width: 85vw !important;
        width: 85vw !important;
        margin-left: initial !important;
        /* Allow flex gap to work */
        margin-right: initial !important;
        scroll-snap-align: center !important;
    }
}

/* -------------------------------------------------------------------------- */
/*                       Section 02 - Web Engineering                         */
/* -------------------------------------------------------------------------- */

#web-engineering {
    padding-top: 5rem;
    padding-bottom: 5rem;
}





/* Package Cards */
.package-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.package-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    box-shadow: 0 0 25px rgba(254, 170, 82, 0.2);
    /* Orange glow for fire */
    border-color: rgba(254, 170, 82, 0.3);
    transform: translateY(-5px);
}

.package-header {
    margin-bottom: 2rem;
    text-align: center;
}

.package-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.package-best-for {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.package-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .package-content {
        grid-template-columns: 1fr 1fr;
    }
}

.package-list-block h4 {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--sc-blue);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.package-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-list li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 1.5rem;
    position: relative;
}

.package-list li::before {
    content: '•';
    color: var(--sc-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.package-addons li::before {
    content: '+';
    color: var(--sc-pink);
}

/* Light Mode Overrides */
body.light-mode .pricing-table th {
    background: rgba(0, 0, 0, 0.05);
    color: #222;
}

body.light-mode .pricing-table td {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .package-card:hover {
    box-shadow: 0 0 25px rgba(254, 170, 82, 0.3);
}

body.light-mode .package-title {
    color: #222;
}

body.light-mode .package-best-for {
    color: #666;
}

body.light-mode .package-list li {
    color: #444;
}

/* -------------------------------------------------------------------------- */
/*                     Section 03 - Mobile App Development                     */
/* -------------------------------------------------------------------------- */
/* Formerly Section 02 */

#mobile-app-development {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    opacity: 0.8;
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-color);
}

.feature-block {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align content */
    text-align: center;
    /* Center text */
    gap: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem;
    /* Glassmorphism */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.feature-block:hover {
    /* border-color removed to match normal state */
    box-shadow: 0 0 25px rgba(0, 155, 255, 0.15);
    /* Glow effect */
    transform: translateY(-5px);
}

.feature-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center header items */
    gap: 0.5rem;
}

.feature-number {
    font-size: 1rem;
    color: var(--sc-blue);
    /* Updated to Blue for both modes */
    font-family: var(--font-primary);
    /* Changed to Poppins */
    font-weight: 600;
    /* Added weight */
    letter-spacing: 0.05em;
    /* Adjusted letter spacing for sans-serif */
}

.feature-title {
    font-size: 2rem;
    font-weight: 600;
    color: white;
}

.feature-subtitle {
    font-size: 1.2rem;
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
    margin-bottom: 1rem;
}

.feature-desc {
    font-size: 12px;
    /* Updated size */
    line-height: 1.6;
    color: white;
    /* Updated color */
    margin-bottom: 2rem;
}

.feature-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    /* Ensure grid takes full width */
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center meta items */
}

.meta-item h4 {
    font-size: 12px;
    /* Updated size */
    text-transform: uppercase;
    color: var(--sc-blue) !important;
    /* Updated color with override priority */
    margin-bottom: 0.5rem;
}

.meta-item p {
    font-size: 12px;
    /* Updated size */
    color: white;
}



body.light-mode .feature-block:hover {
    background: rgba(0, 0, 0, 0.02);
    /* border-color removed */
    box-shadow: 0 0 25px rgba(0, 155, 255, 0.2);
}

body.light-mode .feature-title {
    color: #222;
}

body.light-mode .feature-desc {
    color: #333;
    /* Darker text for light mode readability against glass */
}

body.light-mode .feature-meta {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .meta-item h4 {
    color: #666;
}

body.light-mode .meta-item p {
    color: #222;
}

/* -------------------------------------------------------------------------- */
/*                               Quote Modal                                  */
/* -------------------------------------------------------------------------- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.modal-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.modal-input:focus {
    outline: none;
    border-color: var(--sc-blue);
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    background: var(--sc-gradient);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Light Mode Modal */
body.light-mode .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

body.light-mode .modal-title {
    color: #222;
}

body.light-mode .modal-label {
    color: #666;
}

body.light-mode .modal-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #222;
}

body.light-mode .modal-input:focus {
    background: white;
    border-color: var(--sc-blue);
}

body.light-mode .modal-close {
    color: #999;
}

body.light-mode .modal-close:hover {
    color: #222;
}

/* -------------------------------------------------------------------------- */
/*                       Web Engineering Carousel Controls                    */
/* -------------------------------------------------------------------------- */

.packages-carousel-container {
    position: relative;
    padding: 0 50px;
    /* Space for arrows */
}

.packages-scroll-wrapper {
    scrollbar-width: none;
    /* Firefox */
}

.packages-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05) !important;
    /* Force glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0 !important;
    /* Reset button padding */
}

.scroll-arrow:hover {
    background: var(--sc-blue) !important;
    border-color: var(--sc-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 155, 255, 0.4);
}

.scroll-arrow.scroll-left {
    left: 0;
}

.scroll-arrow.scroll-right {
    right: 0;
}

/* Addons Pill Sizing Override */
.addons-container .service-pill {
    font-size: 0.6rem !important;
    padding: 4px 10px !important;
    line-height: 1.2;
    border-radius: 20px;
    min-width: auto !important;
    /* Allow shrinking */
}

/* Mobile Responsiveness for Carousel */
@media (max-width: 768px) {
    .packages-carousel-container {
        padding: 0;
    }

    .scroll-arrow {
        display: none;
        /* Hide arrows on touch devices */
    }

    .packages-scroll-wrapper {
        padding: 20px 20px !important;
        /* Add padding for content */
    }
}

/* -------------------------------------------------------------------------- */
/*                       Feature List Text Color                              */
/* -------------------------------------------------------------------------- */

.feature-list li {
    color: white;
    /* Default Dark Mode */
}

body.light-mode .feature-list li {
    color: black;
    /* Light Mode Override */
}

/* -------------------------------------------------------------------------- */
/*                       Industry Circular Pills                              */
/* -------------------------------------------------------------------------- */

.industry-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.industry-pill:hover,
.industry-pill.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.industry-pill:hover .pill-icon,
.industry-pill.active .pill-icon {
    color: var(--sc-blue);
}

.industry-pill .pill-icon {
    font-size: 1.2rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Light Mode Overrides for Industry Pills */
body.light-mode .industry-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #444;
}

body.light-mode .industry-pill:hover,
body.light-mode .industry-pill.active {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    /* Icon color handled by general rule or specific if needed */
}

body.light-mode .industry-pill:hover .pill-icon,
body.light-mode .industry-pill.active .pill-icon {
    color: var(--sc-blue);
}


/* -------------------------------------------------------------------------- */
/*             Service Industry Pills (Rectangular - Like Section 01)         */
/* -------------------------------------------------------------------------- */

.service-industry-pill {
    /* Copied from .service-nav-pill */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    /* Reset from circular styles */
    width: auto;
    height: auto;
}

.service-industry-pill ion-icon {
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: currentColor;
}

.service-industry-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    /* color: white; - Removed to allow span gradient */
}

.service-industry-pill:hover span {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.service-industry-pill:hover ion-icon {
    color: var(--sc-blue);
    transform: scale(1.1);
    animation: breathing 2s infinite ease-in-out;
}

.service-industry-pill.active {
    background: transparent;
    border-color: #9e9e9e;
    color: white;
}

.service-industry-pill.active span {
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.service-industry-pill.active ion-icon {
    color: var(--sc-blue);
    animation: breathing 2s infinite ease-in-out;
}

/* Light Mode Overrides for Service Industry Pills */
body.light-mode .service-industry-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #444;
}

body.light-mode .service-industry-pill:hover,
body.light-mode .service-industry-pill.active {
    background: #1a1a1a;
    border: 1px solid #9e9e9e;
    background-image: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-mode .service-industry-pill.active span {
    /* Ensure gradient text logic holds */
    background: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

body.light-mode .service-industry-pill.active ion-icon {
    color: var(--sc-blue);
}