/* ================================
   DEVELOPER PORTFOLIO - STYLES
   Modern Dark Theme with Glassmorphism
   ================================ */

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

/* ================================
   CSS Custom Properties (Design Tokens)
   ================================ */
:root {
  /* Colors - Dark Theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Accent Colors */
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 50%, rgba(236, 72, 153, 0.15) 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-muted: #52525b;

  /* Border */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

/* ================================
   Custom Scrollbar
   ================================ */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Light Mode Variables */
body.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.05);

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.15);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 1.2rem;
  margin-left: 20px;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  transform: rotate(15deg);
  color: var(--accent-primary);
}

/* ================================
   Reset & Base Styles
   ================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ================================
   Container & Layout
   ================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding);
  position: relative;
}

/* ================================
   Animated Background
   ================================ */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.animated-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
  animation: bgFloat 20s ease-in-out infinite;
}

.animated-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 60% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  animation: bgFloat 25s ease-in-out infinite reverse;
}

@keyframes bgFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(5deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

/* Grid Pattern Overlay */
.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
}

/* ================================
   Navigation
   ================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

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

.nav-links a:hover {
  color: var(--text-primary);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-normal);
}

/* ================================
   Hero Section
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

.hero .subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-weight: 500;
}

.hero .description {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.social-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-tertiary);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes bounce {

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

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes scrollWheel {

  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(6px);
  }
}

/* ================================
   Section Headers
   ================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
}

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

/* ================================
   About Section
   ================================ */
.about {
  background: var(--bg-secondary);
}

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

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: 1;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20px;
  left: 20px;
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.3;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 25px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* ================================
   Skills Section
   ================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.skill-category {
  padding: 35px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.skill-category:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-5px);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.skill-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

.skill-category h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
}

/* ================================
   Career Journey Section
   ================================ */
.career-journey {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.career-journey::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

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

/* Timeline Container */
.timeline-container {
  position: relative;
  margin: 40px 0 60px;
  padding: 0 5%;
}

.timeline-line {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg,
      rgba(99, 102, 241, 0.3) 0%,
      rgba(139, 92, 246, 0.3) 50%,
      rgba(16, 185, 129, 0.3) 100%);
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,
      #6366f1 0%,
      #8b5cf6 35%,
      #06b6d4 65%,
      #10b981 100%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.timeline-dots {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  transform: translateY(-50%);
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 3px solid #6366f1;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.timeline-dot:nth-child(2) {
  border-color: #8b5cf6;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.timeline-dot:nth-child(3) {
  border-color: #06b6d4;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.timeline-dot:nth-child(4) {
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.timeline-dot.active {
  background: #6366f1;
  transform: translateX(-50%) scale(1.2);
}

/* Career Cards Grid */
.career-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Career Card */
.career-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.career-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.career-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(99, 102, 241, 0.1);
}

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

/* Featured Card (Current Position) */
.career-card.featured {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.career-card.featured::before {
  background: linear-gradient(90deg, #10b981, #06b6d4);
  opacity: 1;
}

.career-card.featured:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(16, 185, 129, 0.15);
}

/* Card Icon */
.career-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
}

.career-card-icon.education {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.career-card-icon.internship {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.career-card-icon.internship2 {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(34, 211, 238, 0.2));
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.career-card-icon.freelance {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Card Date */
.career-card-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.date-badge {
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a5b4fc;
}

.date-badge.purple {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c4b5fd;
}

.date-badge.cyan {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: #67e8f9;
}

.date-badge.emerald {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.date-separator {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.now-badge {
  padding: 3px 10px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: nowPulse 2s ease-in-out infinite;
}

@keyframes nowPulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  }

  50% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  }
}

/* Card Title */
.career-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Card Subtitle */
.career-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  line-height: 1.4;
}

.career-card-subtitle.highlight {
  color: #c4b5fd;
}

.career-card-subtitle.highlight-green {
  color: #6ee7b7;
}

/* Card Description */
.career-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Card Tags */
.career-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.career-card-tags span {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.career-card-tags span:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

/* Career Section Responsive */
@media (max-width: 1200px) {
  .career-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .career-cards {
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    padding-left: 30px;
  }

  /* Vertical Timeline Line */
  .career-cards::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        rgba(99, 102, 241, 0.5),
        rgba(139, 92, 246, 0.5),
        rgba(16, 185, 129, 0.5));
    border-radius: 2px;
  }

  .timeline-container {
    display: none;
  }

  .career-card {
    padding: 24px 20px;
    margin-left: 0;
    /* Add dot for each card */
    position: relative;
    overflow: visible;
    /* Allow dot to show outside */
  }

  /* Timeline Dot */
  .career-card::after {
    content: '';
    position: absolute;
    left: -38px;
    /* (-30px padding) - (8px line offset) roughly */
    top: 40px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    z-index: 2;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  }

  /* Different colors for dots based on card types if needed, 
     but using accent-primary is safe for now. */
}

