:root {
  /* Color Palette - Premium Cyberpunk */
  --primary-glow: #007fff;
  --secondary-glow: #ff007f;
  --accent-glow: #00ffa3;
  
  --bg-dark: #050505;
  --bg-dark-soft: #0a0a0a;
  --bg-light: #f8f9fa;
  --bg-light-soft: #ffffff;
  
  --text-primary-dark: #e0e0e0;
  --text-secondary-dark: #a0a0a0;
  --text-primary-light: #1a1a1a;
  --text-secondary-light: #4a4a4a;
  
  --glass-bg-dark: rgba(20, 20, 20, 0.7);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
  --glass-bg-light: rgba(255, 255, 255, 0.7);
  --glass-border-light: rgba(0, 0, 0, 0.1);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition-normal), color var(--transition-normal);
}

body.light-mode {
  background: var(--bg-light);
  color: var(--text-primary-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

/* ========== HEADER & NAV ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  z-index: 1000;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  padding: 1rem 4rem;
  background: var(--glass-bg-dark);
  border-color: var(--glass-border-dark);
}

body.light-mode header.scrolled {
  background: var(--glass-bg-light);
  border-color: var(--glass-border-light);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav#mainNav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
}

body.light-mode .nav-link {
  color: var(--text-secondary-light);
}

.nav-link:hover, .nav-link.active {
  color: white;
}

body.light-mode .nav-link:hover, body.light-mode .nav-link.active {
  color: black;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-glow);
  transition: width var(--transition-fast);
}

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

/* Theme Toggle Button */
.icon-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 18px rgba(0, 127, 255, 0.4);
}



/* ========== HERO SECTION ========== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.image-gradient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  max-width: 1800px;
  opacity: 0.15;
  filter: blur(80px);
  pointer-events: none;
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.25; }
}

.layer-blur {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(0, 127, 255, 0.1), transparent 40%);
  pointer-events: none;
}

.hero-section main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.old-style-greeting {
  position: relative;
  right: 12px;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.25em;
  padding: 0 0 0 10px;
  margin-bottom: 0.5rem;
}

.content.part1 h1 {
  font-size: 3rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(0, 127, 255, 0.5); /* Maintain neon glow */
}

.old-style-role {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.25em;
  display: inline-block;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* Maintain neon gradient */
}

.description {
  font-size: 1.15rem;
  color: var(--text-secondary-dark);
  max-width: 600px;
  margin-bottom: 3rem;
}

body.light-mode .description {
  color: var(--text-secondary-light);
}

.buttons {
  display: flex;
  gap: 1.5rem;
}

.linkedIN, .get-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.linkedIN {
  background: white;
  color: #0077b5;
}

.linkedIN:hover {
  background: #0077b5;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
}

.get-btn {
  background: #333;
  color: white;
}

.get-btn:hover {
  background: black;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 3D Robot & Part 2 */
.part2 {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.part2 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.robot-3D {
  position: fixed;
  top: 38%;
  scale: 0.55;
  right: -42%; /* Move it towards the right side */
  z-index: 999;
}

.robot-shadow {
  position: fixed;
  border: 20px solid rgb(95, 95, 95);
  top: 90%; /* Adjust to be under the robot legs */
  right: 3%; /* Adjust horizontal position near robot */
  width: 150px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  filter: blur(20px);
  border-radius: 50%;
  z-index: 998; /* Just below the robot */
  pointer-events: none; /* So it doesn't interfere with interactions */
}

/* ========== COMMON SECTION ELEMENTS ========== */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 127, 255, 0.1);
  color: var(--primary-glow);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

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

body.light-mode .section-subtitle {
  color: var(--text-secondary-light);
}

.section-bg-glow {
  position: absolute;
  width: 40vw;
  height: 40vw;
  filter: blur(100px);
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

.glow-purple { background: var(--secondary-glow); top: 10%; left: -10%; }
.glow-blue { background: var(--primary-glow); bottom: 10%; right: -10%; }
.glow-cyan { background: var(--accent-glow); top: 20%; right: -10%; }
.glow-green { background: #00ffa3; bottom: 20%; left: -10%; }

/* ========== EDUCATION SECTION ========== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

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

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 4rem;
}

.timeline-dot {
  position: absolute;
  left: 0;
  width: 42px;
  height: 42px;
  background: var(--bg-dark-soft);
  border: 2px solid var(--primary-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 127, 255, 0.3);
}

body.light-mode .timeline-dot {
  background: white;
}

.timeline-card {
  background: var(--bg-dark-soft);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-dark);
  transition: transform var(--transition-normal);
}

body.light-mode .timeline-card {
  background: white;
  border-color: var(--glass-border-light);
  box-shadow: var(--shadow-md);
}

.timeline-card:hover {
  transform: translateX(10px);
}

.timeline-year {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-glow);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-institution {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--text-secondary-dark);
  margin-bottom: 1.5rem;
}

.timeline-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.edu-tag {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

body.light-mode .edu-tag {
  background: rgba(0, 0, 0, 0.05);
}

/* ========== INTERNSHIPS SECTION ========== */
.internship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.internship-card {
  background: var(--bg-dark-soft);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-dark);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
}

body.light-mode .internship-card {
  background: white;
  border-color: var(--glass-border-light);
  box-shadow: var(--shadow-md);
}

.internship-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-10px);
}

