/* NARA Technology — Professional Web3 Classic Stylesheet */

/* --- variables --- */
:root {
  --primary: #e00011;
  --secondary: #06163A;
  --black: #000;
  --muted-bg: #f5f5f5;
  --text: #111;
  --max-width: 1200px;
  --radius: 10px;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* --- reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* --- layout helpers --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- header --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 18px 0;
  background: transparent;
  transition: all .3s ease;
}
.header.scrolled {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* logo */
.brand .logo { height: 48px; display: block; }
.logo-small { height: 34px; }

/* --- nav --- */
.nav {
  display: flex;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.nav-list a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 15px;
  transition: color .2s, background .2s;
}
.nav-list a:hover {
  background: rgba(0,0,0,.05);
}
.nav-list .cta {
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(224,0,17,.12);
}
.nav-list .cta:hover {
  background-color: #af0513;
   transition: color .2s, background .2s;
}

/* Desktop nav (default) */
.nav {
  display: flex;
  flex-direction: row;
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  padding: 0;
  align-items: center;
}

/* Mobile nav */
@media (max-width: 980px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    box-shadow: -6px 0 20px rgba(0,0,0,0.08);
    transition: right 0.4s ease;
    padding: 100px 24px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.nav.open {
  right: 0;
}

/* overlay behind nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}
.nav-overlay.active {
  opacity: 0;
  visibility: visible;
}

/* --- nav toggle --- */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.burger {
  width: 22px;
  height: 2px;
  background: var(--black);
  display: block;
  position: relative;
  transition: all .3s ease;
}
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all .3s ease;
}
.burger::before { top: -7px; }
.burger::after { top: 7px; }

.nav-toggle.open .burger {
  background: transparent;
}
.nav-toggle.open .burger::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open .burger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- hero --- */
.hero {
  padding-top: 110px;
  padding-bottom: 50px;
  background: var(--muted-bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}
.hero-text h1 {
  font-size: 38px;
  color: var(--black);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 12px;
}
.lead {
  font-size: 18px;
  color: #222;
  max-width: 640px;
  margin-bottom: 18px;
}
.hero-cta .btn { margin-right: 12px; }
.hero-features {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-top: 20px;
  color: #333;
  font-weight: 600;
}

.hero-cta .btn :hover {
  background-color: #87040f;
   transition: color .2s, background .2s;
}


/* =========================
   MEDIA PANEL (CENTERED)
========================= */
.media-card {
  padding: 5px;
  min-height: 300px;
  box-shadow: 0 12px 30px rgba(4,12,24,.06);

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

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(4,12,24,.12);
}

.media-card video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}


/* =========================
   SECTIONS (CENTERED)
========================= */
.section {
  padding: 60px 0;
  text-align: center;
}

.section .section-title {
  font-size: 24px;
  color: var(--black);
  font-weight: 800;
  margin-bottom: 30px;
  position: relative;
}

/* subtle underline animation */
.section .section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--black);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.section .section-title:hover::after {
  width: 100px;
}


/* =========================
   CARDS GRID (CENTERED)
========================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  justify-content: center;
}

/* SERVICE CARD */
.service-card {
  background: #fff;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(10,10,10,.04);
  text-align: center;

  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  color: #555;
  font-size: 14px;
}


/* =========================
   FEATURES GRID
========================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  justify-content: center;
}

.feature {
  background: #fff;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
  text-align: center;

  transition: all 0.3s ease;
}

.feature:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}


/* =========================
   PORTFOLIO GRID
========================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  justify-content: center;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  text-align: center;

  box-shadow: 0 6px 16px rgba(0,0,0,.04);
  transition: all 0.35s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 18px 30px rgba(0,0,0,.10);
}

.project-thumb {
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Image fit */
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition: transform 0.5s ease;
}

/* Zoom + slight rotate for life */
.project-card:hover img {
  transform: scale(1.1) rotate(1deg);
}


