:root {
  /* Dark Mode (Default) - True Black */
  --bg-color: #000000; /* Deep Black */
  --bg-gradient: linear-gradient(
    135deg,
    #000000 0%,
    #050505 50%,
    #0a0a0a 100%
  ); /* Monochromatic Black */
  /* Deep Navy Blue */
  --text-color: #ffffff;
  --text-muted: #a0a0a0;

  /* Brand Colors - Cyber Cyan Theme */
  --primary-color: #00e5ff;
  /* Cyan */
  --secondary-color: #00b0ff;
  /* Deep Blue */
  --accent-color: #18ffff;
  /* Bright Cyan Accent */

  /* Glassmorphism 2.0 - Premium Softness */
  --glass-bg: rgba(255, 255, 255, 0.05);
  /* Slightly more visible */
  --glass-border: rgba(255, 255, 255, 0.1);
  /* Crisper borders */
  --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  /* Deeper shadows for depth */

  --font-heading: "Outfit", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --transition-speed: 0.4s;
  --card-radius: 24px;
  /* Much rounder corners */
  --btn-radius: 50px;
  /* Pill shape buttons */

  /* 3D Scene Config */
  --scene-line-color: #00e676;
}

/* ====================
   2. RESET & BASE
   ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  font-size: 90%;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-speed);
}

ul {
  list-style: none;
}

/* ====================
   3. BACKGROUND VIDEO
   ==================== */
/* ====================
   3. BACKGROUND CANVAS
   ==================== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Video styles removed */

/* ====================
   4. UTILITIES & COMPONENTS
   ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* PREMIUM GLASSMORPHISM 3.0 */
/* PREMIUM GLASSMORPHISM 3.0 -> CYBER HOLOGRAPHIC GLOBAL */
.glass-card {
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

/* Scanning Line Effect (Global) */
.glass-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: 0.5s;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover::before {
  top: 100%;
  transition: 0.8s;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-card:hover::after {
    /* Optional: Bottom glow for generic cards too, default to primary or white */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
    box-shadow: 0 -5px 10px var(--primary-color);
}
.glass-card:hover::after {
    transform: scaleX(1);
}


.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 15px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: white;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.8);
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--bg-color);
}

.gradient-text {
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.section-title.center {
  text-align: center;
}

/* GRID LAYOUT FOR RESOURCES */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  padding-bottom: 20px;
}

.hidden-scrollbar::-webkit-scrollbar {
  display: none;
}
.resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  padding: 30px 20px;
  background: rgba(5, 5, 8, 0.6); /* Deep dark background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);

  /* Default Theme Variable */
  --card-theme: #00e5ff;
  --card-glow: rgba(0, 229, 255, 0.4);
}

/* 3-Color Cycle Strategy */
.resource-card:nth-child(3n+1) {
  --card-theme: #00e5ff; /* Cyan */
  --card-glow: rgba(0, 229, 255, 0.4);
}
.resource-card:nth-child(3n+2) {
  --card-theme: #00e676; /* Green */
  --card-glow: rgba(0, 230, 118, 0.4);
}
.resource-card:nth-child(3n+3) {
  --card-theme: #00d4ff; /* Sky Blue */
  --card-glow: rgba(0, 212, 255, 0.4);
}

/* Hover - Lift & Glow */
.resource-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--card-theme);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px var(--card-glow);
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}

/* Scanning Line Effect */
.resource-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
    pointer-events: none;
    z-index: 1;
}
.resource-card:hover::before {
    top: 100%;
    transition: 0.8s;
}

/* Glowing Bottom Border on Hover (Replaces ::after) */
.resource-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--card-theme);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
  box-shadow: 0 -5px 15px var(--card-theme);
}

.resource-card:hover::after {
  transform: scaleX(1);
}

/* Icon Container */
.card-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.icon-circle {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.resource-card:hover .icon-circle {
  color: var(--card-theme);
  border-color: var(--card-theme);
  box-shadow: 0 0 20px var(--card-glow) inset, 0 0 20px var(--card-glow);
  background: rgba(0,0,0,0.3);
  transform: scale(1.1) rotate(5deg);
}

/* Tags Area */
.card-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.tag-pill {
    background: rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.05);
}

.star-rating i {
    font-size: 0.7rem;
    color: #444; /* Dim stars */
    transition: 0.3s;
}
.resource-card:hover .star-rating i {
    color: #ffd700; /* Gold on hover */
    text-shadow: 0 0 5px #ffd700;
}

/* Content */
.resource-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 5px 0 0 0; /* Reduced bottom margin */
  transition: color 0.3s;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 400;
}

