/* ============================================================
   PORTFOLIO — Custom Stylesheet
   Built on Bootstrap 5 · Design System Tokens + Components
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Color Palette */
  --clr-bg:          #0b0f19;
  --clr-bg-alt:      #101828;
  --clr-surface:     #151c2e;
  --clr-surface-2:   #1b2440;
  --clr-accent:      #6c63ff;
  --clr-accent-light:#8b84ff;
  --clr-accent-glow: rgba(108, 99, 255, .35);
  --clr-text:        #e2e8f0;
  --clr-text-muted:  #94a3b8;
  --clr-border:      rgba(255, 255, 255, .06);
  --clr-white:       #ffffff;

  /* Typography */
  --ff-body:   'Inter', system-ui, -apple-system, sans-serif;
  --ff-mono:   'JetBrains Mono', 'Fira Code', monospace;

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, .35);
  --shadow-glow: 0 0 60px var(--clr-accent-glow);

  /* Transitions */
  --transition-base: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Global Resets ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--ff-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--clr-accent);
  color: var(--clr-white);
}

a {
  text-decoration: none;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Utility Classes ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--clr-accent), #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 100px 0;
  animation: fadeIn 1s ease;
  position: relative;
}

.section-padding::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(108,99,255,0.2), transparent);
}

.section-padding + .section-padding {
  margin-top: 30px;
}

.section-header {
  margin-bottom: 60px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-alt {
  background-color: var(--clr-bg-alt);
  padding-top: 110px;
  padding-bottom: 110px;
}

.glass-card {
  background: rgba(21, 28, 46, .65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  padding: 1.8rem;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* ---------- Section Headers ---------- */
.section-tag {
  font-family: var(--ff-mono);
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-accent-light);
  margin-bottom: .5rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: .75rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-accent), #38bdf8);
  border-radius: 2px;
  margin-top: 10px;
}

/* ==============================================
   NAVBAR
   ============================================== */
#mainNavbar {
  background: transparent;
  padding: 1rem 0;
  transition: background var(--transition-base),
              padding var(--transition-base),
              box-shadow var(--transition-base);
  z-index: 1000;
}

#mainNavbar.scrolled {
  background: rgba(11, 15, 25, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}

.navbar-brand {
  font-family: var(--ff-mono);
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.brand-accent {
  color: var(--clr-accent);
}

.nav-link {
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem 1rem !important;
  border-radius: var(--radius-sm);
  color: var(--clr-text-muted) !important;
  transition: color var(--transition-base), background var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-white) !important;
  background: rgba(108, 99, 255, .12);
}

/* ==============================================
   HERO
   ============================================== */
.hero-section {
  min-height: 100vh;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--clr-accent-glow), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0%   { opacity: .4; transform: translate(-50%, -50%) scale(1);   }
  100% { opacity: .7; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-greeting {
  font-family: var(--ff-mono);
  font-size: 1rem;
  color: var(--clr-accent-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.hero-name {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--clr-white);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-accent-light);
  margin-bottom: .75rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 500px;
}

/* Profile Image */
.profile-image-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.profile-image {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--clr-accent);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 40px var(--clr-accent-glow);
}

.profile-image:hover {
  transform: translate(-50%, -50%) scale(1.05);
  transition: 0.3s;
}

.profile-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(108, 99, 255, .3);
  border-radius: var(--radius-full);
  animation: spinRing 30s linear infinite;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.profile-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--clr-accent);
  z-index: 3;
  box-shadow: 0 0 12px var(--clr-accent-glow);
  animation: floatDot 4s ease-in-out infinite alternate;
}

.dot-1 { top: 10%; left: 5%;  animation-delay: 0s;   }
.dot-2 { top: 80%; left: 90%; animation-delay: 1.3s; }
.dot-3 { top: 15%; right: 5%; animation-delay: 2.6s; }

@keyframes floatDot {
  0%   { transform: translateY(0);    }
  100% { transform: translateY(-14px); }
}

/* Hero Buttons */
.btn-accent {
  background: linear-gradient(135deg, var(--clr-accent), #8b5cf6);
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--clr-accent-glow);
  color: var(--clr-white);
}

.btn-outline-light {
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-outline-accent {
  color: var(--clr-accent-light);
  border: 1px solid var(--clr-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-base);
}

.btn-outline-accent:hover {
  background: var(--clr-accent);
  color: var(--clr-white);
  box-shadow: 0 4px 20px var(--clr-accent-glow);
}

.btn-outline-accent {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

/* ==============================================
   ABOUT
   ============================================== */
.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--clr-accent), #8b5cf6);
  color: var(--clr-white);
  font-size: 1.4rem;
}

.about-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: .75rem;
}

.about-card p {
  color: var(--clr-text-muted);
  font-size: .95rem;
}

/* ==============================================
   SKILLS
   ============================================== */
.skill-icon-wrapper {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(108, 99, 255, .15), rgba(56, 189, 248, .1));
  font-size: 1.8rem;
  color: var(--clr-accent-light);
  transition: background var(--transition-base);
}

.skill-card:hover .skill-icon-wrapper {
  background: linear-gradient(135deg, var(--clr-accent), #8b5cf6);
  color: var(--clr-white);
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.skill-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-white);
}

.skill-card p {
  font-size: .9rem;
  color: var(--clr-text-muted);
}

.skill-badge {
  background: rgba(108, 99, 255, .12);
  color: var(--clr-accent-light);
  font-weight: 500;
  font-size: .78rem;
  padding: .35em .75em;
  border-radius: var(--radius-sm);
}

/* ==============================================
   PROJECTS
   ============================================== */
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.8s ease;
}

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

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--clr-border);
}

.project-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--clr-accent), #8b5cf6);
  color: var(--clr-white);
  font-size: 1.25rem;
}

.project-label {
  font-family: var(--ff-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clr-text-muted);
  background: rgba(255, 255, 255, .04);
  padding: .3em .8em;
  border-radius: var(--radius-sm);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: .5rem;
}

.project-desc {
  font-size: .9rem;
  color: var(--clr-text-muted);
  flex-grow: 1;
}

.tech-badge {
  background: rgba(56, 189, 248, .1);
  color: #7dd3fc;
  font-weight: 500;
  font-size: .75rem;
  padding: .3em .7em;
  border-radius: var(--radius-sm);
}

.project-card-footer {
  margin-top: auto;
}

/* ==============================================
   CONTACT
   ============================================== */
.contact-text {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 440px;
  margin: 0 auto;
}

.form-control {
  background-color: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  background-color: #1e293b;
  border-color: #6c63ff;
  box-shadow: 0 0 10px rgba(108,99,255,0.4);
  color: white;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .05);
  color: var(--clr-text-muted);
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--clr-accent);
  color: var(--clr-white);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px var(--clr-accent-glow);
}

.btn-accent:active {
  transform: scale(0.97);
}

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background-color: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: .85rem;
}

/* ==============================================
   RESPONSIVE ADJUSTMENTS
   ============================================== */
@media (max-width: 767.98px) {
  .hero-name {
    font-size: 2.6rem;
  }

  .hero-text-col {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .profile-image-wrapper {
    width: 240px;
    height: 240px;
  }

  .profile-image {
    width: 210px;
    height: 210px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .section-padding {
    padding: 70px 0;
  }
}

@media (max-width: 575.98px) {
  .hero-name {
    font-size: 2rem;
  }

  .profile-image-wrapper {
    width: 200px;
    height: 200px;
  }

  .profile-image {
    width: 170px;
    height: 170px;
  }
}
