/* ============ Design tokens ============ */
:root {
  --bg-dark: #0a0a0a;
  --bg-dark-2: #121212;
  --bg-card: #161616;
  --accent: #ff8c00;
  --accent-light: #ffa033;
  --accent-dark: #e67e00;
  --accent-glow: rgba(255, 140, 0, 0.45);
  --text-light: #f5f5f5;
  --text-muted: #a3a3a3;
  --mint: #4ade80;
  --mint-dark: #16a34a;
  --frame-radius: 16px;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ============ Gradient / glow text ============ */
.gradient-text {
  background: linear-gradient(100deg, #ffa033 0%, #ff8c00 45%, #e67e00 80%, #ffa033 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
.glow-text {
  color: var(--accent);
  text-shadow:
    0 0 20px var(--accent-glow),
    0 0 40px rgba(255, 140, 0, 0.25);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: 250% center; } }
@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(255, 140, 0, 0.2); }
  50%      { text-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(255, 140, 0, 0.4); }
}

/* ============ Dark sections ============ */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.section-dark-2 {
  background: var(--bg-dark-2);
  color: var(--text-light);
}

/* ============ Navbar ============ */
#navbar {
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
#navbar.nav-dark {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#navbar.nav-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid #f1f5f9;
}
.nav-link-dark { color: #d4d4d4; }
.nav-link-dark:hover { color: var(--accent); }
.nav-link-light { color: #475569; }
.nav-link-light:hover { color: var(--accent-dark); }
.nav-link.active { color: var(--accent) !important; }

/* ============ Hero ============ */
.hero-dark {
  background:
    radial-gradient(900px 500px at 75% 20%, rgba(255, 140, 0, 0.08), transparent 60%),
    radial-gradient(600px 400px at 10% 80%, rgba(255, 140, 0, 0.05), transparent 55%),
    var(--bg-dark);
  min-height: 100vh;
  padding-bottom: 0;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Profile frame + rotating ring */
.profile-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}
.profile-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.35), transparent 68%);
  filter: blur(28px);
  animation: pulseGlow 4s ease-in-out infinite;
}
.profile-ring-outer {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  z-index: 2;
}
.profile-ring-spinner {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent) 0deg 70deg,
    transparent 70deg 100deg,
    var(--accent-light) 100deg 180deg,
    transparent 180deg 220deg,
    var(--accent) 220deg 290deg,
    transparent 290deg 330deg,
    var(--accent-light) 330deg 360deg
  );
  animation: spinRing 5s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.profile-ring-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(145deg, var(--accent-light), var(--accent-dark));
  box-shadow: 0 20px 60px rgba(255, 140, 0, 0.3);
}
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #1a1a1a;
  background: #222;
}
.profile-image.is-hidden { display: none; }
.profile-fallback {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid #1a1a1a;
  background: linear-gradient(145deg, #2a2a2a, #111);
  place-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 4rem;
  color: var(--accent);
}
.profile-fallback.is-visible { display: grid; }
@keyframes spinRing { to { transform: rotate(360deg); } }

.float-anim { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Floating orbit badges */
.orbit-badge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.orbit-badge-1 { top: 8%; right: -4%; animation: floatY 5s ease-in-out infinite; }
.orbit-badge-2 { bottom: 18%; left: -8%; animation: floatY 7s ease-in-out infinite 0.5s; }
.orbit-icon {
  position: absolute;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.4);
}
.orbit-icon-1 { top: 22%; left: -6%; animation: floatY 6s ease-in-out infinite 0.2s; }
.orbit-icon-2 { bottom: 8%; right: 2%; animation: floatY 5.5s ease-in-out infinite 0.8s; }

@media (min-width: 1024px) {
  .profile-wrapper { width: 380px; height: 380px; }
  .profile-ring-outer { width: 330px; height: 330px; }
}

/* ============ Stats bar (inside hero) ============ */
.stats-bar {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--frame-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 140, 0, 0.5);
  box-shadow: 0 18px 40px -12px var(--accent-glow);
}
.counter {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1;
  color: var(--mint);
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .profile-ring-spinner, .float-anim, .gradient-text, .glow-text { animation: none; }
}

/* ============ Section typography ============ */
.section-eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.section-title {
  margin-top: 0.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: #0f172a;
}
.section-title-light {
  color: var(--text-light);
}

/* ============ Quote frame ============ */
.quote-frame {
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  border-radius: var(--frame-radius);
  padding: 2rem 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px var(--accent-glow);
}
.quote-frame::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 7rem;
  line-height: 1;
  opacity: 0.2;
  font-family: Georgia, serif;
}

/* ============ Dark frame cards ============ */
.frame-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--frame-radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 14px 35px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.frame-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 140, 0, 0.45);
  box-shadow: 0 22px 50px -18px var(--accent-glow);
}
.frame-card h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-light);
}
.frame-card p { color: var(--text-muted); }
.frame-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(255, 140, 0, 0.12);
  border: 1px solid rgba(255, 140, 0, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.frame-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}
.frame-link:hover { color: var(--accent-light); }

/* ============ Expertise / service cards ============ */
.expertise-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--frame-radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.expertise-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 140, 0, 0.5);
  box-shadow: 0 24px 50px -20px var(--accent-glow);
}
.icon-box {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(255, 140, 0, 0.12);
  color: var(--accent);
  margin-bottom: 1rem;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.expertise-card:hover .icon-box {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}
.card-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
}
.service-list {
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
}
.service-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.35rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============ Tech grid ============ */
.tech-wall-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.tech-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tech-logo img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}
.tech-logo img.logo-invert { filter: invert(1) brightness(1.5); }
.tech-logo span {
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
}
.tech-logo:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 140, 0, 0.5);
  box-shadow: 0 16px 35px -12px var(--accent-glow);
}

/* ============ Project cards ============ */
.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 140, 0, 0.5);
  box-shadow: 0 28px 55px -22px var(--accent-glow);
}
.project-card h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-light);
}
.project-card p { color: var(--text-muted); }
.project-bullet {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
}
.project-bullet::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ============ Results cards ============ */
.result-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--frame-radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: 0 14px 35px -18px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.result-card:hover {
  transform: translateY(-8px);
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 22px 50px -18px rgba(34, 197, 94, 0.45);
}
.result-card h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
}
.result-card p {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.result-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mint);
  transition: color 0.25s ease;
}
.result-card:hover .result-link { color: #86efac; }
.result-link:hover { color: #bbf7d0; }

/* ============ Cert cards (white on dark) ============ */
.cert-card-white {
  background: #fff;
  border-radius: var(--frame-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
}
.cert-card-white:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px -15px var(--accent-glow);
}
.cert-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}
.cert-card-white h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}
.cert-card-white p {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.35rem;
}
.cert-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.cert-link:hover { color: var(--accent); }

/* ============ Buttons ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--accent-glow);
  filter: brightness(1.08);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  transition: all 0.25s ease;
}
.badge-btn:hover {
  color: var(--accent);
  border-color: rgba(255, 140, 0, 0.4);
  transform: translateY(-2px);
}

/* ============ Contact ============ */
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.contact-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: #1e293b;
}
.form-frame {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 12px 35px -18px rgba(0, 0, 0, 0.1);
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  font-size: 0.9rem;
  color: #1e293b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  transition: all 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

/* ============ Footer ============ */
.footer-social {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #a3a3a3;
  transition: all 0.25s ease;
}
.footer-social:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ============ Dark text overrides in frame cards ============ */
.project-card .text-brand-dark { color: var(--accent) !important; }
