:root {
  /* Colors inspired by ClinJuris Logo */
  --primary-blue: #0A3261;
  /* Deep navy blue */
  --secondary-blue: #1C5492;
  /* Lighter blue */
  --primary-gold: #E29B1A;
  /* vibrant gold */
  --light-gold: #F5B942;
  --dark-bg: #05162D;
  /* very dark blue for footer/dark sections */
  --light-bg: #f8f9fc;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #555555;
  --border-color: #e2e8f0;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 220px;

  /* Transitions & Shadows */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 10px 25px rgba(226, 155, 26, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Typography Utility */
.text-gold {
  color: var(--primary-gold);
}

.text-blue {
  color: var(--primary-blue);
}

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

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

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

h2.underline::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--primary-gold);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

h2.underline.center::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-size: 1rem;
  font-family: var(--font-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(226, 155, 26, 0.4);
  color: var(--white);
}

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

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-blue);
}

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition-normal);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 200px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
}

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

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

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  bottom: -5px;
  left: 0;
  transition: width var(--transition-normal);
}

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

.nav-links a:hover {
  color: var(--primary-blue);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(226, 155, 26, 0.1), transparent 40%),
    radial-gradient(circle at bottom left, rgba(10, 50, 97, 0.05), transparent 40%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%230A3261" opacity="0.1"/></svg>');
  z-index: -1;
}

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

.hero-text h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--transition-normal);
  border: 10px solid var(--white);
}

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

/* Value Props Section */
.features {
  padding: 6rem 0;
  background: var(--white);
}

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

.feature-card {
  padding: 2.5rem;
  background: var(--light-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border-bottom: 4px solid transparent;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 50, 97, 0.02), rgba(226, 155, 26, 0.05));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--primary-gold);
}

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

.feature-icon {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

/* Service Detail Section (For services.html & sections on index) */
.service-details {
  padding: 6rem 0;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.service-row:nth-child(even) {
  direction: rtl;
}

.service-row:nth-child(even)>* {
  direction: ltr;
}

.service-image {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.service-image img {
  transition: transform var(--transition-slow);
}

.service-image:hover img {
  transform: scale(1.05);
}

.service-info ul {
  margin-top: 1rem;
}

.service-info ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

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

/* CTA Section */
.cta-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary-gold);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  top: -100px;
  left: -100px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--primary-gold);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  bottom: -150px;
  right: -150px;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

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

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

.footer-logo {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 1rem;
}

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

.footer-text {
  color: #a0aec0;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: #a0aec0;
}

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

.footer-contact li {
  color: #a0aec0;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Page Headers (About, Services, Contact) */
.page-header {
  background: var(--primary-blue);
  padding: 10rem 0 6rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--light-bg);
  transform: skewY(-2deg);
}

.page-header h1 {
  color: var(--white);
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

/* Forms */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

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

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

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-main);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(226, 155, 26, 0.1);
}

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

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  h1 {
    font-size: 2.8rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-row:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: left var(--transition-normal);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

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

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2rem;
  }
}