/* =============================================
   ROOT & RESET
   ============================================= */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Sora:wght@300;400;500;600&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0d12;
  --bg-card: #0f1318;
  --accent: #2a9fd6;
  --accent-glow: rgba(42, 159, 214, 0.18);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.08);
  --font-heading: "Playfair Display", serif;
  --font-body: "Sora", sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Background radial glow */
body::before {
  content: "";
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(42, 159, 214, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

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

/* =============================================
   SCROLL FADE-IN
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 13, 18, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.nav-logo-box {
  width: 36px;
  height: 36px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
  letter-spacing: 0.03em;
}
.nav-links a:hover {
  color: var(--white);
}

.btn-nav {
  background: var(--accent);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    background var(--transition),
    box-shadow var(--transition);
}
.btn-nav:hover {
  background: #2390c2;
  box-shadow: 0 0 20px rgba(42, 159, 214, 0.35);
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(10, 13, 18, 0.97);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 24px 5%;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  color: var(--muted);
  font-size: 1rem;
  transition: color var(--transition);
}
.mobile-menu a:hover {
  color: var(--white);
}
.mobile-menu .btn-nav {
  width: fit-content;
}

/* =============================================
   SECTION WRAPPER
   ============================================= */
section {
  position: relative;
  z-index: 1;
  padding: 100px 5%;
}

/* Section label */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

h2.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 48px;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-label-row .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.hero-label-row span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-label-row hr {
  flex: 1;
  border: none;
  height: 1px;
  background: var(--border);
  max-width: 60px;
}

.hero-left h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--white);
}
.hero-left h1 .highlight {
  color: var(--accent);
}

.hero-left p {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
.btn-youtube:hover {
  background: #2390c2;
  box-shadow: 0 0 28px rgba(42, 159, 214, 0.4);
  transform: translateY(-2px);
}
.btn-youtube svg {
  width: 20px;
  height: 20px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
}
.stat {
  padding: 0 28px;
  text-align: center;
}
.stat:first-child {
  padding-left: 0;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 42px;
  background: var(--border);
}

/* Profile Card */
@keyframes badge-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.profile-card {
  border-radius: 18px;
  border: 2px solid #00aaff;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(0, 170, 255, 0.55),
    0 0 40px rgba(0, 170, 255, 0.25),
    0 0 70px rgba(0, 170, 255, 0.12);
  max-width: 380px;
  margin: 0 auto;
}
.profile-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  aspect-ratio: 4/5;
}
.profile-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  transform: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: badge-float 3s ease-in-out infinite;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

/* =============================================
   ABOUT
   ============================================= */
#about {
  background: rgba(15, 19, 24, 0.5);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.about-left {
  position: sticky;
  top: 100px;
}
.about-left img {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  object-fit: cover;
  opacity: 0.85;
  filter: grayscale(10%);
}
.about-right p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 22px;
}

/* =============================================
   SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
/* bottom two centered */
.services-grid .service-card:nth-child(4) {
  grid-column: 1;
}
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  grid-column: span 1;
}
.services-bottom-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  border-top: 2px solid transparent;
}
.service-card:hover {
  border-top-color: var(--accent);
  box-shadow: 0 8px 40px rgba(42, 159, 214, 0.12);
  transform: translateY(-4px);
}
.service-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 18px;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* =============================================
   PROJECTS
   ============================================= */
#projects {
  background: rgba(15, 19, 24, 0.5);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}
.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #111a27 0%, #0d1420 100%);
  position: relative;
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-card:hover .project-thumb img {
  transform: scale(1.04);
}
.project-thumb .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 159, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 159, 214, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.project-thumb .thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-thumb .thumb-label span {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(42, 159, 214, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-body {
  padding: 26px;
}
.project-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.project-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.btn-project {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition:
    background var(--transition),
    color var(--transition);
}
.btn-project:hover {
  background: var(--accent);
  color: var(--white);
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
  text-align: center;
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}
.contact-inner p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.75;
}
.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
.btn-email:hover {
  background: #2390c2;
  box-shadow: 0 0 40px rgba(42, 159, 214, 0.45);
  transform: translateY(-3px);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.footer-contact p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-contact a {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  transition: opacity var(--transition);
}
.footer-contact a:hover {
  opacity: 0.75;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition:
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}
.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(42, 159, 214, 0.25);
}
.social-btn svg {
  width: 18px;
  height: 18px;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-right {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .profile-card {
    max-width: 300px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-left {
    position: static;
    display: none;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-bottom-row {
    flex-direction: column;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  section {
    padding: 80px 5%;
  }
  .nav-links,
  .btn-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .stat-divider {
    display: none;
  }
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
