/* ===========================
   VinegarTech - Portfolio CSS
   Brand: #1E2A38 (navy) / #A98C56 (gold)
   =========================== */

:root {
  --navy: #1E2A38;
  --navy-light: #2A3A4D;
  --navy-deep: #131C26;
  --gold: #A98C56;
  --gold-light: #C9A86A;
  --gold-glow: rgba(169, 140, 86, 0.4);
  --bg: #0B1219;
  --bg-soft: #131C26;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(169, 140, 86, 0.3);
  --text: #E8ECEF;
  --text-soft: #A8B0B8;
  --text-dim: #6B7480;
  --radius: 16px;
  --radius-lg: 24px;
  --transition: cubic-bezier(0.22, 1, 0.36, 1);
  --gradient-brand: linear-gradient(135deg, #A98C56 0%, #C9A86A 50%, #A98C56 100%);
  --gradient-dark: linear-gradient(135deg, #1E2A38 0%, #131C26 100%);
  --shadow-gold: 0 10px 40px -10px rgba(169, 140, 86, 0.45);
  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--navy-deep); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============ Animated Background ============ */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(169,140,86,0.08), transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(30,42,56,0.6), transparent 60%),
              var(--bg);
}
.bg-fx::before, .bg-fx::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
}
.bg-fx::before {
  width: 500px; height: 500px; background: rgba(169,140,86,0.12);
  top: -100px; left: -100px; animation: float1 18s ease-in-out infinite;
}
.bg-fx::after {
  width: 600px; height: 600px; background: rgba(59, 130, 246, 0.06);
  bottom: -200px; right: -200px; animation: float2 22s ease-in-out infinite;
}
@keyframes float1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(100px, 80px) scale(1.1); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-120px, -60px) scale(1.15); }
}

/* Grid pattern overlay */
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(169,140,86,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,140,86,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ============ Container ============ */
.container { width: min(1240px, 92%); margin: 0 auto; }

/* ============ Navbar ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: all 0.4s var(--transition);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 18, 25, 0.5);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(11, 18, 25, 0.85);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 38px; transition: transform 0.4s var(--transition); }
.nav-logo:hover img { transform: scale(1.08); }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 14px;
  padding: 10px 16px; border-radius: 10px; transition: all 0.3s var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gradient-brand); color: var(--navy-deep) !important;
  padding: 11px 22px !important; font-weight: 600 !important;
  border-radius: 999px !important; box-shadow: var(--shadow-gold);
  transition: all 0.3s var(--transition) !important;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--gold-light) !important; }

.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.4s var(--transition); position: relative; overflow: hidden;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient-brand); color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -10px rgba(169,140,86,0.6); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-secondary {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--gold); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }

/* ============ Hero ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; color: var(--text-soft);
  margin-bottom: 28px; backdrop-filter: blur(10px);
}
.hero-eyebrow .dot { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; box-shadow: 0 0 12px #4ADE80; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.05; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #A98C56 0%, #C9A86A 50%, #E5C988 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.hero h1 .reveal { display: inline-block; opacity: 0; transform: translateY(40px); animation: reveal 0.9s var(--transition) forwards; }
.hero h1 .reveal:nth-child(1) { animation-delay: 0.1s; }
.hero h1 .reveal:nth-child(2) { animation-delay: 0.25s; }
.hero h1 .reveal:nth-child(3) { animation-delay: 0.4s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

.hero p.lead {
  font-size: 1.15rem; color: var(--text-soft); max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block; font-size: 2rem; font-weight: 800;
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats .stat span { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

/* Hero Visual - 3D floating cards */
.hero-visual {
  position: relative; height: 520px; perspective: 1200px;
}
.float-card {
  position: absolute; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(30,42,56,0.9), rgba(19,28,38,0.95));
  border: 1px solid var(--border); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card); padding: 22px;
  transition: transform 0.6s var(--transition);
}
.float-card .card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--navy-deep);
}
.float-card h4 { font-size: 1rem; margin-bottom: 4px; }
.float-card p { font-size: 13px; color: var(--text-soft); }