/* ================================
   Projects Section
   ================================ */
.projects {
  background: var(--bg-secondary);
}

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

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

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  transition: var(--transition-normal);
}

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

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.project-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech span {
  padding: 5px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* ================================
   Contact Section
   ================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  color: var(--accent-primary);
}

.contact-item-text span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

.contact-item-text a,
.contact-item-text p {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ================================
   Footer
   ================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

.footer-links a:hover {
  color: var(--accent-primary);
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition-normal);
    border-left: 1px solid var(--border-color);
  }

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

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .social-links {
    gap: 12px;
  }

  .social-link {
    width: 45px;
  }
}

/* ================================
   Video Showcase Section - Scroll Synced
   ================================ */
/* ================================
   12. Video Showcase Section - Scroll Synced
   ================================ */
.video-showcase {
  padding: 0;
  height: 100vh;
  /* GSAP will handle the pinning duration */
  background: #000;
  overflow: hidden;
  position: relative;
}

.video-sticky {
  width: 100%;
  height: 100%;
}

.featured-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  /* User recommendation for iOS/smoothness */
}

/* ================================
   Stacked Cards Effect (Projects)
   ================================ */
.stack-area {
  height: 100vh;
  /* Fix vertical alignment - was 150vh */
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Split layout */
  position: relative;
  padding-left: 10%;
  /* Space for text */
  padding-right: 5%;
  /* Space for cards */
}

/* Left Content */
.stack-content-left {
  width: 40%;
  color: var(--text-primary);
  z-index: 10;
}

.stack-content-left h3 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.philosophy-intro {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.philosophy-list {
  list-style: none;
  padding: 0;
}

.philosophy-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.philosophy-list li i {
  color: var(--accent-cyan);
  /* Accent color */
  margin-right: 15px;
  margin-top: 4px;
  font-size: 1.4rem;
}

.philosophy-list li strong {
  color: var(--text-primary);
  margin-right: 5px;
}

.cards-wrapper {
  position: relative;
  width: 450px;
  height: 580px;
  perspective: 1000px;
  margin-right: 5%;
  /* Push slightly left from edge */
}

.project-card-stack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Content at bottom */
  text-align: left;
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform-origin: center center;
  overflow: hidden;
  padding: 0;
  /* Remove padding for full image */
}

/* Image Full Cover */
.project-card-stack .project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.project-card-stack .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-stack .project-image .project-overlay {
  display: none;
  /* Hide default overlay, we use card overlay */
}

/* Content Overlay */
.project-card-stack .project-content {
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6), transparent);
  padding: 24px;
  width: 100%;
}

.project-card-stack .project-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.project-card-stack .project-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-stack .project-tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  /* Align left */
  gap: 8px;
}

