/* =============================================
   LAWYER PORTFOLIO — STYLE.CSS
   Color Palette: Maroon (#5D0E11) + Gold (#C9A96E)
   ============================================= */

/* =============================================
   PRELOADER
   ============================================= */
.preloader {
  position: fixed;
  inset: 0;
  background: #5d0e11;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  animation: preloaderFadeIn 0.8s ease;
}

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

/* Scales animation */
.preloader-scales {
  margin-bottom: 24px;
}

.preloader-scales svg {
  filter: drop-shadow(0 4px 12px rgba(201, 169, 110, 0.3));
}

.scale-beam {
  transform-origin: 60px 35px;
  animation: scaleSwing 1.8s ease-in-out infinite;
}

.scale-pan-left {
  animation: panLeft 1.8s ease-in-out infinite;
}

.scale-pan-right {
  animation: panRight 1.8s ease-in-out infinite;
}

@keyframes scaleSwing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}

@keyframes panLeft {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(6px); }
  75% { transform: translateY(-6px); }
}

@keyframes panRight {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-6px); }
  75% { transform: translateY(6px); }
}

/* Logo */
.preloader-logo {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.preloader-logo span {
  color: #C9A96E;
}

/* Tagline */
.preloader-tagline {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(201, 169, 110, 0.7);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 28px;
}

/* Loading bar */
.preloader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C9A96E, #D4B97E);
  border-radius: 3px;
  animation: barLoad 2s ease-in-out forwards;
}

@keyframes barLoad {
  0% { width: 0%; }
  30% { width: 40%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* === RESET & VARIABLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --maroon: #5d0e11;
  --maroon-light: #7a1216;
  --gold: #c9a96e;
  --gold-light: #d4b97e;
  --white: #ffffff;
  --off-white: #f8f6f3;
  --gray: #8a8a8a;
  --dark-gray: #333;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark-gray);
  background: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  color: var(--maroon);
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--gray);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.7;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-radius: 4px;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}

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

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

/* =============================================
   NAVBAR
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(93, 14, 17, 0.97);
  padding: 12px 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* =============================================
   HERO SECTION (Split Layout with Profile Photo)
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(135deg, rgba(93, 14, 17, 0.92), rgba(93, 14, 17, 0.8)),
    url("assets/hero-bg.png") center/cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--white));
  z-index: 2;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .stat h3 {
  font-size: 36px;
  color: var(--gold);
  font-family: "Playfair Display", serif;
}

.hero-stats .stat p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Profile Photo in Hero */
.hero-profile {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero-profile-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow:
    0 0 0 8px rgba(201, 169, 110, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.hero-profile-img:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 0 10px rgba(201, 169, 110, 0.2),
    0 25px 70px rgba(0, 0, 0, 0.5);
}

/* Decorative ring behind profile photo */
.hero-profile-wrapper::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 169, 110, 0.25);
  animation: spin 30s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Decorative accent badge */
.hero-profile-badge {
  position: absolute;
  bottom: 20px;
  right: 10px;
  width: 72px;
  height: 72px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
  border: 3px solid var(--white);
  z-index: 2;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: visible;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 120px;
  position: relative;
  overflow: hidden;
}

.about-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201, 169, 110, 0.3);
  border-radius: 8px;
  pointer-events: none;
}

.about-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--gold);
  border-radius: 8px;
  z-index: -1;
}

.about-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 15px;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--maroon);
}

.value-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(201, 169, 110, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* =============================================
   PRACTICE AREAS
   ============================================= */
.practice {
  background: var(--off-white);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.practice-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(93, 14, 17, 0.1);
}

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

.practice-card .card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.practice-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.practice-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

/* =============================================
   EXPERIENCE TIMELINE
   ============================================= */
.experience {
  background: var(--white);
}

.timeline {
  max-width: 700px;
  margin: 48px auto 0;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--gold), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 28px 32px;
  background: var(--off-white);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
}

