/* Custom CSS for G Gunjan & Associates Website */

/* Root Variables for Consistent Color Scheme */
:root {
  --navy: #1e40af;
  --navy-light: #3b82f6;
  --navy-dark: #1e3a8a;
  --yellow: #facc15;
  --yellow-light: #fde047;
  --yellow-dark: #eab308;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --slate-dark: #475569;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --white: #ffffff;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--white);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--slate);
}

/* Custom Color Classes */
.text-navy {
  color: var(--navy) !important;
}

.bg-navy {
  background-color: var(--navy) !important;
}

.text-slate {
  color: var(--slate) !important;
}

.text-yellow-400 {
  color: var(--yellow) !important;
}

.bg-yellow-400 {
  background-color: var(--yellow) !important;
}

.border-navy {
  border-color: var(--navy) !important;
}

/* Navigation Enhancements */
.navbar-glass {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Button Enhancements */
.btn-primary {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
}

.btn-secondary {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.2);
}

/* Card Enhancements */
.card-hover {
  transition: all 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
}

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

/* Form Enhancements */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* Flash Messages */
.flash-message {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.3s ease;
}

.flash-success {
  background-color: #10b981;
  color: var(--white);
}

.flash-error {
  background-color: #ef4444;
  color: var(--white);
}

.flash-info {
  background-color: #3b82f6;
  color: var(--white);
}

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

/* Hero Section Enhancements */
.hero-gradient {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, #dbeafe 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-text {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
}

/* Section Spacing */
.section-padding {
  padding: 5rem 0;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Service Cards */
.service-card {
  background: var(--gray-50);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: var(--navy);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--yellow);
  transform: scale(1.1);
}

/* Team Member Cards */
.team-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Blog Cards */
.blog-card {
  background: var(--gray-50);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.blog-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* Footer Enhancements */
.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2.5rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .card-hover,
  .service-card,
  .team-card,
  .blog-card {
    margin-bottom: 2rem;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }
  
  body {
    color: black !important;
    background: white !important;
  }
  
  .text-navy,
  .text-slate {
    color: black !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --navy: #000000;
    --slate: #333333;
    --gray-50: #ffffff;
    --gray-100: #f0f0f0;
  }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles would go here */
}
