@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-base: #0d0b0a;
    --bg-surface: #161311;
    --bg-surface-light: #1e1b19;
    
    --brand-yellow: #EAB308;
    --brand-yellow-glow: rgba(234, 179, 8, 0.4);
    --brand-yellow-dark: #A16207;
    
    --text-primary: #F0EBE1;
    --text-secondary: #c2baab;
    --text-muted: #827c73;
    --text-dark: #000000;
    
    --tech-grid: rgba(255, 255, 255, 0.03);
    
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

/* Technical Overlays */
.tech-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: 
        linear-gradient(var(--tech-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200vw;
    height: 200vh;
    background: radial-gradient(circle at 50% 50%, rgba(234, 179, 8, 0.03), transparent 70%);
    z-index: -3;
    animation: pulse-ambient 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pulse-ambient {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    100% { transform: scale(1.05) translate(2%, 2%); opacity: 0.6; }
}

.tech-lines-overlay {
    position: fixed;
    top: 0;
    left: 5%;
    width: 90%;
    height: 100vh;
    border-left: 1px solid rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.02);
    z-index: -1;
    pointer-events: none;
}

.tech-lines-overlay::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.02);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 1px;
}

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

/* Base Form elements reset */
input, button, textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

/* Global Image rules */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366; /* WhatsApp brand color */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Buttons */
.btn-tech {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-tech::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-yellow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn-tech:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.2);
}

.btn-tech:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-solid-yellow {
    display: inline-block;
    background-color: var(--brand-yellow);
    color: var(--text-dark);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 16px 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.2);
    text-align: center;
}

.btn-solid-yellow:hover {
    background-color: #FDE047;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
    transform: scale(1.03);
}

.btn-outline-tech {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-muted);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    text-align: center;
    cursor: pointer;
}

.btn-outline-tech:hover {
    border-color: var(--brand-yellow);
    background: rgba(234, 179, 8, 0.05);
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.2);
}

.w-100 {
    width: 100%;
}

/* Navbar */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar-modern.scrolled {
    background: rgba(3, 3, 3, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 16px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* crucial for squeezing */
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
}

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

.n-link {
    font-family: var(--font-head);
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition-smooth);
}

.n-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-yellow);
    transition: var(--transition-smooth);
    box-shadow: 0 0 5px rgba(234, 179, 8, 0.5);
}

.n-link.active, .n-link:hover {
    color: var(--brand-yellow);
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.n-link.active::after, .n-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

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

.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    animation: cin-fade 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.2) brightness(0.4);
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-base) 100%);
}

.hero-data {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    z-index: 10;
}

.left-data {
    left: 40px;
    flex-direction: column;
    writing-mode: vertical-lr;
    transform: translateY(-50%) rotate(180deg);
}

.right-data {
    right: 40px;
    flex-direction: column;
    writing-mode: vertical-lr;
}

.data-line {
    width: 1px;
    height: 60px;
    background-color: var(--brand-yellow);
    opacity: 0.5;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-typography {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.hero-typography::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.08) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    animation: pulse-hero-light 10s ease-in-out infinite alternate,
               float-hero-light 15s ease-in-out infinite alternate;
}

@keyframes pulse-hero-light {
    0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.8; transform: translate(-45%, -55%) scale(1.1); }
}

@keyframes float-hero-light {
    0% { transform: translate(-50%, -50%); }
    100% { transform: translate(-45%, -45%); }
}

/* Phase 6 Hero Additions */
.hero-main-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.15));
}

.hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}



