/* Modern Homepage Styles - Enhanced UI/UX */

/* Import AOS Animation Library */
@import url('https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.css');

/* CSS Variables for consistent theming */
:root {
  --primary-blue: #1f3c88;
  --primary-blue-600: #22408f;
  --primary-blue-700: #1b3372;
  --primary-blue-800: #16295a;
  --accent-gold: #b08d57;
  --accent-gold-light: #c4a674;
  --text-dark: #0b1730;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e5e7eb;
  --border-lighter: #f1f5f9;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --shadow-hero: 0 20px 60px rgba(31,60,136,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Utilities */
.min-vh-70 { min-height: 70vh; }
.section-padding-modern { padding: 100px 0; }

@media (max-width: 768px) {
  .section-padding-modern { padding: 60px 0; }
}

.text-accent { color: var(--primary-blue) !important; }
.img-fluid { max-width: 100%; height: auto; }

/* Modern Button Styles */
.btn-primary-modern {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-blue);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.btn-primary-modern:hover::before {
  left: 100%;
}

.btn-primary-modern:hover {
  background: var(--primary-blue-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
  text-decoration: none;
}

.btn-outline-modern {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #ffffff
  padding: 16px 32px;
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition-smooth);
}

.btn-outline-modern:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* Modern Hero Section */
.hero-area-modern {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay-modern {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,35,84,0.85) 0%, rgba(31,60,136,0.75) 50%, rgba(11,23,48,0.85) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 40px 70px, white, transparent),
    radial-gradient(1px 1px at 90px 40px, white, transparent);
  background-repeat: repeat;
  background-size: 100px 80px;
  animation: float 20s infinite linear;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100px, -80px, 0); }
}

.hero-content-modern {
  position: relative;
  z-index: 2;
  color: white;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 24px;
}

.badge-text {
  color: #e5edff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px;
  font-family: 'Poppins', sans-serif;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: white;
  font-family: 'Poppins', sans-serif;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

.hero-cta-modern {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-hero);
  transform: translateY(20px);
  animation: heroCardFloat 6s ease-in-out infinite alternate;
}

@keyframes heroCardFloat {
  to { transform: translateY(-10px); }
}

.hero-card .card-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: white;
}

.hero-card h4 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: rgba(255,255,255,0.5);
  margin: 8px auto;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.5; }
}

/* Modern About Section */
.about-wrap-modern {
  background: var(--bg-white);
  position: relative;
}

.about-wrap-modern::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, var(--bg-light) 100%);
  opacity: 0.5;
}

.about-content-modern {
  position: relative;
  z-index: 2;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.label-text {
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.label-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), transparent);
}

.section-title-modern {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-family: 'Poppins', sans-serif;
}

.about-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.about-features {
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: white;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.feature-content h4 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.about-cta-modern {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-phone:hover {
  color: var(--primary-blue-600);
  text-decoration: none;
}

/* About Visual Section */
.about-visual-modern {
  position: relative;
}

.image-grid {
  position: relative;
}

.main-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.main-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.image-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary-blue);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.secondary-image {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid white;
}

.secondary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  top: -20px;
  right: 40px;
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 140px;
}

.card-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-blue);
  font-family: 'Poppins', sans-serif;
}

.card-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Modern CTA Section */
.cta-wrap-modern {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-700) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-wrap-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: float 30s infinite linear;
}

.cta-content-modern {
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  border: 2px solid rgba(255,255,255,0.2);
}

.cta-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}

.cta-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-btn {
  background: white;
  color: var(--primary-blue);
}

.cta-btn:hover {
  background: #f1f5f9;
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.cta-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-contact span {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.cta-phone:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

/* Modern Practice Areas Section */
.practice-wrap-modern {
  background: var(--bg-light);
  position: relative;
}

.section-header-modern {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 16px;
}

.practice-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .practice-grid-modern {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.practice-item-modern {
  position: relative;
}

.practice-link-modern {
  display: block;
  text-decoration: none;
  color: inherit;
}

.practice-card-modern {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.practice-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.practice-card-modern:hover::before {
  transform: scaleX(1);
}

.practice-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(31,60,136,0.1);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.icon-container {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-600));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.card-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.card-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--primary-blue);
  font-size: 16px;
  transition: var(--transition-smooth);
}

.practice-card-modern:hover .card-arrow {
  transform: translateX(4px);
}

.practice-cta-modern {
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.practice-cta-modern h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.practice-cta-modern p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-stats {
    gap: 24px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .about-cta-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .main-image img {
    height: 450px;
  }
  
  .secondary-image {
    width: 140px;
    height: 140px;
    bottom: -20px;
    right: -20px;
  }
}

@media (max-width: 768px) {
  .hero-content-modern {
    padding: 40px 0;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 20px;
  }
  
  .hero-cta-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .btn-primary-modern,
  .btn-outline-modern {
    width: 100%;
    justify-content: center;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .about-features {
    margin-bottom: 32px;
  }
  
  .secondary-image {
    position: relative;
    width: 100%;
    height: 200px;
    right: auto;
    bottom: auto;
    margin-top: 20px;
  }
  
  .floating-card {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 20px;
  }
  
  .cta-btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .section-padding-modern {
    padding: 40px 0;
  }
  
  .hero-badge {
    padding: 6px 16px;
  }
  
  .badge-text {
    font-size: 12px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .section-title-modern {
    margin-bottom: 16px;
  }
  
  .about-description {
    font-size: 16px;
    margin-bottom: 32px;
  }
  
  .feature-item {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .practice-card-modern {
    padding: 24px;
  }
}

/* Animation utilities */
[data-aos] {
  transition-duration: 0.8s;
}

/* Print styles */
@media print {
  .hero-particles,
  .hero-scroll-indicator,
  .cta-wrap-modern::before {
    display: none;
  }
}