/* =========================================
   1. CSS VARIABLES & THEME DEFINITIONS
   ========================================= */
:root, [data-theme="tactile"] {
    --bg-dark: #0F1113;      
    --Copper-Thread: #B46E3A;  
    --accent-teal: #2AA6A1; 
    --text-main: #FAFAF7;    
    --text-muted: #D7D9DD;   
    --border-color: rgba(180, 110, 58, 0.18); 
    --grid-line: rgba(180, 110, 58, 0.05);    
    --font-mono: 'Inter', monospace;
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
html { scroll-behavior: smooth; }
img, svg, canvas, iframe {
    max-width: 100%;
}

/* =========================================
   2. BACKGROUND & UTILITIES (MOBILE FIRST)
   ========================================= */
.grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex { display: flex; align-items: center; }
.justify-between { justify-content: space-between; }

/* =========================================
   3. HEADER & NAVIGATION (MOBILE FIRST)
   ========================================= */
header {
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.85rem 0;
    background-color: rgba(15, 17, 19, 0.75); /* Richer translucent dark base */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000; /* Stays above all parallax elements */
    
    /* Smooth translation engine for the smart reveal */
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: transform; /* Hardware accelerates the visual shift */
}

/* --- SMART SCROLL TRACKING CLASSES --- */
/* Slids the header cleanly out of view when scrolling down */
header.scroll-down {
    transform: translateY(-100%); 
}

/* Snaps it back instantly onto the viewport space when scrolling up */
header.scroll-up {
    transform: translateY(0); 
}

body.scroll-down header {
    transform: translateY(-100%);
}

body.scroll-up header {
    transform: translateY(0);
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-weight: 700; 
    letter-spacing: -1px;
    line-height: 1.2;
}

.logo-container {
    display: flex;
    justify-content: center; /* Centers the logo horizontally on mobile */
    align-items: center;
}

.logo-image {
    max-width: min(74vw, 260px);         /* Ensures it never exceeds the container width */
    height: auto;            /* Maintains aspect ratio */
    max-height: 46px;        /* Prevents the logo from becoming too tall on desktop */
    width: auto;             /* Allows it to shrink proportionally */
}

.logo span { 
    display: block; 
    font-size: 0.6rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    color: var(--text-muted);
}

.nav-links { 
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.8rem; 
    width: 100%;
    font-size: 0.72rem; 
    text-transform: uppercase; 
    letter-spacing: 0.08em;
}

.nav-links a,
.dropdown-trigger {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover,
.nav-links button:hover { 
    color: var(--Copper-Thread); 
}

/* =========================================
   4. HERO SECTION (MOBILE FIRST)
   ========================================= */
.hero { 
    padding: 3rem 0 4rem 0; 
    min-height: auto; 
}

.hero-layout { 
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.hero h1 { 
    font-size: clamp(2.55rem, 13vw, 4.8rem); 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
}

.hero h1 span { 
    color: var(--accent-teal); 
    font-style: italic; 
    display: block; 
    margin-top: 0.25rem; 
    
}
.hero-desc {
    color: var(--text-muted); 
    margin-bottom: 2.5rem; 
    max-width: 600px; 
    font-size: clamp(1rem, 4vw, 1.1rem);
    margin-left: auto;
    margin-right: auto;
}

.hero-actions { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.9rem 1.35rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 1px; 
    font-size: 0.8rem; 
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary { background-color: var(--Copper-Thread); color: white; border-radius: 4px; }
.btn-primary:hover { filter: brightness(1.2); transform: translateY(-2px); }

.btn-secondary { 
    border: 1px solid var(--border-color); 
    background: rgba(255,255,255,0.05); 
    color: var(--text-main);
    border-radius: 4px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--Copper-Thread); }

.hero-graphics {
    width: 200px;
    margin: 0 auto;
}

/* =========================================
   5. SERVICES SECTION (MOBILE FIRST)
   ========================================= */
.services { padding: 6rem 0; }

.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.services-sticky {
    text-align: center;
}

.services-sticky h2 { 
    font-size: clamp(2rem, 6vw, 3.5rem); 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
}

.services-sticky h2 span { color: var(--accent-teal); font-style: italic; }

.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid var(--border-color); 
    padding: 2.25rem 1.35rem; 
    transition: all 0.4s ease; 
    text-align: center;
}

.service-card h3 { margin-bottom: 1rem; font-size: 1.5rem; color: var(--Copper-Thread); }
.service-card p { color: var(--text-muted); margin-bottom: 2rem; }

.card-tags { display: none; } /* Hidden on mobile per original logic */

/* Accordion Logic - Mobile First */
.mobile-accordion {
    display: block;
    margin-top: 1.5rem;
}

.accordion-toggle { display: none; }

.accordion-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-teal);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    padding: 0.75rem 0;
    line-height: 1.4;
}

