/* Welcome Popup Styles */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsl(240, 100%, 15%), hsl(280, 100%, 20%), hsl(220, 100%, 10%));
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.welcome-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-popup {
  text-align: center;
  position: relative;
  padding: 3rem;
}

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

.welcome-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, hsl(240, 100%, 60%), hsl(280, 100%, 65%));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: welcomePulse 2s ease-in-out infinite;
  box-shadow: 0 0 40px hsl(240, 100%, 60%, 0.5);
}

.welcome-icon svg {
  stroke: white;
}

.welcome-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, hsl(280, 100%, 80%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: welcomeFadeIn 1s ease forwards;
}

.welcome-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: hsl(280, 100%, 80%);
  margin-bottom: 2.5rem;
  font-weight: 500;
  animation: welcomeFadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.welcome-btn {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, hsl(240, 100%, 60%), hsl(280, 100%, 65%));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px hsl(240, 100%, 60%, 0.4);
  animation: welcomeFadeIn 1s ease 0.6s forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.welcome-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.welcome-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px hsl(240, 100%, 60%, 0.6);
}

.welcome-btn:hover::before {
  left: 100%;
}

/* Mobile touch/tap effects with modern colors */
@media (hover: none) and (pointer: coarse) {
  .welcome-btn:active {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px hsl(270, 100%, 60%, 0.7);
    background: linear-gradient(135deg, hsl(270, 100%, 65%), hsl(320, 100%, 60%));
  }
  
  .welcome-btn:active::before {
    left: 100%;
  }

  /* Button hover effects for mobile */
  .btn-hero:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 40px hsl(270, 100%, 60%, 0.5);
    background: linear-gradient(135deg, hsl(270, 100%, 65%), hsl(320, 100%, 60%));
  }

  .btn-outline:active {
    background: linear-gradient(135deg, hsl(270, 100%, 60%), hsl(320, 100%, 65%));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px hsl(270, 100%, 60%, 0.4);
  }

  .btn-ghost:active {
    background: linear-gradient(135deg, hsl(270, 100%, 60%, 0.15), hsl(320, 100%, 65%, 0.15));
    color: hsl(270, 100%, 70%);
  }

  /* Navigation link hover effects for mobile */
  .nav-link:active {
    background: linear-gradient(135deg, hsl(270, 100%, 60%), hsl(320, 100%, 65%));
    color: white;
    box-shadow: 0 4px 15px hsl(270, 100%, 60%, 0.4);
  }

  .theme-toggle:active {
    background: linear-gradient(135deg, hsl(270, 100%, 60%, 0.2), hsl(320, 100%, 65%, 0.2));
    color: hsl(270, 100%, 70%);
  }

  .mobile-nav-link:active {
    background: linear-gradient(135deg, hsl(270, 100%, 60%), hsl(320, 100%, 65%));
    color: white;
  }

  /* Project card hover effects for mobile */
  .project-card:active {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px hsl(270, 100%, 60%, 0.3);
    border-color: hsl(270, 100%, 65%);
  }

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

  .project-card:active .project-title {
    color: hsl(270, 100%, 70%);
  }

  /* Contact item hover effects for mobile */
  .contact-item:active {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px hsl(270, 100%, 60%, 0.25);
    border-color: hsl(270, 100%, 65%);
  }

  .contact-item:active .contact-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, hsl(270, 100%, 60%), hsl(320, 100%, 65%));
    box-shadow: 0 8px 20px hsl(270, 100%, 60%, 0.4);
  }

  .contact-item:active .contact-details p {
    color: hsl(270, 100%, 70%);
  }

  /* Social link hover effects for mobile */
  .social-link:active {
    transform: scale(1.15);
    background: linear-gradient(135deg, hsl(270, 100%, 60%), hsl(320, 100%, 65%));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px hsl(270, 100%, 60%, 0.5);
  }

  /* Scroll to top button hover effects for mobile */
  .scroll-to-top:active {
    transform: scale(1.1);
    box-shadow: 0 15px 35px hsl(270, 100%, 60%, 0.5);
    background: linear-gradient(135deg, hsl(270, 100%, 60%), hsl(320, 100%, 65%));
  }

  /* Expertise card hover effects for mobile */
  .expertise-card:active {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px hsl(270, 100%, 60%, 0.25);
    border-color: hsl(270, 100%, 65%);
  }

  .expertise-card:active .expertise-icon {
    background: linear-gradient(135deg, hsl(270, 100%, 60%), hsl(320, 100%, 65%));
    box-shadow: 0 8px 20px hsl(270, 100%, 60%, 0.4);
  }

  /* Tech tag hover effects for mobile */
  .tech-tag:active {
    background: linear-gradient(135deg, hsl(270, 100%, 60%), hsl(320, 100%, 65%));
    color: white;
    border-color: transparent;
    transform: scale(1.05);
  }

  /* Hero social icons for mobile */
  .hero-social a:active {
    transform: scale(1.2);
    color: hsl(270, 100%, 70%);
  }

  /* Experience card for mobile */
  .experience-content:active {
    box-shadow: 0 10px 30px hsl(270, 100%, 60%, 0.2);
    border-color: hsl(270, 100%, 65%);
  }
}

