/* =============================================================================
   Code Omnific — Design System Stylesheet
   Loads after: normalize.css, webflow.css, codeomnific.webflow.css
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. CSS Custom Properties
   ----------------------------------------------------------------------------- */
:root {
  --color-bg: #0a0a0f;
  --color-surface: rgba(99, 102, 241, 0.04);
  --color-surface-hover: rgba(99, 102, 241, 0.08);
  --color-border: rgba(99, 102, 241, 0.1);
  --color-border-hover: rgba(99, 102, 241, 0.2);
  --color-border-solid: #1e1b4b;
  --color-accent: #6366f1;
  --color-accent-light: #a78bfa;
  --color-accent-ghost: rgba(99, 102, 241, 0.3);
  --color-text: #ffffff;
  --color-text-body: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-accent: #c7d2fe;
  --color-glow: rgba(99, 102, 241, 0.06);
  --color-glow-ambient: rgba(99, 102, 241, 0.15);
  --color-destructive: #ef4444;
  --font-heading: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -----------------------------------------------------------------------------
   2. Base Resets (override Webflow)
   ----------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg) !important;
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* -----------------------------------------------------------------------------
   3. Typography
   ----------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  color: var(--color-text);
}

h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 12px;
}

h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

h5 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 16px;
  color: var(--color-text-body);
}

.label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -----------------------------------------------------------------------------
   4. Layout
   ----------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* -----------------------------------------------------------------------------
   5. Glass Surfaces
   ----------------------------------------------------------------------------- */
.glass {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 300ms ease,
              border-color 300ms ease,
              box-shadow 300ms ease,
              transform 300ms ease;
}

.glass:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 32px var(--color-glow);
}

.glass-lift:hover {
  transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
   6. Buttons
   ----------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #5558e6;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--color-accent-ghost);
  color: var(--color-text-accent);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.5);
}

/* -----------------------------------------------------------------------------
   7. Focus States
   ----------------------------------------------------------------------------- */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* -----------------------------------------------------------------------------
   8. Header
   ----------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-logo img,
.header-logo svg {
  height: 30px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--color-text);
  transition: color 200ms ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-accent);
}

.header-nav a.active {
  position: relative;
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
}

/* -----------------------------------------------------------------------------
   9. Hero
   ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--color-glow-ambient), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-body);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
}

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

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   10. Service Cards
   ----------------------------------------------------------------------------- */
.service-card {
  padding: 32px;
}

.service-card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  margin: 0;
  color: var(--color-text-body);
}

/* -----------------------------------------------------------------------------
   11. Portfolio Cards (Homepage)
   ----------------------------------------------------------------------------- */
.portfolio-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 300ms var(--ease-out-expo),
              box-shadow 300ms var(--ease-out-expo);
  text-decoration: none;
  color: inherit;
}

.portfolio-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 32px var(--color-glow);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter 300ms ease;
}

.portfolio-card:hover img {
  filter: brightness(1.1);
}

.portfolio-card-content {
  padding: 24px;
}

.portfolio-card-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.portfolio-card-summary {
  font-size: 15px;
  color: var(--color-text-body);
  margin-bottom: 16px;
}

.portfolio-tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  color: var(--color-text-accent);
  margin-right: 6px;
  margin-bottom: 6px;
}

/* -----------------------------------------------------------------------------
   12. CTA Section
   ----------------------------------------------------------------------------- */
.cta-section {
  position: relative;
}

.cta-glass {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, var(--color-glow-ambient), transparent 70%);
  pointer-events: none;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--color-text);
}

.cta-arrow {
  font-size: 28px;
  transition: transform 300ms var(--ease-out-expo);
  color: var(--color-accent);
}

.cta-link:hover .cta-arrow {
  transform: translateX(8px);
}

/* -----------------------------------------------------------------------------
   13. Portfolio Page — Project Entries
   ----------------------------------------------------------------------------- */
.project {
  margin-bottom: 80px;
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
}

