@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* --- Theme Variables & Design Tokens --- */
:root {
  --bg-dark: #02000c;
  --bg-darker: #010006;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(0, 242, 254, 0.25);
  
  --primary-color: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.4);
  --secondary-color: #7f00ff;
  --secondary-glow: rgba(127, 0, 255, 0.4);
  --accent-magenta: #d946ef;
  
  --text-main: #ffffff;
  --text-dim: #b4b6c3;
  --text-muted: #64748b;
  
  --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 30%, #7f00ff 100%);
  --gradient-accent: linear-gradient(135deg, #7f00ff 0%, #d946ef 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  
  --glow-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
  --glow-shadow-strong: 0 0 45px rgba(0, 242, 254, 0.35);
  
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* --- LIGHT THEME CONSOLE OVERRIDES --- */
body.light-theme {
  --bg-dark: #f8fafc;
  --bg-darker: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 242, 254, 0.45);
  
  --primary-color: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.25);
  --secondary-color: #6d28d9;
  --secondary-glow: rgba(109, 40, 217, 0.25);
  --accent-magenta: #db2777;
  
  --text-main: #0f172a;
  --text-dim: #334155;
  --text-muted: #64748b;
  
  --gradient-primary: linear-gradient(135deg, #0284c7 0%, #3b82f6 40%, #6d28d9 100%);
  --gradient-accent: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
  
  --glow-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
  --glow-shadow-strong: 0 15px 40px rgba(2, 132, 199, 0.2);
}

/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
  position: relative;
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cosmic Grid Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  z-index: -2;
  pointer-events: none;
}

body.light-theme::before {
  background-image: 
    linear-gradient(rgba(2, 132, 199, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.02) 1px, transparent 1px);
}

/* Interactive Spotlight Glow */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 242, 254, 0.08), rgba(127, 0, 255, 0.04) 30%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  transition: background 0.1s ease;
}

body.light-theme #cursor-glow {
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(2, 132, 199, 0.1), rgba(109, 40, 217, 0.04) 30%, transparent 60%);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 4.2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.8rem;
  line-height: 1.2;
}

p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

strong {
  color: var(--text-main);
  font-weight: 600;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* --- Global Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.15);
  border-radius: 10px;
  border: 2px solid var(--bg-darker);
}
body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.25);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
  box-shadow: var(--glow-shadow);
}

/* --- Floating Console Navbar (Pill Shape) --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(3, 0, 15, 0.65);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  position: fixed;
  width: 85%;
  max-width: 1200px;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.03);
  transition: var(--transition-smooth);
}

body.light-theme .navbar {
  background: rgba(248, 250, 252, 0.75);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08), 0 0 25px rgba(2, 132, 199, 0.02);
}

.navbar.scrolled {
  width: 90%;
  padding: 12px 30px;
  background: rgba(1, 0, 6, 0.85);
  top: 15px;
  border-color: rgba(0, 242, 254, 0.15);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 242, 254, 0.08);
}

body.light-theme .navbar.scrolled {
  background: rgba(241, 255, 255, 0.95);
  border-color: rgba(2, 132, 199, 0.15);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulsing Status dot */
.status-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(0, 242, 254, 0.06);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(0, 242, 254, 0.15);
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

body.light-theme .status-bubble {
  background: rgba(2, 132, 199, 0.05);
  border-color: rgba(2, 132, 199, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25D366;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hamburger {
  display: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links li a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Theme Switcher Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 1.15rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  color: var(--primary-color);
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--primary-color);
  box-shadow: var(--glow-shadow);
  transform: scale(1.08) rotate(15deg);
}

body.light-theme .theme-toggle:hover {
  background: rgba(2, 132, 199, 0.05);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.1);
}

/* --- Hero Section & Cyber-Orbital Avatar --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 160px 8% 60px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 80px;
  position: relative;
  z-index: 2;
}

.text-content {
  flex: 1.2;
}

.greeting {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 20px;
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 100px;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.05);
}

body.light-theme .greeting {
  background: rgba(2, 132, 199, 0.05);
  border-color: rgba(2, 132, 199, 0.15);
}

.typewriter-role {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.typewriter-name::after,
.typewriter-role::after {
  content: '|';
  color: var(--primary-color);
  margin-left: 2px;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.hero-desc {
  max-width: 540px;
  margin: 25px 0 35px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.social-links {
  margin-bottom: 35px;
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.35rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.social-links a:hover {
  color: var(--primary-color);
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--glow-shadow);
}

body.light-theme .social-links a:hover {
  background: rgba(2, 132, 199, 0.05);
  border-color: var(--primary-color);
}

/* Cyber Profile Frame */
.profile-pic {
  flex: 0.8;
  display: flex;
  justify-content: center;
  position: relative;
}

