/* Core CSS variables for Theme Management */
:root {
  /* Deep Space / Cyber Glass Theme */
  --bg-primary: #050505; /* Pitch black */
  --bg-secondary: rgba(255, 255, 255, 0.03); /* Faint glass */
  --bg-tertiary: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent-primary: #8b5cf6; /* Electric Purple */
  --accent-secondary: #3b82f6; /* Neon Blue */
  --accent-tertiary: #10b981;
  --accent-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --accent-glow: rgba(139, 92, 246, 0.25);
  
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  
  --font-family: 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition-speed: 0.4s;
}

/* Resume Utilities */
.resume-divider {
  width: 100%;
  height: 2px;
  background-color: var(--bg-tertiary); /* Softer divider */
  margin: 1rem 0 2rem 0;
}

.timeline-item {
  position: relative;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
  pointer-events: none;
}
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
}
.timeline-item:hover::before {
  opacity: 1;
}
.timeline-item::before {
  display: none; /* Removed the small dots in favor of the clean card look */
}
.timeline-date {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.timeline-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.timeline-subtitle {
  font-weight: 600;
  color: var(--accent-secondary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.timeline-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
.timeline-content ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}


/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
a:hover {
  text-decoration: none;
  color: var(--accent-primary);
}

/* Premium Panels (Cyber Glass) */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
  pointer-events: none;
}
.glass-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px var(--accent-glow);
}
.glass-panel:hover::before {
  opacity: 1;
}

/* Section Header styling */
.section-title-wrapper {
  margin-bottom: 5rem;
  text-align: center;
}

.section-title-wrapper h2 {
  font-size: 3.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Dynamic Island Navbar */
.navbar {
  padding: 1rem 0;
  border-bottom: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  top: 20px;
}

.navbar .container {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 0.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.navbar.scrolled .container {
  background: rgba(15, 15, 15, 0.7);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -1px;
  font-weight: 800;
  color: var(--accent-primary);
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary) !important;
  margin: 0 0.75rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Theme Toggle (Hidden for Deep Space) */
.theme-toggle-btn {
  display: none;
}

/* Ambient Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.4;
  animation: breatheGlow 15s infinite alternate ease-in-out;
  pointer-events: none;
}
.ambient-1 {
  top: 0%;
  left: 10%;
  width: 40vw;
  height: 40vw;
  background: #8b5cf6;
}
.ambient-2 {
  bottom: 20%;
  right: 10%;
  width: 35vw;
  height: 35vw;
  background: #3b82f6;
  animation-delay: -5s;
}
.ambient-3 {
  top: 40%;
  left: 50%;
  width: 30vw;
  height: 30vw;
  background: #10b981;
  opacity: 0.2;
  animation-delay: -10s;
}

@keyframes breatheGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
  50% { transform: scale(1.2) translate(5%, 5%); opacity: 0.5; }
  100% { transform: scale(0.9) translate(-5%, -5%); opacity: 0.3; }
}

/* Hollow Watermark Typography */
.bg-watermark {
  position: absolute;
  top: 20%;
  left: -5%;
  font-size: 15vw;
  font-weight: 900;
  font-family: var(--font-heading);
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.03);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.bg-watermark.right {
  left: auto;
  right: -5%;
  top: 30%;
}
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 50px;
}

@media (min-width: 992px) {
  .hero-section {
    padding-top: 200px; /* Increased gap for laptops/desktops */
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-subtitle-top {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-primary);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 5.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-title span.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 15px var(--accent-glow));
  position: relative;
}



.hero-typewriter {
  font-size: 2rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 2rem;
  min-height: 3rem;
}

.typewriter-cursor {
  display: inline-block;
  background-color: var(--accent-secondary);
  width: 3px;
  height: 2.2rem;
  vertical-align: middle;
  margin-left: 8px;
  animation: blink 1s infinite;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.8;
}

.hero-ctas .btn {
  border-radius: 30px;
  padding: 14px 36px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.magnetic-btn {
  transition: transform 0.1s ease-out, box-shadow 0.3s ease, background 0.3s ease !important;
}

.btn-gradient {
  background: var(--accent-gradient);
  color: #fff !important;
  border: none;
  transition: all 0.4s;
}
.btn-gradient:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.btn-outline-custom {
  background: var(--glass-bg);
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Profile Photo */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-container {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* No Circle Glow in Light Theme */

.profile-image-wrapper {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-container:hover .profile-image-wrapper img {
  transform: scale(1.08);
}

.tech-badge-orbit {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 1.8rem;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}
.tech-badge-orbit:hover {
  transform: scale(1.15) !important;
}

.tech-badge-1 {
  top: 5%;
  right: -5%;
  color: #61dafb;
  animation: floatOrb 5s ease-in-out infinite;
}
.tech-badge-2 {
  bottom: 10%;
  left: -5%;
  color: #f7df1e;
  animation: floatOrb 5s ease-in-out infinite 2.5s;
}

/* About Section */
.about-card {
  padding: 4rem;
  border-radius: 30px;
}

.about-info-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.about-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.about-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.detail-item h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.detail-item p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-btn {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-btn:hover {
  transform: translateY(-8px) rotate(5deg);
  color: #fff;
  border-color: transparent;
  background: var(--accent-gradient);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
}

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  border-radius: 12px;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--card-shadow);
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: var(--bg-secondary);
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.1);
}

.project-badge-top {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-gradient);
  border-radius: 30px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.project-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-gradient);
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.7;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-links .btn {
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

/* Skills Section */
.skills-section {
  position: relative;
}

.skill-card {
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

.skill-card:hover {
  transform: translateY(-10px);
  color: #fff;
  border-color: transparent;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover p, .skill-card:hover h4, .skill-card:hover .skill-icon-box {
  color: #fff !important;
}

.skill-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.skill-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  transition: color 0.4s ease;
}

.skill-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.4s ease;
}

/* Contact Section */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  padding: 1.75rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease;
}
.contact-info-card:hover {
  transform: translateX(10px);
  border-color: var(--accent-primary);
}

.contact-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent-glow);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-info-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-form-card {
  padding: 3rem;
  border-radius: 30px;
}

.form-group-custom {
  position: relative;
  margin-bottom: 2.5rem;
}

.form-input-custom {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}
.form-input-custom:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: var(--bg-tertiary);
}

