:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #ff6b00;
  --accent2: #ff3c3c;
  --card: rgba(255, 255, 255, 0.08);
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: radial-gradient(circle at top right, #ff6b0030, transparent 35%), var(--bg);
  color: var(--text);
}

@font-face {
  font-family: "Exoct";
  src: url("https://assets.codepen.io/1480814/films.EXH_____.ttf");
}

* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }

.glass {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border-radius: 16px;
}
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.tilt-3d:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(-4deg) scale(1.02);
  box-shadow: 0 24px 40px rgba(15, 23, 42, .2);
  border-color: rgba(255, 107, 0, 0.55);
}

#preloader {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: #020617; z-index: 9999; font-weight: 800; letter-spacing: 2px;
}

.navbar {
  position: sticky; top: 0; z-index: 50; margin: 12px; padding: 12px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-size: 2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.logo-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}
.logo span { color: var(--accent); }

nav { display: flex; gap: 16px; align-items: center; }
.menu-btn, .theme-btn { display: none; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-areas:
    "content founder"
    "stats stats";
  gap: 24px;
  align-items: stretch;
  padding: 80px 6vw;
}
.hero-content { grid-area: content; align-self: center; }
.hero-founder { grid-area: founder; min-height: 70vh; }
.hero-founder-image {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 28px 45px rgba(15, 23, 42, .24);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0; }
.hero p { color: var(--muted); }
.eyebrow { color: #fed7aa; text-transform: uppercase; letter-spacing: 1px; }

.cta-wrap { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { padding: 12px 16px; border-radius: 12px; font-weight: 600; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.btn-outline { border-color: rgba(255,255,255,0.35); }

.stats { grid-area: stats; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats div { padding: 18px; border-radius: 16px; background: rgba(255,255,255,0.05); }
.stats div:hover { transform: translateY(-5px) scale(1.02); transition: .25s ease; }
.stats h3 { font-size: 2rem; margin: 0; color: #fdba74; }
.stats span { color: var(--muted); }

.section { padding: 72px 6vw; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid article { padding: 18px; }
.grid article:hover { background: rgba(255,255,255,0.65); }
.service-figure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 22px;
  align-items: end;
}
.service-figure {
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 60px;
  padding: 5px 20px 0;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 100%;
  cursor: pointer;
  position: relative;
  filter: drop-shadow(0 16px 24px rgb(15 23 42 / 22%));
  isolation: isolate;
}
.service-figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 24px;
  background: var(--service-back);
  transform-origin: bottom;
  filter: brightness(.95);
  transition: .5s;
}
.service-figure img {
  grid-area: 1 / 1;
  width: 72%;
  height: 72%;
  object-fit: contain;
  object-position: center;
  place-self: end center;
  filter: contrast(.9) brightness(.95);
  transition: .5s;
}
.service-figure figcaption {
  grid-area: 1 / 1;
  width: calc(100% + 40px);
  padding: 16px 12px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  text-align: center;
  place-self: end center;
  transform: perspective(500px) translateY(100%) rotateX(-90deg);
  backface-visibility: hidden;
  transform-origin: top;
  background: linear-gradient(90deg, #111827, #1f2937);
  border-radius: 0 0 18px 18px;
  transition: .5s;
}
.service-figure:hover img {
  width: 92%;
  height: 180%;
  filter: contrast(1.05) brightness(1);
}
.service-figure:hover::before {
  filter: brightness(.4);
  transform: perspective(500px) rotateX(60deg);
}
.service-figure:hover figcaption {
  transform: perspective(500px) translateY(100%) rotateX(-30deg);
}

.founder-card { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 20px; }
.founder-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 12px 28px rgba(15,23,42,.25);
}

.portfolio-image { width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,0.2); margin: 14px 0 20px; }
.contact-card { padding: 18px; }


#backToTop {
  position: fixed; right: 18px; bottom: 18px; border: none; border-radius: 50%;
  width: 44px; height: 44px; background: linear-gradient(45deg, var(--accent), var(--accent2));
  color: #fff; cursor: pointer; display: none;
}

.resume-body { background: #f8fafc; color: #0f172a; }
.resume-page {
  max-width: 900px; margin: 28px auto; background: #fff; border-radius: 14px; padding: 28px;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
}

.light {
  --bg: #f4f8ff; --bg-soft: #e7eefb; --text: #0b1324; --muted: #334155; --card: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "founder"
      "stats";
  }
  .founder-card, .grid { grid-template-columns: 1fr; }
  .service-figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-founder, .hero-founder-image { min-height: 48vh; }
  .menu-btn, .theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; }
  nav { display: none; }
  nav.open { display: grid; position: absolute; top: 66px; right: 12px; background: #0f172a; padding: 12px; border-radius: 12px; }
}

@media (max-width: 640px) {
  .service-figure-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-figure { margin-bottom: 42px; }
  .service-figure figcaption { font-size: 1rem; }
}