.image-box {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.image-box::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 242, 254, 0.4);
  animation: spinCw 25s linear infinite;
  pointer-events: none;
}

body.light-theme .image-box::before {
  border-color: rgba(2, 132, 199, 0.4);
}

.image-box::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box, var(--gradient-primary) border-box;
  animation: spinCcw 15s linear infinite;
  pointer-events: none;
  z-index: -1;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.2);
}

body.light-theme .image-box::after {
  box-shadow: 0 0 30px rgba(2, 132, 199, 0.15);
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--bg-dark);
  transition: var(--transition-smooth);
  filter: grayscale(15%) contrast(105%);
}

.image-box:hover img {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(100%);
}

.experience-badge {
  position: absolute;
  bottom: -5px;
  right: -15px;
  background: rgba(3, 0, 20, 0.8);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: float 4s ease-in-out infinite;
  z-index: 3;
}

body.light-theme .experience-badge {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.experience-badge span {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experience-badge p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

@keyframes spinCw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinCcw {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Interactive Numeric Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 35px 20px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.4);
  margin: 60px auto;
  max-width: 1100px;
  position: relative;
  z-index: 10;
  border-bottom: 2px solid rgba(0, 242, 254, 0.15);
  transition: var(--transition-smooth);
}

body.light-theme .stats-bar {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.05);
  border-bottom-color: rgba(2, 132, 199, 0.2);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

body.light-theme .stat-item:not(:last-child)::after {
  background: rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* --- 3D Tilt Card Class Physics --- */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tilt-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), var(--glow-shadow-strong);
}

body.light-theme .tilt-card:hover {
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.08), var(--glow-shadow);
}

.tilt-card > * {
  transform: translateZ(25px);
}

/* --- Common Page Layout & Headers --- */
.page-header {
  text-align: center;
  padding: 180px 8% 60px;
  background: radial-gradient(circle at top, rgba(0, 242, 254, 0.05) 0%, transparent 65%);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.light-theme .page-header {
  background: radial-gradient(circle at top, rgba(2, 132, 199, 0.05) 0%, transparent 65%);
  border-bottom-color: rgba(0, 0, 0, 0.03);
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.page-header h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-dim);
}

/* Container limits */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* --- Glassmorphic Panels & Cards --- */
.glass-panel {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
}

body.light-theme .glass-panel {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 25px 60px rgba(0, 242, 254, 0.08);
}

body.light-theme .glass-panel:hover {
  box-shadow: 0 25px 50px rgba(2, 132, 199, 0.06);
}

/* --- About Content --- */
.about-content-section {
  padding: 80px 8%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 2px solid var(--primary-color);
  z-index: -1;
  transition: var(--transition-smooth);
}

.about-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

body.light-theme .about-image img {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-image:hover img {
  transform: translate(-10px, -10px);
}
.about-image:hover::before {
  transform: translate(10px, 10px);
}

/* --- Process Section (How I Work) --- */
.process-section {
  padding: 80px 8%;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.8rem;
}

.section-title h2 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.process-card {
  background: var(--gradient-card);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.process-card:hover::before {
  transform: scaleX(1);
}

.process-card i {
  font-size: 2.2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: rgba(0, 242, 254, 0.05);
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 254, 0.1);
  transition: var(--transition-smooth);
}

body.light-theme .process-card i {
  background-color: rgba(2, 132, 199, 0.05);
  border-color: rgba(2, 132, 199, 0.1);
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--glow-shadow);
}

.process-card:hover i {
  transform: rotateY(180deg);
  background-color: rgba(0, 242, 254, 0.15);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

body.light-theme .process-card:hover i {
  background-color: rgba(2, 132, 199, 0.12);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.15);
}