.fc-1 {
  top: 0; left: 10%; width: 220px;
  animation: floatY 6s ease-in-out infinite;
  transform: rotateY(-12deg) rotateX(8deg);
}
.fc-2 {
  top: 32%; right: 0; width: 250px;
  animation: floatY 7s ease-in-out infinite reverse;
  animation-delay: 0.4s;
  transform: rotateY(10deg) rotateX(-5deg);
}
.fc-3 {
  bottom: 8%; left: 22%; width: 230px;
  animation: floatY 8s ease-in-out infinite;
  animation-delay: 0.8s;
  transform: rotateY(-6deg) rotateX(6deg);
}
@keyframes floatY {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -20px; }
}
.hero-orb {
  position: absolute; width: 320px; height: 320px;
  top: 50%; left: 50%; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169,140,86,0.3), transparent 70%);
  filter: blur(40px); z-index: -1;
  animation: pulseOrb 4s ease-in-out infinite;
}
@keyframes pulseOrb {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}

/* ============ Section Headings ============ */
section { padding: 100px 0; position: relative; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; padding: 6px 16px;
  background: rgba(169,140,86,0.1); border: 1px solid var(--border-strong);
  color: var(--gold); border-radius: 999px; font-size: 12px;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 18px;
}
.section-head h2 .gradient {
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head p { color: var(--text-soft); font-size: 1.1rem; }

/* ============ Services ============ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.service-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden; cursor: pointer;
  transition: all 0.5s var(--transition);
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(169,140,86,0.15), transparent 50%);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(169,140,86,0.2), rgba(169,140,86,0.05));
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--gold);
  transition: all 0.4s var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gradient-brand); color: var(--navy-deep);
  transform: rotate(-8deg) scale(1.08);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.service-card p { color: var(--text-soft); font-size: 0.95rem; }
.service-card .arrow {
  position: absolute; top: 32px; right: 28px;
  color: var(--text-dim); transition: all 0.3s; opacity: 0;
}
.service-card:hover .arrow { opacity: 1; color: var(--gold); transform: translate(4px, -4px); }

/* ============ Projects / Portfolio ============ */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px;
}
.project-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(30,42,56,0.4), rgba(19,28,38,0.6));
  border: 1px solid var(--border); position: relative;
  transition: all 0.5s var(--transition); cursor: pointer;
}
.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(169,140,86,0.4);
}
.project-visual {
  height: 240px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--proj-color, var(--gold)) 0%, var(--navy-deep) 100%);
  display: flex; align-items: center; justify-content: center;
}
.project-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.4), transparent 50%);
}
.project-visual::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.project-emblem {
  position: relative; z-index: 1;
  width: 100px; height: 100px; border-radius: 24px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: white; transition: transform 0.6s var(--transition);
}
.project-card:hover .project-emblem { transform: scale(1.1) rotate(-6deg); }
.project-emblem svg { width: 52px; height: 52px; }

.project-badge {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: white;
  border: 1px solid rgba(255,255,255,0.2);
}
.project-badge.live { background: rgba(74,222,128,0.2); border-color: rgba(74,222,128,0.4); color: #6EE7A6; }

.project-content { padding: 28px; }
.project-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em;
}
.project-meta .dot-sep { width: 4px; height: 4px; background: var(--text-dim); border-radius: 50%; }
.project-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.project-tagline { color: var(--gold); font-size: 0.95rem; margin-bottom: 16px; font-weight: 500; }
.project-content p.desc { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 20px; }

.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tech-chip {
  padding: 5px 12px; font-size: 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); font-weight: 500;
}

.project-features {
  list-style: none; margin-bottom: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.project-features li {
  font-size: 13px; color: var(--text-soft); padding-left: 18px; position: relative;
}
.project-features li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}

