: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;
}

/* 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: inline-block;
}

.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);
}

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;
    }

    .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);
}

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;
}