/* =========================
   CTA SECTION (CENTERED)
========================= */
.cta-section {
  background: var(--black);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column; /* stack everything */
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cta-inner h3 {
  margin: 0;
  font-size: 24px;
}

/* CTA Button (LIFE ADDED) */
.cta-inner button {
  background: var(--black);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;

  transition: all 0.3s ease;
}

.cta-inner button:hover {
  background: #ff3b3b;
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(255,0,0,.3);
}

/* --- footer --- */
.site-footer {
  background: #fff;
  border-top: 6px solid var(--black);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-nav {
  list-style: none;
  display: flex;
  gap: 14px;
}
.footer-nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
}

/* --- buttons --- */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* PRIMARY BUTTON (Brand Styled) */
.btn-primary {
  background: var(--primary);
  color: #fff;
}

/* 🔥 PREMIUM HOVER EFFECT */
.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(214,45,48,0.4); /* brand glow */
  background: #b81f22; /* deeper brand tone */
}

/* ✨ SHINE SWEEP EFFECT */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );

  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}


/* OUTLINE BUTTON */
.btn-outline {
  border: 2px solid var(--black);
  color: var(--black);
  background: transparent;
}

/* ENHANCED OUTLINE HOVER */
.btn-outline:hover {
  background-color: var(--black);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}


/* SIZE */
.btn.large {
  padding: 14px 22px;
  font-size: 16px;
}


/* CENTER THE BUTTON */
.center_project {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}


/* BUTTON STYLE */
.btn-outline-project {
  border: 2px solid #D62D30;
  color: #D62D30;
  background: transparent;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;

  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}


/* 🔥 HOVER */
.btn-outline-project:hover {
  background: #D62D30;
  color: #fff;
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 15px 35px rgba(214,45,48,0.35);
}


/* ✨ SHINE EFFECT */
.btn-outline-project::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );

  transition: 0.5s;
}

.btn-outline-project:hover::after {
  left: 100%;
}


/* --- utilities --- */
.center { text-align: center; }
.muted { color: #999797; }
.small { font-size: 13px; }

/* --- responsive --- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 28px 0; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-list { flex-direction: column; gap: 18px; }
}
@media (max-width: 560px) {
  .cards-grid, .features-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 28px; }
  .lead { font-size: 16px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}


/* === Services Page (Web3 Enhanced) === */

/* =========================
   ABOUT SECTION BACKGROUND
========================= */
.about-intro {
  position: relative;
  padding: 100px 20px;
  background: #000; /* pure black */
  overflow: hidden;
}

/* 🔥 RED GLOW BACKGROUND ANIMATION */
.about-intro::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214,45,48,0.35), transparent 70%);
  top: -120px;
  left: -120px;
  animation: floatGlow 8s ease-in-out infinite alternate;
}

.about-intro::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  bottom: -120px;
  right: -120px;
  animation: floatGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}


/* =========================
   CENTER CONTENT
========================= */
.about-intro .container {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* =========================
   CARD (GLASS + DARK STYLE)
========================= */
.about-intro .card {
  max-width: 700px;
  text-align: center;
  padding: 45px 30px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.05); /* glass */
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);

  color: #fff;

  transition: all 0.4s ease;
}

/* 🔥 HOVER LIFT */
.about-intro .card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 35px 80px rgba(214,45,48,0.25);
}


/* =========================
   TEXT STYLING
========================= */
.about-intro h2 {
  font-size: 30px;
  margin-bottom: 16px;
  font-weight: 800;

  /* 🔥 RED GRADIENT TEXT */
  background: linear-gradient(90deg, #ffffff, #D62D30);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}


/* =========================
   SUBTLE BORDER GLOW EFFECT
========================= */
.about-intro .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;

  background: linear-gradient(120deg, transparent, rgba(214,45,48,0.6), transparent);
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-intro .card:hover::before {
  opacity: 1;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .about-intro {
    padding: 70px 15px;
  }

  .about-intro .card {
    padding: 30px 20px;
  }

  .about-intro h2 {
    font-size: 24px;
  }
}