/* CSS Custom Properties for Theming */
:root {
  /* Premium Color Palette */
  --primary-dark: #0B0D17;
  --primary-purple: #6366F1;
  --primary-blue: #3B82F6;
  --accent-gold: #F59E0B;
  --accent-cyan: #06B6D4;
  --accent-pink: #EC4899;
  --text-white: #FFFFFF;
  --text-light: #F1F5F9;
  --text-gray: #94A3B8;
  --text-muted: #64748B;
  --background-dark: #0B0D17;
  --background-darker: #030712;
  --background-card: #1E293B;
  --background-glass: rgba(255, 255, 255, 0.05);
  --background-glow: rgba(99, 102, 241, 0.1);
  
  /* Premium Gradients */
  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #3B82F6 50%, #06B6D4 100%);
  --gradient-secondary: linear-gradient(135deg, #EC4899 0%, #F59E0B 100%);
  --gradient-dark: linear-gradient(135deg, #0B0D17 0%, #1E293B 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-primary);
  background: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-gray);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Section Styles */
section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-accent);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid;
  border-image: var(--gradient-primary) 1;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: var(--text-white);
  transform: translateY(-3px);
}

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 13, 23, 0.8);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
  z-index: -1;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s ease;
}

.nav-logo a {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
}

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

.logo-dot {
  color: var(--accent-gold);
  margin-left: 2px;
  font-size: 2rem;
  line-height: 1;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.theme-toggle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--background-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 1.3rem;
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: 50%;
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
  border-color: var(--primary-purple);
}

.theme-toggle:hover::before {
  opacity: 0.1;
}

.theme-toggle:active {
  transform: translateY(0) scale(0.95);
}

.theme-icon {
  position: relative;
  z-index: 1;
  transition: transform var(--transition-normal);
}

.theme-toggle:hover .theme-icon {
  transform: rotate(20deg) scale(1.1);
}

.nav-cta-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--gradient-primary);
  color: var(--text-white);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

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

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 3px 0;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--background-darker);
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
  margin-bottom: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  opacity: 0.6;
  z-index: 1;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: var(--spacing-xs) var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin: var(--spacing-lg) 0;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-accent);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-tech-stack {
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
}

.tech-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  animation: rotate 20s linear infinite;
}

.tech-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  transform-origin: 0 0;
  animation: techFloat 3s ease-in-out infinite var(--delay);
}

.tech-item:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(80px) rotate(0deg); }
.tech-item:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg) translateX(80px) rotate(-90deg); }
.tech-item:nth-child(3) { transform: translate(-50%, -50%) rotate(180deg) translateX(80px) rotate(-180deg); }
.tech-item:nth-child(4) { transform: translate(-50%, -50%) rotate(270deg) translateX(80px) rotate(-270deg); }

.hero-title {
  margin-bottom: var(--spacing-md);
}

.hero-greeting {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
}

.hero-name {
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  position: relative;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.hero-role {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.hero-location {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-light);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-buttons .btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.hero-buttons .btn-primary:hover {
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.8);
}

.hero-buttons .btn-secondary:hover {
  background: var(--gradient-primary);
  color: var(--text-white);
  border-color: transparent;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: relative;
  z-index: 2;
}

.hero-image-placeholder {
  width: 350px;
  height: 350px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: var(--gradient-primary);
  border: 4px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  position: relative;
  animation: morph 8s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.hero-image-placeholder::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gradient-primary);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.7;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shape-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-primary);
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite;
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 5%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 80px;
  height: 80px;
  top: 70%;
  right: 10%;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 15%;
  animation: float 12s ease-in-out infinite;
}

.shape-4 {
  width: 60px;
  height: 60px;
  top: 40%;
  right: 30%;
  animation: float 6s ease-in-out infinite reverse;
}

