/* Resets & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    /* STITCH Color Palette Extracted - LIGHT MODE (System Default) */
    --background: #fcfcfc;
    --surface: #ffffff;
    --surface-container-low: #f5f5f7;
    --surface-container: #ebebed;
    --surface-container-high: #e1e2e5;
    --on-surface: #131313;
    --on-surface-variant: #4a4a4f;
    --primary: #0074e0;
    --primary-container: #0084ff;
    --on-primary-fixed: #ffffff;
    --secondary: #3b00c2;
    --secondary-container: #4f22e0;
    --error: #ba1a1a;
    --outline-variant: #c4c4c4;

    /* Theme-specific styles to ensure contrast */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --text-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* STITCH Color Palette - DARK MODE */
        --background: #131313;
        --surface: #131313;
        --surface-container-low: #1b1b1b;
        --surface-container: #1f1f1f;
        --surface-container-high: #2a2a2a;
        --on-surface: #e2e2e2;
        --on-surface-variant: #bac9cc;
        --primary: #c3f5ff;
        --primary-container: #00e5ff;
        --on-primary-fixed: #001f24;
        --secondary: #c5c0ff;
        --secondary-container: #3802e7;
        --error: #ffb4ab;
        --outline-variant: #3b494c;

        --glass-bg: rgba(31, 31, 31, 0.6);
        --glass-border: rgba(186, 201, 204, 0.1);
        --text-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 50%, var(--secondary) 100%);
    }
}

