/* ===========================
   Design Tokens
=========================== */
:root{
  --primary: #4F46E5;
  --primary-dark: #3730D9;
  --gradient: linear-gradient(120deg, #4F46E5, #06B6D4);
  --bg: #FBFBFD;
  --bg-alt: #F3F4FA;
  --surface: #FFFFFF;
  --border: #E7E8F1;
  --text: #1F2430;
  --text-muted: #6B7280;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body{
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  padding-top: 76px;
}
h1, h2, h3, .navbar-brand{ font-family: var(--font-display); }

/* Bootstrap color overrides */
.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus{
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.text-primary{ color: var(--primary) !important; }
.text-gradient{
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===========================
   Navbar
=========================== */
#mainNav{
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
#mainNav.scrolled{ box-shadow: 0 6px 24px -12px rgba(31,36,48,0.15); }
.navbar-brand{ font-weight: 600; font-size: 1.25rem; color: var(--text); }
.nav-link{
  font-weight: 500;
  color: var(--text) !important;
  position: relative;
  margin: 0 6px;
}
.nav-link::after{
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after{ width: 100%; }
.nav-link.active{ color: var(--primary) !important; }

/* ===========================
   Hero
=========================== */
.hero{
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}
.hero-blob{
  position: absolute;
  top: -180px;
  right: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.10;
  filter: blur(10px);
  z-index: 0;
}
.hero .container{ position: relative; z-index: 1; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.15);
}
.hero-title{
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
}
.hero-desc{
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.social-row a{
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.05rem;
  transition: all 0.25s ease;
}
.social-row a:hover{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.hero-photo-wrap{
  position: relative;
  width: min(320px, 80%);
  aspect-ratio: 1/1;
}
.hero-photo-wrap::before{
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.18;
  z-index: 0;
}
.hero-photo{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--surface);
  box-shadow: 0 24px 60px -20px rgba(79,70,229,0.35);
}

/* ===========================
   Sections
=========================== */
.section{ padding: 96px 0; }
.section-alt{ background: var(--bg-alt); }
.section-eyebrow{
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title{
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

/* ===========================
   Skills
=========================== */
.skill-item{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  height: 100%;
}
.skill-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 12px;
}
.skill-head i{ color: var(--primary); margin-right: 6px; }
.skill-value{ color: var(--text-muted); font-weight: 500; font-size: 0.9rem; }
.skill-track{
  width: 100%;
  height: 8px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}
.skill-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--gradient);
  transition: width 1.1s cubic-bezier(.22,1,.36,1);
}

/* ===========================
   Projects
=========================== */
.project-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(31,36,48,0.25);
}
.project-img{
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.project-img img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-img img{ transform: scale(1.06); }
.project-overlay{
  position: absolute;
  inset: 0;
  background: rgba(31,36,48,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay{ opacity: 1; }
.project-body{ padding: 20px 22px; }
.project-title{ font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.project-desc{ color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }
.project-tags{ display: flex; gap: 8px; flex-wrap: wrap; }
.project-tags span{
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ===========================
   Contact
=========================== */
.contact-form .form-control{
  border-radius: 10px;
  border-color: var(--border);
}
.contact-form .form-control:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
}

/* ===========================
   Footer
=========================== */
.site-footer{
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 44px 0;
}
.site-footer .social-row a{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.site-footer .social-row a:hover{ background: var(--primary); border-color: var(--primary); }

/* ===========================
   Reveal on scroll
=========================== */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 991.98px){
  body{ padding-top: 68px; }
  .hero{ min-height: auto; padding: 48px 0; }
  .navbar-collapse{
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid var(--border);
  }
}