@keyframes welcomePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 40px hsl(240, 100%, 60%, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 60px hsl(280, 100%, 65%, 0.6);
  }
}

@keyframes welcomeFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CSS Variables for Theme System */
:root {
  /* Light Theme */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 15%, 15%);
  --primary: hsl(240, 100%, 60%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-glow: hsl(245, 100%, 70%);
  --secondary: hsl(280, 100%, 65%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 15%, 15%);
  --surface: hsl(220, 20%, 97%);
  --surface-foreground: hsl(220, 15%, 25%);
  --muted: hsl(220, 14%, 96%);
  --muted-foreground: hsl(220, 10%, 45%);
  --accent: hsl(240, 5%, 96%);
  --accent-foreground: hsl(240, 6%, 10%);
  --border: hsl(220, 13%, 91%);
  --input: hsl(220, 13%, 91%);
  --ring: hsl(240, 100%, 60%);
  --success: hsl(142, 76%, 36%);
  --success-foreground: hsl(0, 0%, 100%);
  --warning: hsl(38, 92%, 50%);
  --warning-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 100%);

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    hsl(240, 100%, 60%),
    hsl(280, 100%, 65%)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    hsl(280, 100%, 65%),
    hsl(320, 100%, 70%)
  );
  --gradient-hero: linear-gradient(
    135deg,
    hsl(240, 100%, 60%, 0.1),
    hsl(280, 100%, 65%, 0.1)
  );
  --gradient-card: linear-gradient(
    145deg,
    hsl(0, 0%, 100%),
    hsl(220, 20%, 97%)
  );

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 hsl(0, 0%, 0%, 0.05);
  --shadow-md: 0 4px 6px -1px hsl(0, 0%, 0%, 0.1),
    0 2px 4px -2px hsl(0, 0%, 0%, 0.1);
  --shadow-lg: 0 10px 15px -3px hsl(0, 0%, 0%, 0.1),
    0 4px 6px -4px hsl(0, 0%, 0%, 0.1);
  --shadow-xl: 0 20px 25px -5px hsl(0, 0%, 0%, 0.1),
    0 8px 10px -6px hsl(0, 0%, 0%, 0.1);
  --shadow-glow: 0 0 20px hsl(240, 100%, 60%, 0.3);
  --shadow-hero: 0 25px 50px -12px hsl(240, 100%, 60%, 0.25);

  --radius: 0.75rem;
}

[data-theme="dark"] {
  /* Dark Theme */
  --background: hsl(220, 25%, 6%);
  --foreground: hsl(220, 15%, 95%);
  --primary: hsl(240, 100%, 65%);
  --primary-foreground: hsl(220, 25%, 6%);
  --primary-glow: hsl(245, 100%, 75%);
  --secondary: hsl(280, 100%, 70%);
  --secondary-foreground: hsl(220, 25%, 6%);
  --card: hsl(220, 25%, 8%);
  --card-foreground: hsl(220, 15%, 95%);
  --surface: hsl(220, 25%, 10%);
  --surface-foreground: hsl(220, 15%, 85%);
  --muted: hsl(220, 25%, 12%);
  --muted-foreground: hsl(220, 10%, 55%);
  --accent: hsl(220, 25%, 14%);
  --accent-foreground: hsl(220, 15%, 90%);
  --border: hsl(220, 25%, 16%);
  --input: hsl(220, 25%, 16%);
  --ring: hsl(240, 100%, 65%);

  --gradient-primary: linear-gradient(
    135deg,
    hsl(240, 100%, 65%),
    hsl(280, 100%, 70%)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    hsl(280, 100%, 70%),
    hsl(320, 100%, 75%)
  );
  --gradient-hero: linear-gradient(
    135deg,
    hsl(240, 100%, 65%, 0.1),
    hsl(280, 100%, 70%, 0.1)
  );
  --gradient-card: linear-gradient(
    145deg,
    hsl(220, 25%, 8%),
    hsl(220, 25%, 10%)
  );

  --shadow-sm: 0 1px 2px 0 hsl(0, 0%, 0%, 0.3);
  --shadow-md: 0 4px 6px -1px hsl(0, 0%, 0%, 0.3),
    0 2px 4px -2px hsl(0, 0%, 0%, 0.3);
  --shadow-lg: 0 10px 15px -3px hsl(0, 0%, 0%, 0.3),
    0 4px 6px -4px hsl(0, 0%, 0%, 0.3);
  --shadow-xl: 0 20px 25px -5px hsl(0, 0%, 0%, 0.3),
    0 8px 10px -6px hsl(0, 0%, 0%, 0.3);
  --shadow-glow: 0 0 30px hsl(240, 100%, 65%, 0.4);
  --shadow-hero: 0 25px 50px -12px hsl(240, 100%, 65%, 0.4);
}