.form-label-custom {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  padding: 0 8px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
  border-radius: 4px;
}

textarea.form-input-custom ~ .form-label-custom {
  top: 24px;
}

.form-input-custom:focus ~ .form-label-custom,
.form-input-custom:not(:placeholder-shown) ~ .form-label-custom {
  top: 0;
  font-size: 0.85rem;
  color: var(--accent-primary);
  background: var(--bg-tertiary);
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes floatOrb {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* Responsive Lock-Down */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 130px;
    padding-bottom: 60px;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-title { font-size: 3.5rem; }
  .hero-description { margin: 0 auto 3rem; }
  .hero-ctas { justify-content: center; }
  .hero-visual { margin-top: 4rem; }
  
  .about-card { padding: 3rem; }
  .about-details-grid { grid-template-columns: 1fr; }
  .social-links { justify-content: center; }
  
  .navbar-collapse {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--glass-border);
  }
  .navbar-nav .nav-link {
    padding: 0.8rem 0;
    text-align: center;
  }
  .theme-toggle-btn { margin: 1rem auto 0; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.8rem; }
  .hero-typewriter { font-size: 1.5rem; }
  .profile-container { width: 280px; height: 280px; }
  
  .project-img-wrapper { height: 200px; }
  .project-body { padding: 1.75rem; }
  .project-links { flex-direction: column; }
  
  .skill-card { padding: 2rem 1.25rem; }
  
  .contact-form-card { padding: 2rem; }
  .section-title-wrapper h2 { font-size: 2.2rem; }
}

/* Phase 2: Ultra Premium Interactive Elements */



/* 2. Interactive Background Glow */
.interactive-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(220, 38, 38, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
  transition: transform 0.1s ease-out;
}

/* 3. Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 10000;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 0 4px 4px 0;
}

/* 4. Magnetic Buttons */
.magnetic-btn {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s;
}

/* 5. Asymmetrical Projects Layout */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.row.mt-4 > .col-lg-6:nth-child(even) {
  margin-top: 4rem; /* Offset every second project card to create a masonry-like staggered feel */
}

@media (max-width: 991px) {
  .row.mt-4 > .col-lg-6:nth-child(even) {
    margin-top: 0; /* Reset on mobile */
  }
  .interactive-glow {
    display: none; /* Hide interactive elements on mobile */
  }
}

/* --------------------------------------
   LEVEL 4 UPGRADES (Canvas, Meteors)
--------------------------------------- */

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* Meteor Streaks */
.meteor-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.meteor {
  position: absolute;
  top: 50%;
  left: -100px;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(139,92,246,1) 50%, rgba(255,255,255,1) 100%);
  transform: rotate(-45deg);
  animation: meteorShoot 8s infinite linear;
  opacity: 0;
}
@keyframes meteorShoot {
  0% { transform: translateX(0) translateY(0) rotate(-45deg); opacity: 1; }
  20% { transform: translateX(100vw) translateY(100vh) rotate(-45deg); opacity: 0; }
  100% { opacity: 0; }
}

