/* ===== Professional Portfolio Theme ===== */
:root {
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --bg-card: #1a2d4a;
  --text-primary: #e6f1ff;
  --text-secondary: #8892b0;
  --accent: #64ffda;
  --accent-dark: #45c9a8;
  --accent-blue: #57cbff;
  --navy-light: #233554;
  --border-subtle: rgba(100, 255, 218, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Navbar ===== */
.navbar {
  background: rgba(10, 25, 47, 0.9) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  transition: all 0.3s ease;
}
.navbar-brand {
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  margin: 0 8px;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--accent) !important; }
.nav-link:hover::after { width: 100%; }
.navbar-toggler { color: var(--accent) !important; }
.navbar-toggler-icon { filter: invert(0.8) sepia(1) hue-rotate(120deg); }

/* ===== Hero Section ===== */
.hero-section {
  min-height: 100vh;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.05), transparent 70%);
  pointer-events: none;
}
.hero-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px rgba(100, 255, 218, 0.15);
  transition: transform 0.5s;
}
.hero-img:hover { transform: scale(1.03); }
.hero-greeting {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-name {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue), #ccd6f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
}
.text-highlight { color: var(--accent); font-weight: 600; }

/* Hero Buttons */
.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--bg-primary) !important;
  border-radius: 6px;
  transition: all 0.3s;
}
.btn-primary:hover {
  background: var(--accent-dark) !important;
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
  transform: translateY(-2px);
}
.btn-outline-light {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  border-radius: 6px;
  transition: all 0.3s;
}
.btn-outline-light:hover {
  background: rgba(100, 255, 218, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Hero Social Links */
.hero-social .social-link {
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: all 0.3s;
}
.hero-social .social-link:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* ===== Section Styles ===== */
.section-padding {
  padding: 90px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-padding.visible {
  opacity: 1;
  transform: translateY(0);
}
.bg-section {
  background: var(--bg-secondary);
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== About Card ===== */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.8;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(100, 255, 218, 0.06);
}
.about-card strong { color: var(--text-primary); }

/* ===== Skill Badges ===== */
.skill-badge {
  background: rgba(100, 255, 218, 0.08);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s;
}
.skill-badge:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* ===== Project Cards ===== */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s;
  cursor: default;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(100, 255, 218, 0.08);
  border-color: rgba(100, 255, 218, 0.25);
}
.project-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 10px;
  font-size: 1.3rem;
  color: var(--accent);
}
.project-card h5 { color: var(--text-primary); }
.project-card .small { color: var(--text-secondary); }
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-list li {
  padding: 3px 0;
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
}
.project-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== Education ===== */
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.edu-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 10px;
  font-size: 1.2rem;
  color: var(--accent);
}

/* ===== Certifications ===== */
.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cert-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.3s;
}
.cert-item:hover {
  border-color: rgba(100, 255, 218, 0.25);
  transform: translateX(4px);
}
.btn-outline-accent {
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 14px;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ===== Internship Cards ===== */
.intern-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s;
}
.intern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(100, 255, 218, 0.06);
  border-color: rgba(100, 255, 218, 0.2);
}
.intern-card p { color: var(--text-secondary); }
.intern-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 10px;
  font-size: 1.2rem;
  color: var(--accent);
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  padding: 10px 22px;
  transition: all 0.3s;
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.25);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

/* ===== Contact ===== */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.contact-card .form-label { color: var(--text-primary); }
.contact-card .form-control {
  background: var(--bg-secondary);
  border: 1px solid var(--navy-light);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.12);
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.contact-card .form-control::placeholder { color: var(--text-secondary); opacity: 0.6; }

/* ===== Footer ===== */
.footer-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ===== Modal Overrides ===== */
.modal-content {
  background: var(--bg-card);
  border-radius: 12px;
}
.modal-header .btn-close { filter: invert(0.8) brightness(1.5); }
.modal-footer { border-top: none; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero-name { font-size: 2.5rem; }
  .hero-section { padding: 100px 0 60px; }
  .navbar-collapse {
    background: rgba(10, 25, 47, 0.98);
    padding: 16px;
    border-radius: 10px;
    margin-top: 8px;
  }
}
@media (max-width: 576px) {
  .hero-name { font-size: 2rem; }
  .hero-img { width: 180px; height: 180px; }
  .section-padding { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }
}

/* ===== Fade-in for sections via IntersectionObserver ===== */
.section-padding { opacity: 0; transform: translateY(30px); }
.section-padding.visible { opacity: 1; transform: translateY(0); }

/* ===== Gamer Background Canvas ===== */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.5s ease;
}
#bgCanvas.paused {
  opacity: 0.08;
}

/* ===== Background Toggle Button (Gamer Style) ===== */
.bg-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.15);
}
.bg-toggle:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 25px rgba(100, 255, 218, 0.4);
  transform: scale(1.1);
}
.bg-toggle i {
  line-height: 1;
}