/* Base Styles */
* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
}

.btn-hero {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hero);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border: none;
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

/* Card Styles */
.card {
  background: var(--gradient-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.glass-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--card);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary);
  color: white;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.mobile-menu-btn {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--background);
  background: var(--primary);
  background-opacity: 0.1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.05;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

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

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-hero);
  position: relative;
  z-index: 2;
}

.profile-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: pulse-glow 2s ease-in-out infinite;
}

.profile-emoji {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

/* Typing Effect */
.typing-text {
  border-right: 2px solid var(--primary);
  animation: blink 0.75s step-end infinite;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface);
  background-opacity: 0.3;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.about-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 4px solid var(--primary);
  border-opacity: 0.2;
}

.about-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.about-role {
  color: var(--primary);
  font-weight: 600;
}

.about-location {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.about-text {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-header {
  display: flex;
  justify-content: between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
}

.skill-percentage {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.skill-bar {
  height: 0.75rem;
  background: var(--muted);
  border-radius: var(--radius);
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.expertise-card {
  padding: 2rem;
}

.expertise-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.expertise-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.expertise-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.5rem;
  background: var(--muted);
  color: var(--muted-foreground);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  border: 1px solid var(--border);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  background-opacity: 0.1;
  /* color: var(--primary); */
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--primary);
  border-opacity: 0.2;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.project-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Resume Section */
.resume-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.experience-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.experience-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-item {
  margin-bottom: 1.5rem;
}

.experience-content {
  padding: 1.5rem;
}

.experience-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.experience-company {
  color: var(--primary);
  font-weight: 600;
}

.experience-description {
  list-style: none;
  margin-bottom: 1rem;
}

.experience-description li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.experience-description li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--primary);
  border-radius: 50%;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  padding: 2rem;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px var(--ring);
  box-shadow-opacity: 0.2;
}

.form-error {
  color: var(--destructive);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form-input.error,
.form-textarea.error {
  border-color: var(--destructive);
}

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

.contact-item {
  padding: 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-item-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

.contact-details h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.contact-item:hover .contact-details p {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 3rem;
  height: 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 40;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  box-shadow: var(--shadow-xl);
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-delay-1 {
  animation-delay: 0.1s;
}
.stagger-delay-2 {
  animation-delay: 0.2s;
}
.stagger-delay-3 {
  animation-delay: 0.3s;
}
.stagger-delay-4 {
  animation-delay: 0.4s;
}
.stagger-delay-5 {
  animation-delay: 0.5s;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-text {
    text-align: left;
    margin-left: 90px;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-social {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 4rem;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }

  .profile-image {
    width: 400px;
    height: 400px;
  }

  .expertise-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .resume-content {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .resume-content {
    grid-template-columns: 1fr;
  }

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

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 1rem;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-body img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.modal-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.modal-feature::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  background: var(--primary);
  border-radius: 50%;
}

/* --- 1. HIDE DEFAULT CURSOR & CURSOR STYLES --- */
* {
    cursor: none; /* Hides the standard mouse pointer */
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #00f3ff; /* Your Primary Neon Color */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    transform: translate(-50%, -50%);
}

/* Expansion effect when hovering over links */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #00f3ff;
    mix-blend-mode: difference;
}

/* Hide custom cursor on mobile (touch devices) */
@media (max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none; }
    * { cursor: auto; }
}

/* --- 2. SCROLL REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

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

/* --- 3. 3D TILT SETUP --- */
.project-card {
    /* Required for the 3D tilt JS to look correct */
    transition: transform 0.1s;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* --- 4. TYPING EFFECT CURSOR --- */
.typing-text {
    border-right: 2px solid #00f3ff;
    padding-right: 5px;
    animation: blink 0.75s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}



