:root {
  --primary: #0d6efd;
  --accent: #3a86ff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1d28;
  --text-light: #333;
  --text-dark: #f8f9fa;
  --card-light: #ffffff;
  --card-dark: #2d3748;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --bg-light: #1a1d28;
  --text-light: #f8f9fa;
  --card-light: #2d3748;
}

/* Global Styles */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: var(--transition);
  line-height: 1.6;
}

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

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

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

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-light);
}

.theme-toggle:hover {
  background: rgba(13, 110, 253, 0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(13,110,253,0.1) 0%, rgba(13,110,253,0.05) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(13,110,253,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.floating-image {
  animation: float 3s ease-in-out infinite;
}

/* Enhanced Cards */
.service-card {
  transition: var(--transition);
  border: 1px solid transparent;
  background: var(--card-light);
  border-radius: 12px;
  padding: 1.5rem;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.15);
}

.card {
  background: var(--card-light);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Progress Bars */
.skill-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: width 1s ease-in-out;
  width: 0%;
}

/* Floating Action Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}

.fab-btn:hover {
  transform: scale(1.1);
  animation: none;
  text-decoration: none;
  color: white;
}

.fab-btn.whatsapp { 
  background: #25D366; 
  animation-delay: 0s;
}
.fab-btn.email { 
  background: #EA4335; 
  animation-delay: 0.2s;
}
.fab-btn.linkedin { 
  background: #0A66C2; 
  animation-delay: 0.4s;
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Button Enhancements */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Navigation Enhancements */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Form Enhancements */
.form-control {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Testimonial Carousel */
.testimonial-carousel .carousel-item {
  padding: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
    text-align: center;
  }
  
  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }
  
  .fab-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
}

/* Dark mode specific styles */
[data-theme="dark"] .card {
  border-color: #374151;
}

[data-theme="dark"] .form-control {
  background-color: #374151;
  border-color: #4B5563;
  color: white;
}

[data-theme="dark"] .form-control:focus {
  background-color: #374151;
  color: white;
}

[data-theme="dark"] .bg-light {
  background-color: #374151 !important;
}

[data-theme="dark"] .text-muted {
  color: #9ca3af !important;
}

/* Additional utility classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Blog specific styles */
.post-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.read-time {
  font-size: 0.875rem;
  color: #6c757d;
}

.category-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}