.resource-card:hover h3 {
    color: var(--card-theme);
    text-shadow: 0 0 15px var(--card-glow);
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Footer / Button */
.card-footer {
    margin-top: auto;
    width: 100%;
}

.btn-resource, .btn-full {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-resource:hover, .btn-full:hover {
  background: var(--card-theme);
  border-color: var(--card-theme);
  box-shadow: 0 0 25px var(--card-glow);
  color: #000; /* Contrast black text */
  font-weight: 800;
  transform: translateY(-3px);
}

/* Badge (Top Left) */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px; /* Moved to right for balance */
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--card-theme);
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--card-theme);
    box-shadow: 0 0 10px var(--card-glow);
    z-index: 5;
    letter-spacing: 1px;
}

/* ====================
   5. NAVIGATION
   ==================== */
/* ====================
   5. NAVIGATION (ADVANCED GLITCH)
   ==================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px; /* Reduced global padding by 30-40% */
  position: fixed;
  width: 90%;
  max-width: 1400px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  gap: 20px; /* Prevent logo from touching links */

  /* Advanced Glassmorphism */
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px; /* Pill Shape */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar:hover {
  border-color: rgba(0, 229, 255, 0.3); /* Subtle Cyan Glow on Hover */
  box-shadow: 0 15px 50px rgba(0, 229, 255, 0.1);
}

/* Logo Redesign & Subtle Glitch */
.logo {
  font-family: "Outfit", sans-serif; /* Modern Font */
  font-size: 1.1rem; /* Compact font size */
  font-weight: 700;
  position: relative;
  color: white;
  letter-spacing: 0.5px;
  white-space: nowrap; /* Prevent logo wrap */
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 26px; /* Reduced from 34px for compact look */
  width: auto;
  display: block;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.25));
}

.navbar-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.7));
}

.logo .dot {
  color: #00e5ff;
  /* animation: blink 1s step-end infinite; Removed blink for cleaner look */
}

.logo-code {
  color: #00e5ff;
  margin-right: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-block;
}

.logo:hover .logo-code {
  color: #bd00ff;
  text-shadow: 0 0 12px rgba(189, 0, 255, 0.7);
  transform: rotate(-10deg) scale(1.05);
}

.glitch-effect {
  position: relative;
  display: inline-block;
}

/* Make glitch appear only on hover or very rarely */
.glitch-effect:hover::before,
.glitch-effect:hover::after {
  display: block;
}

.glitch-effect::before,
.glitch-effect::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  display: none; /* Hidden by default */
}

.glitch-effect::before {
  left: 1px; /* Reduced offset */
  text-shadow: -1px 0 #00e5ff;
  clip-path: inset(0 0 0 0);
  animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch-effect::after {
  left: -1px; /* Reduced offset */
  text-shadow: -1px 0 #00e676; /* Green Glitch */
  clip-path: inset(0 0 0 0);
  animation: glitch-anim-2 3.5s infinite linear alternate-reverse;
}

/* Slower, less aggressive animations */
@keyframes glitch-anim-1 {
  0% {
    clip-path: inset(80% 0 2% 0);
  }
  20% {
    clip-path: inset(10% 0 80% 0);
  }
  40% {
    clip-path: inset(80% 0 5% 0);
  }
  60% {
    clip-path: inset(5% 0 90% 0);
  }
  80% {
    clip-path: inset(90% 0 5% 0);
  }
  100% {
    clip-path: inset(10% 0 60% 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip-path: inset(15% 0 70% 0);
  }
  20% {
    clip-path: inset(70% 0 10% 0);
  }
  40% {
    clip-path: inset(20% 0 50% 0);
  }
  60% {
    clip-path: inset(60% 0 10% 0);
  }
  80% {
    clip-path: inset(5% 0 80% 0);
  }
  100% {
    clip-path: inset(80% 0 5% 0);
  }
}

/* Nav Link Scramble & Glitch Style */
.nav-links {
  display: flex;
  gap: 15px; /* Reduced gap from 20px */
  align-items: center;
}

.nav-links li a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0a0a0;
  transition: 0.3s;
  position: relative;
}

/* Hover: White Text + Glow */
.nav-links li a:hover {
  color: white;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Arrow Glitch */
.nav-links li a::before {
  content: ">";
  position: absolute;
  left: -15px;
  opacity: 0;
  color: #00e5ff;
  transition: 0.3s;
  font-family: "VT323", monospace;
}

.nav-links li a:hover::before {
  opacity: 1;
  left: -12px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  z-index: 1001;
  transition: 0.3s;
}

.menu-toggle:hover {
  color: var(--primary-color);
}

/* Removed misplaced media queries - moved to end of file */

/* Stack Button - Cyber Border */
.nav-btn-stack {
  border-color: rgba(255, 255, 255, 0.2);
  color: white !important;
}

.nav-btn-stack:hover {
  border-color: #00e676;
  color: #00e676 !important;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
  background: transparent;
}

/* Duplicates removed */

/* Theme toggle removed */

/* Stack Button Special Style */
.nav-btn-stack {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-color);
  padding: 6px 14px; /* Reduced from 8px 18px */
  border-radius: 50px;
  color: var(--primary-color) !important;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
  display: inline-flex;
  align-items: center;
}

.nav-btn-stack:hover {
  background: var(--primary-color);
  color: black !important;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.6);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

/* Books Button Special Style */
.nav-btn-book {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #facc15;
  padding: 6px 14px; 
  border-radius: 50px;
  color: #facc15 !important;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
  display: inline-flex;
  align-items: center;
}

.nav-btn-book:hover {
  background: #facc15;
  color: black !important;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.6);
  transform: translateY(-2px);
  border-color: #facc15;
}

