:root {
  --primary: #0a1428;
  --primary-dark: #050a14;
  --accent: #c5a059;
  --accent-light: #e0c28d;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Scroll Animation Base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

li {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 20, 40, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>') no-repeat center;
  mask-size: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

nav a {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

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

nav a:hover::after {
  width: 100%;
}

nav ul {
  display: flex;
  gap: 2rem;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img, 
.hero-bg video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
  z-index: -1;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--primary-dark) 40%, transparent 100%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 20, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.5s;
}

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

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  max-width: 600px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 1.25rem 2.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
  transition: var(--transition);
  border: 1px solid transparent;
}

.cta-button:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(197, 160, 89, 0.2);
}

/* Practice Areas */
.practice-areas {
  padding: 100px 0;
  background: var(--primary);
  position: relative;
}

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

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title .line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0 auto;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.area-card {
  background: var(--glass);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.area-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.area-card:hover::before {
  opacity: 1;
}

.area-card i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
  transition: var(--transition);
}

.area-card:hover i {
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
}

.area-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Process Section */
.process {
  padding: 120px 0;
  background: var(--primary-dark);
}

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

.step {
  padding: 3rem 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  position: relative;
  transition: var(--transition);
}

.step:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.step h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* FAQ Section */
.faq {
  padding: 120px 0;
  background: var(--primary);
}

.faq-container {
  max-width: 800px;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-question i {
  color: var(--accent);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
  padding: 2rem;
  color: var(--text-dim);
}

.faq-item.active {
  border-color: var(--accent);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

/* Info Section */
.info-section {
  padding: 100px 0;
  background: var(--primary-dark);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.info-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
}

.info-image img {
  width: 100%;
  height: auto;
  display: block;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.info-content {
  max-width: 600px;
}

.info-content h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--accent);
  font-weight: 800;
}

/* Footer */
footer {
  padding: 80px 0 40px;
  background: var(--primary-dark);
  text-align: center;
  border-top: 1px solid var(--glass-border);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: var(--accent);
}

footer p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(10, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 4rem 3rem;
  max-width: 650px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.modal-content::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  z-index: -1;
  opacity: 0.3;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  transform: rotate(90deg);
  color: var(--text);
}

.modal-body h2 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.modal-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.modal-body .modal-icon {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.modal-footer {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.contact-modal-btn {
  background: #25D366;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.contact-modal-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
  color: white;
}

.process-cta {
  text-align: center;
  margin-top: 4rem;
  padding-bottom: 2rem;
}

.contact-modal-btn i {
  font-size: 1.5rem;
}

/* WhatsApp Hub */
.whatsapp-hub {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.whatsapp-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.whatsapp-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  background: var(--primary);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.menu-item i {
  color: var(--accent);
}

.menu-item:hover {
  border-color: var(--accent);
  transform: translateX(-10px);
  background: var(--primary-dark);
}

.whatsapp-main-btn {
  background: #25D366;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.whatsapp-main-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-main-btn img {
  width: 30px;
  height: 30px;
  filter: brightness(3.0);
}

/* Contact Section */
.contact-section {
  padding: 120px 0;
  background: var(--primary-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-info-side h2 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  font-weight: 800;
}

.contact-info-side p {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.contact-method:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.contact-method i {
  font-size: 2rem;
  color: var(--accent);
}

.contact-method .details h4 {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-method .details p {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  color: white;
}

/* Form Card */
.form-card {
  background: white;
  padding: 4rem 3rem;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  color: var(--primary-dark);
}

.form-card h3 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.submit-btn {
  width: 100%;
  background: #25D366;
  color: white;
  border: none;
  padding: 1.25rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  margin-top: 1rem;
}

.submit-btn:hover {
  background: #20bd5a;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .contact-info-side h2 { font-size: 3rem; }
}

@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .info-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .info-content { max-width: 100%; }
}

@media (max-width: 768px) {
  :root {
    --transition: all 0.4s ease;
  }
  
  header { padding: 0.75rem 0; }
  .hamburger { display: flex; }
  
  header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%; /* Full width on mobile for better focus */
    height: 100vh;
    background: var(--primary-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  header nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  nav ul li a {
    font-size: 1.75rem;
    font-weight: 700;
  }

  .logo-text { font-size: 1.25rem; }

  .hero { text-align: center; height: auto; padding: 140px 0 80px; }
  .hero h1 { font-size: 2.5rem; margin-bottom: 2rem; }
  .hero p { font-size: 1.1rem; margin-bottom: 2.5rem; }
  
  .process-steps {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 0 1.5rem 3.5rem; /* Better padding for mobile */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: auto;
    scrollbar-width: auto; /* Standard scrollbar for Firefox */
  }

  .step {
    flex: 0 0 280px; /* Force width to enable overflow */
    scroll-snap-align: center;
    padding: 2.5rem 1.5rem;
  }

  .process-steps::-webkit-scrollbar {
    height: 6px; /* Slightly thicker */
    display: block !important;
  }

  .process-steps::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }

  .process-steps::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
  }

  .process-cta {
    margin-top: 2rem;
    padding-bottom: 5rem;
  }

  .contact-info-side h2 { font-size: 2.75rem; text-align: center; }
  .contact-info-side p { text-align: center; margin-bottom: 2.5rem; }
  
  .form-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }
  
  .form-card h3 { font-size: 1.75rem; }
  
  .whatsapp-main-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .whatsapp-hub {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .menu-item {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .contact-method {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  .contact-method .details p { font-size: 1.1rem; }
  .cta-button { width: 100%; justify-content: center; }
}