.process-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* --- Technical Expertise & Skill Loader Bars --- */
.skills-section {
  padding: 80px 8%;
  background: rgba(1, 0, 8, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

body.light-theme class="skills-section" {
  background: rgba(241, 245, 249, 0.6);
  border-top-color: rgba(0,0,0,0.02);
  border-bottom-color: rgba(0,0,0,0.02);
}

.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.tech-category {
  background: var(--gradient-card);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

.tech-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-shadow);
  transform: translateY(-5px);
}

.tech-category h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.light-theme .tech-category h3 {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.tech-category h3 i {
  font-size: 1.25rem;
}

.skill-tags {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-progress {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.skill-percent {
  color: var(--primary-color);
  font-weight: 700;
  font-family: 'Fira Code', monospace;
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

body.light-theme .skill-bar-bg {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.05);
}

.skill-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--gradient-primary);
  width: 0%; /* Dynamic fill */
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: -2px;
  right: 0;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

/* --- TIMELINE (Experience) --- */
.timeline-section {
  padding: 80px 8%;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 45px;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .timeline {
  border-left-color: rgba(0, 0, 0, 0.06);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color), transparent);
}

/* Left & Right Slide entries animations */
.timeline-item {
  margin-bottom: 50px;
  position: relative;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.slide-left {
  transform: translateX(-80px);
}

.timeline-item.slide-right {
  transform: translateX(80px);
}

.timeline-item.revealed {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -53px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--bg-dark);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-glow);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:hover::before {
  background: var(--primary-color);
  box-shadow: 0 0 25px var(--primary-color);
  transform: scale(1.2);
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Outfit', sans-serif;
}

.timeline-content {
  background: var(--gradient-card);
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-hover);
  transform: translateX(5px);
  box-shadow: var(--glow-shadow);
}

.timeline-content h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

/* --- Project Cards --- */
.project-section {
  padding: 80px 8%;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #010008;
  box-shadow: var(--glow-shadow-strong);
}

body.light-theme .filter-btn.active {
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 35px;
}

.project-card-new {
  border-radius: 20px;
  overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card-new:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  border-color: var(--border-hover);
}

.project-img {
  overflow: hidden;
  height: 230px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .project-img {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.project-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(3, 0, 20, 0.8));
}

body.light-theme .project-img::after {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

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

.project-card-new:hover .project-img img {
  transform: scale(1.08);
}

.project-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.6;
}

.tech-stack-mini {
  margin-top: auto;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-stack-mini span {
  font-size: 0.75rem;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  color: var(--text-dim);
  font-weight: 500;
  font-family: 'Fira Code', monospace;
  transition: var(--transition-fast);
}

body.light-theme .tech-stack-mini span {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.project-card-new:hover .tech-stack-mini span {
  border-color: rgba(0, 242, 254, 0.2);
  background: rgba(0, 242, 254, 0.03);
  color: var(--primary-color);
}

.project-links {
  display: flex;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

body.light-theme .project-links {
  border-top-color: rgba(0, 0, 0, 0.05);
}

.project-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  font-family: 'Outfit', sans-serif;
}

.project-links a i {
  font-size: 1rem;
}

.project-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-glow);
}

/* --- Buttons --- */
.btn-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 35px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #010008 !important;
  font-weight: 700;
  box-shadow: var(--glow-shadow-strong);
}

body.light-theme .btn-primary {
  color: #fff !important;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color) !important;
}

.btn-secondary:hover {
  background: rgba(0, 242, 254, 0.06);
  transform: translateY(-3px);
  box-shadow: var(--glow-shadow);
}

/* --- Contact Section --- */
.contact-section {
  padding: 80px 8%;
}

.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-box h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.contact-info-box h2 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info-box p {
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.direct-contact {
  margin: 40px 0;
}

.c-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.c-item i {
  font-size: 1.35rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.1);
  transition: var(--transition-smooth);
}

body.light-theme .c-item i {
  background-color: rgba(2, 132, 199, 0.04);
  border-color: rgba(2, 132, 199, 0.15);
}

.c-item:hover i {
  background-color: rgba(0, 242, 254, 0.12);
  box-shadow: var(--glow-shadow);
  transform: scale(1.05);
}

