/* =========================================
   GLOBAL RESET + BASE
========================================= */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body{
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

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

img{
  max-width: 100%;
  display: block;
}

/* =========================================
   THEME VARIABLES
========================================= */
:root{
  --bg: #000;

  --card: rgba(255,255,255,0.03);

  --stroke: rgba(255,255,255,0.10);
  --stroke2: rgba(255,255,255,0.08);

  --muted: #b5b5b5;
  --muted2: #8d8d8d;

  --accent: rgba(59,130,246,0.35);
  --accentStroke: rgba(59,130,246,0.55);

  --radius: 22px;
  --radius2: 16px;

  --shadow: 0 18px 50px rgba(0,0,0,0.55);
}

/* =========================================
   LAYOUT HELPERS
========================================= */
.container{
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

section{
  padding: 90px 0;
  border-top: 1px solid var(--stroke2);
}

section:first-of-type{
  border-top: none;
}

/* =========================================
   NAVBAR
========================================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;

  border-bottom: 1px solid rgba(255,255,255,0.06);

  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.65);
}

.nav-inner{
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.nav-links{
  display: flex;
  gap: 18px;

  color: var(--muted);
  font-size: 14px;
}

.nav-links a{
  padding: 10px;
  border-radius: 12px;
  transition: 0.18s ease;
}

.nav-links a:hover{
  color: #fff;
  background: rgba(255,255,255,0.04);
}

.nav-cta{
  display: flex;
  gap: 10px;
}

/* =========================================
   BUTTONS
========================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.14);
  background: #121212;

  color: #fff;
  font-weight: 800;
  font-size: 14px;

  cursor: pointer;
  transition: 0.18s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: #1a1a1a;
}

.btn.primary{
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.70);
}

.btn.primary:hover{
  background: rgba(59,130,246,0.35);
}

.btn.ghost{
  background: rgba(255,255,255,0.04);
}

.btn.small{
  padding: 10px 12px;
  font-size: 13px;
}

/* =========================================
   HERO SECTION (TEXT ABOVE OVERLAY)
========================================= */
.hero{
  padding: 36px 0 70px;
  border-top: none;
}

.hero-wrap{
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;

  background: var(--card);
  box-shadow: var(--shadow);

  position: relative;
}

.hero-media{
  position: relative;
  height: 420px;
  background: #0a0a0a;
}

.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

/* Overlay LAYER (below text) */
.hero-media::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.88) 0%,
      rgba(0,0,0,0.45) 55%,
      rgba(0,0,0,0.12) 100%
    ),
    radial-gradient(
      900px 420px at 70% 10%,
      rgba(59,130,246,0.16),
      transparent 65%
    );

  pointer-events: none;
}

/* Text LAYER (above overlay) */
.hero-content{
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: flex-end;

  padding: 34px;
}

.hero-text{
  max-width: 640px;
}

/* Hero typography (forced white) */
.hero-kicker{
  color: #fff !important;
  opacity: 0.95;

  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title{
  margin-top: 10px;

  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.03em;

  font-weight: 900;
  color: #fff !important;

  text-shadow: 0 14px 40px rgba(0,0,0,0.75);
}

.hero-sub{
  margin-top: 10px;

  font-size: 15px;
  line-height: 1.65;

  color: #fff !important;
  opacity: 0.85;

  max-width: 560px;
  text-shadow: 0 12px 30px rgba(0,0,0,0.65);
}

.hero-actions{
  margin-top: 18px;

  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================
   ABOUT + STATS
========================================= */
.about-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.section-title{
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-weight: 900;
}

.section-desc{
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
}

.stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius2);
  padding: 18px;
}

.stat strong{
  display: block;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.stat span{
  display: block;
  margin-top: 6px;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.4;
}

/* =========================================
   SERVICES
========================================= */
.services-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;

  margin-bottom: 24px;
}