.timeline-item .year {
  display: inline-block;
  background: var(--maroon);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-item h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 14px;
  color: var(--gold);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.7;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--maroon);
  color: var(--white);
}

.services .section-title {
  color: var(--white);
}

.services .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 28px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  background: rgba(201, 169, 110, 0.12);
  border-color: rgba(201, 169, 110, 0.3);
  transform: translateY(-6px);
}

.service-card .s-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
}

.service-card p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.7;
}

/* =============================================
   EDUCATION & CERTIFICATIONS
   ============================================= */
.education {
  background: var(--off-white);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.edu-card {
  background: var(--white);
  padding: 36px;
  border-radius: 8px;
  border-top: 3px solid var(--gold);
  transition: var(--transition);
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.edu-card .edu-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.edu-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.edu-card h4 {
  font-size: 14px;
  color: var(--gold);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  margin-bottom: 10px;
}

.edu-card p {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.7;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  background: var(--off-white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  padding: 36px;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.testimonial-card .quote {
  font-size: 48px;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card .client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .client-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
}

.testimonial-card .client-info h4 {
  font-size: 14px;
  color: var(--maroon);
}

.testimonial-card .client-info span {
  font-size: 12px;
  color: var(--gray);
}

.stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 12px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  background: var(--maroon);
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item .c-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 169, 110, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 4px;
  font-family: "Poppins", sans-serif;
}

.contact-item p,
.contact-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.06);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form select option {
  background: var(--maroon);
  color: var(--white);
}

.form-success {
  display: none;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid var(--gold);
  padding: 16px 24px;
  border-radius: 8px;
  color: var(--gold);
  text-align: center;
  font-size: 14px;
}

.form-success.show {
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #34090b;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 32px 0;
  font-size: 13px;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* --- Tablet --- */
@media (max-width: 992px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 36px;
  }

  .hero-profile-wrapper {
    width: 240px;
    height: 240px;
  }

  .hero-profile-wrapper::before {
    inset: -12px;
  }

  .hero-profile-badge {
    width: 52px;
    height: 52px;
    font-size: 20px;
    bottom: 12px;
    right: 4px;
  }

  .practice-grid,
  .services-grid,
  .edu-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--maroon);
    flex-direction: column;
    padding: 80px 40px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .hero::after {
    height: 80px;
  }

  .hero .container {
    gap: 20px;
  }

  .hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .hero-badge {
    margin-bottom: 14px;
    font-size: 12px;
    padding: 6px 16px;
  }

  .hero-profile-wrapper {
    width: 200px;
    height: 200px;
  }

  .hero-profile-wrapper::before {
    inset: -10px;
    border-width: 1.5px;
  }

  .hero-profile-badge {
    width: 48px;
    height: 48px;
    font-size: 18px;
    bottom: 10px;
    right: 2px;
    border-width: 2px;
  }

  .hero-profile-img {
    border-width: 3px;
  }

  /* Stats — compact horizontal row */
  .hero-stats {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
  }

  .hero-stats .stat {
    text-align: center;
  }

  .hero-stats .stat h3 {
    font-size: 22px;
  }

  .hero-stats .stat p {
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .hero-buttons .btn {
    padding: 11px 24px;
    font-size: 12px;
  }

  .practice-grid,
  .services-grid,
  .edu-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 26px;
  }
}

/* --- Small Mobile --- */
@media (max-width: 480px) {
  .hero-profile-wrapper {
    width: 180px;
    height: 180px;
  }

  .hero-profile-badge {
    width: 44px;
    height: 44px;
    font-size: 16px;
    bottom: 6px;
    right: 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stats .stat h3 {
    font-size: 20px;
  }

  .hero-stats .stat p {
    font-size: 9px;
  }
}


/* =============================================
   3D CARD TILT EFFECTS
   ============================================= */
.practice-card,
.service-card,
.edu-card,
.testimonial-card {
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}

.practice-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 24px 48px rgba(93, 14, 17, 0.15);
}

.service-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(2deg);
}

