/* ==========================================================================
   AETHERA STUDIO DESIGN SYSTEM (MODERN LAB THEME)
   ========================================================================== */

/* --- Configuration & Fonts --- */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    --border-radius-pill: 9999px;
    
    --max-width: 1200px;
}

/* --- Dark Theme Variables --- */
.dark-theme {
    --bg-primary: #07080B;
    --bg-secondary: #0F1015;
    --bg-tertiary: #0A0A0E;
    
    --text-primary: #FFFFFF;
    --text-secondary: #408EFF; /* High-contrast Electric Blue */
    --text-muted: #9CA3AF;     /* WCAG AA Compliant Muted Gray */
    
    --accent-blue: #3B82F6;
    --accent-blue-hover: #60A5FA;
    --accent-btn-bg: #2563EB;  /* 7.1:1 AAA Contrast Button BG */
    --accent-btn-hover: #1D4ED8;
    --accent-btn-text: #FFFFFF;
    --accent-gold: #D4B483;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    --card-bg: rgba(15, 16, 21, 0.65);
    --nav-bg: rgba(7, 8, 11, 0.85);
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.12);
    
    --glow-highlight: rgba(59, 130, 246, 0.25);
    --phone-glow: rgba(59, 130, 246, 0.4);
    --phone-bg: #0C0D12;
    --phone-frame-color: #1F2129;
    
    --grid-opacity: 0.04;
}

/* --- Light Theme Variables --- */
.light-theme {
    --bg-primary: #FAF8F4;        /* Warm Alabaster */
    --bg-secondary: #F4EFE6;      /* Sand Cream */
    --bg-tertiary: #EFEAE0;
    
    --text-primary: #111827;
    --text-secondary: #B94000;    /* High-contrast Warm Saffron */
    --text-muted: #4B5563;        /* WCAG AA Compliant Muted Text */
    
    --accent-blue: #C54E00;       /* AA compliant Saffron accent */
    --accent-blue-hover: #E05A00;
    --accent-btn-bg: #9A3412;  /* 7.4:1 AAA Contrast Button BG */
    --accent-btn-hover: #7C2D12;
    --accent-btn-text: #FFFFFF;
    --accent-gold: #9E6B2B;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    
    --card-bg: rgba(244, 239, 230, 0.65);
    --nav-bg: rgba(250, 248, 244, 0.9);
    --input-bg: rgba(0, 0, 0, 0.02);
    --input-border: rgba(0, 0, 0, 0.12);
    
    --glow-highlight: rgba(197, 78, 0, 0.18);
    --phone-glow: rgba(197, 78, 0, 0.25);
    --phone-bg: #FCFAF7;
    --phone-frame-color: #E2DDD5;
    
    --grid-opacity: 0.06;
}

/* --- Base Resets & Layout --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform var(--transition-smooth);
}

#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, button {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--border-radius-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Layout Helper Components --- */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-smooth), 
                box-shadow var(--transition-smooth), 
                transform var(--transition-smooth);
}

/* Modern Section Headers */
.section-header {
    margin-bottom: 50px;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-blue);
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
}

/* Modern Pills/Buttons */
.btn-primary-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    background-color: var(--accent-btn-bg);
    color: var(--accent-btn-text);
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    box-shadow: 0 4px 14px var(--glow-highlight);
    border: 1px solid transparent;
}

.btn-primary-pill:hover {
    background-color: var(--accent-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--glow-highlight);
}

.btn-secondary-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    background-color: transparent;
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    margin-left: 12px;
}

.btn-secondary-pill:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

/* --- Glass Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color var(--transition-smooth);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent-blue);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-btn:hover {
    background-color: var(--border-hover);
    border-color: var(--text-muted);
}

.cta-btn {
    padding: 8px 18px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    font-size: 0.82rem;
    transition: var(--transition-smooth);
}

.cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-link {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
}

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

.mobile-cta {
    margin-top: 10px;
    padding: 12px 32px;
    background-color: var(--accent-blue);
    color: #FFFFFF;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Blueprint Grid Background */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: var(--grid-opacity);
    background-image: 
        linear-gradient(var(--text-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--text-primary) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #27C93F;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-ctas {
    margin-bottom: 50px;
}

.hero-stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 36px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Modern Phone Mockup Container */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-frame-wrapper {
    position: relative;
    width: 290px;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 102%;
    background: radial-gradient(circle, var(--phone-glow) 0%, transparent 68%);
    filter: blur(20px);
    z-index: 1;
    opacity: 0.8;
}

.phone-frame {
    position: relative;
    width: 290px;
    height: 580px;
    background-color: var(--phone-bg);
    border: 9px solid var(--phone-frame-color);
    border-radius: 36px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 2;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.phone-speaker {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    z-index: 10;
}

.light-theme .phone-speaker {
    background-color: rgba(0, 0, 0, 0.1);
}

.phone-screen-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.phone-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

.phone-screen.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.phone-nav-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: 10;
}

.light-theme .phone-nav-indicator {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Minimal Mockup Selector Tabs */
.phone-tabs {
    display: flex;
    gap: 6px;
    margin-top: 24px;
    justify-content: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--border-radius-pill);
    z-index: 3;
    position: relative;
}

.phone-tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.tab-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--text-muted);
    display: inline-block;
    transition: background-color var(--transition-smooth);
}

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

.phone-tab-btn.active .tab-dot {
    background-color: var(--accent-blue);
}