.accordion-label .close-txt { display: none; }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.accordion-toggle:checked ~ .accordion-label .open-txt { display: none; }
.accordion-toggle:checked ~ .accordion-label .close-txt { display: inline-block; color: var(--Copper-Thread); }
.accordion-toggle:checked ~ .accordion-content {
    max-height: 600px;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.modal-framework-row h5 {
    font-family: var(--font-mono);
    color: var(--Copper-Thread);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.modal-framework-row p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================
   6. MOBILE APPS PORTFOLIO (MOBILE FIRST)
   ========================================= */
.app-spotlight {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.16);
}

.app-spotlight-heading {
    max-width: 820px;
    margin-bottom: 2.5rem;
    text-align: center;
}

.app-section-label,
.app-card-topline,
.app-type,
.app-feature-chips,
.app-store-coming,
.app-disclaimer {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.app-section-label {
    margin-bottom: 0.75rem;
    color: var(--Copper-Thread);
    font-size: 0.72rem;
    font-weight: 600;
}

.app-spotlight-heading h2 {
    font-size: clamp(2rem, 10vw, 3.8rem);
    line-height: 1.08;
}

.app-spotlight-heading h2 span {
    color: var(--accent-teal);
    font-style: italic;
}

.apps-intro {
    max-width: 720px;
    margin: 1.4rem auto 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.mobile-app-card {
    --app-accent: var(--accent-teal);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    padding: 1.4rem;
    border: 1px solid rgba(215, 217, 221, 0.15);
    background-color: rgba(8, 17, 20, 0.92);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-app-card::before,
.mobile-app-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.mobile-app-card::before {
    top: 0;
    left: 0;
    width: 88px;
    height: 3px;
    background: var(--app-accent);
}

.mobile-app-card::after {
    right: 0;
    bottom: 0;
    width: 120px;
    height: 1px;
    background: var(--app-accent);
    opacity: 0.7;
}

.mobile-app-card:hover {
    transform: translateY(-4px);
    border-color: var(--app-accent);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.app-aerodecode { --app-accent: #43c6bf; }
.app-galaxytrace { --app-accent: #5fc8ff; }
.app-pdf2ical { --app-accent: #d58a52; }
.app-flexitrace { --app-accent: #8ae16b; }
.app-sakura {
    --app-accent: #ff5aa5;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 76, 155, 0.26), transparent 30%),
        radial-gradient(circle at 12% 100%, rgba(55, 218, 255, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(20, 13, 34, 0.98), rgba(8, 17, 28, 0.96));
}
.app-omnicodecpro {
    --app-accent: #8767ff;
    background:
        radial-gradient(circle at 82% 24%, rgba(222, 44, 188, 0.22), transparent 32%),
        radial-gradient(circle at 58% 100%, rgba(52, 101, 255, 0.22), transparent 38%),
        rgba(8, 17, 20, 0.96);
}

.app-card-icon {
    position: absolute;
    top: 3.8rem;
    right: 2rem;
    width: clamp(82px, 9vw, 126px);
    height: auto;
    border-radius: 24%;
    opacity: 0.9;
    box-shadow: 0 18px 50px rgba(57, 83, 215, 0.32);
}

.app-omnicodecpro .app-type,
.app-omnicodecpro h3,
.app-omnicodecpro .app-description {
    max-width: calc(100% - 145px);
}

.app-card-topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.45rem 1rem;
    margin-bottom: 2.25rem;
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 600;
}

.app-status {
    white-space: nowrap;
}

.app-status-available {
    color: var(--accent-teal);
}

.app-status-coming {
    color: var(--Copper-Thread);
}

.app-status-development {
    color: #ff7ab8;
}

.app-type {
    margin-bottom: 0.5rem;
    color: var(--app-accent);
    font-size: 0.65rem;
    font-weight: 600;
}

.mobile-app-card h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: clamp(2.15rem, 11vw, 3.2rem);
    line-height: 1;
}

.app-description {
    margin-bottom: 1.4rem;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

.app-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.2rem;
}

.app-feature-chips li {
    padding: 0.36rem 0.55rem;
    border: 1px solid rgba(215, 217, 221, 0.15);
    color: var(--text-muted);
    font-size: 0.54rem;
    letter-spacing: 0.08em;
}

.app-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: auto;
}

.portfolio-app-store-badge {
    display: inline-flex;
    width: fit-content;
    min-height: 50px;
    align-items: center;
    border-radius: 8px;
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.portfolio-app-store-badge img {
    display: block;
    width: 150px;
    height: auto;
}

a.portfolio-app-store-badge:hover,
a.portfolio-app-store-badge:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.portfolio-app-store-badge.is-placeholder {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.4;
}

.app-read-more {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border: 1px solid var(--app-accent);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.app-read-more:hover {
    background: var(--app-accent);
    color: var(--bg-dark);
}

.app-store-coming {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    color: rgba(215, 217, 221, 0.58);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.app-disclaimer {
    margin-top: 1rem;
    color: rgba(215, 217, 221, 0.5);
    font-size: 0.5rem;
    line-height: 1.65;
}

/* =========================================
   7. ACADEMIC SECTION (MOBILE FIRST)
   ========================================= */
.academic { padding: 6rem 0; background: rgba(0,0,0,0.2); }

.academic-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.academic-header-col {
    order: 1; /* Header below content on mobile */
    text-align: center;
}

.academic-main-col {
    order: 2;
}

.academic-header-col h2 { 
    font-size: clamp(2rem, 6vw, 3.5rem); 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
}

.academic-header-col h2 span { color: var(--accent-teal); font-style: italic; }

.academic-italic {
    font-family: inherit; 
    font-size: clamp(1.7rem, 8vw, 2.2rem); 
    font-weight: 300; 
    color: var(--text-muted);
}

.academic-subtext {
    color: var(--text-muted); 
    font-size: 0.9rem; 
    line-height: 1.7; 
    margin-bottom: 2rem;
}

.expertise-tags { 
    display: flex; 
    gap: 0.5rem; 
    flex-wrap: wrap; 
    justify-content: center !important; 
    align-items: center;
    margin: 0 auto 2.5rem auto;
    width: 100%;
    max-width: 100%;
}

.tag {
    font-size: 0.65rem; text-transform: uppercase; padding: 4px 10px;
    border: 1px solid var(--border-color); color: var(--text-muted); border-radius: 2px;
}

.academic-credentials {
    margin-top: 2.5rem; 
    border-left: 2px solid var(--Copper-Thread); 
    padding-left: 1rem; 
    text-align: left;
}

.cred-label {
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--text-muted); 
    display:block;
}

.cred-value { display: block; margin-bottom: 1rem; }

.academic-quote {
    font-size: clamp(1.5rem, 4vw, 2.5rem); 
    font-family: 'Playfair Display', serif; 
    font-style: italic; 
    line-height: 1.3; 
    margin-bottom: 2rem; 
    text-align: center;
}
.hide-mobile {
    display: none;
}
.accent-teal { color: var(--accent-teal); }

.doctoral-link {
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    color: var(--text-muted); 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 2rem; 
    margin-bottom: 3rem; 
    text-align: center;
}

.academic-pillars { 
    display: flex; 
    flex-direction: column; 
    gap: 3rem; 
    text-align: center;
}

.pillar h4 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 1rem; color: var(--Copper-Thread)}
.pillar p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* =========================================
   8. FOOTER (MOBILE FIRST)
   ========================================= */
footer { padding: 5rem 0 2rem 0; border-top: 1px solid var(--border-color); }

.footer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-left-content { text-align: center; }
.footer-left-content h2 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.footer-left-content h2 span { color: var(--accent-teal); font-style: italic; }

.footer-intro {
    color: var(--text-muted); 
    max-width: 500px; 
    font-size: 1.05rem; 
    line-height: 1.6;
    margin: 0 auto;
}

.footer-form-card { 
    background: rgba(255, 255, 255, 0.01); 
    border: 1px solid var(--border-color); 
    padding: 1.5rem; 
    border-radius: 6px; 
}

.form-title { 
    font-size: 0.75rem; 
    letter-spacing: 1px; 
    color: var(--Copper-Thread); 
    margin-bottom: 2rem; 
    font-family: var(--font-mono); 
    text-align: center;
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-row-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label { 
    font-size: 0.65rem; 
    font-family: var(--font-mono); 
    color: var(--Copper-Thread);  
    text-transform: uppercase; 
}

.form-group input, .form-group textarea { 
    width: 100%; 
    background: rgba(0,0,0,0.2); 
    border: 1px solid var(--border-color); 
    padding: 1rem; 
    color: #fff; 
    border-radius: 4px; 
    font-family: inherit; 
    font-size: 1rem;
}

.h-captcha {
    max-width: 100%;
    overflow: hidden;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 3rem; 
    text-align: center;
}

.footer-col h4 { margin-bottom: 1.5rem; font-size: 0.9rem; letter-spacing: 2px; color: var(--accent-teal); }
.footer-col ul li { margin-bottom: 0.8rem; color: var(--text-muted); font-size: 0.9rem; }

.footer-col a,
.footer-col .dropdown-trigger {
    min-height: 40px;
}

.services-list-footer {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    
}

.copyright-bar {
    margin-top: 4rem; 
    border-top: 1px solid var(--border-color); 
    padding-top: 2rem; 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    font-family: var(--font-mono);
    text-align: center;
    line-height: 1.7;
}

/* =========================================
   9. DESKTOP ENHANCEMENTS (MIN-WIDTH: 1024px)
   ========================================= */
@media (min-width: 1024px) {
    header { 
        position: fixed; 
        top: 0; 
        width: 100%; 
        padding: 1.5rem 0; 
        z-index: 1000; 
    }

    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        max-width: 1440px; 
        margin: 0 auto;
        width: 90%;
    }
    
    .logo-container {
        justify-content: flex-start; /* Aligns logo to the left on desktop */
    }

    .logo-image {
        /* This makes it twice as big (approx 150px) */
        width: 200px; 
        height: auto; /* Keeps the aspect ratio */
        max-height: 60px;
        
        /* This ensures it shrinks down if the screen is smaller than 150px wide */
        max-width: 100%; 
    }

    .hero { 
        padding-top: 150px; 
        min-height: 90vh; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }

    .hero-layout {
        display: flex;
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
        width: 90%;
        max-width: 1440px; 
        margin: 0 auto;
    }

    .hero-content { 
        max-width: 700px; 
        flex: 1;
        text-align: left;
    }

    /* Target the paragraph explicitly to remove any perceived "indent" */
    .hero-content p, 
    .hero-desc {
        max-width: 600px; /* Binds line length for 4K readability */
        width: 100%;
        margin-left: 0 !important; /* Forces it flush with the H1 heading */
        margin-right: auto;
        text-align: left !important; /* Overrides any center-alignment inheritance */
        font-size: clamp(1rem, 1.2vw, 1.35rem);
        line-height: 1.6;
        margin-bottom: 2.5rem;
        padding-left: 0 !important; /* Removes any accidental padding causing an indent view */
    }

    h1 {
        font-size: clamp(2.5rem, 4vw, 4.5rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
        text-align: left !important;
    }

    .hero-actions { 
        display: flex;
        flex-direction: row; 
        max-width: none; 
        margin: 2rem 0 0 0; 
        gap: 1rem; 
        justify-content: flex-start;
    }



    
    .hero-graphics {
        /* Linearly scales from 250px to 450px across 1024px to 4K resolutions */
        width: clamp(250px, 7.1vw + 177px, 500px);
        max-width: 100%;
        margin: 0;
        aspect-ratio: 1; /* Keeps the SVG perfectly proportional as it scales */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .services-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .services-sticky {
        position: sticky;
        top: 120px;
        width: 40%;
        text-align: left;
    }

    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        width: 60%;
    }

    .service-card { text-align: left; }
    .card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
    .mobile-accordion { display: none; }

    .app-spotlight-heading {
        text-align: left;
    }

    .apps-intro {
        margin-left: 0;
        margin-right: 0;
    }

    .apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .app-card-featured {
        grid-column: 1 / -1;
    }

    .mobile-app-card {
        padding: 2rem;
    }

    .app-card-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .app-read-more {
        margin-left: auto;
    }

    .academic-layout {
        flex-direction: row;
        align-items: center;
    }
    .academic-header-col { order: 1; text-align: left; width: 40%; }
    .academic-main-col { order: 2; width: 60%; }
    .expertise-tags { justify-content: flex-start; }
    .academic-quote { text-align: left; }
    .doctoral-link { text-align: left; }
    .academic-pillars { 
        flex-direction: row; 
        justify-content: space-between; 
        text-align: left; 
    }
    .hide-mobile {
        display: block;
    }
    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 4rem;
    }
    .footer-left-content { text-align: left; }
    .footer-intro { margin: 0; }

    .form-row-split { grid-template-columns: repeat(2, 1fr); }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
        margin-top: 4rem;
    }
    .copyright-bar { text-align: left; }
}

/* =========================================
   10. SVG ROTATION GRAPHICS ENGINE (PRESERVED)
   ========================================= */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes pulse { 0% { r: 6; opacity: 1; } 50% { r: 9; opacity: 0.4; } 100% { r: 6; opacity: 1; } }

.ring { transform-origin: 160px 160px; }
.ring-slow    { animation: spin 32s linear infinite; }
.ring-reverse { animation: spin-reverse 22s linear infinite; }
.ring-medium  { animation: spin 14s linear infinite; }
.node { transform-origin: 160px 160px; animation: spin 50s linear infinite; }
.core-pulse { animation: pulse 3s ease-in-out infinite; }

/* =========================================
   11. PRIVACY DROPDOWN ARCHITECTURE
   ========================================= */
.nav-dropdown {
    position: relative;
    display: inline-block;
    pointer-events: auto;
}

.dropdown-trigger {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    padding: 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-dark);
    
    /* Hover Gap Fix */
    border: 1px solid var(--border-color);
    border-top: 0.5rem solid transparent; 
    background-clip: padding-box; 
    
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 9999;
    border-radius: 4px;
}

.nav-dropdown.is-open .dropdown-menu {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
}

.dropdown-menu a {
    color: var(--text-main);
    padding: 0.75rem 1rem;
    text-transform: none;
    letter-spacing: 0.5px;
    display: block;
    font-size: 0.85rem;
    text-align: left;
}

.dropdown-menu a:hover {
    background-color: rgba(180, 110, 58, 0.1);
    color: var(--accent-teal);
}

/* 
   We removed .nav-dropdown:hover .dropdown-menu { display: block; }
   because the JavaScript handles the show/hide logic now.
*/

/* Mobile Alignment */
@media (max-width: 1023px) {
    header {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    }

    .nav-container {
        padding-inline: 1rem;
    }

    .nav-links {
        flex-direction: row;
        align-items: center;
        gap: 0.35rem 0.75rem;
    }

    .nav-dropdown {
        text-align: center;
    }

    .dropdown-menu {
        position: relative;
        right: auto;
        width: min(88vw, 260px);
        margin: 0.25rem auto 0;
        border-top: 0.25rem solid transparent;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.02);
    }
}

@media (max-width: 640px) {
    .container {
        padding-inline: 1rem;
    }

    header {
        padding: 0.65rem 0;
    }

    .logo-image {
        max-width: min(80vw, 230px);
        max-height: 40px;
    }

    .nav-links {
        gap: 0.25rem 0.55rem;
        font-size: 0.66rem;
        letter-spacing: 0.06em;
        line-height: 1.2;
    }

    .nav-links a,
    .dropdown-trigger {
        min-height: 32px;
    }

    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero-layout {
        gap: 2.2rem;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 14vw, 3.8rem);
    }

    .hero-desc {
        margin-bottom: 2rem;
    }

    .hero-actions {
        max-width: none;
    }

    .btn {
        width: 100%;
        min-height: 50px;
        padding-inline: 1rem;
    }

    .hero-graphics {
        width: min(68vw, 230px);
    }

    .services,
    .app-spotlight,
    .academic {
        padding: 4.25rem 0;
    }

    .app-spotlight-heading {
        margin-bottom: 2rem;
    }

    .mobile-app-card {
        padding: 1.2rem;
    }

    .app-card-icon {
        top: 3.3rem;
        right: 1rem;
        width: 76px;
        opacity: 0.3;
    }

    .app-omnicodecpro .app-type,
    .app-omnicodecpro h3,
    .app-omnicodecpro .app-description {
        max-width: 100%;
    }

    .services-wrapper,
    .academic-layout,
    .footer-wrapper {
        gap: 2.5rem;
    }

    .services-sticky h2,
    .academic-header-col h2,
    .footer-left-content h2 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .service-card {
        padding: 1.65rem 1rem;
    }

    .service-card h3 {
        font-size: 1.32rem;
    }

    .academic-quote {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    .academic-pillars {
        gap: 2rem;
    }

    footer {
        padding: 4rem 0 1.75rem;
    }

    .footer-form-card {
        padding: 1.25rem;
    }

    .form-title {
        margin-bottom: 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-col h4 {
        margin-bottom: 0.7rem;
    }

    .copyright-bar {
        margin-top: 2.5rem;
        font-size: 0.68rem;
    }

    .privacy-body {
        padding: 2.5rem 0 4rem !important;
    }

    .privacy-card {
        padding: 1.35rem !important;
    }

    .privacy-card h1 {
        font-size: clamp(2rem, 10vw, 2.5rem) !important;
        line-height: 1.08 !important;
    }

    .privacy-card h2 {
        font-size: 1.25rem !important;
    }

    .privacy-card h3,
    .privacy-card p {
        font-size: 0.95rem !important;
    }

    .back-btn-container {
        margin-bottom: 1.25rem !important;
    }
}