.project-actions { display: flex; gap: 10px; }
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--gradient-brand); color: var(--navy-deep);
  text-decoration: none; font-weight: 600; font-size: 14px;
  transition: all 0.3s; box-shadow: var(--shadow-gold);
}
.project-link:hover { transform: translateY(-2px); }
.project-link.outline { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.project-link.outline:hover { border-color: var(--gold); color: var(--gold); }

/* ============ Testimonials ============ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px; max-width: 1100px; margin: 0 auto;
}
.testimonial-card {
  position: relative; padding: 44px 36px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(19,28,38,0.5));
  border: 1px solid var(--border);
  transition: all 0.5s var(--transition);
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 4px; left: 22px;
  font-family: Georgia, serif;
  font-size: 8rem; line-height: 1; font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.5;
  pointer-events: none;
}
.testimonial-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(169,140,86,0.12), transparent 70%);
  pointer-events: none;
}
.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px -25px rgba(169,140,86,0.4);
}
.testimonial-stars {
  display: flex; gap: 3px; margin-bottom: 18px; position: relative; z-index: 1;
}
.testimonial-stars svg {
  width: 18px; height: 18px; color: var(--gold); fill: var(--gold);
}
.testimonial-quote {
  font-size: 1.05rem; line-height: 1.65; color: var(--text);
  margin-bottom: 28px; position: relative; z-index: 1;
  font-weight: 400;
}
.testimonial-quote .highlight {
  background: linear-gradient(120deg, rgba(169,140,86,0.18) 0%, rgba(169,140,86,0.05) 100%);
  padding: 1px 6px; border-radius: 4px; color: var(--gold-light); font-weight: 500;
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 24px; border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.testimonial-avatar {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient-brand); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em;
  box-shadow: var(--shadow-gold);
}
.testimonial-author-info h4 {
  font-size: 1rem; margin-bottom: 2px; font-weight: 700;
}
.testimonial-author-info .biz {
  color: var(--gold); font-size: 13.5px; font-weight: 500;
}
.testimonial-author-info .loc {
  color: var(--text-dim); font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
}
.testimonial-product {
  position: absolute; top: 24px; right: 24px; z-index: 1;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93C5FD; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}

@media (max-width: 600px) {
  .testimonial-card { padding: 36px 24px 28px; }
  .testimonial-card::before { font-size: 6rem; left: 14px; }
}

/* ============ About / Why Us ============ */
.about {
  position: relative;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 24px;
}
.about-text .gradient {
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-text p { color: var(--text-soft); margin-bottom: 20px; font-size: 1.05rem; }

.features-list { display: grid; gap: 16px; margin-top: 32px; }
.feature-item {
  display: flex; gap: 16px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.3s var(--transition);
}
.feature-item:hover { transform: translateX(8px); border-color: var(--border-strong); }
.feature-item .feat-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-brand); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
}
.feature-item h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-item p { font-size: 14px; color: var(--text-soft); margin: 0; }

/* Stats panel */
.about-visual {
  position: relative;
}
.stats-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-box {
  padding: 32px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), transparent);
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: all 0.4s var(--transition);
}
.stat-box:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.stat-box:nth-child(odd) { margin-top: 24px; }
.stat-box strong {
  display: block; font-size: 2.6rem; font-weight: 800; line-height: 1;
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.stat-box span { color: var(--text-soft); font-size: 14px; }
.stat-box::after {
  content: ''; position: absolute; bottom: -40%; right: -20%;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(169,140,86,0.2), transparent 70%);
}

/* ============ Process / Workflow ============ */
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px; counter-reset: step;
}
.process-step {
  padding: 32px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  position: relative; counter-increment: step;
  transition: all 0.4s var(--transition);
}
.process-step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -20px; right: 24px;
  font-size: 3.5rem; font-weight: 800; line-height: 1;
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.7;
}
.process-step h4 { font-size: 1.15rem; margin-bottom: 10px; margin-top: 30px; }
.process-step p { color: var(--text-soft); font-size: 14px; }

/* ============ Team ============ */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; max-width: 1140px; margin: 0 auto;
}
.team-card {
  padding: 40px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(19,28,38,0.6));
  border: 1px solid var(--border); text-align: center;
  position: relative; overflow: hidden;
  transition: all 0.5s var(--transition);
}
.team-card:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.team-card::before {
  content: ''; position: absolute; top: -50%; left: 50%; translate: -50% 0;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(169,140,86,0.1), transparent 40%);
  pointer-events: none;
}
.team-avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--gradient-brand); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em;
  position: relative; box-shadow: var(--shadow-gold);
  border: 4px solid rgba(169,140,86,0.2);
  overflow: hidden;
}
.team-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
}
.team-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.team-role { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 22px; }
.team-contact { display: grid; gap: 10px; }
.team-contact a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); text-decoration: none; font-size: 14px;
  transition: all 0.3s; word-break: break-all;
}
.team-contact a:hover { background: var(--surface-hover); border-color: var(--border-strong); color: var(--text); }
.team-contact svg { flex-shrink: 0; }

/* ============ CTA Banner ============ */
.cta-banner {
  margin: 60px auto; max-width: 1100px;
  padding: 64px 48px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--border-strong);
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg, rgba(169,140,86,0.3) 60deg,
    transparent 120deg, transparent 240deg,
    rgba(169,140,86,0.3) 300deg, transparent 360deg);
  animation: spinSlow 20s linear infinite;
}
.cta-banner::after {
  content: ''; position: absolute; inset: 1px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-content p { color: var(--text-soft); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-content .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ Forms ============ */
.form-section {
  padding-top: 140px;
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px;
  max-width: 1200px; margin: 0 auto;
}
.form-info h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px; }
.form-info .gradient { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.form-info p { color: var(--text-soft); margin-bottom: 32px; }

.contact-blocks { display: grid; gap: 18px; }
.contact-block {
  display: flex; gap: 16px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.3s;
}
.contact-block:hover { border-color: var(--border-strong); transform: translateX(6px); }
.contact-block .ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-brand); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
}
.contact-block h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 4px; }
.contact-block a, .contact-block p { color: var(--text); text-decoration: none; font-size: 15px; word-break: break-word; }
.contact-block a:hover { color: var(--gold); }