.project-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-title {
  font-size: 36px;
  margin: 0;
}

.project-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 4px 0 0;
}

.project-hero-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 40px;
}

.project-details {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.project-description p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-body);
}

.project-meta {
  padding: 24px;
}

.meta-item {
  margin-bottom: 16px;
}

.meta-item:last-child {
  margin-bottom: 0;
}

.meta-label {
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 15px;
  color: var(--color-text-body);
}

.meta-value a {
  color: var(--color-accent);
  transition: color 200ms ease;
}

.meta-value a:hover {
  text-decoration: underline;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-gallery img {
  width: 100%;
  border-radius: 12px;
  transition: transform 300ms ease;
}

.project-gallery img:hover {
  transform: scale(1.02);
}

.project-gallery img:only-child {
  grid-column: span 2;
}

.project-divider {
  height: 1px;
  background: var(--color-border-solid);
  margin: 80px 0;
}

/* -----------------------------------------------------------------------------
   14. Contact Page
   ----------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  padding: 24px;
  margin-bottom: 16px;
}

.contact-info-label {
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 16px;
  color: var(--color-text);
}

.contact-info-value a {
  color: var(--color-accent);
  transition: color 200ms ease;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

.contact-form-container {
  padding: 40px;
}

/* -----------------------------------------------------------------------------
   15. Form Styling
   ----------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-solid);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-bottom-color 200ms ease, box-shadow 200ms ease;
  outline: none;
}

.form-input:focus {
  border-bottom-color: var(--color-accent);
  box-shadow: 0 1px 0 0 var(--color-accent);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-solid);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-bottom-color 200ms ease, box-shadow 200ms ease;
  outline: none;
  min-height: 120px;
  resize: vertical;
}

.form-textarea:focus {
  border-bottom-color: var(--color-accent);
  box-shadow: 0 1px 0 0 var(--color-accent);
}

.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease;
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

.form-submit:hover {
  background: #5558e6;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.form-success {
  padding: 20px;
  text-align: center;
  color: var(--color-text);
  margin-top: 20px;
  background: var(--color-surface);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
}

.form-error {
  padding: 20px;
  text-align: center;
  color: var(--color-destructive);
  margin-top: 20px;
  background: var(--color-surface);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
}

/* -----------------------------------------------------------------------------
   16. Footer
   ----------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border-solid);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo-img {
  height: 24px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list a {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-text-body);
  transition: color 200ms ease;
}

.footer-nav-list a:hover {
  color: var(--color-accent);
}

.footer-copyright {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--color-border-solid);
}

/* -----------------------------------------------------------------------------
   17. Scroll Animations
   ----------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out-expo),
              transform 600ms var(--ease-out-expo);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 80ms; }
.stagger-2 { transition-delay: 160ms; }
.stagger-3 { transition-delay: 240ms; }
.stagger-4 { transition-delay: 320ms; }
.stagger-5 { transition-delay: 400ms; }
.stagger-6 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -----------------------------------------------------------------------------
   18. Mobile Menu
   ----------------------------------------------------------------------------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay a {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-text);
  margin-bottom: 24px;
  transition: color 200ms ease;
}

.mobile-nav-overlay a:hover {
  color: var(--color-accent);
}

.mobile-nav-overlay .mobile-menu-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
}

/* -----------------------------------------------------------------------------
   19. Responsive Breakpoints
   ----------------------------------------------------------------------------- */

/* Tablet: max-width 1023px */
@media (max-width: 1023px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .section {
    padding: 80px 0;
  }

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

  .project-details {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Mobile: max-width 767px */
@media (max-width: 767px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .section {
    padding: 64px 0;
  }

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

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

  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-stats {
    gap: 32px;
  }

  .hero-stat-number {
    font-size: 22px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
}

/* Small mobile: max-width 479px */
@media (max-width: 479px) {
  .container {
    padding: 0 16px;
  }

  .hero-stats {
    gap: 24px;
  }
}
