/* style.css - Enhanced UI/UX with Premium Design */

/* ===== CSS Variables & Reset ===== */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #8b5cf6;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-bg: #0a0d1c;
  --dark-section: #101228;
  --darker-section: #0c0f20;
  --card-bg: #1e1b4b;
  --text-light: #f8fafc;
  --text-gray: #94a3b8;
  --text-dark: #1e293b;
  --border-color: #334155;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.4);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d946ef 100%);
  --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
  --gradient-text: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-card: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
}

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

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

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-light);
  background-color: var(--dark-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Enhanced Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.display-4 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.section-title:hover::before {
  width: 100%;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 3rem;
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Glass Morphism Effects ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
}

.glass-card::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: var(--transition-slow);
}

.glass-card:hover::before {
  left: 100%;
}

/* ===== Enhanced Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 9999;
  backdrop-filter: blur(10px);
}

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

.scroll-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== Premium Navigation ===== */
.navbar {
  background: rgba(10, 13, 28, 0.8);
  backdrop-filter: blur(30px);
  padding: 1.25rem 0;
  transition: var(--transition-slow);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  background: rgba(10, 13, 28, 0.95);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-xl);
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-light) !important;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 600;
  margin: 0 0.5rem;
  padding: 0.75rem 1.5rem !important;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition);
  z-index: -1;
  border-radius: 50px;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  left: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
  transform: translateY(-2px);
}

/* ===== Premium Page Header ===== */
.page-header {
  position: relative;
  min-height: 70vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

.page-header .breadcrumb {
  background: transparent;
  margin-bottom: 0;
  padding: 1rem 0;
}

.page-header .breadcrumb-item a {
  color: var(--text-light) !important;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.page-header .breadcrumb-item a:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

.page-header .breadcrumb-item.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* ===== Enhanced Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 25%);
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

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

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  animation: float 6s ease-in-out infinite;
  opacity: 0.1;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 20%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 5%;
  animation-delay: 4s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  bottom: 10%;
  right: 15%;
  animation-delay: 1s;
}

.shape-5 {
  width: 90px;
  height: 90px;
  top: 50%;
  left: 20%;
  animation-delay: 3s;
}



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

/* Enhanced Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.15);
  color: var(--secondary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(10px);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  }
  50% { 
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
  }
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 50%;
  margin-right: 0.75rem;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px var(--secondary-color);
}

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

.typing-animation {
  color: var(--primary-color);
  font-weight: 700;
}

.typing-cursor {
  color: var(--primary-color);
  animation: blink 1s infinite;
  font-weight: 300;
}

/* Enhanced Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Premium Buttons */
.btn {
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.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;
}

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

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

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

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  background: transparent;
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-enhanced {
  position: relative;
}

.btn-enhanced::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--dark-section);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-enhanced:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  bottom: -45px;
}

.hire-me-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-success {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-info {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: white;
  box-shadow: var(--shadow);
}

/* Enhanced Hero Image */
.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-profile {
  border-radius: var(--border-radius-xl);
  box-shadow: 
    var(--shadow-xl),
    0 0 60px rgba(99, 102, 241, 0.3),
    inset 0 0 60px rgba(255, 255, 255, 0.1);
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
}

.hero-profile:hover {
  transform: rotateY(5deg) rotateX(5deg) scale(1.02);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down {
  color: var(--text-light);
  font-size: 2rem;
  animation: bounce 2s infinite;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.scroll-down:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

/* ===== Enhanced About Section ===== */
.about-image-wrapper {
  position: relative;
  display: inline-block;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-main-image {
  width: 100%;
  height: auto;
  transition: var(--transition-slow);
  filter: grayscale(0.2);
}

.about-image-wrapper:hover .about-main-image {
  transform: scale(1.05);
  filter: grayscale(0);
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--gradient-primary);
  color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: pulse 3s infinite;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 45%;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 55%;
}

.timeline-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.timeline-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--dark-bg);
}

.timeline-item:nth-child(odd) .timeline-icon {
  right: -85px;
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -85px;
}

/* ===== Enhanced Cards ===== */
.service-card, .portfolio-card, .blog-card {
  background: var(--gradient-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.service-card::before, .portfolio-card::before, .blog-card::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: var(--transition-slow);
}

.service-card:hover::before, .portfolio-card:hover::before, .blog-card:hover::before {
  left: 100%;
}

.service-card:hover, .portfolio-card:hover, .blog-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 
    var(--shadow-xl),
    0 0 40px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Enhanced Service Icons */
.service-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: white;
  position: relative;
  box-shadow: 
    var(--shadow),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 
    var(--shadow-lg),
    inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Enhanced Portfolio Overlay */
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  transform: scale(0.8);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: scale(1);
}

/* Enhanced Testimonials */
.testimonial-card {
  background: var(--gradient-card);
  padding: 2.5rem;
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 30px;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: serif;
}

.testimonial-author img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow);
}

/* Enhanced Contact Form */
.contact-form-wrapper {
  background: var(--gradient-card);
  padding: 3rem;
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
}

.form-control, .form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

/* ===== Enhanced Responsive Design ===== */
@media (max-width: 1200px) {
  .timeline-item {
    width: 90%;
    left: 5% !important;
    margin-bottom: 3rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-icon {
    left: -45px !important;
    right: auto !important;
  }
}

@media (max-width: 992px) {
  .hero-content {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
  }
  
  .display-4 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .service-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .page-header {
    min-height: 50vh;
  }
  
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hire-me-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .timeline-item {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
}

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

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

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* ===== Loading Animation ===== */
.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 6px;
  border: 2px solid var(--dark-bg);
}

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

/* ===== Utility Classes ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.shadow-glow {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .hero-scroll,
  .back-to-top,
  .social-links,
  .btn {
    display: none !important;
  }
  
  body {
    color: black;
    background: white;
  }
  
  .text-primary,
  .gradient-text {
    color: #000 !important;
    background: none !important;
  }
}