.tech-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--brand-yellow);
    border: 1px solid var(--brand-yellow);
    background: rgba(234, 179, 8, 0.1);
    padding: 6px 12px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.cinematic-title {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.cinematic-title:hover {
    color: var(--brand-yellow);
    text-shadow: 0 0 30px rgba(234, 179, 8, 0.4);
}

.sub-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Cinematic Hero Keyframes Setup */
.hero-typography .tech-badge { opacity: 0; animation: cin-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s; }
.hero-typography .cinematic-title { opacity: 0; animation: cin-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s; }
.hero-typography .sub-title { opacity: 0; animation: cin-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s; }
.hero-typography .hero-desc { opacity: 0; animation: cin-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s; }
.hero-typography .hero-actions { opacity: 0; animation: cin-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s; }
.hero-technical-drawing { opacity: 0; animation: cin-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s; }
.left-data, .right-data { opacity: 0; animation: cin-fade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s; }

@keyframes cin-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes cin-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Technical CAD Box */
.hero-technical-drawing {
    display: flex;
    justify-content: flex-end;
}

.cad-box {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    border: 1px dashed rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.05) 0%, transparent 70%);
}

.cad-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid var(--brand-yellow);
}
.cad-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.cad-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.cad-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.cad-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.cad-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 20px;
}

.cad-icon {
    font-size: 5rem;
    color: var(--brand-yellow);
    opacity: 0.8;
}

.cad-label {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Sections General */
.section-authority, .section-process, .section-methodology, .section-systems, .section-technology, .section-projects {
    padding: 120px 0;
    position: relative;
    z-index: 5;
}

/* Authority Section */
.authority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(234, 179, 8, 0.1);
    padding: 60px 0;
    background: linear-gradient(90deg, transparent 0%, rgba(234, 179, 8, 0.05) 50%, transparent 100%);
}

.auth-stat {
    text-align: center;
    position: relative;
}

.auth-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .auth-stat:not(:last-child)::after { display: none; }
}

.stat-value {
    font-size: 2.5rem;
    color: var(--brand-yellow);
    margin-bottom: 15px;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.auth-stat:hover .stat-value {
    transform: scale(1.1) translateY(-5px);
    text-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
}

.stat-label {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Process Section */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

@media (max-width: 1024px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.process-step {
    position: relative;
    padding-top: 30px;
    transition: var(--transition-smooth);
}

/* Connecting Line */
.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(234, 179, 8, 0.2);
    transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
    .process-step::before {
        width: 2px;
        height: 100%;
        left: 20px;
        top: 0;
    }
    .process-step {
        padding-top: 0;
        padding-left: 60px;
        min-height: 80px;
    }
    .step-marker {
        position: absolute;
        top: 0;
        left: 0;
        width: 42px;
        text-align: center;
        background: var(--bg-surface);
        padding: 5px 0;
        margin-bottom: 0;
        z-index: 2;
    }
}

.process-step:hover::before {
    background: var(--brand-yellow);
    box-shadow: 0 0 10px var(--brand-yellow);
}

.step-marker {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.process-step:hover .step-marker {
    color: var(--brand-yellow);
    transform: translateY(-5px);
}

.step-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 80px;
}

.tech-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--brand-yellow);
    font-weight: 700;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 2px;
    color: var(--text-primary);
    line-height: 1.1;
}

.header-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.5), transparent);
}

/* Methodology Grid */
.methodology-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.method-heading {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.2;
}

.method-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.method-text strong {
    color: var(--brand-yellow);
    font-weight: 600;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-primary);
}

.tech-list li i {
    color: var(--brand-yellow);
}

.image-wrapper {
    position: relative;
    padding: 20px;
}

.image-wrapper img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(80%) contrast(1.1);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.image-wrapper:hover img {
    filter: grayscale(20%) contrast(1.1);
}

.tech-borders {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1;
    transform: translate(-15px, 15px);
}

.scanning-line {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: 2px;
    background: var(--brand-yellow);
    box-shadow: 0 0 10px var(--brand-yellow);
    z-index: 3;
    animation: scan 4s ease-in-out infinite alternate;
    opacity: 0.6;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(100% - 40px)); }
}

/* Parallax Divider */
.parallax-divider {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 40px 0;
    border-top: 1px solid rgba(234, 179, 8, 0.1);
    border-bottom: 1px solid rgba(234, 179, 8, 0.1);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    filter: brightness(0.6) contrast(1.1);
}

.parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--bg-surface) 0%, transparent 40%, transparent 60%, var(--bg-surface) 100%);
    z-index: 2;
}

.parallax-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.cinematic-title-small {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--brand-yellow);
    letter-spacing: -1px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    margin-bottom: 15px;
}

.parallax-content p {
    font-size: 1.25rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-style: italic;
}

/* Systems Cards Modern */
.systems-grid-modern,
.systems-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 40px;
}

.sys-card-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    min-height: 450px;
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.sys-card-image img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.1);
    transition: var(--transition-smooth);
}

.sys-card-image:hover img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.03);
}

.sys-card-content {
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dark-card {
    background: linear-gradient(135deg, rgba(22, 19, 17, 0.9) 0%, rgba(13, 11, 10, 0.9) 100%);
    height: 100%;
}

.sys-card-image:hover {
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.sys-icon {
    font-size: 2.2rem;
    color: var(--brand-yellow);
    margin-bottom: 20px;
}

.sys-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.sys-card-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.mt-4 {
    margin-top: 25px;
}

/* Technology Section */
.tech-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 30px;
}

.tech-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--brand-yellow);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: rgba(234, 179, 8, 0.2);
}

.tech-card:hover::before {
    transform: scaleY(1);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--brand-yellow);
    margin-bottom: 24px;
    opacity: 0.9;
}

.tech-card h4 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    grid-auto-rows: 350px;
    grid-auto-flow: dense;
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%) contrast(1.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 30px 24px;
    background: linear-gradient(to top, rgba(3, 3, 3, 0.95) 0%, rgba(3,3,3,0.7) 60%, transparent 100%);
    transition: var(--transition-smooth);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h4 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.gallery-overlay p {
    font-size: 0.85rem;
    color: var(--brand-yellow);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* CTA Section */
.section-cta {
    padding: 150px 0;
    position: relative;
    z-index: 5;
    background: radial-gradient(circle at center, rgba(234, 179, 8, 0.05) 0%, transparent 60%);
    border-top: 1px solid rgba(255,255,255,0.02);
}

.cta-container {
    display: flex;
    justify-content: center;
    text-align: center;
}

.cta-content {
    max-width: 800px;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.cta-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-inline: auto;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Masonry Helpers */
.span-col-2 { grid-column: span 2; }
.span-row-2 { grid-row: span 2; }

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 3, 3, 0.98);
    backdrop-filter: blur(8px);
}
.lightbox-modal.show { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
}

.lightbox-caption {
    margin-top: 20px;
    text-align: left;
}

.lightbox-caption strong { 
    color: var(--brand-yellow); 
    font-size: 1.5rem;
    font-family: var(--font-head);
    display: block;
    margin-bottom: 5px;
}

.lightbox-caption small {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-secondary);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2001;
    line-height: 1;
}
.close-lightbox:hover { color: var(--brand-yellow); }

/* Tech Consultation Modal */
.tech-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 3, 0.9);
    backdrop-filter: blur(12px);
    z-index: 2500;
}
.tech-modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tech-modal-box {
    background: var(--bg-surface-light);
    border: 1px solid var(--brand-yellow);
    padding: 50px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 40px rgba(234, 179, 8, 0.15);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover { color: var(--brand-yellow); transform: scale(1.1); }

.modal-header h3 {
    font-family: var(--font-mono);
    color: var(--brand-yellow);
    margin-bottom: 12px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 35px;
    line-height: 1.6;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-yellow);
    box-shadow: inset 0 0 10px rgba(234, 179, 8, 0.05);
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.2);
}

/* Footer */
.tech-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 30px;
    background: var(--bg-surface-light);
    position: relative;
    z-index: 5;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.15rem;
    font-family: var(--font-head);
}

