/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
  /* THEME: Deep Midnight Slate */
  --bg-void: #0f172a;
  --bg-panel: #1e293b;
  --bg-card: #1e293b;

  /* CYBER RED THEME */
  --primary: #ff003c;
  --primary-dark: #cc0030;
  --primary-glow: rgba(255, 0, 60, 0.5);

  /* ACCENTS */
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.4);
  --cyan: #fffffff;
  --orange: #ff8c00;
  --purple: #9b59b6;

  /* TEXT COLORS */
  --text-white: #ffffff;
  --text-gray: #e2e8f0;
  /* Very Light Gray */
  --text-muted: #cbd5e1;
  /* Light Slate */

  /* FONTS */
  --font-head: "Orbitron", sans-serif;
  --font-sub: "Rajdhani", sans-serif;
  --font-body: "Outfit", sans-serif;

  --border-neon: 1px solid rgba(255, 0, 60, 0.3);
}

body.popup-open {
  overflow: hidden;
}

.insta-wrapper {
  display: block;
  width: 100%;
  overflow: visible;
}

.instagram-media {
  min-width: 100% !important;
  max-width: 100% !important;
}

.video-box {
  width: 300px;
  height: 440px;
  overflow: hidden;
  border-radius: 10px;
}

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

body {
  background-color: var(--bg-void);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.7;
  background-image:
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
  background-attachment: fixed;
}

/* IMPORTANT: Override Bootstrap's text-muted to make it visible */
.text-muted {
  color: var(--text-muted) !important;
}

/* Make regular text gray brighter */
.text-gray {
  color: var(--text-gray) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

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

/* =========================================
   2. CUSTOM CURSOR & PRELOADER
   ========================================= */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

body:hover .cursor-outline {
  width: 30px;
  height: 30px;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-void);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader-text {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 5px;
  color: var(--primary);
  margin-bottom: 20px;
  animation: pulse 1s infinite;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: #334155;
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary);
  animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

/* =========================================
   3. NAVBAR & HERO
   ========================================= */
.navbar {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  transition: 0.4s;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--primary);
}

.navbar-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  color: white !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--text-gray) !important;
  font-size: 1rem;
  margin-left: 20px;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover {
  color: white !important;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
  box-shadow: 0 0 10px var(--primary);
}

.nav-link:hover::before {
  width: 100%;
}

/* HERO AREA */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 130px;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
}

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

/* Popup Overlay */
/* .img-popup {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
} */
.img-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* Active State */
.img-popup.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Image */
.img-popup img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 15px;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  filter: grayscale(0%);
  box-shadow: 0 0 30px var(--primary-glow);
  border-color: var(--primary);
}

/* Zoom Effect */
.img-popup.active img {
  transform: scale(1);
}

/* Close Button */
.close-popup {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 35px;
  color: #0f0f0f;
  cursor: pointer;
  font-weight: 300;
}

/* Cursor Hint */
.hero-img {
  cursor: pointer;
}

/* hall of fame img */

.hero-tag {
  font-family: var(--font-sub);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
  border: 1px solid var(--primary);
  padding: 5px 15px;
  background: rgba(255, 0, 60, 0.05);
}

.hero-name {
  font-family: var(--font-head);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-name:hover {
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

.typewriter {
  font-family: var(--font-sub);
  font-size: 2rem;
  color: var(--text-gray);
  height: 50px;
  display: flex;
  align-items: center;
}

.typewriter span {
  color: var(--primary);
  font-weight: 700;
  margin-left: 10px;
}

.hero-img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  filter: grayscale(20%);
  transition: 0.5s;
  box-shadow: 0 0 50px rgba(15, 23, 42, 0.8);
}

.hero-img:hover {
  filter: grayscale(0%);
  box-shadow: 0 0 30px var(--primary-glow);
  border-color: var(--primary);
}

.tech-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: -1;
  animation: rotate 20s linear infinite;
}

.tech-circle::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
}

