:root {
  --bg: #0a0a0a;
  --bg2: #111113;
  --cyan: #00e5cc;
  --cyan-dim: #00b8a3;
  --white: #f0f0f0;
  --grey: #888;
  --grey-dim: #333;
  --border: rgba(0,229,204,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Mono', monospace;
  cursor: none;
  overflow-x: hidden;
}

.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s;
  opacity: 0.5;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 150px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, transparent 100%);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; }
.nav-logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.15em; color: var(--white); line-height: 1; }
.nav-logo-text span { color: var(--cyan); }
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav a { text-decoration: none; color: var(--grey); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; transition: color 0.25s; position: relative; }
nav a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 100%; height: 1px; background: var(--cyan); transition: right 0.3s ease; }
nav a:hover { color: var(--cyan); }
nav a:hover::after { right: 0; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 3rem;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,229,204,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,204,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,229,204,0.08) 0%, transparent 70%);
  top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem;
  animation: fadeUp 0.8s ease both;
}
.hero-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--cyan); }
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.92; letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title .outline { -webkit-text-stroke: 1px rgba(240,240,240,0.3); color: transparent; }
.hero-title .accent { color: var(--cyan); }
.hero-sub { font-size: 0.8rem; color: var(--grey); line-height: 1.9; max-width: 440px; margin-bottom: 2.5rem; animation: fadeUp 0.8s 0.2s ease both; }
.hero-cta { display: flex; gap: 1rem; animation: fadeUp 0.8s 0.3s ease both; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem; font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; transition: all 0.3s; cursor: none; }
.btn-primary { background: var(--cyan); color: #000; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,229,204,0.4); }
.btn-outline { border: 1px solid var(--grey-dim); color: var(--grey); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-shapes { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 42%; height: 80vh; display: flex; align-items: center; justify-content: center; }
.shape { position: absolute; opacity: 0.6; }
.shape-1 { width: 280px; height: 280px; border: 1px solid var(--cyan); transform: rotate(20deg); animation: rotSlow 20s linear infinite; clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); }
.shape-2 { width: 180px; height: 180px; border: 1px solid rgba(0,229,204,0.4); transform: rotate(-10deg); animation: rotSlow 14s linear infinite reverse; top: 15%; right: 20%; }
.shape-3 { width: 120px; height: 120px; background: rgba(0,229,204,0.05); border: 1px solid rgba(0,229,204,0.2); bottom: 20%; left: 10%; animation: float 6s ease-in-out infinite; transform: rotate(45deg); }

@keyframes rotSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(-20px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

section { padding: 7rem 3rem; position: relative; }
.section-label { font-size: 0.6rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--cyan); }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.05; margin-bottom: 1rem; }
.section-desc { font-size: 0.78rem; color: var(--grey); line-height: 2; max-width: 520px; }

#portfolio { background: var(--bg2); }
.portfolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
.portfolio-grid .featured { grid-column: span 2; grid-row: span 2; }

