/* === FONTS (lokal, kein Google CDN) === */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }
body { font-family: 'Inter', sans-serif; line-height: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: transparent; font: inherit; color: inherit; }
a { color: inherit; text-decoration: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
p { margin: 0; }
::selection { background-color: #10b981; color: #fff; }

/* === CUSTOM CLASSES === */
.bg-tech-dark { background-color: #0B0F19; }
.bg-tech-card { background-color: #111827; }
.text-neon-green { color: #10B981; }

.modal-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.modal-scroll::-webkit-scrollbar-track { background: #0B0F19; border-radius: 4px; }
.modal-scroll::-webkit-scrollbar-thumb { background: #10B981; border-radius: 4px; }

.thumb-container { position: relative; overflow: hidden; cursor: pointer; border-radius: 0.5rem; }
.thumb-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.thumb-container:hover img { transform: scale(1.05); }

#large-image-modal .modal-content { transition: opacity 0.3s ease, transform 0.3s ease; opacity: 0; transform: scale(0.95); }
#large-image-modal:not(.hidden) .modal-content { opacity: 1; transform: scale(1); }

/* === TAILWIND UTILITIES === */

/* Layout */
.container { width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-4 { top: 1rem; }
.top-6 { top: 1.5rem; }
.top-1\/2 { top: 50%; }
.right-2 { right: 0.5rem; }
.right-5 { right: 1.25rem; }
.right-6 { right: 1.5rem; }
.left-2 { left: 0.5rem; }
.z-\[100\] { z-index: 100; }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Display & Flex */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.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; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Spacing */
.mx-auto { margin-left: auto; margin-right: 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-16 { margin-bottom: 4rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-16 { margin-top: 4rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.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-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pb-2 { padding-bottom: 0.5rem; }
.space-x-6 > :not(:first-child) { margin-left: 1.5rem; }
.space-y-4 > :not(:first-child) { margin-top: 1rem; }
.space-y-6 > :not(:first-child) { margin-top: 1.5rem; }
.space-y-24 > :not(:first-child) { margin-top: 6rem; }

/* Sizing */
.w-10 { width: 2.5rem; }
.w-40 { width: 10rem; }
.w-full { width: 100%; }
.h-2 { height: 0.5rem; }
.h-10 { height: 2.5rem; }
.h-40 { height: 10rem; }
.h-full { height: 100%; }
.max-w-full { max-width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-h-\[85vh\] { max-height: 85vh; }
.aspect-video { aspect-ratio: 16 / 9; }

/* Typography */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.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; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Colors */
.text-white { color: #fff; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-emerald-400 { color: #34d399; }
.text-emerald-500 { color: #10b981; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }

.bg-black { background-color: #000; }
.bg-black\/95 { background-color: rgb(0 0 0 / 0.95); }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-900 { background-color: #064e3b; }
.bg-gray-800 { background-color: #1f2937; }
.bg-\[\#05080f\] { background-color: #05080f; }
.bg-\[\#0f1422\] { background-color: #0f1422; }
.bg-opacity-30 { --tw-bg-opacity: 0.3; }
.bg-opacity-80 { --tw-bg-opacity: 0.8; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; }
.border-gray-800 { border-color: #1f2937; }
.border-emerald-500 { border-color: #10b981; }
.border-emerald-500\/30 { border-color: rgb(16 185 129 / 0.3); }
.border-emerald-800 { border-color: #065f46; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-emerald-500\/30 { --tw-shadow-color: rgb(16 185 129 / 0.3); box-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); }

/* Gradient */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-tech-dark { --tw-gradient-from: #0B0F19; --tw-gradient-to: rgb(11 15 25 / 0); }
.to-\[\#05080f\] { --tw-gradient-to: #05080f; }

/* Effects */
.opacity-70 { opacity: 0.7; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.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-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Scroll */
.scroll-smooth { scroll-behavior: smooth; }

/* Selection */
.selection\:bg-emerald-500 ::selection, .selection\:bg-emerald-500::selection { background-color: #10b981; }
.selection\:text-white ::selection, .selection\:text-white::selection { color: #fff; }

/* Hover states */
.hover\:bg-emerald-500:hover { background-color: #10b981; }
.hover\:bg-emerald-600:hover { background-color: #059669; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-emerald-400:hover { color: #34d399; }
.hover\:text-emerald-500:hover { color: #10b981; }

/* bg-opacity fix: apply opacity to bg-color elements that use it */
.bg-emerald-900.bg-opacity-30 { background-color: rgb(6 78 59 / 0.3); }
.bg-black.bg-opacity-80 { background-color: rgb(0 0 0 / 0.8); }

/* === RESPONSIVE: SM (640px+) === */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

/* === RESPONSIVE: MD (768px+) === */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:text-left { text-align: left; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:w-1\/4 { width: 25%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:w-3\/4 { width: 75%; }
    .md\:p-12 { padding: 3rem; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:left-6 { left: 1.5rem; }
    .md\:right-6 { right: 1.5rem; }
}
