:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #f59e0b;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.font-display {
  font-family: 'Playfair Display', serif;
}

.section-light { background-color: var(--light-bg); color: var(--text-dark); }
.section-dark { background-color: var(--dark-bg); color: #fff; }
.section-primary { background: var(--gradient-primary); color: #fff; }
.section-secondary { background: var(--gradient-secondary); color: #fff; }
.section-accent { background: var(--gradient-accent); color: #fff; }

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.85;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; animation: fadeInUp 1s ease-out; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: translateY(0);} }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
@keyframes pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.05);} }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px);} to { opacity: 1; transform: translateX(0);} }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px);} to { opacity: 1; transform: translateX(0);} }

.floating { animation: float 3s ease-in-out infinite; }
.pulse-animation { animation: pulse 2s ease-in-out infinite; }
.slide-in-left { animation: slideInLeft 0.8s ease-out; }
.slide-in-right { animation: slideInRight 0.8s ease-out; }

.btn-custom {
  background: var(--accent-color);
  border: none;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.btn-custom:hover { background: #d97706; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); color: #fff; }

.btn-outline-custom {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.btn-outline-custom:hover { background: var(--accent-color); color: #fff; transform: translateY(-2px); }

.card-custom { border: none; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: all 0.3s ease; background: #fff; overflow: hidden; }
.card-custom:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.image-overlay { position: relative; overflow: hidden; border-radius: 15px; }
.image-overlay img { transition: transform 0.3s ease; width: 100%; height: 100%; object-fit: cover; }
.image-overlay:hover img { transform: scale(1.1); }
.image-overlay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3)); opacity: 0; transition: opacity 0.3s ease; }
.image-overlay:hover::after { opacity: 1; }

.stats-counter { font-size: 3rem; font-weight: 700; color: var(--accent-color); text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }
.section-divider { height: 2px; background: linear-gradient(90deg, transparent, var(--accent-color), transparent); margin: 60px 0; }

.parallax-section { background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; }
.glass-effect { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }

.section-padding { padding: 96px 0; }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.icon-large { font-size: 3rem; margin-bottom: 1rem; }
.icon-xl { font-size: 4rem; }
.icon-md { font-size: 2rem; }
.text-accent { color: var(--accent-color); }
.navbar-custom { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.1); }
.footer-custom { background: var(--dark-bg); color: #fff; padding: 40px 0; }

/* Focus styles */
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }

/* Type rhythm */
h1, .display-1, .display-2, .display-3 { margin-bottom: 0.6em; }
h2, .display-5 { margin-bottom: 0.7em; }
h3, h4, h5, h6 { margin-bottom: 0.6em; }
p { margin-bottom: 1rem; }

/* Clamped typography */
h1, .display-1, .display-2, .display-3 { font-weight: 800; }
.display-3 { font-size: clamp(2.25rem, 2.5vw + 1.5rem, 4rem); }
.display-5 { font-size: clamp(1.75rem, 1.2vw + 1.2rem, 2.5rem); }

/* Diagonal section helpers */
.diagonal-top { position: relative; }
.diagonal-top::before { content: ""; position: absolute; top: -40px; left: 0; right: 0; height: 40px; background: inherit; clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%); }
.diagonal-bottom { position: relative; }
.diagonal-bottom::after { content: ""; position: absolute; bottom: -40px; left: 0; right: 0; height: 40px; background: inherit; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0); }

/* Subtle texture overlay for colored sections */
.texture-overlay { position: relative; }
.texture-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.6;
}

/* Improve contrast on gradients */
.section-primary, .section-secondary, .section-accent { text-shadow: 0 1px 2px rgba(0,0,0,0.25); }

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-section { min-height: 80vh; background-attachment: scroll; }
  .section-padding { padding: 72px 0; }
  .diagonal-top::before, .diagonal-bottom::after { height: 24px; top: -24px; bottom: -24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Icon consistency */
.fa, .fas { font-weight: 900; }
