/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Geist:wght@400;500;600&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', Arial, Helvetica, sans-serif;
  background: #0a0a0a;
  color: #ededed;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== FONT UTILITIES ===== */
.font-display { font-family: 'Space Grotesk', sans-serif; }

/* ===== SELECTION ===== */
::selection { background: rgba(129, 140, 248, 0.3); color: #fff; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== ANIMATED BACKGROUND ===== */
#noise-bg {
  position: fixed; inset: 0; z-index: -10;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
#gradient-bg {
  position: fixed; inset: 0; z-index: -10;
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(168,85,247,0.2), rgba(236,72,153,0.3));
  background-size: 200% 200%;
  animation: gradient-x 8s ease infinite;
}
@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== CURSOR FOLLOWER ===== */
#cursor-glow {
  pointer-events: none;
  position: fixed;
  left: 0; top: 0;
  z-index: 9999;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.25), rgba(168,85,247,0.2));
  filter: blur(16px);
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.3s;
}

/* ===== NAV ===== */
nav {
  position: fixed; left: 0; right: 0; top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.nav-inner {
  max-width: 1152px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: -0.025em; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-inmoweb { background: linear-gradient(135deg,#C16B39,#a85a2e); color:#fff !important; padding:6px 16px; border-radius:20px; font-weight:700; letter-spacing:0.03em; font-size:0.78rem; }
.nav-inmoweb:hover { background: linear-gradient(135deg,#d4845a,#C16B39) !important; color:#fff !important; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  z-index: 10;
}
.footer-inner { max-width: 1152px; margin: 0 auto; padding: 64px 24px; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand .logo { font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 0.875rem; line-height: 1.625; color: rgba(255,255,255,0.4); }
.footer-col h4 {
  margin-bottom: 16px;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; color: rgba(255,255,255,0.4); }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 0.875rem; color: rgba(255,255,255,0.3);
}

/* ===== MAIN CONTENT ===== */
main { position: relative; z-index: 10; }
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO ===== */
.hero { display: flex; flex-direction: column; align-items: center; gap: 48px; min-height: 100vh; padding: 80px 0; }
.hero-content { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 6px 16px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  width: fit-content;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.hero h1 .gradient-text {
  background: linear-gradient(to right, #818cf8, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(255,255,255,0.6);
}
.hero-3d { height: 350px; width: 100%; position: relative; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 9999px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to right, #4f46e5, #9333ea);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn:hover { transform: scale(1.05); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: none; }

/* ===== SECTION ===== */
.section { padding: 128px 0; }
.section-center { text-align: center; margin-bottom: 64px; }
.section-center h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem; font-weight: 700;
  color: #fff;
}
.section-center p {
  margin-top: 12px;
  color: rgba(255,255,255,0.5);
}
.section-center p.max-w { max-width: 36rem; margin-left: auto; margin-right: auto; }

/* ===== CARDS GRID ===== */
.card-grid { display: grid; gap: 24px; }
.card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.3s;
  height: 100%;
}
.card:hover {
  transform: scale(1.03);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px -12px rgba(99,102,241,0.1);
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { cursor: pointer; }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(99,102,241,0.1);
  margin-bottom: 20px;
}
.card-icon svg { width: 32px; height: 32px; color: #818cf8; }
.card h3 { font-size: 1.125rem; font-weight: 600; color: #fff; }
.card p { margin-top: 8px; font-size: 0.875rem; line-height: 1.625; color: rgba(255,255,255,0.5); }

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  height: 100%;
}
.stars { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.stars svg { width: 16px; height: 16px; color: #fbbf24; fill: #fbbf24; }
.testimonial-text {
  font-size: 0.875rem; line-height: 1.625;
  color: rgba(255,255,255,0.6);
}
.testimonial-author {
  margin-top: 16px;
  font-size: 0.875rem; font-weight: 500;
  color: #fff;
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 64px 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.contact-form { max-width: 36rem; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 4px;
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
}
.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  color: #fff;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus { border-color: #6366f1; }
.form-group textarea { resize: vertical; min-height: 112px; }
.form-error { color: #f87171; font-size: 0.875rem; margin-bottom: 12px; }
.form-success { color: #34d399; font-size: 1.125rem; text-align: center; }

/* ===== LOGIN PAGE ===== */
.login-wrapper {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 0 24px;
}
.login-card {
  width: 100%; max-width: 24rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.login-card h1 {
  font-family: 'Space Grotesk', sans-serif;
  text-align: center; margin-bottom: 32px;
  font-size: 1.5rem; font-weight: 700; color: #fff;
}

/* ===== DASHBOARD ===== */
.dashboard-nav {
  position: fixed; left: 0; right: 0; top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.dashboard-nav-inner {
  max-width: 1152px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.dashboard-title { font-size: 1.25rem; font-weight: 700; color: #fff; }
.dashboard-user { display: flex; align-items: center; gap: 16px; font-size: 0.875rem; }
.dashboard-email { color: rgba(255,255,255,0.4); }
.nav-active { background: rgba(99,102,241,0.25) !important; border-color: #6366f1 !important; color: #fff !important; }

/* Hamburger button (hidden on desktop) */
.dashboard-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0; }
.dashboard-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.dashboard-nav--open .dashboard-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dashboard-nav--open .dashboard-burger span:nth-child(2) { opacity: 0; }
.dashboard-nav--open .dashboard-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.dashboard-main { padding: 128px 24px 64px; max-width: 1152px; margin: 0 auto; }
.dashboard-main h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.875rem; font-weight: 700;
  color: #fff; margin-bottom: 40px;
}
.dashboard-empty { color: rgba(255,255,255,0.4); }
.dashboard-list { display: flex; flex-direction: column; gap: 16px; }
.dashboard-msg {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.dashboard-msg-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-size: 0.875rem;
}
.dashboard-msg-name { font-weight: 600; color: #fff; }
.dashboard-msg-date { color: rgba(255,255,255,0.3); }
.dashboard-msg-email { font-size: 0.875rem; color: #818cf8; }
.dashboard-msg-text { margin-top: 8px; font-size: 0.875rem; line-height: 1.625; color: rgba(255,255,255,0.6); }

.loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}
.loading p { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; color: rgba(255,255,255,0.5); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== PAGE HEADER ===== */
.page-header { padding-top: 128px; }
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 700; color: #fff;
}
.page-header p { margin-top: 16px; font-size: 1.125rem; color: rgba(255,255,255,0.5); }
.page-content { padding: 80px 0 128px; }
.page-content p {
  font-size: 1rem; line-height: 1.75;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.back-link {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.back-link:hover { color: #fff; }

/* ===== PORTFOLIO ===== */
.portfolio-grid { display: grid; gap: 32px; }
.portfolio-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.3s;
}
.portfolio-card:hover {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 25px 50px -12px rgba(99,102,241,0.1);
}

/* --- Slider --- */
.portfolio-slider {
  position: relative;
  width: 100%;
  background: rgba(0,0,0,0.4);
  overflow: hidden;
  cursor: pointer;
}
.portfolio-slider-track {
  display: flex;
  transition: transform 0.4s ease;
}
.portfolio-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 400px;
}
.portfolio-slide img,
.portfolio-slide video {
  width: 100%;
  display: block;
  max-height: 400px;
  object-fit: contain;
}

/* --- Slider buttons --- */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  opacity: 0;
  line-height: 1;
}
.portfolio-slider:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: rgba(0,0,0,0.8); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* --- Slider dots --- */
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s;
}
.slider-dot.active { background: #818cf8; }

/* --- Portfolio body --- */
.portfolio-body { padding: 28px; }
.portfolio-tag {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(99,102,241,0.15);
  color: #818cf8;
  margin-bottom: 10px;
}
.portfolio-body h3 {
  font-size: 1.25rem; font-weight: 600;
  color: #fff; margin-bottom: 10px;
}
.portfolio-body > p {
  font-size: 0.9rem; line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.portfolio-embed {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.3);
}
.portfolio-embed iframe {
  width: 100%; height: 100%;
  display: block;
}

/* --- Fullscreen overlay --- */
#fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
#fs-overlay.fs-hidden { display: none; }
.fs-content {
  max-width: 90vw;
  max-height: 85vh;
}
.fs-content img,
.fs-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.fs-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fs-close:hover { background: rgba(239,68,68,0.8); }
#fs-overlay .slider-btn { opacity: 1; }
#fs-overlay .slider-btn:hover { background: rgba(255,255,255,0.2); }
.fs-prev { left: 20px; }
.fs-next { right: 20px; }
#fs-overlay .slider-dots { bottom: 20px; }
#fs-overlay .slider-dot { width: 12px; height: 12px; }

@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .portfolio-body { padding: 20px; }
  .portfolio-body h3 { font-size: 1.1rem; }
  .portfolio-slide { max-height: 280px; }
  .portfolio-slide img,
  .portfolio-slide video { max-height: 280px; }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.7s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { opacity: 0; transform: translateY(20px); transition: all 0.7s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  /* --- Container breathing --- */
  .container { padding: 0 24px; }

  /* --- Typography --- */
  p, .hero p, .page-content p, .card p, .testimonial-text, .dashboard-msg-text {
    line-height: 1.7 !important;
  }
  h1, h2, h3 {
    margin-bottom: 0.5em;
  }
  .hero h1 { font-size: 2rem; }
  .section-center h2 { font-size: 1.5rem; margin-bottom: 0.5em; }
  .page-header h1 { font-size: 1.75rem; }

  /* --- Hero --- */
  .hero { gap: 28px; padding: 72px 0; min-height: auto; }
  .hero-content { gap: 20px; padding: 0 12px; }
  .hero p { font-size: 1rem; max-width: 100%; }
  .hero-3d { height: 260px; }

  /* --- Sections: more vertical air --- */
  .section { padding: 80px 0; }
  .section-center { margin-bottom: 48px; }
  .section-center p { font-size: 0.95rem; }

  /* --- Cards: stacked, borderless, shadowed --- */
  .card-grid { display: flex; flex-direction: column; gap: 0; }
  .card {
    padding: 28px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    height: auto;
  }
  .card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(99,102,241,0.15);
  }
  .card-icon { width: 44px; height: 44px; }
  .card-icon svg { width: 28px; height: 28px; }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: 0.85rem; }
  .card:last-child { margin-bottom: 0; }

  /* --- Testimonials --- */
  .testimonial-card {
    padding: 24px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    height: auto;
  }
  .testimonial-card:last-child { margin-bottom: 0; }

  /* --- Buttons: touch-friendly --- */
  .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
  }
  .btn + .btn { margin-top: 12px; }

  /* --- Contact --- */
  .contact-wrapper { padding: 48px 24px; border-radius: 16px; }
  .form-group input, .form-group textarea { padding: 14px 16px; font-size: 1rem; }

  /* --- Footer --- */
  .footer-inner { padding: 48px 20px; }
  .footer-grid { gap: 32px; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-col ul { gap: 10px; }

  /* --- Page header / content --- */
  .page-header { padding-top: 96px; }
  .page-header p { font-size: 1rem; }
  .page-content { padding: 48px 0 80px; }
  .page-content p { font-size: 0.95rem; line-height: 1.7; }

  /* --- Login --- */
  .login-card { padding: 28px 24px; }
  .login-card h1 { font-size: 1.25rem; }

  /* --- Dashboard --- */
  .dashboard-main { padding: 96px 16px 48px; }
  .dashboard-main h1 { font-size: 1.35rem; }
  .dashboard-burger { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .dashboard-user { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 16px; gap: 6px; }
  .dashboard-nav--open .dashboard-user { display: flex; }
  .dashboard-nav-inner { flex-wrap: wrap; }
  .dashboard-user .btn { text-align: center; width: 100%; padding: 10px 12px !important; font-size: 0.8rem !important; }
  .dashboard-email { font-size: 0.75rem; text-align: center; padding-bottom: 4px; }
  .dashboard-msg { padding: 20px; }

  /* --- Admin config form: force single column --- */
  form[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* --- Nav --- */
  .nav-links { gap: 16px; font-size: 0.8rem; }
  .nav-inner { padding: 14px 20px; }
  .nav-logo { font-size: 1.1rem; }
}

@media (min-width: 768px) {
  .hero { flex-direction: row; }
  .hero h1 { font-size: 4.5rem; }
  .hero-3d { height: 500px; width: 50%; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: span 1; }
  .contact-wrapper { padding: 64px 80px; }
}
