/* 
 * Dubas Legal - Premium Legal Consultant Website
 * Designed with elegance and professionalism
 */

/* Base styles and typography refinements */
:root {
  --primary: #1e3a8a;
  --primary-light: #2563eb;
  --primary-dark: #1e3a8a;
  --secondary: #f8fafc;
  --accent: #f59e0b;
  --text-dark: #1e293b;
  --text-light: #f8fafc;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-slow: 0.5s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-fast: 0.15s ease-in-out;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--secondary);
}

h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Enhanced header with glass morphism effect */
header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
}

header.scrolled {
  background-color: rgba(30, 58, 138, 0.95) !important;
  box-shadow: var(--shadow-md);
}

.logo {
  position: relative;
  display: inline-block;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-medium);
}

.logo:hover::after {
  width: 100%;
}

/* Hero section enhancements */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 58, 138, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

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

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-button {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

.hero-button::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: all 0.6s;
}

.hero-button:hover::before {
  left: 100%;
}

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

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

/* Services section enhancements */
.services-section {
  position: relative;
  padding: 100px 0;
  background-color: var(--secondary);
}

.services-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--secondary));
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 60px;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
}

.service-card {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
  z-index: 2;
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-title {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.service-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-light);
}

/* Testimonials section enhancements */
.testimonials-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--text-light);
}

.testimonial-image {
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-medium);
  transform: perspective(1000px) rotateY(0deg);
}

.testimonial-image:hover {
  transform: perspective(1000px) rotateY(5deg);
}

/* FAQ section enhancements */
.faq-section {
  padding: 100px 0;
  background-color: var(--secondary);
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  position: relative;
  padding: 20px;
  background-color: white;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 20px;
  background-color: white;
  animation: fadeDown var(--transition-medium);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact section enhancements */
.contact-section {
  padding: 100px 0;
  background-color: var(--secondary);
}

.contact-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-medium);
}

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

.contact-title {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
}

.contact-link {
  position: relative;
  display: inline-block;
  transition: all var(--transition-fast);
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width var(--transition-medium);
}

.contact-link:hover::after {
  width: 100%;
}

/* CTA section enhancements */
.cta-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: cover;
}

.cta-button {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.cta-button::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: all 0.6s;
}

.cta-button:hover::before {
  left: 100%;
}

/* Footer enhancements */
.footer {
  padding: 40px 0;
  background-color: var(--primary-dark);
  color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu styles */
.mobile-menu-toggle {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
  opacity: 0.8;
}

.mobile-menu {
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.mobile-menu a {
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.mobile-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }
  
  .contact-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .service-card {
    margin-bottom: 30px;
  }
  
  .hero-button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .contact-title {
    font-size: 2rem;
  }
  
  .faq-question {
    padding: 15px;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .service-title {
    font-size: 1.5rem;
  }
  
  .contact-card {
    padding: 15px;
  }
  
  .contact-title {
    font-size: 1.8rem;
  }
  
  ul.text-left li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  ul.text-left li i {
    margin-bottom: 5px;
  }
  
  .py-20 {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Utility classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hover-lift {
  transition: transform var(--transition-medium);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.shadow-hover {
  transition: box-shadow var(--transition-medium);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg);
}
