/* ===== SOPHISTICATED PORTFOLIO STYLES ===== */

/* Root Variables - Carefully Selected Color Palette */
:root {
  /* Primary Colors - Professional Blue Palette */
  --primary-blue: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  
  /* Secondary Colors */
  --accent-purple: #8b5cf6;
  --accent-teal: #06b6d4;
  --accent-emerald: #059669;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Text Colors */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  
  /* Background Colors */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  --content-padding: 2rem;
}

/* ===== BASE STYLES ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
  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 {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-blue);
  transition: left 0.3s;
  z-index: -1;
}

.btn-secondary:hover::before {
  left: 0;
}

.btn-secondary:hover {
  color: var(--white);
  transform: translateY(-2px);
  border-color: var(--primary-blue);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--text-primary);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ===== NAVIGATION ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-base);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Logo Design */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.logo-animation {
  position: relative;
  width: 8px;
  height: 8px;
}

.logo-circle {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  border-radius: 50%;
  position: absolute;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-pulse {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  border-radius: 50%;
  position: absolute;
  opacity: 0.3;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0.1; }
}

/* Enhanced Logo Hover Effect */
.nav-logo:hover .logo-text {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-base);
}

.nav-logo:hover .logo-circle,
.nav-logo:hover .logo-pulse {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  animation-duration: 1s;
}

.logo-dot {
  color: var(--accent-purple);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
  background: var(--bg-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ===== HERO SECTION ===== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Floating Particles Animation */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(59, 130, 246, 0.4), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(59, 130, 246, 0.5), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(59, 130, 246, 0.4), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: particles 25s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes particles {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-10px) translateX(5px); }
  50% { transform: translateY(-20px) translateX(-5px); }
  75% { transform: translateY(-10px) translateX(3px); }
  100% { transform: translateY(0) translateX(0); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: fit-content;
  animation: gentle-bounce 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.6s;
}

.hero-badge:hover::before {
  left: 100%;
}

.hero-badge:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
  animation-play-state: paused;
}

.hero-badge i {
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.1); }
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-title {
  margin: 0;
  line-height: 1.1;
}