.form-card {
  padding: 40px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(19,28,38,0.5));
  border: 1px solid var(--border);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 15px;
  transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(169,140,86,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A8B0B8' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }

.checkbox-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.check-tile {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; font-size: 14px;
  transition: all 0.25s;
}
.check-tile:has(input:checked) { border-color: var(--gold); background: rgba(169,140,86,0.1); color: var(--gold); }
.check-tile input { accent-color: var(--gold); }

.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

/* Math captcha — robust at any container width */
.captcha-group {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(169,140,86,0.08), rgba(169,140,86,0.02));
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  display: flex; align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  row-gap: 10px;
}
.captcha-prompt {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-soft); font-weight: 500;
  flex: 1 1 auto; min-width: 0;
  white-space: nowrap;
}
.captcha-prompt .ic {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  background: var(--gradient-brand); color: var(--navy-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.captcha-prompt .label-text {
  display: inline-flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.captcha-question {
  font-family: 'Inter', sans-serif;
  font-weight: 700; color: var(--gold-light); font-size: 15px;
  background: var(--bg-soft); padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.captcha-input {
  width: 84px !important; padding: 9px 12px !important;
  text-align: center; font-weight: 600; font-size: 16px !important;
  border-radius: 8px !important;
  background: var(--bg-soft) !important; border: 1px solid var(--border) !important;
  color: var(--text) !important; font-family: inherit;
  transition: all 0.25s; outline: none;
  flex-shrink: 0;
}
.captcha-input::placeholder { color: var(--text-dim); font-weight: 400; }
.captcha-input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(169,140,86,0.15) !important;
}
.captcha-input.ok {
  border-color: #4ADE80 !important;
  background: rgba(74,222,128,0.08) !important;
  color: #6EE7A6 !important;
}
.captcha-input.bad {
  border-color: #EF4444 !important;
  background: rgba(239,68,68,0.08) !important;
  animation: captchaShake 0.4s;
}
@keyframes captchaShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.captcha-refresh {
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  color: var(--text-soft); padding: 8px;
  border-radius: 8px; transition: all 0.3s var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.captcha-refresh:hover {
  color: var(--gold); border-color: var(--border-strong);
  background: rgba(169,140,86,0.1);
  transform: rotate(180deg);
}
.captcha-refresh svg { width: 16px; height: 16px; }

/* Narrow widths — let it wrap to two rows cleanly */
@media (max-width: 480px) {
  .captcha-group { padding: 14px 14px; }
  .captcha-prompt { flex: 1 1 100%; justify-content: flex-start; }
  .captcha-input { flex: 1; max-width: 120px; }
}

.form-success {
  display: none; padding: 24px; border-radius: var(--radius);
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3);
  color: #6EE7A6; text-align: center; margin-bottom: 20px;
}
.form-success.show { display: block; animation: reveal 0.5s var(--transition) forwards; }

/* ============ About / Profile pages ============ */
.profile-hero {
  padding-top: 140px; padding-bottom: 40px;
}
.profile-hero .section-head { margin-bottom: 32px; }

.profile-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 56px;
  align-items: start; max-width: 1200px; margin: 0 auto;
}
.profile-card {
  position: sticky; top: 100px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--surface), rgba(19,28,38,0.6));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.profile-photo-wrap {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--gradient-dark);
}
/* Hide the duplicate background image — show the photo as-is */
.profile-photo-wrap .photo-bg { display: none; }
/* Foreground photo — full image visible, no cropping. */
.profile-photo-wrap .photo-fg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.8s var(--transition);
  z-index: 1;
}
.profile-card:hover .profile-photo-wrap .photo-fg { transform: scale(1.06); }
.profile-photo-wrap::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(11,18,25,0.9) 100%);
}
.profile-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: var(--text-dim);
  position: relative;
}
.profile-photo-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(169,140,86,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,140,86,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.profile-photo-placeholder .ph-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--gradient-brand); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800; box-shadow: var(--shadow-gold);
  z-index: 1;
}
.profile-photo-placeholder .ph-label {
  font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase;
  z-index: 1;
}