.internship-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.company-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(0, 127, 255, 0.1);
  color: var(--primary-glow);
}

.internship-duration {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary-dark);
  background: rgba(255,255,255,0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

.achievement-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.achievement-item i {
  color: var(--accent-glow);
  margin-top: 0.2rem;
}

/* ========== SKILLS SECTION ========== */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.skill-category {
  background: var(--bg-dark-soft);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-dark);
}

body.light-mode .skill-category {
  background: white;
  border-color: var(--glass-border-light);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.skill-cat-header i {
  font-size: 2rem;
  color: var(--primary-glow);
}

.skill-bar-item {
  margin-bottom: 2rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

body.light-mode .skill-bar {
  background: rgba(0,0,0,0.05);
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--primary-glow), var(--accent-glow));
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ========== PROJECTS SECTION ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-dark-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border-dark);
  transition: all var(--transition-normal);
}

body.light-mode .project-card {
  background: white;
  border-color: var(--glass-border-light);
  box-shadow: var(--shadow-md);
}

.project-img-wrap {
  position: relative;
  height: 240px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-img-placeholder {
  font-size: 4rem;
  opacity: 0.5;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-img-placeholder {
  transform: scale(1.2) rotate(5deg);
}

.project-overlay-info {
  position: absolute;
  inset: 0;
  background: rgba(0, 127, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay-info {
  opacity: 1;
}

.proj-link-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary-glow);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.project-card:hover .proj-link-btn {
  transform: translateY(0);
}

.project-body {
  padding: 2.5rem;
  position: relative;
}

.project-number {
  position: absolute;
  top: -20px;
  right: 25px;
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.1;
  font-family: var(--font-heading);
}

/* ========== CONTACT SECTION ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info-card {
  background: var(--bg-dark-soft);
  padding: 4rem;
  border-radius: var(--radius-md);
  height: 100%;
}

body.light-mode .contact-info-card {
  background: white;
  box-shadow: var(--shadow-lg);
}

.contact-detail-item {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0, 127, 255, 0.1);
  color: var(--primary-glow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary-dark);
}

.input-wrap input, .input-wrap textarea {
  width: 100%;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  background: var(--bg-dark-soft);
  border: 1px solid var(--glass-border-dark);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

body.light-mode .input-wrap input, body.light-mode .input-wrap textarea {
  background: #f1f3f5;
  color: black;
}

.input-wrap input:focus, .input-wrap textarea:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 0 4px rgba(0, 127, 255, 0.1);
}

.contact-submit-btn {
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--primary-glow);
  color: white;
  border: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contact-submit-btn:hover {
  background: #0066cc;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 127, 255, 0.3);
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 5rem 0;
  background: #000;
  text-align: center;
  border-top: 1px solid var(--glass-border-dark);
}

body.light-mode .site-footer {
  background: #f8f9fa;
  border-color: var(--glass-border-light);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary-dark);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
  header { padding: 1rem 2rem; }
  .hero-section main { grid-template-columns: 1fr; text-align: center; }
  .description { margin: 0 auto 3rem; }
  .buttons { justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; }
  nav#mainNav { display: none; }
}
