/* CSS Variables for theming */
:root {
  --primary-color: #dc2626;
  --primary-dark: #b91c1c;
  --secondary-color: #f3f4f6;
  --accent-color: #fbbf24;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --background: #ffffff;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* Dark mode variables */
[data-theme="dark"] {
  --primary-color: #ef4444;
  --primary-dark: #dc2626;
  --secondary-color: #374151;
  --accent-color: #fbbf24;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --background: #111827;
  --surface: #1f2937;
  --border: #374151;
  --shadow: rgba(0, 0, 0, 0.3);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--background);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-logo h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 120px 20px 80px;
  background: 
    radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.05) 0%, transparent 70%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: white;
  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 400 400"><defs><pattern id="circuit" width="80" height="80" patternUnits="userSpaceOnUse"><path d="M20 20h40v40h-40z" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="1"/><circle cx="20" cy="20" r="2" fill="rgba(59,130,246,0.3)"/><circle cx="60" cy="20" r="2" fill="rgba(220,38,38,0.3)"/><circle cx="20" cy="60" r="2" fill="rgba(220,38,38,0.3)"/><circle cx="60" cy="60" r="2" fill="rgba(59,130,246,0.3)"/><path d="M20 20L60 20M20 20L20 60M60 20L60 60M20 60L60 60" stroke="rgba(59,130,246,0.08)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23circuit)"/></svg>'),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="neural" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(59,130,246,0.4)"/><circle cx="40" cy="25" r="1.5" fill="rgba(220,38,38,0.4)"/><circle cx="25" cy="40" r="1.5" fill="rgba(59,130,246,0.4)"/><path d="M10 10L40 25M40 25L25 40M10 10L25 40" stroke="rgba(59,130,246,0.2)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23neural)"/></svg>');
  opacity: 0.6;
  animation: circuitPulse 4s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
  animation: neuralGlow 6s ease-in-out infinite alternate;
}

@keyframes circuitPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.8; }
}

@keyframes neuralGlow {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

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

.hero-graphic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  position: relative;
}

.hero-graphic i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  animation: float 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.3));
}

.hero-graphic i:nth-child(1) {
  color: rgba(59, 130, 246, 0.9);
  animation-delay: 0s;
}

.hero-graphic i:nth-child(2) {
  color: rgba(220, 38, 38, 0.9);
  animation-delay: 0.5s;
}

.hero-graphic i:nth-child(3) {
  color: rgba(59, 130, 246, 0.9);
  animation-delay: 1s;
}

.hero-graphic i:nth-child(4) {
  color: rgba(220, 38, 38, 0.9);
  animation-delay: 1.5s;
}

.hero-graphic::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { 
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

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

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Services Section */
.services {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.services::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 200 200"><defs><pattern id="service-neural" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(59,130,246,0.1)"/><circle cx="80" cy="30" r="2" fill="rgba(220,38,38,0.1)"/><circle cx="50" cy="60" r="2" fill="rgba(59,130,246,0.1)"/><circle cx="30" cy="80" r="2" fill="rgba(220,38,38,0.1)"/><path d="M20 20L80 30M80 30L50 60M50 60L30 80M20 20L50 60M80 30L30 80" stroke="rgba(59,130,246,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23service-neural)"/></svg>');
  opacity: 0.6;
  animation: serviceNeuralFlow 20s linear infinite;
}

@keyframes serviceNeuralFlow {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(-10px) translateY(-5px); }
  50% { transform: translateX(-5px) translateY(-10px); }
  75% { transform: translateX(-15px) translateY(-3px); }
  100% { transform: translateX(0) translateY(0); }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--background);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.service-card:hover .service-icon {
  animation: serviceIconHover 0.6s ease-in-out;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.service-card:hover .service-icon i {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.8));
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  animation: serviceIconPulse 3s ease-in-out infinite;
}

.service-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.service-icon::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  animation: serviceIconBorder 4s linear infinite;
}

.service-icon i {
  font-size: 2rem;
  color: white;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

/* Custom backgrounds for each service */
.service-card:nth-child(1) .service-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

.service-card:nth-child(2) .service-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 8px 32px rgba(240, 147, 251, 0.4);
}

.service-card:nth-child(3) .service-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 8px 32px rgba(79, 172, 254, 0.4);
}

.service-card:nth-child(4) .service-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 8px 32px rgba(67, 233, 123, 0.4);
}

.service-card:nth-child(5) .service-icon {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  box-shadow: 0 8px 32px rgba(250, 112, 154, 0.4);
}

.service-card:nth-child(6) .service-icon {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  box-shadow: 0 8px 32px rgba(168, 237, 234, 0.4);
}

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

@keyframes serviceIconBorder {
  0% { 
    transform: rotate(0deg);
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
  100% { 
    transform: rotate(360deg);
    opacity: 0.3;
  }
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.service-link:hover {
  gap: 1rem;
}

/* Why Choose Us */
.why-choose-us {
  padding: 100px 0;
  background: var(--background);
}

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

.feature {
  text-align: center;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--surface);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-graphic {
  width: 200px;
  height: 200px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.about-graphic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.2) 0%, transparent 50%);
  border-radius: 50%;
}

