/* ==========================================================================
   ENIAC Systems – Pure CSS Port of the Archive React/Tailwind Design
   NO Bootstrap. Faithful pixel-level replica.
   ========================================================================== */

/* 0. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; background-color: #000814; color: #fff; min-height: 100vh; overflow-x: hidden; }
#eniac-stardust { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1a2a44; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #00f0ff; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* TOKENS */
:root {
  --cyan: #00f0ff; --purple: #8B00FF; --gold: #FFD700;
  --red: #FF2200; --dark: #000814; --dark2: #151518; --dark3: #1a1a1f;
}

/* HELPERS */
.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.text-cyan   { color: var(--cyan) !important; }
.text-purple { color: var(--purple) !important; }
.text-gold   { color: var(--gold) !important; }
.text-red    { color: var(--red) !important; }

/* SCROLL PROGRESS */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--gold));
  z-index: 200; transform-origin: left center; transform: scaleX(0); pointer-events: none;
}

/* NAVBAR */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all 0.5s; padding: 1.5rem 0; }
.site-nav.scrolled { background: rgba(0,8,20,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.nav-brand-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.05em; color: #fff; }
.nav-brand-text .accent { color: var(--cyan); }
.nav-links { display: none; align-items: center; gap: 2rem; }
@media(min-width:768px) { .nav-links { display: flex; } }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: #9ca3af; transition: color 0.2s; }
.nav-links a:hover { color: var(--cyan); }
.nav-toggle { display: flex; align-items: center; background: none; border: none; color: #fff; padding: 0.5rem; }
@media(min-width:768px) { .nav-toggle { display: none; } }
.mobile-menu { display: none; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--dark); border-top: 1px solid rgba(255,255,255,0.1); position: absolute; top: 100%; left: 0; right: 0; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.125rem; font-weight: 500; color: #9ca3af; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--cyan); }
.mobile-link { font-size: 1.125rem; font-weight: 500; color: #9ca3af; transition: color 0.2s; }
.mobile-link:hover { color: var(--cyan); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1.75rem; border-radius: 9999px; font-family: 'JetBrains Mono','Courier New',monospace; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; transition: all 0.3s; border: none; white-space: nowrap; }
.btn:active { transform: scale(0.95); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: rgba(139,0,255,0.8); box-shadow: 0 0 15px rgba(139,0,255,0.4); color: #fff; }
.btn-outline-cyan { border: 1px solid var(--cyan); color: var(--cyan); background: transparent; }
.btn-outline-cyan:hover { background: rgba(0,240,255,0.1); color: #fff; }
.btn-red { background: var(--red); color: #fff; width: 100%; padding: 0.875rem; border-radius: 0.5rem; font-family: 'JetBrains Mono',monospace; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; border: none; }
.btn-red:hover { background: rgba(255,34,0,0.8); box-shadow: 0 0 20px rgba(255,34,0,0.4); color: #fff; }
.btn-lg { padding: 0.875rem 2.25rem; font-size: 0.8125rem; }

/* GLASS CARD */
.glass-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; transition: all 0.3s; }
.glass-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(0,240,255,0.3); box-shadow: 0 0 20px rgba(0,240,255,0.1); }

/* LAYOUT */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; }

/* HERO */
.hero { position: relative; width: 100%; height: 100vh; min-height: 600px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
#hero-galaxy-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-hud { position: absolute; top: 7rem; left: 4rem; z-index: 10; pointer-events: none; opacity: 0.4; display: none; }
@media(min-width:768px) { .hero-hud { display: block; } }
.hero-hud div { font-family: 'JetBrains Mono',monospace; font-size: 0.625rem; letter-spacing: 0.2em; line-height: 2; color: var(--cyan); }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 0 1.5rem; transform: translateY(8rem); width: 100%; }
.hero-title { font-size: clamp(3rem,10vw,7rem); font-weight: 800; letter-spacing: -0.05em; color: #fff; margin-bottom: 1.5rem; text-shadow: 0 0 30px rgba(255,255,255,0.2); transition: opacity 0.6s, transform 0.6s, filter 0.6s; }
.hero-title.fade-out { opacity: 0; transform: translateY(10px); filter: blur(6px); }
.hero-subtitle { font-family: 'JetBrains Mono',monospace; font-size: clamp(0.625rem,2vw,1rem); letter-spacing: 0.35em; text-transform: uppercase; color: var(--cyan); opacity: 0.8; margin-bottom: 2.5rem; transition: opacity 0.5s, transform 0.5s; }
.hero-subtitle.fade-out { opacity: 0; transform: scale(0.95); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.scroll-indicator span { color: rgba(255,255,255,0.3); font-family: 'JetBrains Mono',monospace; font-size: 0.5625rem; letter-spacing: 0.3em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 3rem; background: linear-gradient(to bottom,var(--cyan),transparent); animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100% { transform: scaleY(1); transform-origin: top; opacity:1; } 50% { transform: scaleY(0.4); transform-origin: top; opacity:0.5; } }

/* SECTION HEADINGS */
.section-eyebrow { font-family: 'JetBrains Mono',monospace; font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.section-title { font-size: clamp(2rem,5vw,3.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 1rem; }
.section-subtitle { color: #9ca3af; font-size: 1.0625rem; line-height: 1.6; max-width: 42rem; }
.heading-center { text-align: center; margin-bottom: 5rem; }
.heading-center .section-subtitle { margin: 0 auto; }

/* SOLUTIONS GRID */
.solutions-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width:640px) { .solutions-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .solutions-grid { grid-template-columns: repeat(4,1fr); } }
.sol-card { background: var(--dark2); border: 1px solid rgba(255,255,255,0.05); border-radius: 1.5rem; padding: 2rem; display: flex; flex-direction: column; transition: background 0.3s; }
.sol-card:hover { background: var(--dark3); }
.sol-icon-wrap { width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; border: 1px solid #333; background: var(--dark3); margin-bottom: 1.5rem; transition: transform 0.3s; flex-shrink: 0; }
.sol-card:hover .sol-icon-wrap { transform: scale(1.1); }
.sol-icon-wrap svg { width: 1.5rem; height: 1.5rem; }
.icon-orange { color: #f97316; } .icon-emerald { color: #10b981; } .icon-purple { color: #a855f7; }
.icon-cyan { color: #06b6d4; } .icon-yellow { color: #eab308; } .icon-green { color: #22c55e; } .icon-indigo { color: #818cf8; }
.sol-tag { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; border-width: 1px; border-style: solid; background: rgba(0,0,0,0.2); margin-bottom: 1rem; width: fit-content; }
.tag-orange { color: #f97316; border-color: rgba(249,115,22,0.3); } .tag-emerald { color: #10b981; border-color: rgba(16,185,129,0.3); }
.tag-purple  { color: #a855f7; border-color: rgba(168,85,247,0.3); } .tag-cyan    { color: #06b6d4; border-color: rgba(6,182,212,0.3); }
.tag-yellow  { color: #eab308; border-color: rgba(234,179,8,0.3); }  .tag-green   { color: #22c55e; border-color: rgba(34,197,94,0.3); }
.tag-indigo  { color: #818cf8; border-color: rgba(129,140,248,0.3); }
.sol-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: #fff; }
.sol-desc { color: #888; font-size: 0.875rem; line-height: 1.65; flex-grow: 1; margin-bottom: 2rem; }
.sol-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: #fff; transition: color 0.2s; margin-top: auto; }
.sol-link:hover { color: var(--cyan); }
.sol-link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.sol-link:hover svg { transform: translateX(4px); }

/* ABOUT */
.about-blob { position: absolute; top: 50%; left: -10rem; transform: translateY(-50%); width: 500px; height: 500px; background: rgba(139,0,255,0.1); border-radius: 50%; filter: blur(120px); pointer-events: none; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media(min-width:768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-title { font-size: clamp(2rem,4vw,3rem); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 2rem; }
.about-text { color: #d1d5db; line-height: 1.7; font-size: 0.9375rem; margin-bottom: 1.25rem; }
.about-bullets { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.875rem; }
.about-bullets li { display: flex; align-items: center; gap: 0.875rem; font-size: 0.875rem; font-weight: 500; color: #fff; }
.bullet-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { padding: 2rem; text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; line-height: 1; }
.stat-label { font-family: 'JetBrains Mono',monospace; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--cyan); }
.max-avail-card { grid-column: 1/-1; padding: 2rem; background: linear-gradient(135deg,rgba(139,0,255,0.2),transparent) !important; border-color: rgba(139,0,255,0.3) !important; margin-top: 0.25rem; }
.max-avail-card h4 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.max-avail-card p { font-size: 0.75rem; color: #9ca3af; line-height: 1.6; }

/* TECH STACK */
.tech-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width:640px) { .tech-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .tech-grid { grid-template-columns: repeat(4,1fr); } }
.tech-category-title { font-family: 'JetBrains Mono',monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--gold); border-bottom: 1px solid rgba(255,215,0,0.2); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.tech-items { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.75rem; }
.tech-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem; transition: all 0.2s; border-radius: 0.75rem; }
.tech-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(255,215,0,0.3); flex-shrink: 0; transition: background 0.2s; }
.tech-item:hover .tech-dot { background: var(--gold); }
.tech-item span { font-size: 0.75rem; font-weight: 500; color: #d1d5db; transition: color 0.2s; }
.tech-item:hover span { color: #fff; }

/* CLIENTS */
.testimonial-wrap { max-width: 56rem; margin: 0 auto; }
.testimonial-card { padding: 2.5rem 4rem; text-align: center; border-color: rgba(139,0,255,0.2) !important; min-height: 18rem; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.35s, transform 0.35s; }
@media(max-width:640px) { .testimonial-card { padding: 2rem 1.5rem; } }
.testimonial-card.fade-out { opacity: 0; transform: translateX(30px); }
.t-stars { color: var(--gold); font-size: 1.25rem; letter-spacing: 0.25rem; margin-bottom: 1.5rem; }
.t-quote { font-size: clamp(1rem,2.5vw,1.375rem); color: #e5e7eb; font-style: italic; line-height: 1.65; margin-bottom: 2rem; }
.t-name { font-weight: 700; font-size: 1.125rem; color: #fff; margin-bottom: 0.375rem; }
.t-role { font-family: 'JetBrains Mono',monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--cyan); }
.t-dots { display: flex; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.t-dot { height: 0.5rem; border-radius: 9999px; background: rgba(255,255,255,0.2); border: none; cursor: pointer; transition: all 0.3s; width: 0.5rem; }
.t-dot.active { background: var(--cyan); width: 2rem; }

/* CASES */
.cases-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 4rem; }
.cases-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width:768px) { .cases-grid { grid-template-columns: repeat(2,1fr); } }
.case-card { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 16/9; background: #111; }
.case-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: transform 0.7s, opacity 0.4s; }
.case-card:hover img { transform: scale(1.08); opacity: 0.8; }
.case-overlay { position: absolute; inset: 0; background: linear-gradient(to top,#000814 0%,rgba(0,8,20,0.45) 50%,transparent 100%); padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; }
.case-cat { font-family: 'JetBrains Mono',monospace; font-size: 0.625rem; text-transform: uppercase; color: var(--cyan); letter-spacing: 0.15em; margin-bottom: 0.5rem; }
.case-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.case-desc { color: #9ca3af; font-size: 0.875rem; line-height: 1.5; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-metric { font-size: 1.25rem; font-weight: 700; color: var(--gold); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media(min-width:768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-title { font-size: clamp(2rem,4vw,3rem); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 2rem; line-height: 1.2; }
.contact-lead { color: #9ca3af; font-size: 1.0625rem; line-height: 1.6; margin-bottom: 3rem; }
.contact-info-item { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.contact-icon { width: 3rem; height: 3rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.375rem; border-radius: 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); transition: background 0.2s; }
.contact-icon-label { font-family: 'JetBrains Mono',monospace; font-size: 0.625rem; text-transform: uppercase; color: #6b7280; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.contact-icon-value { font-size: 1rem; font-weight: 500; color: #fff; }
.form-label { display: block; font-family: 'JetBrains Mono',monospace; font-size: 0.625rem; text-transform: uppercase; color: #9ca3af; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.form-input { width: 100%; background: rgba(0,8,20,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; padding: 0.875rem 1rem; color: #fff; font-size: 0.9375rem; transition: border-color 0.2s; margin-bottom: 1.5rem; }
.form-input:focus { outline: none; border-color: var(--red); }
.form-input::placeholder { color: #4b5563; }

/* FOOTER */
.site-footer { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.footer-brand-text { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.05em; color: #fff; }
.footer-brand-text .accent { color: var(--cyan); }
.footer-desc { color: #6b7280; font-size: 0.875rem; max-width: 28rem; margin: 0 auto 3rem; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-bottom: 3rem; }
.footer-links a { font-size: 0.875rem; font-weight: 500; color: #9ca3af; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-family: 'JetBrains Mono',monospace; font-size: 0.625rem; color: #374151; text-transform: uppercase; letter-spacing: 0.4em; }

/* LOGO */
.logo-svg { width: 2.5rem; height: 2.5rem; filter: drop-shadow(0 0 12px rgba(0,240,255,0.4)); flex-shrink: 0; }
.logo-svg-sm { width: 2rem; height: 2rem; filter: drop-shadow(0 0 8px rgba(0,240,255,0.3)); flex-shrink: 0; }
.logo-ring { animation: spinRing 20s linear infinite; transform-origin: 50px 50px; }
@keyframes spinRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* FADE-UP ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; } .delay-5 { transition-delay: 0.5s; } .delay-6 { transition-delay: 0.6s; }
