/* main.css stylesheet - Professional Portfolio Theme */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-accent: #f0f9ff;
  --accent: #1a365d;
  --accent-gradient: linear-gradient(135deg, #1a365d, #e53e3e);
  --accent-secondary: #e53e3e;
  --accent-light: #2d5a87;
  --accent-dark: #0f2a44;
  --accent-hover: #2d5a87;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-accent: #dbeafe;
  --shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
  --card-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  --shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --hover-bg: #f8fafc;
  --active-bg: #eff6ff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans Pro', 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: var(--transition);
}

a:hover {
  color: var(--text-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Inter', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

.accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  border-color: var(--accent-hover);
}

.card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Professional Portfolio Styles */
.portfolio-section {
  background: var(--bg-primary);
  padding: 6rem 0;
}

.portfolio-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.portfolio-card:hover::before {
  transform: scaleX(1);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-accent);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-accent);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.testimonial-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
  border-color: var(--border-accent);
}

.client-logo {
  height: 60px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition);
  filter: grayscale(100%);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Professional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 968px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .btn {
    padding: 10px 22px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Extra global animation utilities */
.hover-zoom { overflow: hidden; display: inline-block; }
.hover-zoom img { transition: transform 450ms cubic-bezier(.2,.9,.2,1); will-change: transform; }
.hover-zoom:hover img { transform: scale(1.06) translateZ(0); }

/* Ken Burns for hero or feature images */
.img-kenburns { transform-origin: center center; animation: kenburns 12s ease-in-out infinite; }
@keyframes kenburns { 0% { transform: scale(1) translateY(0); } 50% { transform: scale(1.04) translateY(-6px); } 100% { transform: scale(1) translateY(0); } }

/* Lightbox overlay for clickable images */
.lightbox-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.75); z-index: 99999; }
.lightbox-overlay.show { display: flex; }
.lightbox-overlay img { max-width: 92%; max-height: 92%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: white; font-size: 1.6rem; cursor: pointer; }

/* Reveal-stagger utility: stagger children when container becomes visible */
.reveal-stagger > * { opacity: 0; transform: translateY(10px); transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.9,.2,1); }
.reveal-stagger.animated > * { opacity: 1; transform: none; }
.reveal-stagger.animated > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .img-kenburns, .hover-zoom img, .reveal-stagger > * { animation: none !important; transition: none !important; }
}