.project-card-stack .project-tech span {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Specific Colors & Rotations (Deck Style) */
/* Bottom to Top */
.project-card-stack:nth-child(1) {
  background: #E91e63;
  z-index: 1;
  transform: rotate(-10deg);
}

.project-card-stack:nth-child(2) {
  background: #9C27B0;
  z-index: 2;
  transform: rotate(-5deg);
}

.project-card-stack:nth-child(3) {
  background: #F44336;
  z-index: 3;
  transform: rotate(5deg);
}

.project-card-stack:nth-child(4) {
  background: #2962FF;
  z-index: 4;
  transform: rotate(0deg);
}

.project-card-stack:nth-child(5) {
  background: #FF9800;
  z-index: 5;
  transform: rotate(10deg);
}

@media (max-width: 992px) {
  .stack-area {
    flex-direction: column;
    height: auto;
    padding: 60px 20px 100px;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
  }

  .stack-content-left {
    width: 100%;
    margin-bottom: 60px;
    text-align: center;
    padding-right: 0;
  }

  .stack-content-left h3 {
    font-size: 2.5rem;
  }

  .philosophy-list li {
    justify-content: center;
    text-align: left;
  }

  .cards-wrapper {
    width: 100%;
    max-width: 400px;
    height: auto;
    /* Allow height to grow with content */
    margin: 0 auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .project-card-stack {
    position: relative;
    /* Un-stack them */
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    /* Maintain aspect ratio */
    transform: none !important;
    /* Reset rotation */
    margin-bottom: 0;
    left: auto;
    top: auto;
  }
}

/* =========================================
   Project Modal Styles
   ========================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background: #1a1a1a;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 80%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: #64ffda;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 2rem;
  color: #fff;
  margin: 0;
}

.modal-body img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.modal-body p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 20px;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.modal-tech span {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.modal-links {
  text-align: right;
}

.modal-btn {
  display: inline-block;
  padding: 10px 25px;
  background: #64ffda;
  color: #0a192f;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  background: #4cc9b0;
  transform: translateY(-2px);
}

/* Force cursor pointer on project cards */
.project-card-stack {
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }

  .modal-body img {
    height: 200px;
  }
}

/* Top Card */

/* =========================================
   Toast Notification Styles
   ========================================= */
.toast {
  visibility: hidden;
  min-width: 300px;
  background-color: rgba(26, 26, 26, 0.95);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 16px;
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(100, 255, 218, 0.2);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
  font-size: 0.95rem;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.toast i {
  color: #ff6b6b;
  /* Reddish for lock/warning */
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .toast {
    width: 90%;
  }
}

/* ================================
   13. Preloader (Terminal Theme)
   ================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  /* Use theme background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.terminal-loader {
  width: 90%;
  max-width: 600px;
  background: rgba(20, 20, 30, 0.9);
  /* Lighter and less transparent */
  backdrop-filter: blur(16px);
  /* Stronger blur */
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
    /* Deep shadow */
    0 0 0 1px rgba(255, 255, 255, 0.15),
    /* Inner light border */
    0 0 30px rgba(99, 102, 241, 0.2);
  /* Outer glow */
  overflow: hidden;
  font-family: var(--font-mono);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Visible outer border */
}

.terminal-header {
  background: rgba(255, 255, 255, 0.08);
  /* Lighter header */
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

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

.terminal-dot.red {
  background: #ff5f56;
  box-shadow: 0 0 10px rgba(255, 95, 86, 0.5);
}

.terminal-dot.yellow {
  background: #ffbd2e;
  box-shadow: 0 0 10px rgba(255, 189, 46, 0.5);
}

.terminal-dot.green {
  background: #27c93f;
  box-shadow: 0 0 10px rgba(39, 201, 63, 0.5);
}

.terminal-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  letter-spacing: 1px;
}

.terminal-window {
  padding: 20px;
  height: 300px;
  overflow-y: auto;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 8px;
  display: block;
}

.terminal-line.success {
  color: var(--accent-emerald);
  text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

.terminal-line.warning {
  color: #fbbf24;
}

.terminal-line.error {
  color: var(--accent-tertiary);
}

.terminal-line.system {
  color: var(--accent-cyan);
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--accent-primary);
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 5px;
  box-shadow: 0 0 10px var(--accent-primary);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.app-content {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.app-content.visible {
  opacity: 1;
}

/* Video Text Overlay */
.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  pointer-events: none;
  /* Let clicks pass through to video/scroll */
}

.video-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.video-text .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
}

@media (max-width: 768px) {
  .video-showcase {
    display: none;
  }
}

/* ================================
   14. Hero Code Particles
   ================================ */
.code-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.code-particle {
  position: absolute;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  opacity: 0.3;
  font-weight: bold;
  user-select: none;
  text-shadow: 0 0 10px currentColor;
  /* Neon Glow */
  will-change: transform;
  /* Performance optimization */
}