@keyframes rotate {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* =========================================
   4. MARQUEE & STATS
   ========================================= */
.marquee-section {
  background: var(--primary);
  padding: 15px 0;
  transform: rotate(-2deg) scale(1.1);
  position: relative;
  z-index: 5;
  box-shadow: 0 0 30px var(--primary);
  margin: 50px 0;
  overflow: hidden;
}

.marquee-content {
  white-space: nowrap;
  display: flex;
  animation: scrollText 20s linear infinite;
}

.marquee-item {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  margin-right: 50px;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.stat-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  border-radius: 12px;
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  background: linear-gradient(
    180deg,
    var(--bg-panel) 0%,
    rgba(255, 0, 60, 0.1) 100%
  );
}

.stat-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.stat-num span {
  color: var(--primary);
}

.stat-label {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
  color: var(--text-muted);
}

/* =========================================
   5. CONTENT CARDS
   ========================================= */
.section-title {
  font-family: var(--font-head);
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-title span {
  color: var(--primary);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 5px;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  transition: 0.3s;
}

.glass-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.edu-item {
  border-left: 2px solid var(--primary);
  padding-left: 20px;
  margin-bottom: 30px;
  position: relative;
}

.edu-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--bg-void);
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.edu-degree {
  font-family: var(--font-sub);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.edu-school {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.family-text {
  font-size: 1.1rem;
  color: var(--text-gray);
}

.family-highlight {
  color: var(--cyan);
  font-weight: 700;
}

.company-feature-list li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: var(--text-gray);
}

.company-feature-list li i {
  color: var(--primary);
  margin-right: 15px;
  font-size: 1.2rem;
  text-shadow: 0 0 10px var(--primary);
}

/* =========================================
   TIMELINE
   ========================================= */
.timeline-container {
  position: relative;
  padding: 20px 0;
}

.timeline-container::after {
  content: "";
  position: absolute;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  box-shadow: 0 0 15px var(--primary);
}

.timeline-row {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

.timeline-row.left {
  left: 0;
  text-align: right;
}

.timeline-row.right {
  left: 50%;
}

.timeline-row::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background: var(--bg-void);
  border: 3px solid var(--primary);
  top: 30px;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 10px var(--primary);
}

.timeline-row.right::after {
  left: -10px;
}

.t-content {
  padding: 30px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.t-content:hover {
  transform: scale(1.02);
  border-color: var(--gold);
  background: #253045;
}

.t-year {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.25);
  position: absolute;
  top: 10px;
  right: 20px;
  font-weight: 900;
}

.timeline-row.left .t-year {
  right: auto;
  left: 20px;
}

.t-role {
  font-family: var(--font-sub);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.t-org {
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
  margin-bottom: 15px;
}

.gold-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 4px;
  margin-top: 10px;
  text-transform: uppercase;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* =========================================
   9. CONTACT & FOOTER (FIXED)
   ========================================= */
.contact-form-box {
  background: var(--bg-panel);
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.form-control {
  background: transparent;
  border: none;
  border-bottom: 2px solid #475569;
  border-radius: 0;
  color: white;
  padding: 15px 0;
  font-family: var(--font-body);
}

/* FIX: Made placeholders bright light-gray */
.form-control::placeholder {
  color: #cbd5e1 !important;
  opacity: 1;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.form-control:focus {
  background: transparent;
  box-shadow: none;
  border-color: var(--primary);
  color: white;
}

.btn-neon {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 15px 40px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
  margin-top: 20px;
  border-radius: 4px;
}

.btn-neon:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 30px var(--primary-glow);
}

footer {
  background: #020617;
  padding: 80px 0 30px;
  border-top: 5px solid var(--primary);
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
}

.social-icons a {
  width: 50px;
  height: 50px;
  border: 1px solid #475569;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin-right: 10px;
  transition: 0.3s;
  font-size: 1.2rem;
  border-radius: 50%;
}

.social-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-5px);
}

@media (max-width: 991px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .hero-name {
    font-size: 3rem;
  }

  .typewriter {
    justify-content: center;
  }

  .hero-img {
    margin-top: 50px;
    max-width: 300px;
  }

  .tech-circle {
    width: 350px;
    height: 350px;
  }

  .timeline-container::after {
    left: 20px;
  }

  .timeline-row {
    width: 100%;
    padding-left: 50px;
    padding-right: 10px;
  }

  .timeline-row.left {
    text-align: left;
  }

  .timeline-row.right {
    left: 0;
  }

  .timeline-row::after {
    left: 11px;
  }

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

  .contact-form-box {
    padding: 30px;
  }
}