:root {
    /* Typography */
    --font-headline: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-label: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* Base Body Styles */
.bg-background {
    background-color: var(--background);
}

.bg-surface-container {
    background-color: var(--surface-container);
}

.bg-surface-container-low {
    background-color: var(--surface-container-low);
}

.bg-surface-container-high {
    background-color: var(--surface-container-high);
}

.bg-primary-container {
    background-color: var(--primary-container);
}

.bg-secondary-container {
    background-color: var(--secondary-container);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-error {
    background-color: var(--error);
}

.text-on-surface {
    color: var(--on-surface);
}

.text-on-surface-variant {
    color: var(--on-surface-variant);
}

.text-primary-container {
    color: var(--primary-container);
}

.text-on-primary-fixed {
    color: var(--on-primary-fixed);
}

.text-secondary {
    color: var(--secondary);
}

.font-body {
    font-family: var(--font-body);
}

.font-headline {
    font-family: var(--font-headline);
}

.font-label {
    font-family: var(--font-label);
}

.font-mono {
    font-family: var(--font-mono);
}

body {
    background-color: var(--background);
    color: var(--on-surface);
    font-family: var(--font-body);
    line-height: 1.5;
}

/* Gradients */
.text-gradient-cyan-purple {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
}

/* Utilities (Vanilla substitutions for Tailwind) */
.max-w-7xl {
    max-width: 80rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-xl {
    max-width: 36rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pt-24 {
    padding-top: 6rem;
}

.pb-24 {
    padding-bottom: 6rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-24 {
    margin-bottom: 6rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-24 {
    margin-top: 6rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.pointers-none {
    pointer-events: none;
}

.overflow-hidden {
    overflow: hidden;
}

/* Flex & Grid Systems */
.flex {
    display: flex;
}

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

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: 1fr;
}

.grid-2-cols-sm {
    display: grid;
    grid-template-columns: 1fr;
}

.grid-5-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

@media(min-width: 640px) {
    .flex-col.sm-flex-row {
        flex-direction: row;
    }

    .grid-2-cols-sm {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sm-px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media(min-width: 768px) {
    .hidden.md-block {
        display: block;
    }

    .hidden.md-flex {
        display: flex;
    }

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

    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-5-cols {
        grid-template-columns: repeat(5, 1fr);
    }

    .md-px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .md-text-5xl {
        font-size: 3rem;
    }

    .md-text-6xl {
        font-size: 3.75rem;
    }

    .md-text-7xl {
        font-size: 4.5rem;
    }

    .md-p-12 {
        padding: 3rem;
    }

    .md-flex-row {
        flex-direction: row;
    }
}

@media(min-width: 1024px) {
    .grid-3-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Typography specifics */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-medium {
    font-weight: 500;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.uppercase {
    text-transform: uppercase;
}

.leading-tight {
    line-height: 1.2;
}

.leading-relaxed {
    line-height: 1.625;
}

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

.block {
    display: block;
}

/* Components */
.brand-logo {
    width: auto;
    height: 3.5rem;
    object-fit: contain;
    background: transparent;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    overflow: visible !important;
}

/* Reusing previously created panels but matching new Glass Card style */
.glass-card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.glass-card:hover {
    background-color: var(--surface-container-high);
}

.border-ghost {
    border: 1px solid rgba(186, 201, 204, 0.3);
}

.border-y-ghost {
    border-top: 1px solid rgba(186, 201, 204, 0.1);
    border-bottom: 1px solid rgba(186, 201, 204, 0.1);
}

.border-b-ghost {
    border-bottom: 1px solid rgba(186, 201, 204, 0.3);
}

@media(min-width: 640px) {
    .border-x-ghost-md {
        border-left: 1px solid rgba(186, 201, 204, 0.1);
        border-right: 1px solid rgba(186, 201, 204, 0.1);
    }
}

.bg-line {
    height: 1px;
    background-color: rgba(186, 201, 204, 0.2);
}

/* Buttons & Interactions */
.btn-neon {
    border: none;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
}

.btn-neon:hover {
    transform: scale(0.96);
    filter: brightness(1.1);
}

.btn-ghost {
    background: transparent;
    color: var(--on-surface);
    border: 1px solid rgba(186, 201, 204, 0.5);
    transition: background-color 0.3s;
    cursor: pointer;
}

.btn-ghost:hover {
    background-color: var(--surface-container-high);
}

.shadow-lg-neon {
    box-shadow: 0 10px 25px -5px rgba(0, 229, 255, 0.2);
}

.shadow-neon-sm {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.nav-hover {
    transition: color 0.3s;
    text-decoration: none;
}

.hover-text-white:hover {
    color: #fff;
}

/* Blob Elements */
.blur-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.offset-orb {
    transform: translate(400px, 200px);
    filter: blur(100px);
}

/* Service Card Components */
.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
    /* Generic fallback */
}

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

.icon-bg-watermark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.05;
    transition: opacity 0.3s;
}

.group:hover .icon-bg-watermark {
    opacity: 0.15;
}

/* Tech Stack */
.tech-stack-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.5s;
}

.tech-stack-flex:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.tech-logo {
    height: 2rem;
}

@media(min-width: 768px) {
    .tech-logo {
        height: 2.5rem;
    }

    .tech-stack-flex {
        gap: 5rem;
    }
}

/* Differentiators & Timeline */
.img-opacity-60 {
    opacity: 0.6;
}

.absolute-card {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
}

.check-circle {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
    background-color: rgba(0, 229, 255, 0.2);
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(186, 201, 204, 0.3);
    transform: translateY(-50%);
    z-index: 0;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Cyber Terminal Interactions */
.terminal-prefix {
    opacity: 0.5;
}

.hover-border-primary {
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.hover-border-primary:hover {
    border-color: rgba(0, 229, 255, 0.3);
}

.hover-border-secondary {
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.hover-border-secondary:hover {
    border-color: rgba(197, 192, 255, 0.3);
}

/* Olimei Multi-page Footer Additions */
.border-t-ghost {
    border-top: 1px solid rgba(186, 201, 204, 0.2);
}

.hover-bg-subtle {
    transition: background-color 0.3s;
}

.hover-bg-subtle:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.hover-bg-light {
    transition: background-color 0.3s;
}

.hover-bg-light:hover {
    background-color: var(--surface-container-high);
}

.hover-scale-img {
    transition: transform 0.5s;
}

.hover-scale-img:hover {
    transform: scale(1.05);
}

.hover-text-primary {
    transition: color 0.2s;
}

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

.hover-text-secondary {
    transition: color 0.2s;
}

.hover-text-secondary:hover {
    color: var(--secondary);
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

@media(min-width: 768px) {
    .md\:grid-cols-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .md\:col-span-2 {
        grid-column: span 2;
    }

    .md-flex-row {
        flex-direction: row;
    }
}

@media(min-width: 1024px) {
    .lg\:gap-20 {
        gap: 5rem;
    }
}

/* Logo Dynamic Filters */
.tech-logo-img {
    filter: brightness(0) invert(0) opacity(0.8);
    /* Light Mode Default */
    transition: filter 0.3s;
}

@media (prefers-color-scheme: dark) {
    .tech-logo-img {
        filter: brightness(0) invert(1) opacity(0.8);
        /* Dark Mode */
    }
}

/* Responsive Overrides Mobile */
@media (max-width: 767px) {
    .absolute-card {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: -1.5rem;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        display: flex;
        justify-content: center;
        z-index: 10;
    }

    .flex-col-mobile {
        flex-direction: column !important;
        text-align: center !important;
    }

    .logo-margin-mobile {
        margin-right: 0px !important;
        margin-bottom: 2rem !important;
    }
}


/* More Responsive Utilities */
@media (max-width: 767px) {
    .md-block {
        display: none !important;
    }

    .md-flex {
        display: none !important;
    }

    .md-text-5xl {
        font-size: 2.5rem !important;
    }

    .md-text-7xl {
        font-size: 3rem !important;
    }

    .aspect-square {
        aspect-ratio: 16/9 !important;
    }
}

@media (min-width: 768px) {
    .md-aspect-auto {
        aspect-ratio: auto !important;
    }

    .md-h-80 {
        height: 20rem !important;
    }

    .md-p-6 {
        padding: 1.5rem !important;
    }

    .md-block {
        display: block !important;
    }

    .md-flex {
        display: flex !important;
    }
}


/* Missing Core Utilities */
.pt-32 {
    padding-top: 8rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.h-16 {
    height: 4rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}


/* Typography Mobile Overrides */
@media (max-width: 767px) {
    .text-5xl {
        font-size: 2.25rem !important;
    }

    .md-text-7xl {
        font-size: 2.75rem !important;
    }

    .leading-tight {
        line-height: 1.1 !important;
    }
}


/* Desktop Absolute Card Fix */
@media (min-width: 768px) {
    .absolute-card {
        position: absolute !important;
        bottom: -1.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        z-index: 20;
        margin: 0 !important;
    }
}


/* Hi-Tech Node Timeline */
.cyber-timeline {
    position: relative;
    padding-left: 4.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.cyber-timeline::before {
    content: "";
    position: absolute;
    left: 2.2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-container) 0%, var(--secondary) 100%);
    opacity: 0.4;
    box-shadow: 0 0 10px var(--primary-container);
}

.timeline-node {
    position: relative;
    background: var(--surface-container-low);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.timeline-node:hover {
    transform: translateX(10px);
    border-color: var(--primary-container);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.1);
}

.node-marker {
    position: absolute;
    left: -3.55rem;
    top: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--background);
    border: 2px solid var(--primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary-container);
    box-shadow: 0 0 15px var(--primary-container);
    z-index: 2;
}

@media (max-width: 767px) {
    .cyber-timeline {
        padding-left: 3.5rem;
        gap: 2rem;
    }

    .cyber-timeline::before {
        left: 1.5rem;
    }

    .node-marker {
        left: -3rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
        top: 1.5rem;
    }

    .timeline-node {
        padding: 1.5rem;
    }
}


/* ULTRA CACHE-BUST & CLIPPING-PROOF TIMELINE HOTFIX */
.cyber-timeline {
    padding-left: 1rem !important;
    margin-left: 2rem !important;
}

.cyber-timeline::before {
    left: 1rem !important;
}

.timeline-node {
    margin-left: 2.5rem !important;
}

.node-marker {
    left: -3rem !important;
}

@media (max-width: 767px) {
    .cyber-timeline {
        padding-left: 0.5rem !important;
        margin-left: 1.5rem !important;
    }

    .cyber-timeline::before {
        left: 0.5rem !important;
    }

    .timeline-node {
        margin-left: 2rem !important;
    }

    .node-marker {
        left: -2.5rem !important;
    }
}


/* PERFECT ALIGNMENT FIX */
.cyber-timeline::before {
    left: 1.75rem !important;
}

@media (max-width: 767px) {
    .cyber-timeline::before {
        left: 1rem !important;
    }
}


/* SIBLING NODE MARKER RE-ALIGNMENT */
.timeline-container {
    position: relative;
    width: 100%;
}

.node-marker {
    left: -0.5rem !important;
    /* No longer inside the node, so it sits relative to the container */
}

@media (max-width: 767px) {
    .node-marker {
        left: -0.5rem !important;
    }
}


/* ENHANCED SERVICE CARDS (Olimei-inspired) */
.glass-card-premium {
    position: relative;
    background: rgba(13, 17, 23, 0.7) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-card-premium::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card-premium:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.1);
}

.glow-icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 1rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.1);
}

.glow-icon-container .material-symbols-outlined {
    filter: drop-shadow(0 0 8px var(--primary-container));
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-container);
    opacity: 0.6;
    padding: 2px 8px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-image-v3 {
    position: relative;
    width: 100%;
    height: 240px;
    margin-top: auto;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-image-v3::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 17, 23, 0.9) 0%, transparent 60%);
}

.hover-reveal-img {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-card-premium:hover .hover-reveal-img {
    transform: scale(1.05);
}

.cyber-bullet {
    width: 6px;
    height: 6px;
    background: var(--primary-container);
    border-radius: 1px;
    transform: rotate(45deg);
    box-shadow: 0 0 8px var(--primary-container);
}

/* DevSecOps Code Block Styling */
.code-window {
    background: #090c10 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    position: relative;
    padding-top: 2.5rem !important;
}

.code-window::before {
    content: "● ● ●";
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 4px;
}

/* CORPORATE FORMS AESTHETICS */
.form-cyber-container .cyber-input,
.form-cyber-container .cyber-select,
.form-cyber-container textarea {
    width: 100%;
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    color: var(--on-surface);
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-cyber-container .cyber-input:focus,
.form-cyber-container .cyber-select:focus,
.form-cyber-container textarea:focus {
    outline: none;
    border-color: var(--primary-container);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
}

.form-cyber-container .cyber-input::placeholder,
.form-cyber-container textarea::placeholder {
    color: var(--on-surface-variant);
    opacity: 0.6;
}

.form-cyber-container .cyber-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    cursor: pointer;
}

.form-cyber-container .cyber-select option {
    background: var(--surface);
    color: var(--on-surface);
    padding: 10px;
}

/* BUTTON CORPORATE */
.form-cyber-container .btn-neon-block {
    width: 100%;
    background: var(--primary-container);
    border: none;
    color: var(--on-primary-fixed);
    padding: 1.2rem;
    font-family: var(--font-label);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-cyber-container .btn-neon-block:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Layout grids */
.form-cyber-container .grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-cyber-container .grid-2-cols {
        grid-template-columns: 1fr 1fr;
    }
}

.form-cyber-container .space-y-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Custom layout utilities for cards */
@media (min-width: 768px) {
    .md-flex-row {
        flex-direction: row !important;
    }

    .md-flex-row-reverse {
        flex-direction: row-reverse !important;
    }

    .md-w-1-2 {
        width: 50% !important;
    }
}

/* Navigation Dropdowns */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface-container-low);
    border: 1px solid var(--ghost);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 100;
    pointer-events: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-dropdown-wrapper:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--on-surface-variant);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-dropdown a:hover {
    color: var(--primary-container);
    background: rgba(0, 229, 255, 0.05);
    padding-left: 1.75rem;
}

/* CORPORATE FORMS AESTHETICS */
.form-cyber-container .cyber-input, 
.form-cyber-container .cyber-select,
.form-cyber-container textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ghost, rgba(255,255,255,0.1));
    color: var(--on-surface, #f8fafc);
    padding: 0.75rem 0;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-cyber-container .cyber-input:focus,
.form-cyber-container .cyber-select:focus,
.form-cyber-container textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-container, #a5f3fc);
    box-shadow: 0 1px 0 var(--primary-container, #a5f3fc);
}

.form-cyber-container .cyber-select {
    color: var(--on-surface-variant, #94a3b8);
    cursor: pointer;
    background-color: var(--surface-container-low, #1e293b);
}

.form-cyber-container .cyber-select option {
    background-color: var(--surface-container-low, #1e293b);
    color: var(--on-surface, #f8fafc);
}

@media (min-width: 768px) { .md-hidden { display: none !important; } }

/* Essential Missing Utilities */
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
@media (min-width: 768px) { .md-text-left { text-align: left !important; } .md-text-center { text-align: center !important; } }

/* Responsive Fixes for Small Screens */
@media (max-width: 480px) { .text-5xl { font-size: 1.8rem !important; } .text-xl { font-size: 1rem !important; } .nav-container { padding-left: 0.5rem !important; padding-right: 0.5rem !important; } .nav-container .flex-wrap { gap: 0.5rem !important; justify-content: space-evenly !important; font-size: 0.85rem !important; } .nav-container a { padding: 0.2rem !important; } }
.word-break-fix { word-break: break-word; overflow-wrap: break-word; }

@media (max-width: 768px) { .pt-32 { padding-top: 16rem !important; } }

/* Modern Pill Button */
.btn-modern { background: linear-gradient(135deg, #a5f3fc 0%, #22d3ee 100%); color: #083344 !important; border-radius: 9999px; padding: 12px 32px; font-size: 16px; font-family: var(--font-headline, sans-serif); font-weight: 700; border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 14px 0 rgba(34, 211, 238, 0.39); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; margin: 10px; }
.btn-modern:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 20px rgba(34, 211, 238, 0.5); }
.btn-modern:active { transform: translateY(0) scale(0.98); box-shadow: 0 2px 8px rgba(34, 211, 238, 0.3); }
.w-cf { width: 300px; max-width: 100%; }
