/* ========================================
   LexPrime - Cabinet Avocatura Premium
   Multi-Page Website Styles
   ======================================== */

/* CSS Variables */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --primary-glow: rgba(5, 150, 105, 0.15);
  --dark: #111827;
  --dark-light: #1f2937;
  --gray-900: #1a1a1a;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #6b7280;
  --gray-500: #9ca3af;
  --gray-400: #d1d5db;
  --gray-300: #e5e7eb;
  --gray-200: #f3f4f6;
  --gray-100: #f9fafb;
  --white: #ffffff;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.15);
  --shadow-xl: 0 30px 60px -15px rgba(0,0,0,0.2);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Typography */
.font-display {
  font-family: var(--font-display);
}

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

/* ========================================
   LOADER
   ======================================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gray-900);
}

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

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* ========================================
   REVEAL ANIMATIONS (Scroll Trigger)
   ======================================== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* For elements that should start hidden and reveal on scroll */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 4rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.875rem 4rem;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
}

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

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  transition: var(--transition);
}

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

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

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

.nav-cta {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: var(--white);
  z-index: 9999;
  padding: 6rem 2rem 2rem;
  box-shadow: var(--shadow-xl);
  transition: right 0.4s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
}

.mobile-menu a.active {
  color: var(--primary);
}

.mobile-menu .nav-cta {
  margin-top: 2rem;
  width: 100%;
  text-align: center;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 4rem 4rem;
  background: linear-gradient(135deg, var(--white) 0%, #f0fdf4 50%, var(--gray-100) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-light);
  top: -15%;
  right: -5%;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: #6ee7b7;
  bottom: -10%;
  left: 15%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite reverse;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: #a7f3d0;
  top: 40%;
  left: -3%;
  opacity: 0.25;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-content {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-text, .hero-visual {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.hero-title .accent {
  color: var(--primary);
  position: relative;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--gray-900);
  border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.hero-float-card {
  position: absolute;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 5%;
  left: -30px;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 15%;
  right: -20px;
  animation-delay: 2s;
}

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

.float-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.float-icon svg {
  width: 24px;
  height: 24px;
}

.float-text strong {
  display: block;
  font-size: 1.25rem;
  color: var(--gray-900);
  font-weight: 700;
}

.float-text span {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(5, 150, 105, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
  padding: 6rem 4rem;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.service-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,150,105,0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(5, 150, 105, 0.3);
}

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

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  box-shadow: 0 15px 30px var(--primary-glow);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.service-link:hover {
  gap: 0.75rem;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  padding: 5rem 4rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: rgba(52, 211, 153, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-light);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   CASES SECTION
   ======================================== */
.cases-section {
  padding: 6rem 4rem;
  background: var(--gray-100);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
}

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

.case-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

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

.case-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 100px;
}

.case-content {
  padding: 2rem;
}

.case-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.case-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.case-result {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-result span:first-child {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
}

.case-result span:last-child {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-section {
  padding: 6rem 4rem;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1440px;
  margin: 0 auto;
}

.team-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
}

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

.team-image {
  height: 350px;
  overflow: hidden;
  position: relative;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,150,105,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

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

.team-social a {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.team-social a:hover {
  transform: scale(1.1);
  background: var(--gray-900);
  color: var(--white);
}

.team-info {
  padding: 1.75rem;
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-info p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
  padding: 6rem 4rem;
  background: linear-gradient(135deg, #f0fdf4 0%, var(--white) 100%);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 4rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.quote-icon {
  width: 70px;
  height: 70px;
  background: rgba(5, 150, 105, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--primary);
}

.quote-icon svg {
  width: 32px;
  height: 32px;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--gray-900);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.testimonial-author-info {
  text-align: left;
}

.testimonial-author-info strong {
  display: block;
  font-size: 1.15rem;
  color: var(--gray-900);
}

.testimonial-author-info span {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog-section {
  padding: 6rem 4rem;
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.blog-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
}

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

.blog-image {
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.blog-content {
  padding: 1.75rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  padding: 6rem 4rem;
  background: var(--gray-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.contact-info h2 span {
  color: var(--primary);
}

.contact-info > p {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(5, 150, 105, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-item-text strong {
  display: block;
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.contact-item-text span {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

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

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--gray-900);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

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

.btn-submit {
  width: 100%;
  padding: 1.25rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px var(--primary-glow);
}

.map-container {
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  background: var(--gray-200);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 4rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1440px;
  margin: 0 auto 4rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--primary-light);
}

.footer-brand p {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: var(--dark-light);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
}

.footer-newsletter input::placeholder {
  color: var(--gray-600);
}

.footer-newsletter button {
  padding: 0.875rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  background: var(--primary-dark);
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-col li {
  margin-bottom: 0.875rem;
}

.footer-col a {
  color: var(--gray-500);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* ========================================
   PAGE HEADER (for inner pages)
   ======================================== */
.page-header {
  padding: 10rem 4rem 5rem;
  background: linear-gradient(135deg, var(--white) 0%, #f0fdf4 50%, var(--gray-100) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header .hero-orb {
  opacity: 0.2;
}

.page-header-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.breadcrumbs a {
  color: var(--primary);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ========================================
   DETAIL PAGE STYLES
   ======================================== */
.detail-section {
  padding: 5rem 4rem;
  background: var(--white);
}

.detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.detail-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.detail-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-content li {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.detail-content strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* Service Detail Specific */
.service-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.service-feature-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.service-feature-item h4 {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.service-feature-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1280px) {
  .navbar {
    padding: 1.25rem 2rem;
  }
  
  .hero,
  .services-section,
  .cases-section,
  .team-section,
  .testimonials-section,
  .blog-section,
  .contact-section,
  .page-header,
  .detail-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cases-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-desc {
    margin: 0 auto 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-float-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero {
    padding: 7rem 1.5rem 4rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .services-section,
  .cases-section,
  .team-section,
  .testimonials-section,
  .blog-section,
  .contact-section,
  .page-header,
  .detail-section,
  .stats-section,
  .footer {
    padding: 4rem 1.5rem;
  }
  
  .services-grid,
  .cases-grid,
  .team-grid,
  .blog-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .testimonial-text {
    font-size: 1.25rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-newsletter {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .service-features-list {
    grid-template-columns: 1fr;
  }
  
  .contact-info h2 {
    font-size: 2.25rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .detail-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .service-card,
  .case-card,
  .team-card,
  .blog-card {
    padding: 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* ========================================
   PREMIUM EFFECTS - CUSTOM CURSOR
   ======================================== */
.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
  opacity: 0;
}

.custom-cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor,
  .custom-cursor-dot {
    opacity: 1;
  }
  
  body {
    cursor: none;
  }
  
  a, button, .case-card, .service-card, .team-card, .blog-card {
    cursor: none;
  }
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ========================================
   SECTION NAVIGATION DOTS
   ======================================== */
.section-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s;
}

.section-nav.visible {
  opacity: 1;
}

.section-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.section-dot::before {
  content: attr(title);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--gray-700);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  background: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.section-dot:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(-5px);
}

.section-dot:hover {
  background: var(--primary-light);
  transform: scale(1.3);
}

.section-dot.active {
  background: var(--primary);
  transform: scale(1.5);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

@media (max-width: 1200px) {
  .section-nav {
    display: none;
  }
}

/* ========================================
   ENHANCED ANIMATIONS
   ======================================== */

/* Card hover 3D effect */
.case-card,
.service-card,
.team-card,
.blog-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.case-card:hover,
.service-card:hover,
.team-card:hover,
.blog-card:hover {
  transform: translateY(-12px) rotateX(2deg);
}

/* Hero text entrance */
.hero-badge {
  animation: slideInDown 0.8s ease-out;
}

.hero-title {
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero-desc {
  animation: fadeIn 1s ease-out 0.4s both;
}

.hero-buttons {
  animation: slideInUp 1s ease-out 0.6s both;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Floating cards animation */
.hero-float-card {
  animation: float 6s ease-in-out infinite;
}

.hero-float-card.card-1 {
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

/* Hero orbs glow animation */
.hero-orb {
  animation: pulse 4s ease-in-out infinite;
}

.hero-orb.orb-2 {
  animation-delay: -2s;
}

.hero-orb.orb-3 {
  animation-delay: -1s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

/* Button shine effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

/* Image reveal animation */
.case-image,
.blog-image,
.team-image {
  position: relative;
  overflow: hidden;
}

.case-image::after,
.blog-image::after,
.team-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-image::after,
.blog-card:hover .blog-image::after,
.team-card:hover .team-image::after {
  transform: translateX(100%);
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Stats glow on counter */
.stat-item:hover .stat-number {
  text-shadow: 0 0 30px var(--primary-glow);
}

/* Testimonial quote animation */
.quote-icon {
  animation: rotateIn 1s ease-out;
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-20deg) scale(0.8);
  }
  to {
    opacity: 0.1;
    transform: rotate(0) scale(1);
  }
}

/* Link underline animation */
.service-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

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

/* Form focus animation */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Footer link hover */
.footer-col a {
  position: relative;
  transition: color 0.3s, transform 0.3s;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Navigation link underline */
.nav-links a {
  position: relative;
}

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

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

/* Mobile menu animation */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

/* Loader fade out */
.loader {
  transition: opacity 0.5s ease-out;
}

/* ========================================
   DYNAMIC CMS COMPONENTS
   ======================================== */

/* Blog Featured Grid */
.blog-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto 3rem;
  padding: 0 4rem;
}

.blog-card-featured {
  grid-column: span 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-featured .blog-image {
  height: 280px;
  position: relative;
}

.blog-card-featured .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-tag {
  background: var(--gray-200);
  color: var(--gray-700);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
}

.blog-tag:hover {
  background: var(--primary);
  color: var(--white);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.blog-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-author span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.blog-author-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.blog-author-small img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
}

.testimonial-rating {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

/* Responsive adjustments for dynamic components */
@media (max-width: 1024px) {
  .blog-featured-grid {
    grid-template-columns: 1fr;
    padding: 0 2rem;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-card-featured .blog-image {
    height: 200px;
  }
}
