/* Boostbyte & Associates Law Firm - Professional Styles */

/* CSS Variables - Professional Law Firm Theme */
:root {
  /* Primary Colors - Conservative Professional Palette */
  --primary-navy: #1a2332;
  --primary-blue: #2c3e50;
  --accent-gold: #b8860b;
  --accent-gold-light: #daa520;
  --accent-burgundy: #800020;
  
  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #5d6d7e;
  --text-light: #85929e;
  --text-white: #ffffff;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a2332;
  --bg-overlay: rgba(26, 35, 50, 0.9);
  
  /* Subtle Effects */
  --shadow-subtle: 0 2px 10px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 4px 20px rgba(44, 62, 80, 0.15);
  --shadow-strong: 0 8px 30px rgba(44, 62, 80, 0.2);
  --glow-gold: 0 0 20px rgba(184, 134, 11, 0.3);
  
  /* Professional Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  --gradient-overlay: linear-gradient(rgba(26, 35, 50, 0.8), rgba(44, 62, 80, 0.9));
  
  /* Refined Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elegant: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-subtle: all 0.3s ease-in-out;
  
  /* Professional Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --border-radius: 8px;
  --border-radius-large: 12px;
}

/* Typography - Professional Legal Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.8rem;
  font-weight: 600;
}

h3 {
  font-size: 2.2rem;
}

h4 {
  font-size: 1.8rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition-subtle);
}

a:hover {
  color: var(--accent-gold-light);
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: var(--text-white);
}

.loader-scales {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scale-icon {
  font-size: 3rem;
  animation: scaleBalance 2s ease-in-out infinite;
}

@keyframes scaleBalance {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.loader-text {
  font-family: 'Crimson Text', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.5rem 0;
  box-shadow: var(--shadow-subtle);
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Crimson Text', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-navy);
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.nav-link {
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  border-radius: var(--border-radius);
  transition: var(--transition-subtle);
  font-weight: 500;
  color: var(--text-primary);
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-gold);
  color: var(--text-white);
  transform: translateY(-1px);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition-subtle);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  box-shadow: var(--shadow-medium);
  padding: 2rem;
  flex-direction: column;
  gap: 1rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-primary);
  color: var(--text-white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-law-office.jpg') center/cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

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

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-tagline {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-white);
  border-bottom: 2px solid var(--text-white);
  transform: rotate(45deg);
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-elegant);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

.btn::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:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--text-white);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong), var(--glow-gold);
  color: var(--text-white);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-secondary:hover {
  background: var(--text-white);
  color: var(--primary-navy);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background: var(--bg-light);
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-large);
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-elegant);
  border-top: 4px solid var(--accent-gold);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  font-family: 'Crimson Text', serif;
}

.stat-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-elegant);
  border-left: 4px solid var(--accent-gold);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.05), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  color: var(--accent-gold);
}

.service-name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* Why Choose Us Section */
.why-choose-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-large);
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-elegant);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--accent-gold);
}

.why-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

.why-description {
  color: var(--text-secondary);
}

/* Recent Wins Section */
.recent-wins-section {
  padding: 6rem 0;
}

.wins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.win-card {
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  text-align: center;
  transition: var(--transition-elegant);
  position: relative;
  overflow: hidden;
}

.win-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.1) 0%, transparent 70%);
  transition: var(--transition-elegant);
}

.win-card:hover::before {
  top: -30%;
  right: -30%;
}

.win-case {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.win-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 1rem;
  font-family: 'Crimson Text', serif;
}

.win-description {
  opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
}

.testimonials-grid {
  overflow: hidden;
  position: relative;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--border-radius-large);
  text-align: center;
  box-shadow: var(--shadow-medium);
  margin: 0 1rem;
  display: none;
  position: relative;
}

.testimonial-card.active {
  display: block;
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.testimonial-text {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--accent-gold);
  font-family: 'Crimson Text', serif;
}

.testimonial-author {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.testimonial-rating {
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

.testimonial-case {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  background: var(--accent-gold);
  color: var(--text-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-subtle);
}

.carousel-btn:hover {
  background: var(--accent-gold-light);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.3);
  cursor: pointer;
  transition: var(--transition-subtle);
}

.dot.active {
  background: var(--accent-gold);
  transform: scale(1.2);
}

/* Contact CTA Section */
.contact-cta-section {
  padding: 6rem 0;
  background: var(--gradient-primary);
  color: var(--text-white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Header */
.page-header {
  padding: 8rem 0 4rem;
  background: var(--gradient-primary);
  color: var(--text-white);
  text-align: center;
  margin-top: 80px;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.page-subtitle {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.page-description {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--primary-navy);
  color: var(--text-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-gold-light);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: inherit;
  transition: var(--transition-subtle);
}

.footer-section a:hover {
  color: var(--accent-gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-subtle);
}

.footer-social a:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .navbar-content .nav-link {
    display: none;
  }
  
  .mobile-menu.active {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .section { padding: 4rem 0; }
  .stats-section { padding: 3rem 0; }
  .services-section { padding: 4rem 0; }
  
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .service-card,
  .why-card,
  .win-card {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .page-loader,
  .contact-cta-section,
  .carousel-controls,
  .carousel-dots {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}