.edu-card:hover {
  transform: translateY(-4px) rotateX(1deg) rotateY(-1deg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-card:hover {
  transform: translateY(-4px) rotateX(1deg) rotateY(1deg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}


/* =============================================
   FLOATING WHATSAPP BUTTON
   ============================================= */
.floating-wa {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: waPulse 2s ease-in-out infinite;
}

.floating-wa:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.15); }
}


/* =============================================
   CHATBOT UI
   ============================================= */
.chatbot-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(93, 14, 17, 0.4);
  transition: all 0.3s ease;
  animation: chatPulse 3s ease-in-out infinite;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(93, 14, 17, 0.5);
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(93, 14, 17, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(93, 14, 17, 0.4), 0 0 0 10px rgba(201, 169, 110, 0.15); }
}

.chatbot-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 370px;
  max-height: 520px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot-window.open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chatbot-header-info strong {
  display: block;
  font-size: 14px;
  font-family: "Playfair Display", serif;
}

.chatbot-header-info span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.chatbot-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.chatbot-close:hover {
  color: var(--gold);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  min-height: 200px;
}

.chat-msg {
  max-width: 85%;
  animation: chatMsgIn 0.3s ease;
}

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

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg p {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.chat-msg.bot p {
  background: var(--off-white);
  color: var(--dark-gray);
  border-bottom-left-radius: 4px;
}

.chat-msg.user p {
  background: var(--maroon);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-suggestion {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--maroon);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: all 0.2s ease;
}

.chat-suggestion:hover {
  background: var(--gold);
  color: var(--white);
}

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
}

.chatbot-input input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-family: "Poppins", sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input input:focus {
  border-color: var(--gold);
}

.chatbot-input button {
  background: var(--maroon);
  color: var(--gold);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.chatbot-input button:hover {
  background: var(--gold);
  color: var(--white);
}


/* =============================================
   HERO CURSOR GLOW EFFECT
   ============================================= */
.hero-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(-50%, -50%);
}


/* =============================================
   ENHANCED MICRO-INTERACTIONS
   ============================================= */

/* Navbar shrink on scroll */
#navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Link underline glow */
.nav-links a:hover::after {
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.4);
}

/* Button glow on hover */
.btn-gold:hover {
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
}

.btn-outline:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* Smooth card icon bounce */
.practice-card:hover .card-icon,
.service-card:hover .s-icon {
  transform: scale(1.15);
  transition: transform 0.3s ease;
}

/* Timeline item glow on hover */
.timeline-item:hover {
  border-left-color: var(--gold);
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.12);
}

/* Contact item hover */
.contact-item {
  transition: transform 0.2s ease;
}

.contact-item:hover {
  transform: translateX(6px);
}

.contact-item:hover .c-icon {
  background: rgba(201, 169, 110, 0.2);
  transition: background 0.2s ease;
}

/* Chatbot mobile responsive */
@media (max-width: 480px) {
  .chatbot-window {
    right: 8px;
    left: 8px;
    bottom: 88px;
    width: auto;
    max-height: 440px;
  }

  .floating-wa {
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
  }

  .floating-wa svg {
    width: 22px;
    height: 22px;
  }

  .chatbot-toggle {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}


/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  z-index: 100000;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.5);
}


/* =============================================
   NAVBAR ON SCROLL — SOLID
   ============================================= */
#navbar.scrolled {
  background: var(--maroon);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}


/* =============================================
   GOLD SHIMMER TEXT ON HEADINGS
   ============================================= */
.section-title {
  background: linear-gradient(
    120deg,
    var(--maroon) 0%,
    var(--maroon) 40%,
    var(--gold) 50%,
    var(--maroon) 60%,
    var(--maroon) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

/* Override for dark background sections */
.services .section-title,
.contact .section-title {
  background: linear-gradient(
    120deg,
    var(--white) 0%,
    var(--white) 40%,
    var(--gold) 50%,
    var(--white) 60%,
    var(--white) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}


/* =============================================
   HERO FLOATING PARTICLES
   ============================================= */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 0.6;
    transform: scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0.5);
  }
}


