/* style.css - Premium Lawyer Portfolio Styling */
:root {
  /* Color Palette - Premium Light Theme (Cream & Navy with Gold accents) */
  --color-bg: #FDFBF7;
  --color-bg-alt: #F4F1E9;
  --color-dark: #0A192F;
  --color-dark-alt: #112240;

  --color-text: #1A202C;
  --color-text-muted: #4A5568;
  --color-text-light: #FDFBF7;
  --color-text-light-muted: #A0AEC0;

  --color-accent: #C5A059;
  --color-accent-hover: #D8B26A;
  --color-accent-light: #E8D3A2;
  --color-accent-dark: #A6823F;

  --color-border: rgba(10, 25, 47, 0.1);
  --color-border-light: rgba(253, 251, 247, 0.15);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Layout & Spacing */
  --container-width: 1200px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(10, 25, 47, 0.05);
  --shadow-md: 0 10px 20px rgba(10, 25, 47, 0.08);
  --shadow-lg: 0 20px 40px rgba(10, 25, 47, 0.12);
  --shadow-glow: 0 0 20px rgba(197, 160, 89, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-dark);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: min(var(--container-width), 90vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: 8px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.section-padding {
  padding: 6rem 0;
}

.mt-4 {
  margin-top: 2rem;
}

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

.bg-light {
  background-color: var(--color-bg-alt);
}

.bg-dark {
  background-color: var(--color-dark);
  color: var(--color-text-light);
}

.text-white {
  color: var(--color-text-light) !important;
}

.text-accent {
  color: var(--color-accent) !important;
}

.text-light-muted {
  color: var(--color-text-light-muted) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: var(--transition-normal);
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff !important;
  border: 1px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
}

.bg-dark .btn-outline {
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.btn-outline:hover {
  background-color: var(--color-dark);
  color: var(--color-text-light) !important;
}

.btn-block {
  width: 100%;
}

/* Typography Scale */
.section-subtitle {
  display: inline-block;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 40px;
}

.section-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
}

.text-center .section-subtitle {
  padding-left: 0;
}

.text-center .section-subtitle::before {
  display: none;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 25, 47, 0.05);
  z-index: 100;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(253, 251, 247, 0.98);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height 0.3s;
}

.navbar.scrolled .nav-content {
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo-name {
  color: var(--color-dark);
}

.text-white .logo-name {
  color: #ffffff;
}

.logo-law {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-dark);
  position: relative;
}

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid rgba(197, 160, 89, 0.2);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.hero-description {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--color-border);
}

.hero-image-wrapper {
  position: relative;
}

.image-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 20px 20px 100px 20px;
  box-shadow: var(--shadow-lg);
  border: 8px solid white;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  left: -40px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid var(--color-accent);
}

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

.experience-badge div {
  display: flex;
  flex-direction: column;
}

.experience-badge strong {
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.experience-badge span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.experience-years {
  position: absolute;
  top: -20px;
  right: -20px;
  background-color: var(--color-dark);
  color: white;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-bg);
  z-index: 2;
}

.experience-years .years {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}

.experience-years .text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-list {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.about-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.about-list i {
  background: rgba(197, 160, 89, 0.1);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Practice Areas Grid */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.practice-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.practice-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.card-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.card-link i {
  transition: var(--transition-fast);
}

.card-link:hover {
  color: var(--color-accent);
}

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

/* Experience Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  padding-right: 0;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 4px solid var(--color-bg);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -8px;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  transition: var(--transition-normal);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 15px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: auto;
  left: -10px;
  border-top: none;
  border-right: none;
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.timeline-date {
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.timeline-title {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.timeline-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Case Highlights Section */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.case-card {
  background-color: var(--color-dark-alt);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 160, 89, 0.4);
}

.case-content {
  padding: 3rem;
  position: relative;
}

.case-category {
  position: absolute;
  top: 3rem;
  right: 3rem;
  background: rgba(197, 160, 89, 0.1);
  color: var(--color-accent);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-title {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-right: 120px;
}

.case-text {
  color: var(--color-text-light-muted);
  margin-bottom: 2rem;
}

.case-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.case-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: white;
}

.case-highlights i {
  color: var(--color-accent);
  margin-top: 0.3rem;
}

/* Contact Section */
.contact-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info {
  background: var(--color-dark);
  color: white;
  padding: 4rem;
}

.contact-info .section-title {
  color: white;
}

.contact-desc {
  color: var(--color-text-light-muted);
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.method-icon {
  width: 50px;
  height: 50px;
  background: rgba(197, 160, 89, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

a.contact-method:hover .method-icon {
  background: var(--color-accent);
  color: white;
}

.method-details {
  display: flex;
  flex-direction: column;
}

.method-label {
  color: var(--color-text-light-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.method-value {
  font-weight: 500;
  font-size: 1.1rem;
}

.contact-form-wrapper {
  padding: 4rem;
}

.form-title {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg-alt);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
  background: white;
}

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

/* Footer */
.footer {
  background: var(--color-dark);
  color: white;
  padding: 6rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-desc {
  color: var(--color-text-light-muted);
  margin: 1.5rem 0;
  max-width: 350px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer-title {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--color-text-light-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-light-muted);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a:hover {
  color: white;
}

/* Animations */
.reveal {
  opacity: 0;
  transition: var(--transition-slow);
}

.fade-up {
  transform: translateY(40px);
}

.fade-left {
  transform: translateX(40px);
}

.fade-right {
  transform: translateX(-40px);
}

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

/* Mobile Responsiveness */
@media (max-width: 992px) {

  .hero-container,
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    order: 2;
    text-align: center;
  }

  .hero-image-wrapper {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

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

  .experience-badge {
    left: 10px;
    bottom: -20px;
  }

  .timeline::before {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) {
    padding-left: 80px;
  }

  .timeline-dot {
    left: 23px !important;
    right: auto !important;
  }

  .timeline-content::before {
    left: -10px !important;
    right: auto !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    border-left: 1px solid var(--color-border) !important;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: var(--transition-normal);
    opacity: 0;
    visibility: hidden;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-toggle {
    display: block;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 100px;
  }

  .stat-item {
    flex-direction: column;
    text-align: center;
    gap: 0.2rem;
  }

  .stat-divider {
    height: 1px;
    width: 40px;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .case-highlights {
    grid-template-columns: 1fr;
  }

  .case-category {
    position: relative;
    top: 0;
    right: 0;
    display: inline-block;
    margin-bottom: 1rem;
  }

  .case-content {
    padding: 2rem;
  }

  .case-title {
    padding-right: 0;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}