/* ==========================================================================
   AM Automatics - Production Stylesheet
   Replaces runtime Tailwind Play CDN compiler with production-ready CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Preflight
   -------------------------------------------------------------------------- */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    line-height: inherit;
    background-color: #111316;
    color: #e2e2e6;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

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

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

button {
    cursor: pointer;
}

img, svg {
    display: block;
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background-color: #1151a3;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Design Tokens & Typography
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #acc7ff;
    --color-primary-container: #1151a3;
    --color-background: #111316;
    --color-surface: #111316;
    --color-surface-container-high: #282a2d;
    --color-surface-container-highest: #333538;
    --color-surface-container-low: #1a1c1f;
    --color-surface-container-lowest: #0c0e11;
    --color-surface-variant: #333538;
    --color-on-surface: #e2e2e6;
    --color-on-surface-variant: #c3c6d3;
    --color-on-background: #e2e2e6;
    --color-tertiary: #4ae183;
}

/* Typography styles */
.font-display-lg, .text-display-lg {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 64px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}
@media (max-width: 768px) {
    .font-display-lg, .text-display-lg {
        font-size: 38px;
        line-height: 1.15;
    }
}

.font-headline-lg, .text-headline-lg {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 48px;
    line-height: 1.2;
    font-weight: 600;
}
@media (max-width: 768px) {
    .font-headline-lg, .text-headline-lg {
        font-size: 30px;
    }
}

.font-headline-md, .text-headline-md {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
}
@media (max-width: 768px) {
    .font-headline-md, .text-headline-md {
        font-size: 24px;
    }
}

.font-headline-sm, .text-headline-sm {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
}

.font-body-lg, .text-body-lg {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
}

.font-body-md, .text-body-md {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.font-label-md, .text-label-md {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.font-label-sm, .text-label-sm {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. Layout & Structure Utilities
   -------------------------------------------------------------------------- */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

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

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }

.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-20 { top: 5rem; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }

.overflow-hidden { overflow: hidden; }

/* --------------------------------------------------------------------------
   4. Sizing Utilities
   -------------------------------------------------------------------------- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1\.5 { width: 0.375rem; }
.w-4 { width: 1rem; }
.w-32 { width: 8rem; }
.w-\[160px\] { width: 160px; }
.min-w-0 { min-width: 0px; }
.min-w-fit { min-width: fit-content; }

.max-w-container-max { max-width: 1280px; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-1\.5 { height: 0.375rem; }
.h-4 { height: 1rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.h-\[300px\] { height: 300px; }
.min-h-\[80vh\] { min-height: 80vh; }

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

/* --------------------------------------------------------------------------
   5. Spacing Utilities (Margins, Paddings, Gaps)
   -------------------------------------------------------------------------- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-6 { margin-right: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-auto { margin-top: auto; }

.mb-1 { margin-bottom: 0.25rem; }
.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; }

.p-2 { padding: 0.5rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-margin-mobile { padding-left: 16px; padding-right: 16px; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-gutter { padding-top: 24px; padding-bottom: 24px; }
.py-section-gap { padding-top: 120px; padding-bottom: 120px; }

.pt-3 { padding-top: 0.75rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-20 { padding-top: 5rem; }
.pb-1 { padding-bottom: 0.25rem; }

.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-gutter { gap: 24px; }

.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   6. Colors, Backgrounds, Borders & Typography Modifiers
   -------------------------------------------------------------------------- */
.bg-background { background-color: #111316; }
.bg-surface { background-color: #111316; }
.bg-surface\/90 { background-color: rgba(17, 19, 22, 0.9); }
.bg-surface-container-high { background-color: #282a2d; }
.bg-surface-container-highest { background-color: #333538; }
.bg-surface-container-low { background-color: #1a1c1f; }
.bg-surface-container-low\/50 { background-color: rgba(26, 28, 31, 0.5); }
.bg-surface-container-low\/60 { background-color: rgba(26, 28, 31, 0.6); }
.bg-surface-container-low\/70 { background-color: rgba(26, 28, 31, 0.7); }
.bg-surface-container-lowest { background-color: #0c0e11; }
.bg-primary { background-color: #acc7ff; }
.bg-primary-container { background-color: #1151a3; }
.bg-primary\/10 { background-color: rgba(172, 199, 255, 0.1); }
.bg-transparent { background-color: transparent; }

.text-primary { color: #acc7ff; }
.text-white { color: #ffffff; }
.text-on-surface { color: #e2e2e6; }
.text-on-surface-variant { color: #c3c6d3; }
.text-on-background { color: #e2e2e6; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-\[11px\] { font-size: 11px; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tighter { letter-spacing: -0.05em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-all { word-break: break-all; }

.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-l-2 { border-left-width: 2px; }
.border-r-2 { border-right-width: 2px; }
.border-t-2 { border-top-width: 2px; }

.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-transparent { border-color: transparent; }
.border-primary { border-color: #acc7ff; }

.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-full { border-radius: 9999px; }
.rounded-bl-full { border-bottom-left-radius: 9999px; }

.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.grayscale-\[20\%\] { filter: grayscale(20%); -webkit-filter: grayscale(20%); }

/* --------------------------------------------------------------------------
   7. Transitions, Transforms & Hover States
   -------------------------------------------------------------------------- */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.origin-left { transform-origin: left; }
.origin-center { transform-origin: center; }

.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:text-primary:hover { color: #acc7ff; }
.hover\:text-tertiary:hover { color: #4ae183; }
.hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05); }
.hover\:bg-primary\/10:hover { background-color: rgba(172, 199, 255, 0.1); }
.hover\:bg-surface-container-low:hover { background-color: #1a1c1f; }
.hover\:border-primary\/50:hover { border-color: rgba(172, 199, 255, 0.5); }
.hover\:grayscale-0:hover { filter: grayscale(0%); -webkit-filter: grayscale(0%); }
.hover\:shadow-\[-4px_4px_15px_-3px_rgba\(17\,81\,163\,0\.3\)\]:hover { box-shadow: -4px 4px 15px -3px rgba(17, 81, 163, 0.3); }

.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:bg-primary\/20 { background-color: rgba(172, 199, 255, 0.2); }
.group:hover .group-hover\:text-primary { color: #acc7ff; }

/* Active Nav Links */
.nav-link[data-active="true"] {
    color: #acc7ff;
    font-weight: 700;
    border-bottom-color: #acc7ff;
}

/* --------------------------------------------------------------------------
   8. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
    .sm\:flex { display: flex; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-baseline { align-items: baseline; }
    .sm\:gap-3 { gap: 0.75rem; }
    .sm\:w-20 { width: 5rem; }
}

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:w-1\/2 { width: 50%; }
    .md\:h-\[500px\] { height: 500px; }
    .md\:mt-0 { margin-top: 0; }
    .md\:p-8 { padding: 2rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:px-margin-desktop { padding-left: 64px; padding-right: 64px; }
    .md\:text-left { text-align: left; }
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}

@media (max-width: 767px) {
    .py-section-gap { padding-top: 60px; padding-bottom: 60px; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:px-margin-desktop { padding-left: 64px; padding-right: 64px; }
}

/* --------------------------------------------------------------------------
   9. Custom Project Components & Effects
   -------------------------------------------------------------------------- */
.tech-grid-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 16v8M16 20h8' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.1' fill='none'/%3E%3C/svg%3E");
}

.tech-border {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-border-primary {
    border: 1px solid rgba(17, 81, 163, 0.5);
}

.glow-hover:hover {
    box-shadow: -4px 4px 15px -3px rgba(17, 81, 163, 0.3);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.menu-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