/* =============================================
   WAVE SECTION DIVIDER
   ============================================= */
.wave-divider {
  position: relative;
  margin-top: -2px;
  z-index: 3;
  line-height: 0;
  background: transparent;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}


/* =============================================
   TYPEWRITER EFFECT
   ============================================= */
.typewriter {
  min-height: 56px;
  overflow: hidden;
}

.typewriter::after {
  content: '|';
  color: var(--gold);
  font-weight: 300;
  animation: blink 1s step-end infinite;
}

.typewriter.done::after {
  display: none;
}

@keyframes blink {
  50% { opacity: 0; }
}


/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(201, 169, 110, 0.3);
}


/* =============================================
   ANIMATED GRADIENT BORDER ON CARDS
   ============================================= */
.practice-card {
  position: relative;
  overflow: visible;
}

.practice-card::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.4s ease;
}

.practice-card:hover::after {
  width: 80%;
}


/* =============================================
   GLASSMORPHISM PRACTICE CARDS
   ============================================= */
.practice-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* =============================================
   BLOG SECTION
   ============================================= */
.blog {
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.blog-card {
  background: var(--off-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(93, 14, 17, 0.12);
}

.blog-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image-wrapper img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: var(--transition);
}

.blog-card:hover h3 {
  color: var(--gold);
}

.blog-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-link {
  margin-top: auto;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.blog-link i {
  transition: transform 0.3s ease;
}

.blog-link:hover {
  color: var(--gold);
}

.blog-link:hover i {
  transform: translateX(5px);
}

/* =============================================
   BLOG DETAIL PAGES
   ============================================= */
.blog-post-header {
  padding: 120px 0 100px;
  background: var(--maroon);
  color: var(--white);
  text-align: center;
  position: relative;
}

.blog-post-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--white));
}

.blog-post-header .container {
  max-width: 900px;
}

.blog-post-header h1 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
}

.post-meta-detailed {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--gold);
}

.blog-post-content {
  padding: 60px 0 100px;
}

.blog-post-content .container {
  max-width: 1100px;
}

.blog-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.featured-image-container {
  margin-top: 0;
  position: relative;
  z-index: 5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.featured-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
}

.post-body p {
  margin-bottom: 24px;
}

.post-body h2 {
  margin: 40px 0 20px;
  font-size: 24px;
}

.back-btn-container {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* SIDEBAR WIDGETS */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.widget-title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.author-widget {
  text-align: center;
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 3px solid var(--gold);
  padding: 3px;
  object-fit: cover;
}

.author-widget h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.author-widget span {
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.author-widget p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

.recent-post-item {
  display: flex;
  gap: 15px;
  text-decoration: none;
  transition: var(--transition);
}

.recent-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 24px;
}

.recent-post-link:last-child {
  margin-bottom: 0;
}

.rp-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.rp-content h5 {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: var(--transition);
}

.recent-post-item:hover h5 {
  color: var(--gold);
}

.rp-content span {
  font-size: 11px;
  color: var(--gray);
}

/* Page Indicator for Blog Link in Navbar */
.nav-links a.active-link {
  color: var(--gold) !important;
}

.nav-links a.active-link::after {
  width: 100% !important;
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-detail-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-post-header {
    padding: 100px 0 80px;
  }
  
  .featured-image-container {
    margin-top: 30px;
  }
}

/* Mobile adjustments for new features */
@media (max-width: 768px) {
  .back-to-top {
    right: 20px;
    bottom: 80px;
    width: 40px;
    height: 40px;
  }

  .wave-divider svg {
    height: 40px;
  }

  .typewriter {
    min-height: 72px;
  }
}