.profile-card-body { padding: 26px; }
.profile-card-body h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.profile-card-body .role { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.profile-contact-list { display: grid; gap: 10px; }
.profile-contact-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-soft); text-decoration: none; font-size: 13.5px;
  transition: all 0.3s; word-break: break-all;
}
.profile-contact-list a:hover { background: var(--surface-hover); border-color: var(--border-strong); color: var(--text); }
.profile-contact-list svg { flex-shrink: 0; color: var(--gold); }
.profile-resume-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 16px; padding: 13px;
  background: var(--gradient-brand); color: var(--navy-deep);
  border-radius: 10px; text-decoration: none; font-weight: 600;
  transition: all 0.3s; box-shadow: var(--shadow-gold);
}
.profile-resume-btn:hover { transform: translateY(-2px); }

.profile-content section.profile-section {
  padding: 0; margin-bottom: 48px;
}
.profile-content .section-tag { margin-bottom: 12px; }
.profile-content h3 {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.profile-content h3 .gradient { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.profile-content p.bio { font-size: 1.05rem; color: var(--text-soft); margin-bottom: 16px; }

.highlight-list { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.highlight-list li {
  padding: 14px 16px 14px 44px; position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; font-size: 14.5px; color: var(--text-soft);
  transition: all 0.3s;
}
.highlight-list li:hover { transform: translateX(4px); border-color: var(--border-strong); }
.highlight-list li::before {
  content: ''; position: absolute; left: 14px; top: 50%;
  translate: 0 -50%; width: 18px; height: 18px;
  background: var(--gradient-brand); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(169,140,86,0.15);
}

/* Skills */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.skill-group {
  padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.3s;
}
.skill-group:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.skill-group h5 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; font-weight: 700;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags span {
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text); font-weight: 500;
}

/* Timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--gold), transparent);
}
.timeline-item {
  position: relative; padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -32px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border-strong);
}
.timeline-item .tl-head {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin-bottom: 4px;
}
.timeline-item h4 { font-size: 1.1rem; font-weight: 700; }
.timeline-item .tl-period { color: var(--text-dim); font-size: 13px; font-weight: 500; }
.timeline-item .tl-company { color: var(--gold); font-size: 14px; margin-bottom: 12px; font-weight: 500; }
.timeline-item ul { list-style: none; display: grid; gap: 6px; }
.timeline-item ul li {
  color: var(--text-soft); font-size: 14px; padding-left: 18px; position: relative;
}
.timeline-item ul li::before {
  content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}

/* Education boxes */
.edu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.edu-box {
  padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.3s;
}
.edu-box:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.edu-box h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.edu-box .edu-school { color: var(--gold); font-size: 13.5px; margin-bottom: 6px; }
.edu-box .edu-meta { color: var(--text-dim); font-size: 13px; }

@media (max-width: 991px) {
  .profile-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-card { position: relative; top: 0; max-width: 380px; margin: 0 auto; }
}

/* ============ Footer ============ */
footer {
  padding: 80px 0 30px; border-top: 1px solid var(--border);
  background: var(--bg-soft); position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 42px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-soft); font-size: 14px; max-width: 320px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; text-decoration: none;
}
.footer-social a:hover { background: var(--gradient-brand); color: var(--navy-deep); border-color: transparent; transform: translateY(-3px); }

.footer-col h5 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; color: var(--gold); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-soft); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 30px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-dim); flex-wrap: wrap; gap: 12px;
}

/* ============ Scroll Reveal ============ */
.reveal-on-scroll {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal-on-scroll.in {
  opacity: 1; transform: translateY(0);
}

/* ============ Cursor follower ============ */
.cursor-dot {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); pointer-events: none; z-index: 9999;
  transition: transform 0.1s; mix-blend-mode: difference;
  display: none;
}
@media (min-width: 992px) { .cursor-dot { display: block; } }

/* ============ Responsive ============ */
@media (max-width: 991px) {
  .hero-grid, .about-grid, .form-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; top: 70px; right: -100%; width: 280px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-soft); padding: 20px;
    border-radius: var(--radius); border: 1px solid var(--border);
    transition: right 0.4s var(--transition);
  }
  .nav-links.open { right: 4%; }
  .menu-toggle { display: block; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .project-features { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 70px 0; }
  .hero { padding: 110px 0 60px; }
  .form-card { padding: 28px 22px; }
  .cta-banner { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