.title-main {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.title-sub {
  font-size: 2.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

.highlight {
  color: var(--primary-blue);
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-base);
  font-size: 1.25rem;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.profile-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-frame {
  width: 280px;
  height: 280px;
  background: var(--white);
  border: 3px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.profile-image {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.profile-placeholder {
  font-size: 6rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.profile-badges {
  position: absolute;
  inset: 0;
}

.floating-badge {
  position: absolute;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  animation: badge-float 4s ease-in-out infinite;
}

.badge-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  left: 5%;
  animation-delay: 1.5s;
}

.badge-3 {
  top: 60%;
  right: -5%;
  animation-delay: 3s;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* ===== SECTIONS ===== */

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-header:hover .section-title::after {
  width: 100%;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer-title 3s infinite;
}

@keyframes shimmer-title {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ===== FEATURED PROJECTS ===== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-md);
  position: relative;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: all 0.6s;
  z-index: 1;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(59, 130, 246, 0.2);
  border-color: var(--primary-blue);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-image::before {
  width: 200px;
  height: 200px;
}

.project-card:hover .project-image {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-blue));
  transform: scale(1.1);
}

.project-icon {
  font-size: 4rem;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

.project-card:hover .project-icon {
  transform: scale(1.2) rotate(10deg);
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.project-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.project-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.project-link i {
  font-size: 1rem;
}

/* ===== SKILLS ===== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.category-header h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.25rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.skill-tag:hover {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* ===== TIMELINE ===== */

.timeline {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}

.timeline-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-blue);
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  text-align: center;
  height: fit-content;
}

.timeline-content h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.timeline-content h4 {
  color: var(--accent-purple);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
}

.timeline-content p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1rem;
}

/* ===== CONTACT CTA ===== */

.contact-cta {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 4rem 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.contact-item i {
  color: var(--primary-blue);
  font-size: 1rem;
}

/* ===== FOOTER ===== */

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p {
  color: var(--gray-400);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: var(--transition-base);
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-section .social-links {
  margin-top: 1rem;
}

.footer-section .social-links .social-link {
  background: var(--gray-800);
  border-color: var(--gray-700);
  color: var(--gray-400);
}

.footer-section .social-links .social-link:hover {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-bottom i {
  color: var(--primary-blue);
  margin: 0 0.25rem;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
  :root {
    --section-padding: 4rem 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .profile-container {
    width: 280px;
    height: 280px;
  }
  
  .profile-frame {
    width: 240px;
    height: 240px;
  }
  
  .profile-image {
    width: 200px;
    height: 200px;
  }
  
  .profile-placeholder {
    font-size: 5rem;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
    --content-padding: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .navbar {
    position: relative;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    flex-direction: column;
    z-index: 1000;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links .nav-link {
    padding: 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
  }
  
  .nav-links .nav-link:last-child {
    border-bottom: none;
  }
  
  .nav-links .nav-link:hover {
    background: var(--gray-50);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .hero {
    padding: 6rem 0 3rem;
  }
  
  .title-main {
    font-size: 3rem;
  }
  
  .title-sub {
    font-size: 2rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-large {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .cta-content {
    padding: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .contact-info {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .title-main {
    font-size: 2.5rem;
  }
  
  .title-sub {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .profile-container {
    width: 240px;
    height: 240px;
  }
  
  .profile-frame {
    width: 200px;
    height: 200px;
  }
  
  .profile-image {
    width: 160px;
    height: 160px;
  }
  
  .profile-placeholder {
    font-size: 4rem;
  }
  
  .floating-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* ===== SMOOTH ANIMATIONS ===== */

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: float 20s ease-in-out infinite;
  }
  
  .hero-badge {
    animation: gentle-bounce 3s ease-in-out infinite;
  }
  
  .floating-badge {
    animation: badge-float 4s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== CONTACT FORM STYLES ===== */
#contact-form {
  padding: 5rem 0;
}

/* Contact Form Container */
.contact-form-container {
  position: relative;
  background: var(--bg-primary);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  padding: 2rem;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple), var(--accent-teal));
}

/* Contact Form Header */
.contact-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form-header h3 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Form Fields */
.contact-form-fields {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-label i {
  color: var(--primary-blue);
  font-size: 0.9rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition-base);
  resize: vertical;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--white);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

/* Submit Button */
.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  min-width: 200px;
  padding: 1rem 2rem;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn i {
  font-size: 1rem;
}

/* Direct Contact Links */
.contact-direct-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-primary);
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
  font-weight: 500;
  min-width: 200px;
  justify-content: center;
}

.contact-direct-link:hover {
  border-color: var(--primary-blue);
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary-blue);
}

.contact-direct-link i {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
  #contact-form {
    padding: 3rem 0;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .contact-form-header h3 {
    font-size: 1.5rem;
  }
  
  .form-input, .form-textarea {
    padding: 0.75rem;
  }
  
  .submit-btn {
    width: 100%;
    min-width: unset;
  }
  
  .contact-direct-link {
    width: 100%;
    min-width: unset;
  }
}

/* Form Success State */
.form-success {
  background: var(--accent-emerald);
  color: var(--white);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-top: 1rem;
  display: none;
}

.form-success.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ENHANCED DIRECT REACHOUT SECTION ===== */
.direct-reachout-section {
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--gray-50) 100%);
  border-radius: 2rem;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.direct-reachout-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple), var(--accent-teal));
}

.reachout-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.reachout-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.reachout-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.reachout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.reachout-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 2px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.reachout-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.reachout-card:hover::before {
  left: 100%;
}

.reachout-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
}

.reachout-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  transition: var(--transition-base);
}

.email-card .reachout-icon {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.phone-card .reachout-icon {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.whatsapp-card .reachout-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.location-card .reachout-icon {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-blue));
}

.reachout-content {
  flex: 1;
}

.reachout-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.reachout-content p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.reachout-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gray-100);
  color: var(--text-muted);
  font-size: 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.reachout-arrow {
  color: var(--gray-400);
  font-size: 1.2rem;
  transition: var(--transition-base);
}

.reachout-card:hover .reachout-arrow {
  color: var(--primary-blue);
  transform: translateX(4px);
}

.reachout-card:hover .reachout-icon {
  transform: scale(1.1);
}

/* Social Connect Section */
.social-connect {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.social-connect h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.social-links-enhanced {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link-enhanced {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link-enhanced.github:hover {
  border-color: #333;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 51, 51, 0.15);
}

.social-link-enhanced.linkedin:hover {
  border-color: #0077b5;
  color: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .direct-reachout-section {
    padding: 2rem;
    margin-top: 2rem;
  }
  
  .reachout-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links-enhanced {
    flex-direction: column;
    align-items: center;
  }
  
  .social-link-enhanced {
    width: 200px;
    justify-content: center;
  }
}

/* ===== ENHANCED ANIMATIONS ===== */
/* Fade in animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply animations to various elements */
.section {
  animation: fadeInUp 0.8s ease-out;
}

.project-card {
  animation: scaleIn 0.6s ease-out;
  animation-fill-mode: both;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.reachout-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.reachout-card:nth-child(1) { animation-delay: 0.1s; }
.reachout-card:nth-child(2) { animation-delay: 0.2s; }
.reachout-card:nth-child(3) { animation-delay: 0.3s; }
.reachout-card:nth-child(4) { animation-delay: 0.4s; }

/* Loading Screen Animation */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: all 0.8s ease-in-out;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-logo {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: logoFloat 2s ease-in-out infinite;
}

.loader-text {
  font-size: 1.2rem;
  opacity: 0.8;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.loading-dots {
  display: inline-block;
  margin-left: 0.5rem;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Page Transition Effects */
.page-content {
  opacity: 0;
  animation: pageLoad 1.2s ease-out 0.8s both;
}

@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth Scrolling Enhancement */
html {
  scroll-behavior: smooth;
}

/* Advanced Hover Effects for Links */
a:not(.btn):not(.social-link):not(.nav-link) {
  position: relative;
  overflow: hidden;
}

a:not(.btn):not(.social-link):not(.nav-link)::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  transition: width 0.3s ease;
}

a:not(.btn):not(.social-link):not(.nav-link):hover::before {
  width: 100%;
}

/* Enhanced Focus States for Accessibility */
*:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-blue));
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* Enhanced Form Animations */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  transition: all 0.3s ease;
  position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.form-group label {
  transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-25px) scale(0.85);
  color: var(--primary-blue);
}

/* Floating Labels Animation */
.floating-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--text-secondary);
}

/* Ripple Effect for Buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 200px;
  height: 200px;
}

/* ===== ADVANCED ANIMATIONS & VISUAL EFFECTS ===== */

/* Floating Elements Animation */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes floatFast {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(-2deg); }
}

/* Text Shimmer Effect */
@keyframes textShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-shimmer {
  background: linear-gradient(90deg, var(--text-primary) 25%, var(--primary-blue) 50%, var(--text-primary) 75%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3s linear infinite;
}

/* Glow Effects */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6); }
}

