/* CUSTOM KEYFRAME ANIMATIONS */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(30, 58, 138, 0);
  }
}

@keyframes underline-slide {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* GLOBAL STYLES */

body {
  font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* FADE-IN ANIMATION ON HERO */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* HOVER ZOOM ON IMAGES */
.hover-zoom {
  transition: transform 0.3s ease-out;
}

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

/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
}

/* BUTTON HOVER EFFECTS */
a, button {
  transition: all 0.3s ease;
}

/* CARD HOVER LIFT */
.transform {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* UTILITY: Hidden state for mobile menu */
.hidden {
  display: none !important;
}

/* GRADIENT TEXT OPTIONAL */
.gradient-text {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* SMOOTH LINK UNDERLINES */
a {
  position: relative;
}

/* NAV LINK UNDERLINES */
nav a {
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

nav a:hover {
  border-bottom-color: #1e3a8a;
}

/* FORM STYLING */
input, textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #1e3a8a !important;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1) !important;
}

/* SUBTLE SHADOW ON CARDS */
.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

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

/* EXTRA: Grain-like texture overlay (optional) */
.grain-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise" /></filter><rect width="100" height="100" filter="url(%23noiseFilter)" opacity="0.02"/></svg>');
  pointer-events: none;
  z-index: 1;
}

/* MOBILE RESPONSIVE: Adjust font sizes */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  .text-5xl {
    font-size: 2rem !important;
  }
  
  .text-4xl {
    font-size: 1.75rem !important;
  }
}

/* BUTTON PRESS EFFECT */
button:active {
  transform: scale(0.98);
}

/* SECTION SPACING */
section {
  position: relative;
  overflow: hidden;
}