/* Coding Hub Button Special Style */
.nav-btn-coding-hub {
  background: rgba(13, 13, 22, 0.6);
  border: 1px solid #bd00ff;
  padding: 6px 14px; 
  border-radius: 50px;
  color: #d880ff !important;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(189, 0, 255, 0.15);
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.nav-btn-coding-hub::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: 0.5s;
}

.nav-btn-coding-hub:hover::before {
  left: 100%;
}

.nav-btn-coding-hub:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #bd00ff 100%);
  color: black !important;
  box-shadow: 0 0 25px rgba(189, 0, 255, 0.6), 0 0 10px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
  border-color: #00f0ff;
}

.nav-btn-coding-hub.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(189, 0, 255, 0.15) 100%);
  border-color: #00f0ff;
  color: #00f0ff !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 5px rgba(0, 240, 255, 0.1);
}

/* ====================
   6. SECTIONS
   ==================== */
section {
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* HERO */
.hero-content {
  padding-top: 150px; /* Increased for better spacing */
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 85vh; /* Taller hero */
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.hero-content.hero-center {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: auto;
  padding-top: 100px; /* Consistent padding */
  padding-bottom: 20px;
}

.hero-text {
  flex: 1;
  max-width: 550px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Context for icons */
  transform: translate(50px, -20px); /* Moved right (50px) and lifted */
}

/* Orbit Container */
.orbit-container {
  position: absolute;
  width: 400px; /* Reduced from 500px */
  height: 400px;
  border-radius: 50%;
  animation: rotateOrbit 30s linear infinite;
  z-index: 5;
  pointer-events: none;
}

/* ... existing code ... */

/* Color adjustment (Bright & Pop - No Purple) */
.hero-image dotlottie-player {
  /* Removed purple drop-shadow. Kept brightness/contrast for pop. */
  filter: brightness(1.5) contrast(1.3)
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
  max-width: 350px !important;
  max-height: 350px !important;
  transition: filter 0.3s ease;
}

/* Floating Tech Icons */
.tech-icon {
  position: absolute;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08); /* Stylized Glass */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
  pointer-events: auto;
  /* Counter-rotate to keep icons upright */
  animation: counterRotate 30s linear infinite;
  transition: transform 0.3s ease;
}

.tech-icon:hover {
  background: white;
  transform: scale(1.2);
  color: black;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 20;
}

/* Positioning in a circle (radius ~220px) */
/* Using Trigonometry manually for 8 items: 0, 45, 90... degrees */
.icon-1 {
  top: 50%;
  left: 95%;
  color: #ffeb3b;
} /* 0 deg */
.icon-2 {
  top: 18%;
  left: 82%;
  color: #f0db4f;
} /* 45 deg */
.icon-3 {
  top: 5%;
  left: 50%;
  color: #61dbfb;
} /* 90 deg */
.icon-4 {
  top: 18%;
  left: 18%;
  color: #f89820;
} /* 135 deg */
.icon-5 {
  top: 50%;
  left: 5%;
  color: #e34c26;
} /* 180 deg */
.icon-6 {
  top: 82%;
  left: 18%;
  color: #0db7ed;
} /* 225 deg (Docker) */
.icon-7 {
  top: 95%;
  left: 50%;
  color: #f1502f;
} /* 270 deg (Git) */
.icon-8 {
  top: 82%;
  left: 82%;
  color: #00add8;
} /* 315 deg (Go) */

@keyframes rotateOrbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes counterRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes floatIcon {
  /* Legacy fallback if needed, but orbit replaces it */
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Color adjustment (Bright & Pop - No Purple) */
.hero-image dotlottie-player {
  /* Removed purple drop-shadow. Kept brightness/contrast for pop. */
  filter: brightness(1.5) contrast(1.3)
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
  max-width: 350px !important;
  max-height: 350px !important;
  transition: filter 0.3s ease;
}

.floating-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 230, 118, 0.4));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse; /* Text on top is standard, but if we want image on top: column. Here keeping text on top for readability? No, usually image first on mobile is good, or text first. Let's stick to text first as per previous design */
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-top: 80px; /* Mobile needs some padding */
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.8rem !important;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-group {
    justify-content: center;
  }

  .floating-img {
    max-width: 80%;
  }
}

.hero-content h5 {
  color: var(--secondary-color);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 600;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 4rem; /* Bigger */
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 700;
}