.about-graphic::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  animation: pulse-border 3s ease-in-out infinite;
}

.about-graphic i {
  font-size: 4rem;
  color: white;
  z-index: 1;
  animation: float-about 4s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.7;
  }
}

@keyframes float-about {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(5deg); }
  75% { transform: translateY(10px) rotate(-5deg); }
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background: var(--background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 6px var(--shadow);
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* Portfolio */
.portfolio {
  padding: 100px 0;
  background: var(--background);
  position: relative;
}

.portfolio::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 40 40"><defs><pattern id="portfolio-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="20" height="20" fill="rgba(59,130,246,0.02)"/><rect x="20" y="20" width="20" height="20" fill="rgba(220,38,38,0.02)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23portfolio-pattern)"/></svg>');
  opacity: 0.8;
}

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

.portfolio-item {
  background: var(--background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.3s ease;
}

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

.portfolio-image {
  height: 200px;
  background: var(--gradient);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-image::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.6s ease;
}

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

.portfolio-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.portfolio-image i {
  font-size: 3rem;
  color: white;
  z-index: 1;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-image i {
  transform: scale(1.2) rotate(10deg);
}

/* Add specific colors for different portfolio items */
.portfolio-item:nth-child(1) .portfolio-image {
  background: linear-gradient(135deg, #10b981, #059669);
}

.portfolio-item:nth-child(2) .portfolio-image {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.portfolio-item:nth-child(3) .portfolio-image {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.portfolio-content p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Marquee Section */
.marquee-section {
  padding: 60px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

#marquee-main-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

#marquee-container {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.05) 0%, 
    rgba(220, 38, 38, 0.05) 50%, 
    rgba(59, 130, 246, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

#marquee-container::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: left 0.6s ease;
}

#marquee-container:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

#marquee-container:hover::before {
  left: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  gap: 3rem;
  white-space: nowrap;
}

.marquee-content span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 25px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.marquee-content span::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 ease;
}

.marquee-content span:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary-color);
  transform: scale(1.05);
  color: var(--primary-color);
}

.marquee-content span:hover::before {
  left: 100%;
}

/* Alternate colors for variety */
.marquee-content span:nth-child(even) {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.2);
}

.marquee-content span:nth-child(even):hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--primary-color);
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Marquee runs continuously without pausing */
.marquee-content {
  animation-play-state: running;
}