.card { position: relative; overflow: hidden; background: #1a1a1c; aspect-ratio: 1; cursor: grab; }
.card[data-model] .card-overlay { pointer-events: none; }
.featured { aspect-ratio: auto; }
.render { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card[data-model] .render { overflow: visible; cursor: grab; }
.render-1 { background: linear-gradient(135deg, #0d1f20 0%, #0a2e2c 50%, #061a19 100%); }
.render-2 { background: linear-gradient(135deg, #111018 0%, #1a1028 50%, #0e0c18 100%); }
.render-3 { background: linear-gradient(135deg, #1a1008 0%, #2a1c08 50%, #121006 100%); }
.render-4 { background: linear-gradient(135deg, #0e1820 0%, #0c2030 50%, #08121a 100%); }
.render-5 { background: linear-gradient(135deg, #1a0e12 0%, #281018 50%, #120810 100%); }
.obj { position: relative; transition: transform 0.6s ease; }
.card:hover .obj { transform: scale(1.05) rotate(5deg); }

.obj-torus { width: 140px; height: 140px; border-radius: 50%; border: 22px solid transparent; border-top-color: var(--cyan); border-right-color: rgba(0,229,204,0.5); border-bottom-color: rgba(0,229,204,0.2); box-shadow: 0 0 40px rgba(0,229,204,0.3), inset 0 0 20px rgba(0,229,204,0.1); animation: rotSlow 8s linear infinite; }
.featured .obj-torus { width: 220px; height: 220px; border-width: 30px; }
.obj-crystal { width: 0; height: 0; border-left: 45px solid transparent; border-right: 45px solid transparent; border-bottom: 80px solid rgba(0,229,204,0.3); filter: drop-shadow(0 0 20px rgba(0,229,204,0.5)); position: relative; }
.obj-crystal::after { content: ''; position: absolute; top: 80px; left: -45px; border-left: 45px solid transparent; border-right: 45px solid transparent; border-top: 40px solid rgba(0,229,204,0.5); }
.obj-sphere { width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(160,80,255,0.8), rgba(80,20,160,0.3) 60%, transparent); box-shadow: 0 0 50px rgba(120,40,200,0.4), inset -15px -15px 30px rgba(0,0,0,0.5); }
.obj-cube { width: 80px; height: 80px; background: rgba(255,160,50,0.2); border: 2px solid rgba(255,160,50,0.5); transform: rotate(30deg) skewX(-10deg); box-shadow: 0 0 30px rgba(255,140,20,0.3); position: relative; }
.obj-cube::before { content: ''; position: absolute; inset: -2px; border: 1px solid rgba(255,160,50,0.3); transform: translate(12px, -12px); }
.obj-ring { width: 90px; height: 90px; border: 3px solid rgba(100,180,255,0.6); border-radius: 50%; box-shadow: 0 0 20px rgba(100,180,255,0.4), inset 0 0 20px rgba(100,180,255,0.1); position: relative; }
.obj-ring::before { content: ''; position: absolute; inset: 8px; border: 2px solid rgba(100,180,255,0.3); border-radius: 50%; }

.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%); padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover .card-overlay { transform: translateY(0); }
.card-tag { font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.3rem; }
.card-name { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; }
.featured .card-name { font-size: 1.5rem; }
.card-meta { font-size: 0.6rem; color: var(--grey); margin-top: 0.3rem; }

.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; margin-top: 3rem; }
.stat-box { padding: 2rem; background: var(--bg2); border: 1px solid var(--grey-dim); position: relative; overflow: hidden; }
.stat-box::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 0; background: var(--cyan); transition: height 0.5s ease; }
.stat-box:hover::before { height: 100%; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem; color: var(--cyan); line-height: 1; }
.stat-label { font-size: 0.65rem; letter-spacing: 0.15em; color: var(--grey); text-transform: uppercase; margin-top: 0.3rem; }

.about-visual { position: relative; height: 500px; }
.about-frame { position: absolute; inset: 0; border: 1px solid var(--border); background: var(--bg2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-frame::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,204,0.08) 0%, transparent 70%); }
.corner { position: absolute; width: 20px; height: 20px; border-color: var(--cyan); border-style: solid; }
.corner-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.corner-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.corner-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.about-obj { width: 180px; height: 180px; border-radius: 50%; border: 30px solid transparent; border-top-color: var(--cyan); border-right-color: rgba(0,229,204,0.5); border-bottom-color: rgba(0,229,204,0.15); box-shadow: 0 0 80px rgba(0,229,204,0.2); animation: rotSlow 10s linear infinite; }

#services { background: var(--bg2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3.5rem; background: var(--grey-dim); }
.service-card { background: var(--bg2); padding: 2.5rem; position: relative; overflow: hidden; transition: background 0.3s; }
.service-card:hover { background: #161618; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 100%; height: 1px; background: var(--cyan); transition: right 0.5s ease; }
.service-card:hover::after { right: 0; }
.service-icon { width: 48px; height: 48px; margin-bottom: 1.5rem; }
.icon-shape { width: 100%; height: 100%; border: 1px solid rgba(0,229,204,0.4); display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 1.2rem; font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.05em; }
.service-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-desc { font-size: 0.72rem; color: var(--grey); line-height: 1.9; }

.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-links { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--grey-dim); text-decoration: none; color: var(--grey); font-size: 0.72rem; transition: color 0.25s; }
.contact-link:hover { color: var(--cyan); }
.contact-link-icon { width: 32px; height: 32px; border: 1px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; letter-spacing: 0.1em; flex-shrink: 0; }

.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
input, textarea, select { background: var(--bg2); border: 1px solid var(--grey-dim); color: var(--white); padding: 0.85rem 1rem; font-family: 'DM Mono', monospace; font-size: 0.78rem; outline: none; transition: border-color 0.3s; -webkit-appearance: none; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(0,229,204,0.2); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--bg2); }
.success-msg { display: none; padding: 1rem; border: 1px solid var(--cyan); color: var(--cyan); font-size: 0.72rem; letter-spacing: 0.1em; text-align: center; margin-top: 0.5rem; }

/* WPForms styling overrides */
.wpforms-container .wpforms-form input,
.wpforms-container .wpforms-form textarea,
.wpforms-container .wpforms-form select { background: var(--bg2) !important; border: 1px solid var(--grey-dim) !important; color: var(--white) !important; padding: 0.85rem 1rem !important; font-family: 'DM Mono', monospace !important; font-size: 0.78rem !important; border-radius: 0 !important; box-shadow: none !important; }
.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form textarea:focus { border-color: var(--cyan) !important; box-shadow: 0 0 0 1px rgba(0,229,204,0.2) !important; }
.wpforms-container .wpforms-form label { font-size: 0.6rem !important; letter-spacing: 0.2em !important; text-transform: uppercase !important; color: var(--grey) !important; font-family: 'DM Mono', monospace !important; font-weight: normal !important; }
.wpforms-container .wpforms-form .wpforms-submit { background: var(--cyan) !important; color: #000 !important; border: none !important; padding: 0.85rem 1.8rem !important; font-family: 'DM Mono', monospace !important; font-size: 0.7rem !important; letter-spacing: 0.15em !important; text-transform: uppercase !important; border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important; cursor: none; transition: background 0.3s !important; }
.wpforms-container .wpforms-form .wpforms-submit:hover { background: #fff !important; }
.wpforms-field-container { margin-bottom: 1rem !important; }
.wpforms-confirmation-container-full { background: transparent !important; border: 1px solid var(--cyan) !important; color: var(--cyan) !important; padding: 1rem !important; font-family: 'DM Mono', monospace !important; font-size: 0.72rem !important; }

footer { padding: 2rem 3rem; border-top: 1px solid var(--grey-dim); display: flex; justify-content: space-between; align-items: center; }
.footer-text { font-size: 0.6rem; color: var(--grey); letter-spacing: 0.12em; }
.footer-text span { color: var(--cyan); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; z-index: 200; }
.nav-hamburger span { display: block; width: 24px; height: 1px; background: var(--white); transition: transform 0.3s, opacity 0.3s, background 0.3s; transform-origin: center; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--cyan); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--cyan); }

@media (max-width: 1024px) {
  nav { padding: 1.25rem 2rem; }
  section { padding: 5rem 2rem; }
  .hero { padding: 0 2rem; }
  .hero-shapes { width: 38%; }
  .shape-1 { width: 200px; height: 200px; }
  .shape-2 { width: 130px; height: 130px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid .featured { grid-column: span 2; grid-row: span 1; }
  .about-inner { gap: 3rem; }
  .about-visual { height: 380px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { gap: 3rem; }
}

@media (max-width: 768px) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  nav { padding: 1.1rem 1.25rem; background: rgba(10,10,10,0.98); }
  .nav-hamburger { display: flex; }
  nav ul { position: fixed; top: 0; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; background: rgba(10,10,10,0.98); backdrop-filter: blur(10px); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 150; }
  nav ul.open { transform: translateX(0); }
  nav ul li a { font-size: 1.2rem; letter-spacing: 0.3em; }
  .hero { min-height: 100svh; padding: 100px 1.25rem 3rem; align-items: flex-start; }
  .hero-shapes { display: none; }
  .hero-glow { left: 50%; top: 30%; width: 300px; height: 300px; }
  .hero-title { font-size: clamp(3.5rem, 18vw, 6rem); }
  .hero-sub { font-size: 0.75rem; max-width: 100%; }
  .hero-cta { flex-direction: column; gap: 0.75rem; }
  .btn { width: 100%; justify-content: center; }
  section { padding: 4rem 1.25rem; }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 2px; }
  .portfolio-grid .featured { grid-column: span 1; grid-row: span 1; }
  .card { aspect-ratio: 4/3; }
  .card:not([data-model]) .card-overlay { transform: translateY(0); }
  .card[data-model] .card-overlay { pointer-events: none; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { height: 260px; order: -1; }
  .about-obj { width: 110px; height: 110px; border-width: 18px; }
  .stats-grid { gap: 2px; margin-top: 2rem; }
  .stat-box { padding: 1.25rem; }
  .stat-num { font-size: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.75rem 1.25rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  input, textarea, select { font-size: 16px; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem 1.25rem; }
}

@media (max-width: 400px) {
  .hero-title { font-size: clamp(3rem, 20vw, 4.5rem); }
  .stat-num { font-size: 2rem; }
  .nav-logo-text { font-size: 1rem; }
}