.hero-content h1 .auto-type {
  background: linear-gradient(to right, #00e5ff, #2979ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Premium Button Styles */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 10px 30px rgba(41, 121, 255, 0.4);
  border: none;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.btn-primary:hover {
  box-shadow: 0 15px 40px rgba(41, 121, 255, 0.6);
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  color: black;
  border-color: white;
  transform: translateY(-3px);
}

/* Blinking Cursor */
.cursor {
  display: inline-block;
  width: 4px;
  background-color: var(--accent-color);
  animation: blink 1s step-end infinite;
  margin-left: 5px;
  height: 1em; /* Dynamic height */
  vertical-align: middle;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* STATS */
#stats {
  min-height: auto;
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.stat-item h3 {
  font-size: 3rem;
  font-family: var(--font-heading);
  margin-bottom: 5px;
}

.stat-item p {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ABOUT */
.about-wrapper {
  display: flex;
  justify-content: center;
}

.about-text {
  max-width: 800px;
  text-align: center;
}

.tech-stack {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tech-stack span {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* EXPERIENCE (TIMELINE) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: var(--glass-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 30px 40px;
  background: rgba(255, 255, 255, 0.08);
  /* Increased from 0.02 */
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  width: 45%;
  position: relative;
  margin-bottom: 40px;
  transition: all 0.4s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  box-shadow: 0 10px 40px rgba(213, 0, 249, 0.2);
  /* Purple glow */
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 54.5%;
}

.timeline-item .date {
  color: var(--accent-color);
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* COURSES */
/* COURSES */
/* HORIZONTAL SCROLL (3 Items per view) */
.horizontal-scroll-view {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 50px 40px 50px;
  /* Added side padding to prevent cut-off */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  align-items: stretch;
}

.horizontal-scroll-view > * {
  /* 3 Items calculation */
  flex: 0 0 calc((100% - 60px) / 3);
  min-width: 300px;
  scroll-snap-align: center;
  /* Center alignment */
}

/* Tablet: 2 Items */
@media (max-width: 992px) {
  .horizontal-scroll-view > * {
    flex: 0 0 calc((100% - 30px) / 2);
  }
}

/* Mobile: 1 Item */
@media (max-width: 600px) {
  .horizontal-scroll-view > * {
    flex: 0 0 85%;
    /* Slightly less than 100% to show peek of next card */
    min-width: unset;
  }
}

/* Custom 4-Column Grid for All Courses */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0 40px 0;
  width: 100%;
}

@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

/* Decreased size for cards inside courses-grid */
.courses-grid .course-card .card-image {
  height: 140px;
}

.courses-grid .course-card .card-content {
  padding: 16px;
}

.courses-grid .course-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.courses-grid .course-card p {
  font-size: 0.85rem;
}

/* COURSE CARD IMAGE FIX */
/* COURSE CARD REDESIGN - NEON HOLOGRAPHIC */

/* COURSE CARD REDESIGN - NEON HOLOGRAPHIC */
.course-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 12, 0.7); /* Darker, more premium base */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.course-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 25px rgba(0, 229, 255, 0.2); /* Cyan ambient glow */
  background: rgba(20, 20, 25, 0.8);
}

/* Card Image Area */
.card-image {
  height: 180px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(10,10,12, 1) 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
  opacity: 0.8;
}

.course-card:hover .card-overlay {
  opacity: 0.4; /* Reveal more image on hover */
}

/* Large Background Icon in Image */
.card-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: 5rem;
    color: rgba(255,255,255,0.2);
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card:hover .card-icon-bg {
    transform: translate(-50%, -50%) scale(1.2) rotate(-10deg);
    color: rgba(255,255,255,0.4);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* Gradients */
.gradient-1 { background: linear-gradient(135deg, #00C9FF, #92FE9D); }
.gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }

/* Content Area */
.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 3;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: #00e5ff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.course-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  transition: color 0.3s;
}

.course-card:hover h3 {
    background: linear-gradient(90deg, #fff, #00e5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.course-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Chips for Meta Info */
.card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #d1d1d1;
    transition: all 0.3s ease;
}

.meta-chip i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.course-card:hover .meta-chip {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.2);
    color: white;
}

/* Action Button */
.btn-sm.btn-glow {
    margin-top: auto;
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.1) 50%, transparent 100%);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #00e5ff;
    font-weight: 600;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.btn-sm.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-sm.btn-glow:hover::before {
    left: 100%;
}

.btn-sm.btn-glow:hover {
    background: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

/* ====================
   7. DECORATIVE ELEMENTS
   ==================== */
.footer-divider-container {
  width: 100%;
  line-height: 0;
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

.footer-divider {
  width: 100%;
  height: 100px;
}

/* ====================
   8. ADVANCED FOOTER
   ==================== */
footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: white;
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.footer-brand h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 320px;
  margin-bottom: 35px;
}

.newsletter-form {
  position: relative;
  max-width: 300px;
}

.newsletter-form input {
  width: 100%;
  padding: 16px 60px 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: white;
  outline: none;
  font-family: var(--font-body);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-form input:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 25px rgba(255, 0, 60, 0.2);
}

.newsletter-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  background: var(--primary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-form button:hover {
  transform: scale(1.1);
  background: var(--secondary-color);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: white;
  font-weight: 600;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.3s;
  position: relative;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info li i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(255, 0, 60, 0.4);
  border-color: var(--primary-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Footer */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto 30px;
  }

  .newsletter-form {
    margin: 0 auto;
  }

  .contact-info li {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 40px;
  left: 105px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 0, 60, 0.4);
}

/* ====================
   9. CHATBOT WIDGET
   ==================== */
.chat-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 2000;
}

.chat-button {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #2979ff 0%, #1565c0 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(41, 121, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.chat-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 30px rgba(41, 121, 255, 0.45);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(41, 121, 255, 0.5);
  animation: pulse 2s infinite;
  opacity: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 290px;
  height: 380px;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transform-origin: bottom right;
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.chat-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Chat Views */
.chat-view {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  flex-direction: column;
}

.chat-view.active-view {
  display: flex;
  animation: viewFadeIn 0.3s ease;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Home View */
.home-header {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at top, rgba(41, 121, 255, 0.12) 0%, transparent 70%);
  padding: 24px;
}

.avatar-large {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  color: #00e5ff;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0, 229, 255, 0.1);
  animation: floatAvatar 3s ease-in-out infinite;
}

@keyframes floatAvatar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.home-header h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.home-header .subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.action-cards {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.action-card:hover {
  background: rgba(41, 121, 255, 0.08);
  border-color: rgba(41, 121, 255, 0.3);
  transform: translateY(-1px);
}

.card-icon {
  width: 22px;
  height: 22px;
  background: rgba(41, 121, 255, 0.1);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2979ff;
  font-size: 0.7rem;
  transition: all 0.25s ease;
}

.action-card:hover .card-icon {
  background: #2979ff;
  color: #ffffff;
}

.action-card h3 {
  font-size: 0.75rem;
  font-weight: 500;
  color: #e2e8f0;
}

/* Chat Interface View */
.chat-header {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.back-btn,
.close-chat {
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.back-btn:hover,
.close-chat:hover {
  color: #00e5ff;
}

.chat-info.centered {
  text-align: center;
}

.chat-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
}

.chat-status {
  font-size: 0.7rem;
  color: #2979ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.chat-status::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.timestamp {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  word-break: break-word;
}

@keyframes popIn {
  from {
    transform: scale(0.92) translateY(5px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.bot-message {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-top-left-radius: 2px;
  align-self: flex-start;
}

.user-message {
  background: linear-gradient(135deg, #2979ff 0%, #1565c0 100%);
  color: #ffffff;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(41, 121, 255, 0.2);
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 10px 15px;
}

.chat-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.topic-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-chip:hover {
  background: rgba(41, 121, 255, 0.15);
  border-color: rgba(41, 121, 255, 0.4);
  color: #ffffff;
}

.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

#chat-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 34px 8px 12px;
  border-radius: 8px;
  color: white;
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  transition: all 0.25s ease;
  height: 34px;
}

#chat-input:focus {
  border-color: rgba(41, 121, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(41, 121, 255, 0.1);
}

.input-icon-btn {
  position: absolute;
  right: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.input-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.input-icon-btn.active {
  color: var(--error-red);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

#send-btn {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2979ff, #00b0ff);
  border: none;
  border-radius: 8px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(41, 121, 255, 0.15);
  font-size: 0.8rem;
}

#send-btn:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 6px 16px rgba(41, 121, 255, 0.3);
}

#send-btn:active {
  transform: scale(0.98) translateY(0);
}

/* NAVBAR RESPONSIVENESS */
@media (max-width: 1200px) {
  .nav-links {
    display: none; /* Hidden by default, toggled by JS */
  }

  .menu-toggle {
    display: block; /* Show hamburger menu */
  }

  .navbar {
    padding: 15px 20px;
    width: 95%;
  }
}

/* Responsiveness */
@media (max-width: 480px) {
  .chat-window {
    width: 90%;
    right: 5%;
    bottom: 90px;
    height: 70vh;
  }
}

/* Footer Legal Links */
.footer-legal {
  font-size: 0.9rem;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 60, 0.3);
    border-color: var(--primary-color);
}

/* Compact Footer */
/* Modern Floating Footer */
footer {
    padding: 30px 0 15px; /* Reduced padding significantly */
    background: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0.8));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Background Glow for Footer */
footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 150px; /* Reduced height */
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(50px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 20px; /* Reduced gap */
    margin-bottom: 20px; /* Reduced margin */
    position: relative;
    z-index: 1;
}

.footer-brand {
    padding-right: 20px;
}

.footer-brand h2 {
    font-size: 1.5rem; /* Slightly smaller */
    margin-bottom: 10px;
    font-family: var(--font-heading);
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 320px;
    opacity: 0.8;
}

.footer-links h3 {
    font-size: 1rem;
    margin-bottom: 15px; /* Reduced */
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links ul {
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px; /* Reduced */
}

.footer-links ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links ul li a i {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: 0.3s;
}

.footer-links ul li a:hover i {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px; /* Reduced */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Mobile Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand {
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
}

/* ====================
   10. PAYMENT MODAL (Support Platform)
   ==================== */
.payment-modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Dark overlay */
  backdrop-filter: blur(15px); /* Strong blur */
  -webkit-backdrop-filter: blur(15px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(20, 20, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px; /* Reduced from 40px */
  width: 90%;
  max-width: 380px; /* Reduced from 500px */
  border-radius: 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: white;
  transform: rotate(90deg);
}

/* Animated Heart */
.heart-icon-container {
  font-size: 3rem;
  color: #00e5ff;
  margin-bottom: 15px;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

.modal-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.small-text {
  font-size: 0.9rem;
}

.highlight-text {
  color: white;
  font-weight: 500;
  margin-bottom: 25px !important;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.pay-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: 0.3s;
}

.pay-btn:hover {
  background: white;
  color: black;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.pay-btn.full-width {
  grid-column: span 3;
  background: linear-gradient(45deg, #00e5ff, #00b0ff);
  border: none;
  font-weight: 700;
}

.pay-btn.full-width:hover {
  box-shadow: 0 10px 25px rgba(255, 0, 60, 0.4);
  color: white; /* Keep white text for primary button */
}

.continue-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--text-muted);
  padding-bottom: 2px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.continue-link:hover {
  opacity: 1;
  color: white;
  border-color: white;
}

/* ====================
   BLOG CARD GLOBAL STYLES
   ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    padding: 0.8rem; /* Reduced padding inside the glass card */
}

.blog-card .card-image {
    height: 130px; /* Reduced from 160px */
    width: 100%;
    border-radius: 12px; /* Adjusted radius */
    overflow: hidden;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Placeholder gradients */
.img-tech-1 { background: linear-gradient(135deg, #b71c1c, #d32f2f); }
.img-tech-2 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.img-tech-3 { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.img-tech-4 { background: linear-gradient(135deg, #fc4a1a, #f7b733); }

.blog-meta {
    font-size: 0.7rem; /* Reduced from 0.75rem */
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.blog-meta i {
    color: var(--primary-color);
}

.blog-card h3 {
    font-size: 1.1rem; /* Reduced from 1.3rem */
    margin-bottom: 8px;
    font-family: var(--font-heading);
    line-height: 1.3;
    font-weight: 700;
    color: white;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.82rem; /* Reduced from 0.9rem */
    margin-bottom: 15px; /* Reduced from 20px */
    flex-grow: 1;
    line-height: 1.5; /* Reduced from 1.6 */
}

.read-more-btn {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem; /* Reduced from 0.9rem */
    margin-top: auto;
    transition: all 0.3s;
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.1);
}

.read-more-btn:hover {
    gap: 12px;
    color: white;
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
    border-color: var(--primary-color);
}

/* Share Buttons */
.share-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.1) translateY(-3px);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


.share-linkedin:hover {
    background: #0077b5;
    border-color: rgba(0, 119, 181, 0.4);
}

.share-facebook:hover {
    background: #1877f2;
    border-color: rgba(24, 119, 242, 0.4);
}

.share-whatsapp:hover {
    background: #25d366;
    border-color: rgba(37, 211, 102, 0.4);
}

.share-copy:hover {
    background: var(--primary-color);
    border-color: rgba(213, 0, 249, 0.4);
}

.share-btn.copied {
    width: 105px !important;
    border-radius: 20px !important;
    background: #00e676 !important;
    border-color: #00e676 !important;
    color: #121212 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4) !important;
}

/* ====================
   NEW COURSE CARD STYLES (MATCHING GLOBAL)
   ==================== */
.course-card {
    /* Inherit glass-card */
    display: flex;
    flex-direction: column;
    padding: 0; /* Override glass padding for image */
    overflow: hidden;
    height: 100%;
}

.course-card .card-image {
    height: 200px;
    width: 100%;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.course-card:hover .card-image {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.course-card .card-content {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-grow: 1;
}

.course-card .card-content a.btn-sm {
    margin-top: auto;
}

/* FORCE RESET LEGACY NEON BORDER TO MATCH GLOBAL SCANNING LINE */
.course-card::before {
    /* Reset legacy inset/background */
    inset: auto;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: none;
    opacity: 1;
    
    /* Restore global glass-card scanning properties */
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: 0.5s;
    pointer-events: none;
    border-radius: 24px;
}

.course-card:hover::before {
    top: 100%;
    transition: 0.8s;
    opacity: 1;
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.4);
}

.cards-wrapper .card:nth-child(3n+3):hover {
    border-color: #00d4ff;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

/* ====================
   7. SOCIAL MEDIA SECTION
   ==================== */
.resource-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.rating-container {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.stars {
    color: #fbbf24;
}

.rating-value {
    font-weight: 700;
    color: #fff;
}

.rating-count {
    color: #94a3b8;
    font-size: 0.8rem;
}

.card-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.btn-download {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-download:hover {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.card.glass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ====================
   9. JARVIS PRELOADER (Ultra-Advanced Color Edition)
   ==================== */
#jarvis-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(1, 0, 0, 1), opacity 0.8s ease;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9), 
                inset 0 0 50px rgba(0, 229, 255, 0.05);
}

#jarvis-preloader.loaded {
    opacity: 0;
    pointer-events: none;
    transform: scale(3);
}

/* Color Accents */
:root {
    --jarvis-cyan: #00e5ff;
    --jarvis-amber: #ffab00;
    --jarvis-magenta: #ff00ff;
    --jarvis-green: #00ff88;
}

/* Corner Decorations */
#jarvis-preloader::before,
#jarvis-preloader::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    pointer-events: none;
}

#jarvis-preloader::before {
    top: 30px;
    left: 30px;
    border-right: none;
    border-bottom: none;
    border-top: 2px solid var(--jarvis-cyan);
    border-left: 2px solid var(--jarvis-amber);
}

#jarvis-preloader::after {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
    border-bottom: 2px solid var(--jarvis-cyan);
    border-right: 2px solid var(--jarvis-magenta);
}

.hud-status {
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    text-align: right;
    line-height: 1.4;
    color: var(--jarvis-green);
    text-shadow: 0 0 10px var(--jarvis-green);
    opacity: 0.7;
}

/* Laser Scan */
.laser-scan {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--jarvis-cyan), transparent);
    box-shadow: 0 0 15px var(--jarvis-cyan);
    animation: laserMove 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 100;
    opacity: 0.4;
}

@keyframes laserMove {
    0% { top: 0%; }
    100% { top: 100%; }
}

.preloader-content {
    position: relative;
    width: 600px;
    height: 600px;
}

.main-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotateOrbit 20s linear infinite;
}

.main-ring::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border: 2px solid transparent;
    border-top: 2px solid var(--jarvis-amber);
    border-radius: 50%;
    animation: rotateOrbit 5s linear infinite;
}

.inner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 1px dashed var(--jarvis-magenta);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotateOrbit 8s linear infinite reverse;
}

.pulse-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.mini-loader {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid transparent;
    border-top: 3px solid var(--jarvis-amber);
    border-radius: 50%;
    animation: rotateOrbit 1s linear infinite;
    filter: drop-shadow(0 0 10px var(--jarvis-amber));
}

.preloader-ui {
    position: relative;
    width: 220px;
    text-align: center;
    z-index: 20;
}

/* Perfect Circular Orbit */
.preloader-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 450px;
    margin-top: -225px;
    margin-left: -225px;
    animation: rotateOrbit 30s linear infinite;
    border-radius: 50%;
}

.p-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    animation: counterRotate 30s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Icon Colors & Exact Circular Positions (450px diameter) */
.p-icon-1 { top: 0%; left: 50%; transform: translate(-50%, -50%); border-color: #3776AB; color: #3776AB; box-shadow: 0 0 20px rgba(55, 118, 171, 0.4); } /* Python */
.p-icon-2 { top: 14.6%; left: 85.4%; transform: translate(-50%, -50%); border-color: #F7DF1E; color: #F7DF1E; box-shadow: 0 0 20px rgba(247, 223, 30, 0.4); } /* JS */
.p-icon-3 { top: 50%; left: 100%; transform: translate(-50%, -50%); border-color: #61DAFB; color: #61DAFB; box-shadow: 0 0 20px rgba(97, 219, 251, 0.4); } /* React */
.p-icon-4 { top: 85.4%; left: 85.4%; transform: translate(-50%, -50%); border-color: #f89820; color: #f89820; box-shadow: 0 0 20px rgba(248, 152, 32, 0.4); } /* Java */
.p-icon-5 { top: 100%; left: 50%; transform: translate(-50%, -50%); border-color: #E34C26; color: #E34C26; box-shadow: 0 0 20px rgba(227, 76, 38, 0.4); } /* HTML */
.p-icon-6 { top: 85.4%; left: 14.6%; transform: translate(-50%, -50%); border-color: #2496ED; color: #2496ED; box-shadow: 0 0 20px rgba(36, 150, 237, 0.4); } /* Docker */
.p-icon-7 { top: 50%; left: 0%; transform: translate(-50%, -50%); border-color: #F05032; color: #F05032; box-shadow: 0 0 20px rgba(240, 80, 50, 0.4); } /* Git */
.p-icon-8 { top: 14.6%; left: 14.6%; transform: translate(-50%, -50%); border-color: #00ADD8; color: #00ADD8; box-shadow: 0 0 20px rgba(0, 173, 216, 0.4); } /* Go */

.terminal-text {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: var(--jarvis-cyan);
    margin-bottom: 15px;
    letter-spacing: 2px;
    animation: glitchText 2s infinite;
}

.loading-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

#loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--jarvis-cyan), var(--jarvis-magenta), var(--jarvis-cyan));
    background-size: 200% 100%;
    animation: gradientMove 2s linear infinite;
    box-shadow: 0 0 20px var(--jarvis-cyan);
}

.percentage-display {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 6rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    color: #fff;
    pointer-events: none;
}

/* ====================
   NAVBAR AVATAR DROPDOWN
   ==================== */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-avatar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  user-select: none;
}

.nav-avatar-btn:hover, .nav-avatar-btn.active-trigger {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.avatar-char {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff 0%, #bd00ff 100%);
  color: black;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.avatar-name-lbl {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  letter-spacing: 0.5px;
}

.dropdown-arrow {
  font-size: 0.75rem;
  color: #a0a0a0;
  transition: transform 0.3s ease;
}

.nav-avatar-btn.active-trigger .dropdown-arrow {
  transform: rotate(180deg);
  color: #00f0ff;
}

.nav-avatar-dropdown {
  position: absolute !important;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 0 !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.05);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1500;
  overflow: visible !important;
}

.nav-avatar-dropdown.show-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-header {
  padding: 0 20px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.user-greeting {
  font-size: 0.75rem;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-email-lbl {
  font-size: 0.85rem;
  color: #f0f0f5;
  font-weight: 500;
  word-break: break-all;
}

.dropdown-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0 0 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #c0c0c5;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.dropdown-item i {
  font-size: 1rem;
  color: #a0a0a5;
  transition: color 0.25s ease;
}

.dropdown-item:hover {
  background: rgba(0, 240, 255, 0.05);
  color: #00f0ff;
}

.dropdown-item:hover i {
  color: #00f0ff;
}

.dropdown-item.logout-btn:hover {
  background: rgba(255, 0, 127, 0.05);
  color: #ff007f;
}

.dropdown-item.logout-btn:hover i {
  color: #ff007f;
}

/* ============================================================
   GLOBAL CUSTOM SCROLLBAR (Cyber-Cyan Theme)
   ============================================================ */
/* Webkit Browsers (Chrome, Safari, Edge, Brave, Opera, etc.) */
::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-track {
  background: #050508 !important;
}

::-webkit-scrollbar-thumb {
  background: #00f0ff !important;
  border-radius: 10px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #00b8cc !important;
}

/* Firefox Support */
* {
  scrollbar-width: thin !important;
  scrollbar-color: #00f0ff #050508 !important;
}

/* ============================================================
   NAVBAR DROPDOWN FOR CODING HUB
   ============================================================ */
.nav-links li.nav-item-dropdown {
  position: relative;
}

/* Dropdown menu container for Desktop */
.nav-links li.nav-item-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 45, 45, 0.25); /* Red border glow accent */
  border-radius: 12px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 45, 45, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s;
  pointer-events: none;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Hover trigger for Desktop */
@media (min-width: 1201px) {
  .nav-links li.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px); /* Slide down slightly */
    pointer-events: auto;
  }
}

/* Dropdown items */
.nav-links li.nav-item-dropdown .dropdown-menu li {
  width: 100%;
  padding: 0;
  margin: 0;
}

.nav-links li.nav-item-dropdown .dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 16px !important;
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 0.85rem !important;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted, #a0a0a0) !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-transform: none !important; /* Keep natural case */
}

/* Hover effect on dropdown links */
.nav-links li.nav-item-dropdown .dropdown-menu li a:hover {
  color: #ff2d2d !important; /* red */
  background: rgba(255, 45, 45, 0.08) !important;
  text-shadow: 0 0 8px rgba(255, 45, 45, 0.4) !important;
}

/* Disable the hover '>' pseudo element on dropdown items to keep it clean */
.nav-links li.nav-item-dropdown .dropdown-menu li a::before {
  display: none !important;
}

/* Rotate dropdown arrow on hover */
.nav-links li.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: #ff2d2d;
}

.nav-links li.nav-item-dropdown .dropdown-arrow {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Mobile & Tablet Specific Layout (<= 1200px) */
@media (max-width: 1200px) {
  .nav-links li.nav-item-dropdown {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
  }

  .nav-links li.nav-item-dropdown .dropdown-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    background: rgba(255, 45, 45, 0.03) !important;
    border: 1px dashed rgba(255, 45, 45, 0.2) !important;
    border-radius: 12px;
    width: 100% !important;
    max-width: 260px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    margin-top: 10px;
    padding: 6px 0 !important;
    box-shadow: none !important;
    transition: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .nav-links li.nav-item-dropdown .dropdown-menu li a {
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }
}