.services-head p{
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

.service-list{
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.service-row{
  display: grid;
  grid-template-columns: 80px 1.2fr 1fr 120px;
  gap: 18px;

  padding: 22px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);

  align-items: center;
  transition: 0.18s ease;
}

.service-row:last-child{
  border-bottom: none;
}

.service-row:hover{
  background: rgba(255,255,255,0.04);
}

.service-num{
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.service-title{
  font-weight: 900;
}

.service-desc{
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.service-tag{
  justify-self: end;

  font-size: 12px;
  padding: 6px 10px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);

  color: #d0d0d0;
  background: rgba(0,0,0,0.30);
}

/* =========================================
   PORTFOLIO
========================================= */
.portfolio-layout{
  display: flex;
  gap: 70px;
  align-items: flex-start;
}

.featured{
  flex: 1;
  padding-right: 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.featured .label{
  color: #888;
  font-size: 13px;
}

.featured-image{
  margin-top: 16px;

  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.10);
  position: relative;

  background: #0c0c0c;
}

.featured-image img{
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.featured-image::after{
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.62));
  pointer-events: none;
}

.featured h3{
  margin-top: 16px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.featured p{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
}

.tags{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag{
  font-size: 12px;
  padding: 6px 10px;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;

  color: #d0d0d0;
  background: rgba(255,255,255,0.02);
}

.project-list{
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-item{
  display: block;
  padding: 22px 0;

  border-bottom: 1px solid rgba(255,255,255,0.08);

  cursor: pointer;
  transition: opacity 0.2s ease;
}

.project-item:hover{
  opacity: 0.75;
}

.project-item:last-child{
  border-bottom: none;
}

.project-item span{
  font-size: 13px;
  color: #888;
}

.project-item h4{
  font-size: 20px;
  margin-top: 6px;
}

/* =========================================
   CTA SECTION
========================================= */
.cta-box{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);

  background:
    radial-gradient(900px 400px at 80% 0%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(800px 400px at 10% 100%, rgba(34,197,94,0.10), transparent 60%),
    rgba(255,255,255,0.03);

  padding: 34px;

  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
}

.cta-box h2{
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-weight: 900;
}

.cta-box p{
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.cta-actions{
  margin-top: 18px;

  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-right{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-mini{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  border-radius: 16px;
  padding: 14px;
}

.cta-label{
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 6px;
}

.cta-value{
  font-size: 14px;
  font-weight: 900;
}

/* =========================================
   FOOTER
========================================= */
.footer{
  padding: 70px 0 30px;
}

.footer-inner{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.footer-brand p{
  color: var(--muted);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 18px;
}

.footer-socials{
  display: flex;
  gap: 10px;
}

.footer-socials a{
  width: 38px;
  height: 38px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);

  background: rgba(255,255,255,0.03);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  font-size: 13px;

  transition: 0.18s ease;
}

.footer-socials a:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.06);
}

.footer-col h4{
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-col a{
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
  transition: 0.18s ease;
}

.footer-col a:hover{
  color: #fff;
  opacity: 0.95;
}

.footer-bottom{
  margin-top: 28px;
  padding-top: 18px;

  border-top: 1px solid rgba(255,255,255,0.08);

  color: var(--muted2);
  font-size: 13px;

  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================
   RESPONSIVE (TABLET + MOBILE)
========================================= */
@media (max-width: 980px){
  .nav-links{
    display: none;
  }

  .hero-media{
    height: 420px;
  }

  .about-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-row{
    grid-template-columns: 70px 1fr;
    gap: 10px;
  }

  .service-desc{
    grid-column: 2 / -1;
  }

  .service-tag{
    justify-self: start;
    grid-column: 2 / -1;
    width: max-content;
  }

  .portfolio-layout{
    flex-direction: column;
    gap: 40px;
  }

  .featured{
    border-right: none;
    padding-right: 0;
  }

  .cta-box{
    grid-template-columns: 1fr;
  }

  .footer-inner{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px){
  section{
    padding: 70px 0;
  }

  .hero-content{
    padding: 22px;
  }

  .hero-title{
    font-size: 34px;
  }

  .footer-inner{
    grid-template-columns: 1fr;
  }

  .stats{
    grid-template-columns: 1fr;
  }
}
