/* ============================================================
   OPUS — opusdevs.com — style.css
   Mouse-reactive canvas waves · 4K water glass buttons
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #04060e;
  --accent:     #4a9eff;
  --accent2:    #7060ff;
  --text:       #e8edf8;
  --text-dim:   rgba(232,237,248,0.50);
  --text-muted: rgba(232,237,248,0.30);
  --glass-bg:   rgba(255,255,255,0.045);
  --glass-border: rgba(255,255,255,0.10);
  --radius-lg:  22px;
  --radius:     16px;
  --font-display: 'DM Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === CANVAS BACKGROUND === */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* === GLASS UTILITY === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(1.5) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(1.5) brightness(1.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* ============================================================
   GLASS BUTTONS — clean frosted glass
   ============================================================ */
.water-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.90);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  user-select: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, background 0.25s ease,
              border-color 0.25s ease, box-shadow 0.25s ease;
}

.water-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.water-btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* Primary — subtle blue tint */
.water-btn-primary {
  background: rgba(74, 158, 255, 0.18);
  border-color: rgba(100, 170, 255, 0.28);
  box-shadow: 0 4px 24px rgba(60, 100, 255, 0.18);
}
.water-btn-primary:hover {
  background: rgba(74, 158, 255, 0.28);
  border-color: rgba(120, 190, 255, 0.42);
  box-shadow: 0 8px 32px rgba(60, 100, 255, 0.30);
}

/* Sizes */
.water-btn-sm  { padding: 9px 22px; font-size: 0.79rem; }
.water-btn-lg  { padding: 18px 48px; font-size: 0.94rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.45s, border-color 0.45s, padding 0.3s;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.80rem;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}
.section {
  padding: 130px 0 80px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-label {
  display: block;
  font-size: 0.70rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 180px 48px 100px;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-content {
  max-width: 760px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #4a9eff 0%, #a070ff 50%, #60c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sub {
  font-size: 1.02rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
  font-weight: 300;
}
.hero-scroll {
  position: absolute;
  bottom: 42px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.35;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--text), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
  position: relative;
  z-index: 1;
}
.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee span {
  font-size: 0.70rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  padding-right: 60px;
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 60px;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}
.stat-pill {
  padding: 24px 20px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4a9eff, #a070ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-pill p {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ============================================================
   HEADINGS
   ============================================================ */
h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 52px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

/* ============================================================
   SERVICES BENTO
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 14px;
}
.bento-wide { grid-column: span 2; }

.bento-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.14);
}
.bento-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
}

.service-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 4px;
  line-height: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.s-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  background: rgba(74, 158, 255, 0.10);
  border: 1px solid rgba(74, 158, 255, 0.22);
  border-radius: 50px;
  color: rgba(160, 210, 255, 0.85);
}

/* ============================================================
   PROCESS GRID
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.process-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.process-card:hover { transform: translateY(-4px); }
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, rgba(74,158,255,0.35), rgba(110,70,240,0.35));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.process-card h4 { margin-bottom: 0; }
.process-card p { font-size: 0.86rem; color: var(--text-dim); line-height: 1.7; }

/* ============================================================
   WORK BENTO
   ============================================================ */
.work-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.work-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.14);
}
.work-screen {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.screen-inner {
  position: absolute;
  inset: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Portfolio mockup screen styles */
.screen-1 { background: linear-gradient(135deg, #0a0618 0%, #1a0844 60%, #2c1464 100%); }
.screen-2 { background: linear-gradient(135deg, #0c0c14 0%, #181824 60%, #202040 100%); }
.screen-3 { background: linear-gradient(135deg, #08020c 0%, #200840 60%, #380860 100%); }

.screen-nav {
  height: 14px;
  background: rgba(255,255,255,0.10);
  border-radius: 4px;
  flex-shrink: 0;
}
.screen-hero {
  height: 80px;
  background: linear-gradient(135deg, rgba(74,158,255,0.3), rgba(110,70,230,0.2));
  border-radius: 6px;
  flex-shrink: 0;
}
.screen-hero-2 { background: linear-gradient(135deg, rgba(200,70,90,0.25), rgba(60,40,120,0.2)); }
.screen-hero-3 { background: linear-gradient(135deg, rgba(140,40,220,0.3), rgba(200,100,220,0.15)); }
.screen-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
  flex: 1;
}
.screen-block {
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
}
.screen-block-2 { background: rgba(255,255,255,0.05); }
.screen-block-3 { background: rgba(180,100,255,0.08); }

.work-info {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-info h4 { margin-bottom: 0; }
.work-info p { font-size: 0.82rem; color: var(--text-dim); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 80px 0 110px; position: relative; z-index: 1; }
.cta-card {
  padding: 80px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(74,158,255,0.08), transparent);
  pointer-events: none;
}
.cta-card h2 { margin-bottom: 16px; }
.sub-cta {
  font-size: 0.96rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}
.cta-btns {
  justify-content: center;
  margin-top: 40px;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 30px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.20em;
}
.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer a:hover { opacity: 0.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-wide { grid-column: span 2; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .work-bento { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .work-bento { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 48px 28px; }
  .hero { padding: 140px 28px 80px; }
  .container { padding: 0 28px; }
}