.glow-effect {
  animation: glow 2s ease-in-out infinite;
}

/* Morphing Background */
@keyframes morphBackground {
  0%, 100% { border-radius: 16px; }
  25% { border-radius: 30px 16px 30px 16px; }
  50% { border-radius: 16px 30px 16px 30px; }
  75% { border-radius: 25px; }
}

.morph-bg {
  animation: morphBackground 8s ease-in-out infinite;
}

/* Enhanced Hover States */
.enhanced-hover {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.enhanced-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.enhanced-hover:hover::before {
  left: 100%;
}

.enhanced-hover:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* Slide Reveal Animation */
@keyframes slideReveal {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-reveal {
  animation: slideReveal 0.8s ease-out;
}

/* Bounce In Animation */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Typewriter Effect */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkCursor {
  50% { border-color: transparent; }
}

.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--primary-blue);
  white-space: nowrap;
  margin: 0 auto;
  animation: typewriter 3s steps(40, end), blinkCursor 0.75s step-end infinite;
}

/* Gradient Border Animation */
@keyframes gradientBorder {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-border {
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-purple), var(--accent-teal), var(--primary-blue));
  background-size: 300% 300%;
  animation: gradientBorder 4s ease infinite;
  padding: 2px;
  border-radius: 16px;
}

.gradient-border-content {
  background: var(--white);
  border-radius: 14px;
  height: 100%;
  width: 100%;
}

/* Enhanced Card Animations */
.enhanced-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.enhanced-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
}

.enhanced-card:hover::after {
  opacity: 1;
}

.enhanced-card:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Staggered Animation */
.stagger-animation {
  animation: fadeInUp 0.6s ease-out both;
}

.stagger-animation:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Logo Animation - Mobile Safe */
.logo-container:hover .logo-text {
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-purple), var(--accent-teal));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile-Safe Interactive Skill Tags */
.skill-tag {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 769px) {
  .skill-tag::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;
  }

  .skill-tag:hover::before {
    left: 100%;
  }

  .skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  /* Disable heavy animations on mobile for better performance and functionality */
  .typewriter {
    animation: none !important;
    white-space: normal !important;
    border-right: none !important;
    overflow: visible !important;
    width: auto !important;
    max-width: 100% !important;
  }
  
  .text-shimmer {
    animation: none !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: #ffffff !important;
  }
  
  .bounce-in {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  
  .slide-reveal {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  
  .enhanced-hover {
    transform: none !important;
  }
  
  .enhanced-hover:hover {
    transform: none !important;
  }
  
  .enhanced-hover::before {
    display: none;
  }
  
  .enhanced-card {
    transform: none !important;
  }
  
  .enhanced-card:hover {
    transform: none !important;
  }
  
  .enhanced-card::after {
    display: none;
  }
  
  .morph-bg {
    animation: none !important;
    background: var(--card-bg);
  }
  
  .glow-effect {
    animation: none !important;
    box-shadow: none;
  }
  
  .pulse-animation {
    animation: none !important;
  }
  
  .gradient-border {
    animation: none !important;
    background: var(--primary-blue);
    border: 1px solid var(--primary-blue);
  }
  
  .stagger-animation {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  
  /* Ensure navigation works properly on mobile */
  .nav-toggle {
    display: block !important;
  }
  
  .nav-menu {
    position: fixed;
    background: var(--bg-primary);
    padding: 2rem 1rem;
  }
  
  /* Optimize project cards for mobile */
  .project-card {
    transform: none !important;
    transition: none;
  }
  
  .project-card:hover {
    transform: none !important;
  }
  
  /* Simplify buttons on mobile */
  .btn {
    transform: none !important;
    transition: background-color 0.3s ease;
  }
  
  .btn:hover {
    transform: none !important;
  }
  
  /* Improve touch targets for mobile */
  .mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-menu a {
    padding: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Prevent zoom on input focus */
  input, textarea, select {
    font-size: 16px;
  }
  
  /* Optimize scroll behavior */
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
  }
  
  /* Ensure all animations are disabled */
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0.3s !important;
  }
}

.reachout-card:nth-child(4) { animation-delay: 0.4s; }