.social-links-big {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.social-links-big a {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 1.3rem;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.social-links-big a:hover {
  background: var(--gradient-primary);
  color: #010008;
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: var(--glow-shadow-strong);
}

body.light-theme .social-links-big a:hover {
  color: #fff;
}

/* Forms with Floating Labels */
.contact-form {
  background: var(--gradient-card);
  padding: 50px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group.full-width {
  grid-column: span 2;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(1, 0, 8, 0.35);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
}

.contact-form textarea {
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  background: rgba(1, 0, 8, 0.5);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

body.light-theme .contact-form input:focus,
body.light-theme .contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.12);
}

.contact-form .btn {
  width: 100%;
}

/* --- Circular Glow Blurring blob --- */
.circle-glow {
  position: fixed;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(127, 0, 255, 0.12) 0%, rgba(0, 242, 254, 0.04) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(100px);
  z-index: -2;
  pointer-events: none;
  animation: moveBlob 20s infinite alternate ease-in-out;
}

body.light-theme .circle-glow {
  background: radial-gradient(circle, rgba(109, 40, 217, 0.05) 0%, rgba(2, 132, 199, 0.03) 50%, transparent 80%);
}

@keyframes moveBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, 80px) scale(1.1); }
}

/* --- Enterprise-Grade Multi-Column Footer --- */
.footer-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(1, 0, 6, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 80px 8% 40px;
  position: relative;
  z-index: 10;
  transition: var(--transition-smooth);
}

body.light-theme .footer-wrapper {
  background: #f1f5f9;
  border-top-color: rgba(0, 0, 0, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-column h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  font-family: 'Outfit', sans-serif;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--gradient-primary);
}

.footer-column p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Developer Command Prompt Terminal Console CSS */
.terminal-prompt {
  background: #010004;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px;
  font-family: 'Fira Code', monospace;
  font-size: 0.76rem;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

body.light-theme .terminal-prompt {
  background: #0f172a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(255,255,255,0.06);
}

.terminal-header {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-body {
  color: #a6accd;
}

.terminal-line {
  margin-bottom: 4px;
  line-height: 1.4;
}

.terminal-line span.user { color: #82aaff; }
.terminal-line span.host { color: #c3e88d; }
.terminal-line span.command { color: #f07178; }
.terminal-line span.output { color: #89ddff; }

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--primary-color);
  margin-left: 4px;
  vertical-align: middle;
  animation: termBlink 1s infinite alternate;
}

@keyframes termBlink {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-column ul li a i {
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition-fast);
}

.footer-column ul li a:hover i {
  opacity: 1;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.footer-contact-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  color: var(--text-muted);
  font-size: 0.85rem;
}

body.light-theme .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.footer-bottom span {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 600;
}

/* Scroll Top Rocket Button */
.scroll-top-rocket {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(3, 0, 15, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
}

body.light-theme .scroll-top-rocket {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.scroll-top-rocket.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-rocket:hover {
  background: var(--gradient-primary);
  color: #010008;
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: var(--glow-shadow-strong);
}

body.light-theme .scroll-top-rocket:hover {
  color: #fff;
}

/* Toast Message */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
}

.toast {
  background: rgba(3, 0, 20, 0.9);
  border: 1px solid var(--primary-color);
  color: var(--text-main);
  padding: 16px 28px;
  border-radius: 12px;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Mobile Menu & Responsive Overrides --- */
@media (max-width: 991px) {
  h1 {
    font-size: 3rem;
  }
  
  .navbar {
    width: 90%;
    padding: 14px 24px;
    top: 15px;
  }
  
  .navbar.scrolled {
    width: 95%;
    padding: 10px 20px;
    top: 10px;
  }

  .status-bubble {
    padding: 4px 10px;
    font-size: 0.65rem;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(1, 0, 6, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px;
    gap: 30px;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    font-size: 1.15rem;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 50px;
    padding-top: 40px;
  }

  .hero-desc {
    margin: 20px auto 30px;
  }

  .social-links,
  .btn-group {
    justify-content: center;
  }

  .profile-pic {
    margin-bottom: 20px;
  }

  .image-box {
    width: 270px;
    height: 270px;
  }

  .experience-badge {
    right: -5px;
    bottom: -10px;
    padding: 8px 16px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
    gap: 25px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .about-grid,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-container {
    max-width: 600px;
  }
  
  .contact-info-box {
    text-align: center;
  }
  
  .direct-contact {
    display: inline-block;
    text-align: left;
  }
  
  .social-links-big {
    justify-content: center;
  }
  
  .about-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.4rem;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 15px;
  }

  .stat-item::after {
    display: none !important;
  }

  .input-group {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

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

  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