.footer-link {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-link:hover {
    color: var(--brand-yellow);
    transform: translateX(5px);
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.brand-mark p {
    color: var(--text-secondary);
    max-width: 350px;
    margin-top: 16px;
    line-height: 1.6;
}

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

.contact-link {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.contact-link:hover {
    color: var(--brand-yellow);
    transform: translateX(5px);
}

.contact-link i {
    margin-right: 12px;
    color: var(--brand-yellow);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Scroll Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(20px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive Handling */
@media (max-width: 1024px) {
    .methodology-grid, .process-timeline {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-technical-drawing {
        display: none;
    }
    .hero-content-wrapper {
        grid-template-columns: 1fr;
    }
    .left-data, .right-data {
        display: none;
    }
}

@media (max-width: 768px) {
    .reveal-up { transform: translateY(15px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
    .reveal-left { transform: translateX(-10px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
    .reveal-right { transform: translateX(10px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }

    .nav-action-desktop {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .glitch-title {
        font-size: 3.5rem;
    }
    
    .span-col-2, .span-row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .hero-actions, .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-solid-yellow, .btn-outline-tech {
        width: 100%;
        text-align: center;
    }
    .hero-main-logo { max-width: 160px; }
}

/* Phase 6 Global Enhancements */
.btn-solid-yellow:hover {
    box-shadow: 0 10px 30px rgba(234, 179, 8, 0.5), 0 0 15px rgba(234, 179, 8, 0.6) !important;
}

/* Phase 7 Content Expansions */

/* About Section */
.section-about {
    padding: 100px 0;
    background: var(--bg-surface);
}

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

.about-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-right: 15px;
}

.about-desc strong, .about-desc em {
    color: var(--text-primary);
}

.about-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.styled-img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--brand-yellow);
    color: var(--text-dark);
    padding: 15px 25px;
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.3);
}

/* Materials Section */
.section-materials {
    padding: 100px 0;
    background: var(--bg-surface-light);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.materials-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.material-block {
    background: var(--bg-surface);
    padding: 40px 30px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
    border-top: 3px solid transparent;
}

.material-block:hover {
    border-top-color: var(--brand-yellow);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.material-block h4 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.material-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Why Custom Section */
.section-why-custom {
    padding: 100px 0;
    background: var(--bg-dark);
}

.why-custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 40px;
}

.reason-card {
    text-align: center;
    padding: 30px 20px;
}

.reason-icon {
    font-size: 2.5rem;
    color: var(--brand-yellow);
    margin-bottom: 25px;
}

.reason-card h4 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.reason-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.reason-image-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    min-height: 300px;
}

.reason-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) grayscale(20%);
    transition: var(--transition-smooth);
}

.reason-image-card:hover img {
    filter: brightness(0.8) grayscale(0%);
    transform: scale(1.05);
}

.reason-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(13, 11, 10, 0.95), transparent);
    text-align: center;
}

.reason-overlay h4 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--brand-yellow);
    margin-bottom: 15px;
}

.reason-overlay p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Phase 7 Media Queries */
@media (max-width: 1024px) {
    .about-grid, .materials-flex, .why-custom-grid, .systems-grid-modern { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    
    .floating-badge { right: 20px; bottom: 20px; }
    .projects-grid { display: flex; flex-direction: column; gap: 20px; }
    
    /* Navigation Fixes (Tablet/Mobile) */
    .nav-links {
        display: none !important;
    }
    
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 11, 10, 0.98);
        backdrop-filter: blur(12px);
        padding: 30px 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(234, 179, 8, 0.1);
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .navbar-modern .nav-content .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .navbar-modern .nav-content .menu-toggle .bar,
    .menu-toggle span {
        width: 25px;
        height: 2px;
        background: var(--brand-yellow) !important;
        transition: var(--transition-smooth);
    }
    
    .nav-action-desktop {
        display: none !important;
    }
}

@media (max-width: 375px) {
    .nav-logo { height: 32px; }
}

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