/* Infinite Scrolling Marquee */
.marquee-container {
  width: 100vw;
  overflow: hidden;
  background: var(--accent-primary);
  padding: 15px 0;
  transform: rotate(-2deg) scale(1.05);
  margin-top: -30px;
  margin-bottom: 80px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  z-index: 10;
  position: relative;
}
.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: scrollMarquee 25s linear infinite;
}
.marquee-content span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #050505;
  padding: 0 2vw;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

/* --------------------------------------
   LEVEL 5 UPGRADES (Light Mode Toggle)
--------------------------------------- */

.theme-toggle-btn {
  color: var(--text-primary) !important;
  font-size: 1.2rem;
  transition: transform 0.3s, color 0.3s;
}
.theme-toggle-btn:hover {
  transform: rotate(20deg);
  color: var(--accent-primary) !important;
}

body.light-mode {
  --bg-primary: #f8fafc; /* Very light slate */
  --bg-secondary: #f1f5f9; /* Light gray */
  --bg-tertiary: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-primary: #6d28d9; /* Deeper purple */
  --accent-secondary: #2563eb; /* Deeper blue */
  --accent-tertiary: #059669;
  --accent-gradient: linear-gradient(135deg, #6d28d9, #2563eb);
  --accent-glow: rgba(109, 40, 217, 0.15);
  
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-highlight: rgba(0, 0, 0, 0.05);
}

/* Light mode specific overrides */
body.light-mode .bg-watermark {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.05);
}
body.light-mode .marquee-container {
  background: var(--bg-tertiary);
  border-color: var(--glass-border);
}
body.light-mode .marquee-content span {
  color: var(--accent-primary);
}
body.light-mode .timeline-item::before, 
body.light-mode .glass-panel::before {
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 0.05), transparent 40%);
}

/* --------------------------------------
   LEVEL 5 UPGRADES (Preloader, Reveals, Scrollbar)
--------------------------------------- */

/* 1. Cinematic Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--bg-primary); /* Matches site background perfectly */
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
  overflow: hidden;
}
#preloader::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vw;
  background: var(--accent-glow);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
}
#preloader.fade-out {
  transform: translateY(-100%);
}
.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
#loaderText {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 4px;
}
.loader-bar-container {
  width: 250px;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
#loaderBar {
  width: 0%;
  height: 100%;
  background: var(--accent-gradient);
  box-shadow: 0 0 15px var(--accent-primary);
  transition: width 0.1s ease;
  border-radius: 3px;
}
body.light-mode #preloader {
  background: var(--bg-primary);
}
body.light-mode .loader-bar-container {
  background: rgba(0, 0, 0, 0.1);
}

/* 2. Scroll-Triggered Reveals */
.reveal, .reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
  will-change: opacity, transform;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Apple-Style Hero Text Reveal */
.hero-reveal-text {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1), opacity 0.8s ease-out;
}
.hero-reveal-text.visible {
  transform: translateY(0);
  opacity: 1;
}

/* 4. Custom Themed Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* --------------------------------------
   LEVEL 6 UPGRADES (Micro-Interactions)
--------------------------------------- */

/* 3. Premium Text Selection */
::selection {
  background: var(--accent-primary);
  color: #ffffff;
}
::-moz-selection {
  background: var(--accent-primary);
  color: #ffffff;
}/* --------------------------------------
   MOBILE APP-LIKE BOTTOM NAVIGATION
--------------------------------------- */

/* Hide the bottom nav on desktop */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 991px) {
  /* Hide the top navbar collapse on mobile */
  .navbar-toggler {
    display: none !important;
  }
  .navbar-collapse {
    display: none !important;
  }
  /* Optional: we can keep the brand/logo at top but remove the toggle */
  
  /* Show and style the bottom nav */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    
    justify-content: space-around;
    align-items: center;
    padding: 12px 10px;
    transition: all 0.4s ease;
  }
  
  body.light-mode .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .mobile-bottom-nav a {
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    gap: 6px;
    flex: 1;
    position: relative;
    transition: color 0.3s ease;
  }

  .mobile-bottom-nav a i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
  }

  .mobile-bottom-nav a:hover, 
  .mobile-bottom-nav a.active {
    color: var(--accent-primary);
  }
  
  .mobile-bottom-nav a:hover i,
  .mobile-bottom-nav a.active i {
    transform: translateY(-3px);
  }

  /* Optional indicator dot */
  .mobile-bottom-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-bottom-nav a.active::after {
    opacity: 1;
    transform: scale(1);
  }
}