/* Mouse Wheel Icon */
.scroll-down-wrap {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-mouse {
    display: block;
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
    opacity: 0.8;
}

.scroll-mouse .wheel {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 1.8s infinite ease-in-out;
}

@keyframes scrollAnimation {
    0% { top: 6px; opacity: 1; }
    50% { top: 14px; opacity: 0.3; }
    100% { top: 6px; opacity: 1; }
}

/* --- Published Works (Apps Grid) --- */
.apps-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 16px 36px var(--glow-highlight);
    transform: translateY(-4px);
}

.app-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1.15;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.1);
}

.app-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-card:hover .app-image {
    transform: scale(1.03);
}

.app-image-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
}

.app-badge {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--border-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.app-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.app-tagline {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.app-description {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.app-tags span {
    font-size: 0.7rem;
    padding: 3px 8px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    color: var(--text-muted);
}

.app-store-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    align-self: center;
}

.app-store-link i {
    transition: transform 0.25s;
    font-size: 0.75rem;
}

.app-card:hover .app-store-link i {
    transform: translate(2px, -2px);
    color: var(--accent-blue);
}

/* --- Philosophy & Method --- */
.philosophy-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.philosophy-p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.philosophy-pillars {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.p-pillar-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.p-pillar-icon {
    font-size: 1.2rem;
    color: var(--accent-blue);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.p-pillar-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.p-pillar-item p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

/* Code Editor Mockup */
.code-editor {
    width: 100%;
    max-width: 440px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.editor-header {
    height: 36px;
    background-color: rgba(0,0,0,0.15);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.editor-dots {
    display: flex;
    gap: 6px;
}

.editor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.editor-dot.red { background-color: #FF5F56; }
.editor-dot.yellow { background-color: #FFBD2E; }
.editor-dot.green { background-color: #27C93F; }

.editor-filename {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.editor-body {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.editor-body pre code {
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #8F99A8;
}

.keyword { color: #FC5D7C; }
.entity { color: #70BDF1; }
.type { color: #A892EC; }
.property { color: #A9B2C3; }
.string { color: #F0C674; }
.number { color: #A6E22E; }
.comment { color: #5C6370; font-style: italic; }

/* --- BND Venture Consulting LLC UI Diagram --- */
.venture-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.venture-wrap {
    padding: 50px;
}

.venture-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 540px;
}

.venture-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.v-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    color: var(--text-primary);
}

.v-badge i {
    color: var(--accent-gold);
}

.gold-tag::before {
    background-color: var(--accent-gold);
}

.gold-tag {
    color: var(--accent-gold);
}

.venture-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

/* Flow Chart Diagram Graphic */
.interactive-diagram {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-radius: var(--border-radius-md);
    background-color: rgba(0,0,0,0.1);
}

.diag-node {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    background-color: var(--bg-primary);
}

.diag-node.parent {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.15);
}

.diag-node.child {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--glow-highlight);
}

.diag-connector {
    width: 2px;
    height: 30px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.diag-sub-row {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.diag-pill {
    padding: 5px 12px;
    border-radius: var(--border-radius-pill);
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    background-color: var(--bg-secondary);
}

/* --- Collaboration Section --- */
.contact-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.c-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c-info-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.c-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--accent-blue);
}

.c-info-card span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.c-info-card strong {
    font-size: 1rem;
    color: var(--text-primary);
}

/* High Fidelity Modern Inputs */
.contact-form-side {
    padding: 36px;
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
}

#contact-form {
    width: 100%;
    transition: opacity 0.3s ease;
}

.modern-input-group {
    position: relative;
    margin-bottom: 22px;
}

.modern-input-group input,
.modern-input-group select,
.modern-input-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.modern-input-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23868C9E' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

.light-theme .modern-input-group select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23626573' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
}

.modern-input-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: transform 0.25s, font-size 0.25s, color 0.25s;
}

/* Floating label updates */
.modern-input-group input:focus ~ label,
.modern-input-group input:not(:placeholder-shown) ~ label,
.modern-input-group textarea:focus ~ label,
.modern-input-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-26px) translateX(-4px);
    font-size: 0.72rem;
    color: var(--accent-blue);
}

.modern-input-group input:focus,
.modern-input-group select:focus,
.modern-input-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--glow-highlight);
}

/* Invalid form warnings */
.modern-input-group.invalid input,
.modern-input-group.invalid select,
.modern-input-group.invalid textarea {
    border-color: #FF5F56;
}

.modern-input-group.invalid .error-msg {
    opacity: 1;
}

.modern-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--accent-btn-bg);
    color: var(--accent-btn-text);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.modern-submit-btn:hover {
    background-color: var(--accent-btn-hover);
    box-shadow: 0 4px 15px var(--glow-highlight);
}

.modern-submit-btn i {
    font-size: 0.75rem;
    transition: transform 0.25s;
}

.modern-submit-btn:hover i {
    transform: translateX(3px);
}

/* Success Card UI */
.form-success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: calc(100% - 72px);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success-message.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.success-ring {
    font-size: 2.2rem;
    color: #27C93F;
    width: 64px;
    height: 64px;
    border: 2px solid #27C93F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.form-success-message h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.form-success-message p {
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 70px 0 36px 0;
    transition: background-color var(--transition-smooth);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-desc-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 280px;
    margin-top: 12px;
}

.footer-links-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.footer-links-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-socials a:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* --- Scroll reveal animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats-row {
        justify-content: center;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .venture-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-actions .cta-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