/* About Section */
.about {
  background: var(--background-dark);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.3;
  transform: translateX(-50%);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

.about-main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.about-card {
  background: var(--background-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  position: relative;
  transition: all var(--transition-normal);
  backdrop-filter: blur(20px);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  display: block;
}

.about-card h3 {
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
  font-size: 1.4rem;
}

.about-card p {
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 1rem;
}

/* Expandable About Cards */
.expandable-card .card-content {
  position: relative;
}

.expandable-card .preview-text {
  margin-bottom: var(--spacing-md);
}

.expandable-card .full-text {
  margin-bottom: var(--spacing-md);
}

.expandable-card .full-text.show {
  display: block !important;
}

.learn-more-btn {
  background: var(--gradient-primary);
  color: var(--text-white);
  border: none;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-top: var(--spacing-sm);
}

.learn-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.about-image {
  position: relative;
}

.image-placeholder {
  width: 100%;
  height: 300px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md);
  color: var(--text-white);
  font-weight: 600;
}

.about-info {
  background: var(--background-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: var(--spacing-sm);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  color: var(--text-white);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  word-wrap: break-word;
  max-width: 100%;
}

/* Skills Section */
.skills {
  background: var(--background-card);
  position: relative;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  opacity: 0.1;
  z-index: 1;
}

.skills .container {
  position: relative;
  z-index: 2;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: var(--spacing-2xl);
  width: 100%;
}

.skill-category {
  background: var(--background-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  position: relative;
  transition: all var(--transition-normal);
  display: block;
  min-height: 200px;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.category-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.category-header h3 {
  color: var(--text-white);
  font-size: 1.3rem;
  margin: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.skill-tag {
  background: var(--background-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  min-width: 120px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.skill-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gradient-primary);
  width: var(--level, 0%);
  opacity: 0.1;
  transition: width 1s ease-out 0.5s;
}

.skill-tag:hover {
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.tag-name {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
}

.tag-level {
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Portfolio Section */
.portfolio {
  background: var(--background-dark);
  position: relative;
}

.portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  opacity: 0.05;
  z-index: 1;
}

.portfolio .container {
  position: relative;
  z-index: 2;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  color: var(--text-gray);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-accent);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-white);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

/* Portfolio Item Styles */
.portfolio-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.portfolio-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card {
  background: var(--background-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(20px);
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.portfolio-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.4);
  border-color: var(--primary-purple);
}

.portfolio-card:hover::before {
  background: var(--gradient-secondary);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: var(--gradient-primary);
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 13, 23, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
  visibility: visible;
}

.portfolio-overlay-content {
  text-align: center;
  padding: var(--spacing-md);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay-content {
  transform: translateY(0);
}

.portfolio-overlay-content h3 {
  color: var(--text-white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.3rem;
}

.portfolio-overlay-content p {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.portfolio-links {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.portfolio-link {
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--gradient-primary);
  color: var(--text-white);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

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

.portfolio-link:hover::before {
  left: 100%;
}

.portfolio-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.portfolio-info {
  padding: var(--spacing-xl);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-info h3 {
  color: var(--text-white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.3rem;
  font-weight: 600;
}

.portfolio-info p {
  color: var(--text-gray);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
  line-height: 1.6;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: auto;
}

.tech-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-purple);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
}

/* Contact Section */
.contact {
  background: var(--background-dark);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  opacity: 0.1;
  z-index: 1;
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.contact-info-card {
  background: var(--background-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(20px);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
  border-color: var(--primary-purple);
}

.contact-info-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 1.8rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
}

.contact-info h3 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-md);
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.contact-details {
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  font-size: 1.5rem;
  margin-top: var(--spacing-xs);
}

.contact-text strong {
  display: block;
  color: var(--text-white);
  margin-bottom: var(--spacing-xs);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-link {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--background-dark);
  color: var(--text-light);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background: var(--background-dark);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group label {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  color: var(--text-gray);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: var(--spacing-sm);
  font-size: 0.8rem;
  color: var(--primary-blue);
  background: var(--background-dark);
  padding: 0 var(--spacing-xs);
}

/* Footer */
.footer {
  background: var(--background-darker);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-content {
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-brand h3 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.social-icon {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--background-card);
  color: var(--text-light);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  font-size: 0.9rem;
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.footer-column h4 {
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

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

.footer-column li {
  margin-bottom: var(--spacing-sm);
}

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

.footer-column a:hover {
  color: var(--primary-purple);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: var(--spacing-xl) 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-copyright {
  text-align: center;
}

.footer-bottom-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Light Mode Variables */
body.light-mode {
  --background-dark: #FFFFFF;
  --background-darker: #F8FAFC;
  --background-card: #F1F5F9;
  --text-white: #0F172A;
  --text-light: #334155;
  --text-gray: #64748B;
  --text-muted: #94A3B8;
  --background-glass: rgba(0, 0, 0, 0.05);
  --background-glow: rgba(99, 102, 241, 0.05);
  
  /* Light mode specific gradients */
  --gradient-glass: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

/* Light mode navbar */
body.light-mode .navbar {
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .navbar::before {
  background: var(--gradient-primary);
  opacity: 0.02;
}

/* Light mode hero section */
body.light-mode .hero {
  background: var(--background-darker);
}

body.light-mode .hero::before {
  background: var(--gradient-glow);
  opacity: 0.3;
}

/* Light mode cards and sections */
body.light-mode .about-card,
body.light-mode .skill-category,
body.light-mode .service-card,
body.light-mode .portfolio-card,
body.light-mode .contact-info-card {
  background: var(--background-card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body.light-mode .about-card:hover,
body.light-mode .skill-category:hover,
body.light-mode .service-card:hover,
body.light-mode .portfolio-card:hover,
body.light-mode .contact-info-card:hover {
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

/* Light mode floating shapes */
body.light-mode .floating-shape {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

body.light-mode .shape-inner {
  background: var(--gradient-primary);
  opacity: 0.1;
}

/* Light mode form elements */
body.light-mode .form-group input,
body.light-mode .form-group textarea {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: var(--text-white);
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
  border-color: var(--primary-blue);
  background: rgba(255, 255, 255, 1);
}

/* Light mode particles canvas */
body.light-mode #particles-canvas {
  opacity: 0.6;
}

/* Services Section */
.services {
  background: var(--background-dark);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.service-card {
  background: var(--background-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.05;
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.service-icon {
  margin-bottom: var(--spacing-lg);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  animation: float 6s ease-in-out infinite;
}

.service-card h3 {
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
  font-size: 1.4rem;
}

.service-card p {
  color: var(--text-gray);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.service-features {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-purple);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.service-btn {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 600;
}

.service-btn:hover {
  background: var(--primary-purple);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials {
  background: var(--background-card);
  position: relative;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-card {
  background: var(--background-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  text-align: center;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.testimonial-card.active {
  display: block;
}

.testimonial-content {
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: var(--primary-purple);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: serif;
}

.testimonial-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
  font-style: italic;
  margin-top: var(--spacing-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 600;
  font-size: 1.2rem;
}

.author-info h4 {
  color: var(--text-white);
  margin-bottom: var(--spacing-xs);
  font-size: 1.1rem;
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.testimonial-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.testimonial-nav {
  background: var(--background-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 1.5rem;
  color: var(--text-light);
}

.testimonial-nav:hover {
  background: var(--gradient-primary);
  color: var(--text-white);
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: var(--spacing-sm);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active,
.dot:hover {
  background: var(--primary-purple);
  transform: scale(1.2);
}

/* Interactive Timeline for About Section */
.journey-timeline {
  position: relative;
  margin: var(--spacing-2xl) 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  background: var(--background-card);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 var(--spacing-lg);
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--background-dark);
}

/* Loading Animation */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--primary-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-md);
}

.loading-text {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
}

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

/* Blog Section */
.blog {
  background: var(--background-dark);
  position: relative;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.blog-card {
  background: var(--background-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.blog-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.blog-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-content {
  padding: var(--spacing-lg);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.blog-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-category {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-purple);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.blog-content h3 {
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
}

.blog-content p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.blog-link {
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.blog-link:hover {
  color: var(--primary-blue);
}

.blog-cta {
  text-align: center;
}

/* New Contact Section Styles */
.contact {
  background: var(--background-card);
  position: relative;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.contact-info-card {
  background: var(--background-dark);
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-purple);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.contact-info-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.contact-info-card h3 {
  color: var(--text-white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.2rem;
}

.contact-info-card p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

.contact-form-section {
  margin-bottom: var(--spacing-xl);
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.form-header h3 {
  color: var(--text-white);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contact-form {
  background: var(--background-card);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Modern Form Layout */
.modern-form .form-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.form-left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-right {
  height: 100%;
}

.message-group {
  height: 100%;
}

.message-group textarea {
  height: 100%;
  min-height: 280px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: var(--spacing-md);
  font-size: 1.2rem;
  z-index: 2;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.textarea-wrapper .input-icon {
  top: var(--spacing-md);
  align-self: flex-start;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

/* Enhanced Modern Form Styles */
.modern-form .form-group {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.form-label {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  transition: color var(--transition-normal);
}

.modern-form .form-group input,
.modern-form .form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--text-light);
  font-size: 1rem;
  font-family: var(--font-primary);
  backdrop-filter: blur(15px);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.modern-form .form-group input::placeholder,
.modern-form .form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.95rem;
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modern-form .form-group input:focus + .input-border,
.modern-form .form-group textarea:focus + .input-border {
  width: 100%;
}

.modern-form .form-group input:focus ~ .form-label,
.modern-form .form-group textarea:focus ~ .form-label {
  color: var(--primary-purple);
}

.form-group input:focus + .input-icon,
.form-group textarea:focus + .input-icon {
  color: var(--primary-purple);
  transform: scale(1.1);
}

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

.modern-form .form-group input:focus,
.modern-form .form-group textarea:focus {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(15, 23, 42, 1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-submit-btn {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.contact-submit-btn .btn-icon {
  font-size: 1.3rem;
}

.contact-submit-btn .btn-arrow {
  font-size: 1.2rem;
  transition: transform var(--transition-normal);
}

.contact-submit-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Enhanced Modern Submit Button */
.modern-submit-btn {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
  min-height: 55px;
}

.modern-submit-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.6s ease;
}

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

.modern-submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.7);
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%);
}

.modern-submit-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.modern-submit-btn .btn-icon {
  font-size: 1.3rem;
  transition: transform var(--transition-normal);
}

.modern-submit-btn:hover .btn-icon {
  transform: scale(1.1) rotate(10deg);
}

.btn-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Form Status Messages */
.form-status {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: block;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
}

.form-status.loading {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-purple);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: block;
}

.social-media-section {
  text-align: center;
}

.social-media-section h3 {
  color: var(--text-white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.social-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
}

.social-link-card {
  background: var(--background-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-decoration: none;
  color: var(--text-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-md);
  backdrop-filter: blur(20px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-height: 80px;
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-white);
}

.social-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-link-card:hover {
  background: var(--gradient-primary);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.social-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.social-link-card:hover .social-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }/* P
ortfolio Modal Styles */
.portfolio-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.portfolio-modal.show {
  opacity: 1;
}

.portfolio-modal-content {
  position: relative;
  background: var(--background-card);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

.portfolio-modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  z-index: 1;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-modal-close:hover {
  background: var(--gradient-primary);
  color: var(--text-white);
  transform: scale(1.1);
}

.portfolio-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  padding: var(--spacing-2xl);
}

.portfolio-modal-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.portfolio-modal-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-slow);
}

.portfolio-modal-image:hover img {
  transform: scale(1.05);
}

.portfolio-modal-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.portfolio-modal-info h2 {
  color: var(--text-white);
  margin-bottom: var(--spacing-sm);
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-modal-info p {
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.modal-tech-stack {
  background: var(--background-dark);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-tech-stack h4 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.modal-tech-stack h4::before {
  content: '🛠️';
  font-size: 1.5rem;
}

.modal-tech-stack #modal-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.modal-tech-stack .tech-tag {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-purple);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all var(--transition-fast);
}

.modal-tech-stack .tech-tag:hover {
  background: rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.modal-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-links .btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.modal-links .btn-primary {
  background: var(--gradient-primary);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.modal-links .btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-purple);
  color: var(--primary-purple);
}

.modal-links .btn-secondary:hover {
  background: var(--primary-purple);
  color: var(--text-white);
}

/* Modal Navigation */
.modal-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.modal-navigation:hover {
  background: var(--gradient-primary);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
  left: -25px;
}

.modal-nav-next {
  right: -25px;
}

/* Modal Project Gallery */
.modal-project-gallery {
  margin-top: var(--spacing-lg);
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.modal-gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.modal-gallery-item:hover {
  transform: scale(1.05);
}

.modal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Project Details */
.modal-project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--background-dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-detail-item {
  text-align: center;
}

.modal-detail-item h5 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-detail-item p {
  color: var(--text-light);
  font-weight: 500;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
  .portfolio-modal-content {
    width: 95%;
    margin: 2% auto;
    max-height: 95vh;
  }
  
  .portfolio-modal-body {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
  }
  
  .portfolio-modal-image {
    order: 1;
  }
  
  .portfolio-modal-info {
    order: 2;
  }
  
  .portfolio-modal-image img {
    height: 250px;
  }
  
  .portfolio-modal-info h2 {
    font-size: 1.5rem;
  }
  
  .modal-links {
    flex-direction: column;
  }
  
  .modal-links .btn {
    width: 100%;
  }
  
  .modal-navigation {
    display: none;
  }
  
  .modal-project-details {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .portfolio-modal-content {
    width: 98%;
    margin: 1% auto;
  }
  
  .portfolio-modal-body {
    padding: var(--spacing-md);
  }
  
  .portfolio-modal-close {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
  
  .modal-tech-stack {
    padding: var(--spacing-md);
  }
  
  .modal-tech-stack .tech-tag {
    font-size: 0.8rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}

/* Modal Animation Enhancement */
.portfolio-modal {
  animation: modalFadeIn 0.3s ease-out;
}

.portfolio-modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

/* Modal Scrollbar Styling */
.portfolio-modal-content::-webkit-scrollbar {
  width: 8px;
}

.portfolio-modal-content::-webkit-scrollbar-track {
  background: var(--background-dark);
  border-radius: var(--radius-sm);
}

.portfolio-modal-content::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
}

.portfolio-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}/* 
Portfolio Filtering Animations */
.portfolio-fade-out {
  animation: portfolioFadeOut 0.3s ease-out forwards;
}

.portfolio-fade-in {
  animation: portfolioFadeIn 0.5s ease-out forwards;
}

@keyframes portfolioFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
}

@keyframes portfolioFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Filter Button Animations */
.filter-btn.filter-clicked {
  animation: filterButtonClick 0.2s ease-out;
}

.filter-btn.filter-hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.filter-btn.filtering {
  pointer-events: none;
  opacity: 0.7;
}

@keyframes filterButtonClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Portfolio Count Display */
.portfolio-count {
  text-align: center;
  margin: var(--spacing-md) 0 var(--spacing-lg);
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.3s forwards;
}

.count-text {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--background-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
}

/* Portfolio Loading State */
.portfolio-loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-gray);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.portfolio-loading-state::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top: 2px solid var(--primary-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Enhanced Filter Button States */
.filter-btn {
  position: relative;
  overflow: hidden;
}

.filter-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.filter-btn.active::after,
.filter-btn:hover::after {
  opacity: 1;
}

.filter-btn.active {
  color: var(--text-white);
  border-color: var(--primary-blue);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Portfolio Grid Animation Enhancement */
.portfolio-grid {
  position: relative;
}

.portfolio-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.portfolio-grid.filtering::before {
  opacity: 0.1;
}

/* Staggered Animation Classes */
.portfolio-item:nth-child(1) { animation-delay: 0.1s !important; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s !important; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s !important; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s !important; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s !important; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s !important; }

/* No Results State */
.portfolio-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-3xl);
  color: var(--text-gray);
}

.portfolio-no-results h3 {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.portfolio-no-results p {
  margin-bottom: var(--spacing-lg);
}

.portfolio-no-results .btn {
  margin-top: var(--spacing-md);
}

/* Theme Transition */
body.theme-transition,
body.theme-transition *,
body.theme-transition *::before,
body.theme-transition *::after {
  transition: background-color 0.3s ease, 
              color 0.3s ease, 
              border-color 0.3s ease, 
              box-shadow 0.3s ease !important;
}

/* Theme Toggle Enhanced */
.theme-toggle {
  background: var(--background-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-right: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: 50%;
}

.theme-toggle:hover::before {
  opacity: 0.1;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.theme-icon {
  font-size: 1.4rem;
  transition: transform var(--transition-normal);
  position: relative;
  z-index: 1;
}

.theme-toggle:active .theme-icon {
  transform: scale(0.9);
}

/* Light mode theme toggle */
body.light-mode .theme-toggle {
  background: var(--background-card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-toggle:hover {
  box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

/* Particles Canvas Transitions */
#particles-canvas {
  transition: opacity 0.5s ease;
}

/* Enhanced floating elements for light mode */
body.light-mode .floating-elements {
  opacity: 0.7;
}

body.light-mode .floating-shape {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(10px);
}

body.light-mode .shape-inner {
  background: var(--gradient-primary);
  opacity: 0.08;
}

/* Light mode hero particles */
body.light-mode .hero-particles::before {
  background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

/* Light mode tech orbit */
body.light-mode .tech-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Light mode scroll progress */
body.light-mode .scroll-progress {
  background: rgba(0, 0, 0, 0.1);
}

/* Light mode navigation */
body.light-mode .nav-link {
  color: var(--text-light);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  color: var(--primary-blue);
}

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

/* Light mode hero image */
body.light-mode .hero-image-placeholder {
  background: var(--gradient-primary);
  border: 4px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

body.light-mode .hero-image-placeholder::before {
  background: var(--gradient-primary);
  opacity: 0.3;
}

/* Light mode portfolio modal */
body.light-mode .portfolio-modal {
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .portfolio-modal-content {
  background: var(--background-card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Light mode footer */
body.light-mode .footer {
  background: var(--background-card);
}

body.light-mode .footer::before {
  background: var(--gradient-primary);
}/*
 CSS-based Star Background */
.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 20%; left: 20%; width: 2px; height: 2px; animation-delay: 0s; }
.star:nth-child(2) { top: 30%; left: 80%; width: 1px; height: 1px; animation-delay: 0.5s; }
.star:nth-child(3) { top: 50%; left: 10%; width: 3px; height: 3px; animation-delay: 1s; }
.star:nth-child(4) { top: 70%; left: 70%; width: 2px; height: 2px; animation-delay: 1.5s; }
.star:nth-child(5) { top: 10%; left: 50%; width: 1px; height: 1px; animation-delay: 2s; }
.star:nth-child(6) { top: 80%; left: 30%; width: 2px; height: 2px; animation-delay: 2.5s; }
.star:nth-child(7) { top: 40%; left: 90%; width: 1px; height: 1px; animation-delay: 0.3s; }
.star:nth-child(8) { top: 60%; left: 5%; width: 3px; height: 3px; animation-delay: 0.8s; }
.star:nth-child(9) { top: 15%; left: 75%; width: 2px; height: 2px; animation-delay: 1.3s; }
.star:nth-child(10) { top: 85%; left: 60%; width: 1px; height: 1px; animation-delay: 1.8s; }
.star:nth-child(11) { top: 25%; left: 40%; width: 2px; height: 2px; animation-delay: 0.2s; }
.star:nth-child(12) { top: 75%; left: 85%; width: 1px; height: 1px; animation-delay: 0.7s; }
.star:nth-child(13) { top: 35%; left: 15%; width: 3px; height: 3px; animation-delay: 1.2s; }
.star:nth-child(14) { top: 55%; left: 95%; width: 2px; height: 2px; animation-delay: 1.7s; }
.star:nth-child(15) { top: 5%; left: 25%; width: 1px; height: 1px; animation-delay: 2.2s; }
.star:nth-child(16) { top: 90%; left: 45%; width: 2px; height: 2px; animation-delay: 0.4s; }
.star:nth-child(17) { top: 45%; left: 65%; width: 1px; height: 1px; animation-delay: 0.9s; }
.star:nth-child(18) { top: 65%; left: 35%; width: 3px; height: 3px; animation-delay: 1.4s; }
.star:nth-child(19) { top: 12%; left: 88%; width: 2px; height: 2px; animation-delay: 1.9s; }
.star:nth-child(20) { top: 88%; left: 12%; width: 1px; height: 1px; animation-delay: 2.4s; }

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Hide stars in light mode */
body.light-mode .stars-background {
  display: none;
}

/* Light mode particles */
body.light-mode .light-particles {
  display: block;
}

.light-particles {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.light-particle {
  position: absolute;
  border-radius: 50%;
  animation: lightFloat 8s ease-in-out infinite;
}

.light-particle:nth-child(1) { 
  top: 10%; left: 10%; width: 8px; height: 8px; 
  background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, transparent 70%);
  animation-delay: 0s; 
}
.light-particle:nth-child(2) { 
  top: 30%; left: 80%; width: 6px; height: 6px; 
  background: radial-gradient(circle, rgba(59,130,246,0.4) 0%, transparent 70%);
  animation-delay: 1s; 
}
.light-particle:nth-child(3) { 
  top: 60%; left: 20%; width: 10px; height: 10px; 
  background: radial-gradient(circle, rgba(6,182,212,0.4) 0%, transparent 70%);
  animation-delay: 2s; 
}
.light-particle:nth-child(4) { 
  top: 80%; left: 70%; width: 7px; height: 7px; 
  background: radial-gradient(circle, rgba(236,72,153,0.4) 0%, transparent 70%);
  animation-delay: 3s; 
}
.light-particle:nth-child(5) { 
  top: 20%; left: 60%; width: 9px; height: 9px; 
  background: radial-gradient(circle, rgba(245,158,11,0.4) 0%, transparent 70%);
  animation-delay: 4s; 
}

@keyframes lightFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.8;
  }
}

/* FIXED CSS-based Star Background - ALWAYS VISIBLE IN DARK MODE */
.stars-background {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 1 !important;
  display: block !important;
}

.star {
  position: absolute;
  background: #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffffff, 0 0 12px #ffffff;
  animation: starTwinkle 2s ease-in-out infinite;
}

/* More stars with better distribution */
.star:nth-child(1) { top: 10%; left: 15%; width: 3px; height: 3px; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 85%; width: 2px; height: 2px; animation-delay: 0.3s; }
.star:nth-child(3) { top: 35%; left: 25%; width: 4px; height: 4px; animation-delay: 0.6s; }
.star:nth-child(4) { top: 45%; left: 75%; width: 2px; height: 2px; animation-delay: 0.9s; }
.star:nth-child(5) { top: 60%; left: 10%; width: 3px; height: 3px; animation-delay: 1.2s; }
.star:nth-child(6) { top: 70%; left: 90%; width: 2px; height: 2px; animation-delay: 1.5s; }
.star:nth-child(7) { top: 80%; left: 40%; width: 4px; height: 4px; animation-delay: 1.8s; }
.star:nth-child(8) { top: 15%; left: 60%; width: 2px; height: 2px; animation-delay: 0.2s; }
.star:nth-child(9) { top: 25%; left: 45%; width: 3px; height: 3px; animation-delay: 0.5s; }
.star:nth-child(10) { top: 55%; left: 80%; width: 2px; height: 2px; animation-delay: 0.8s; }
.star:nth-child(11) { top: 65%; left: 20%; width: 4px; height: 4px; animation-delay: 1.1s; }
.star:nth-child(12) { top: 85%; left: 70%; width: 2px; height: 2px; animation-delay: 1.4s; }
.star:nth-child(13) { top: 5%; left: 35%; width: 3px; height: 3px; animation-delay: 1.7s; }
.star:nth-child(14) { top: 40%; left: 5%; width: 2px; height: 2px; animation-delay: 0.1s; }
.star:nth-child(15) { top: 50%; left: 95%; width: 4px; height: 4px; animation-delay: 0.4s; }
.star:nth-child(16) { top: 75%; left: 55%; width: 2px; height: 2px; animation-delay: 0.7s; }
.star:nth-child(17) { top: 30%; left: 65%; width: 3px; height: 3px; animation-delay: 1.0s; }
.star:nth-child(18) { top: 90%; left: 25%; width: 2px; height: 2px; animation-delay: 1.3s; }
.star:nth-child(19) { top: 12%; left: 80%; width: 4px; height: 4px; animation-delay: 1.6s; }
.star:nth-child(20) { top: 88%; left: 15%; width: 2px; height: 2px; animation-delay: 1.9s; }

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
    box-shadow: 0 0 6px #ffffff, 0 0 12px #ffffff;
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff;
  }
}

/* Hide stars in light mode */
body.light-mode .stars-background {
  display: none !important;
}

/* FIXED Light mode particles - ALWAYS VISIBLE IN LIGHT MODE */
.light-particles {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
  display: none !important;
}

body.light-mode .light-particles {
  display: block !important;
}

.light-particle {
  position: absolute;
  border-radius: 50%;
  animation: lightParticleFloat 6s ease-in-out infinite;
}

.light-particle:nth-child(1) { 
  top: 15%; left: 20%; width: 12px; height: 12px; 
  background: radial-gradient(circle, rgba(99,102,241,0.6) 0%, rgba(99,102,241,0.1) 70%, transparent 100%);
  animation-delay: 0s; 
}
.light-particle:nth-child(2) { 
  top: 40%; left: 80%; width: 8px; height: 8px; 
  background: radial-gradient(circle, rgba(59,130,246,0.6) 0%, rgba(59,130,246,0.1) 70%, transparent 100%);
  animation-delay: 1s; 
}
.light-particle:nth-child(3) { 
  top: 70%; left: 30%; width: 15px; height: 15px; 
  background: radial-gradient(circle, rgba(6,182,212,0.6) 0%, rgba(6,182,212,0.1) 70%, transparent 100%);
  animation-delay: 2s; 
}
.light-particle:nth-child(4) { 
  top: 25%; left: 70%; width: 10px; height: 10px; 
  background: radial-gradient(circle, rgba(236,72,153,0.6) 0%, rgba(236,72,153,0.1) 70%, transparent 100%);
  animation-delay: 3s; 
}
.light-particle:nth-child(5) { 
  top: 60%; left: 60%; width: 12px; height: 12px; 
  background: radial-gradient(circle, rgba(245,158,11,0.6) 0%, rgba(245,158,11,0.1) 70%, transparent 100%);
  animation-delay: 4s; 
}

@keyframes lightParticleFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-15px) scale(1.1);
    opacity: 1;
  }
}/* 
Stars Background - Working Version */
.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  display: block;
  opacity: 1;
}

.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffffff;
  animation: starTwinkle 2s ease-in-out infinite;
}

.star:nth-child(1) { top: 10%; left: 15%; width: 2px; height: 2px; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 85%; width: 1px; height: 1px; animation-delay: 0.3s; }
.star:nth-child(3) { top: 35%; left: 25%; width: 3px; height: 3px; animation-delay: 0.6s; }
.star:nth-child(4) { top: 45%; left: 75%; width: 2px; height: 2px; animation-delay: 0.9s; }
.star:nth-child(5) { top: 60%; left: 10%; width: 1px; height: 1px; animation-delay: 1.2s; }
.star:nth-child(6) { top: 70%; left: 90%; width: 2px; height: 2px; animation-delay: 1.5s; }
.star:nth-child(7) { top: 80%; left: 40%; width: 3px; height: 3px; animation-delay: 1.8s; }
.star:nth-child(8) { top: 15%; left: 60%; width: 1px; height: 1px; animation-delay: 0.2s; }
.star:nth-child(9) { top: 25%; left: 45%; width: 2px; height: 2px; animation-delay: 0.5s; }
.star:nth-child(10) { top: 55%; left: 80%; width: 1px; height: 1px; animation-delay: 0.8s; }
.star:nth-child(11) { top: 65%; left: 20%; width: 3px; height: 3px; animation-delay: 1.1s; }
.star:nth-child(12) { top: 85%; left: 70%; width: 2px; height: 2px; animation-delay: 1.4s; }
.star:nth-child(13) { top: 5%; left: 35%; width: 1px; height: 1px; animation-delay: 1.7s; }
.star:nth-child(14) { top: 40%; left: 5%; width: 2px; height: 2px; animation-delay: 0.1s; }
.star:nth-child(15) { top: 50%; left: 95%; width: 3px; height: 3px; animation-delay: 0.4s; }
.star:nth-child(16) { top: 75%; left: 55%; width: 1px; height: 1px; animation-delay: 0.7s; }
.star:nth-child(17) { top: 30%; left: 65%; width: 2px; height: 2px; animation-delay: 1.0s; }
.star:nth-child(18) { top: 90%; left: 25%; width: 1px; height: 1px; animation-delay: 1.3s; }
.star:nth-child(19) { top: 12%; left: 80%; width: 3px; height: 3px; animation-delay: 1.6s; }
.star:nth-child(20) { top: 88%; left: 15%; width: 2px; height: 2px; animation-delay: 1.9s; }

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Hide stars in light mode */
body.light-mode .stars-background {
  display: none;
}

/* Light mode particles */
.light-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  display: none;
  opacity: 0.7;
}

body.light-mode .light-particles {
  display: block;
}

.light-particle {
  position: absolute;
  border-radius: 50%;
  animation: lightParticleFloat 6s ease-in-out infinite;
}

.light-particle:nth-child(1) { 
  top: 15%; left: 20%; width: 10px; height: 10px; 
  background: radial-gradient(circle, rgba(99,102,241,0.6) 0%, transparent 70%);
  animation-delay: 0s; 
}
.light-particle:nth-child(2) { 
  top: 40%; left: 80%; width: 8px; height: 8px; 
  background: radial-gradient(circle, rgba(59,130,246,0.6) 0%, transparent 70%);
  animation-delay: 1s; 
}
.light-particle:nth-child(3) { 
  top: 70%; left: 30%; width: 12px; height: 12px; 
  background: radial-gradient(circle, rgba(6,182,212,0.6) 0%, transparent 70%);
  animation-delay: 2s; 
}
.light-particle:nth-child(4) { 
  top: 25%; left: 70%; width: 9px; height: 9px; 
  background: radial-gradient(circle, rgba(236,72,153,0.6) 0%, transparent 70%);
  animation-delay: 3s; 
}
.light-particle:nth-child(5) { 
  top: 60%; left: 60%; width: 11px; height: 11px; 
  background: radial-gradient(circle, rgba(245,158,11,0.6) 0%, transparent 70%);
  animation-delay: 4s; 
}

@keyframes lightParticleFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-15px) scale(1.1);
    opacity: 1;
  }
}

/* Profile Image Styles */
.profile-image,
.about-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.hero-image-placeholder .profile-image {
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.about-image .image-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
}

.about-image .about-profile-image {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.about-image:hover .about-profile-image {
    transform: scale(1.05);
}