/* Dark mode adjustments */
[data-theme="dark"] .marquee-content span {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .marquee-content span:nth-child(even) {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marquee-content {
    gap: 2rem;
  }
  
  .marquee-content span {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
  
  @keyframes marquee {
    0% {
      transform: translateX(50%);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}

@media (max-width: 480px) {
  .marquee-section {
    padding: 40px 0;
  }
  
  .marquee-content {
    gap: 1.5rem;
  }
  
  .marquee-content span {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Enhanced CTA Styles */
.btn-cta-main {
  font-size: 1.1rem;
  padding: 15px 35px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
  animation: ctaPulse 2s ease-in-out infinite;
  text-decoration: none;
}

.btn-cta-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(220, 38, 38, 0.4);
  animation: none;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3); }
  50% { box-shadow: 0 12px 35px rgba(220, 38, 38, 0.5); }
}

.trust-indicators {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.trust-item i {
  color: #10b981;
  font-size: 1rem;
}

/* CTA Banner */
.cta-banner {
  padding: 60px 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(220, 38, 38, 0.1) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-cta-large {
  font-size: 1.2rem;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.btn-cta-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.btn-cta-large i {
  font-size: 1rem;
}

/* Blog Styles */
.blog-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.blog-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-hero-content p {
  font-size: 1.3rem;
  opacity: 0.9;
}

.blog-section {
  padding: 100px 0;
  background: var(--surface);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.blog-card {
  background: var(--background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

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

.blog-card.featured {
  grid-column: span 2;
}

.blog-image {
  height: 200px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-image i {
  font-size: 3rem;
  color: white;
  z-index: 1;
}

.blog-content {
  padding: 2rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.blog-category {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-weight: 600;
}

.blog-date {
  color: var(--text-secondary);
}

.blog-content h2 {
  margin-bottom: 1rem;
}

.blog-content h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-content h2 a:hover {
  color: var(--primary-color);
}

.blog-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 1rem;
}

/* Newsletter Section */
.newsletter-section {
  background: var(--background);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow);
  margin-top: 3rem;
}

.newsletter-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.newsletter-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Article Styles */
.article-hero {
  padding: 120px 0 60px;
  background: var(--surface);
}

.breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.article-header {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.article-category {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.article-date,
.article-read-time {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.article-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.article-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-content {
  padding: 80px 0;
}

.article-content .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  max-width: 1200px;
}

.article-body {
  background: var(--background);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
}

.article-image {
  margin-bottom: 3rem;
}

.article-graphic {
  height: 200px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.article-graphic i {
  font-size: 3rem;
  color: white;
}

.article-body h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 2.5rem 0 1.5rem 0;
  color: var(--text-primary);
}

.article-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--text-primary);
}

.article-body h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem 0;
  color: var(--text-primary);
}

.article-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.article-body ul,
.article-body ol {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Case Study Specific Styles */
.case-study-overview {
  background: var(--surface);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.overview-item h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.overview-item p {
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.challenge-list {
  margin: 2rem 0;
}

.challenge-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 8px;
  border-left: 4px solid #ef4444;
}

.challenge-item i {
  color: #ef4444;
  font-size: 1.5rem;
  margin-top: 0.3rem;
}

.challenge-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.challenge-item p {
  color: var(--text-secondary);
  margin: 0;
}

.approach-timeline {
  margin: 3rem 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 50px;
  width: 2px;
  height: 60px;
  background: var(--border);
}

.timeline-marker {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

.timeline-content h4 {
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.timeline-content p {
  color: var(--text-secondary);
  margin: 0;
}

.solution-details {
  background: var(--surface);
  padding: 2rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.solution-description ul {
  margin-bottom: 1.5rem;
}

.solution-results {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.solution-results h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.challenge-solution {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-color);
}

.challenge-solution h4 {
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.challenge-solution p {
  margin: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.result-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.result-card.primary {
  background: var(--primary-color);
  color: white;
}

.result-card.primary .result-icon i {
  color: white;
}

.result-icon {
  margin-bottom: 1rem;
}

.result-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.result-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.result-content p {
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

.financial-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.financial-item {
  background: var(--surface);
  padding: 2rem;
  border-radius: 8px;
}

.financial-item h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.client-quote {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin: 3rem 0;
  font-style: italic;
}

.client-quote p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.client-quote cite {
  font-style: normal;
  color: var(--text-primary);
}

.client-quote cite strong {
  font-weight: 600;
}

/* Article CTA */
.article-cta {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1), 
    rgba(220, 38, 38, 0.1));
  padding: 2.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 3rem 0;
}

.article-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-cta p {
  margin-bottom: 2rem;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  background: var(--background);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
}

.sidebar-section h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.related-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-article {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.related-article:hover {
  background: var(--primary-color);
  color: white;
}

.related-article i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.related-article:hover i {
  color: white;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn.linkedin {
  background: #0077b5;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.facebook {
  background: #4267b2;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Automation Tools Specific Styles */
.tool-highlight {
  background: var(--surface);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid var(--primary-color);
}

.tool-highlight h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tool-highlight h3 i {
  color: var(--primary-color);
}

.tool-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-item h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-secondary);
}

.checklist-item i {
  color: #10b981;
  font-size: 1rem;
}

/* Case Study Sidebar Specific */
.project-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--surface);
  border-radius: 8px;
}

.stat-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-item span {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.stat-item small {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.tech-tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Active Navigation Link */
.nav-link.active {
  color: var(--primary-color);
}

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

/* Responsive Blog Styles */
@media (max-width: 768px) {
  .blog-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .blog-hero-content p {
    font-size: 1.1rem;
  }
  
  .blog-card.featured {
    grid-column: span 1;
  }
  
  .article-header h1 {
    font-size: 2.2rem;
  }
  
  .article-content .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .article-body {
    padding: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .tool-features {
    grid-template-columns: 1fr;
  }
  
  .financial-breakdown {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-indicators {
    justify-content: center;
  }
  
  .cta-content h3 {
    font-size: 1.8rem;
  }
  
  .btn-cta-large {
    font-size: 1.1rem;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 100px 0 60px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline-item::after {
    display: none;
  }
  
  .trust-indicators {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .cta-content h3 {
    font-size: 1.5rem;
  }
  
  .btn-cta-large {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

/* Contact */
.contact {
  padding: 100px 0;
  background: var(--background);
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.2rem;
}

.contact-details h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.whatsapp-link {
  color: #25d366;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.whatsapp-link:hover {
  color: #128c7e;
  text-decoration: underline;
}

.contact-map {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  transition: all 0.3s ease;
}

.contact-map:hover iframe {
  transform: scale(1.02);
}

/* Footer */
.footer {
  background: var(--surface);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--background);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px var(--shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .hero-buttons {
    justify-content: center;
  }

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

  .about-stats {
    justify-content: center;
  }

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

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

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

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 15px 60px;
  }

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

  .section-header h2 {
    font-size: 2rem;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }
}

/* Smooth scrolling for mobile Safari */
@supports (-webkit-overflow-scrolling: touch) {
  html {
    -webkit-overflow-scrolling: touch;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hamburger,
  .theme-toggle {
    display: none;
  }

  .hero {
    background: none;
    color: black;
  }

  * {
    background: white !important;
    color: black !important;
  }
}