/*
  Professional Portfolio Stylesheet
  ---------------------------------
  Modern, minimalist design with rich interactive features and smooth animations.
  Optimized for professional presentation with stunning visual effects.
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Purnomo Business Advisory (PBA) brand theme */
:root {
  --primary-color: #0A2342; /* PBA Navy Blue */
  --secondary-color: #C8A951; /* PBA Gold */
  --accent-color: #C8A951; /* Gold accent */
  --accent-secondary: #E3C988; /* Lighter gold */
  --gradient-primary: linear-gradient(135deg, #0A2342 0%, #C8A951 100%);
  --gradient-secondary: linear-gradient(135deg, #F5F5F5 0%, #e9ecef 100%);
  --text-color: #1e293b; /* dark gray for main text */
  --text-secondary: #64748b; /* muted blue-gray */
  --text-light: #94a3b8; /* lighter text */
  --background-color: #ffffff; /* pure white */
  --surface-color: #f8fafc; /* very light gray */
  --border-color: #e2e8f0; /* subtle light border */
  --glow-color: rgba(30, 74, 93, 0.15); /* soft teal glow */
  --font-primary: 'Poppins', 'Inter', 'Lato', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(30, 74, 93, 0.1);
}

/* Accessibility helpers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Contact small note */
.privacy-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

/* Reset & basic styles with smooth animations */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.7;
  background: var(--background-color);
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.025em;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--accent-secondary);
  transform: translateY(-1px);
}

/* Utility classes */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  box-shadow: var(--shadow-glow);
}

/* Loading animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Container helper class */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* Header container override */
header .container {
  flex-direction: row;
}

/* Header styles with clean glassmorphism effect */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  height: 80px;
}

/* Mobile nav toggle button */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-toggle .hamburger::before {
  transform: translateY(-7px);
}

.nav-toggle .hamburger::after {
  transform: translateY(5px);
}

/* When active */
.nav-toggle.active .hamburger {
  background: transparent;
}
.nav-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

.logo a {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* When only text logo is shown */
.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* When logo image is available */
.logo-img {
  height: 65px;
  width: auto;
  transition: all 0.3s ease;
  filter: none; /* remove drop shadow so logo appears clean */
  border-radius: 0; /* avoid rounded box on logo */
  background: transparent;
  display: block;
  object-fit: contain;
}

/* Hide text when logo image exists */
.logo a:has(.logo-img) .logo-text {
  display: none;
}

.logo a:hover {
  transform: scale(1.02);
}

.logo a:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links li a {
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-align: center;
  min-width: 80px;
}

.nav-links li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 8px;
}

.nav-links li a:hover::before {
  left: 0;
}

.nav-links li a:hover {
  color: white;
  transform: translateY(-1px);
}

/* Hero Section with PBA brand colors */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(10, 34, 66, 0.85) 0%, rgba(10, 34, 66, 0.95) 100%);
  display: flex;
  align-items: center;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

/* New hero two-column layout */
.hero-container {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0;
}

.hero-left {
  flex: 1 1 60%;
}

.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
  color: #fff;
}

.hero-sub {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero-right {
  flex: 1 1 35%;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.hero-features li {
  background: rgba(255,255,255,0.06);
  padding: 1rem;
  border-radius: 10px;
  color: #fff;
}

.hero-features li strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column-reverse;
    gap: 2rem;
    padding: 3rem 0;
  }

  .hero-right {
    width: 100%;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 34, 66, 0.1) 0%, rgba(10, 34, 66, 0.3) 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: linear-gradient(45deg, transparent 0%, rgba(200, 161, 81, 0.08) 50%, transparent 100%);
  animation: float 12s ease-in-out infinite;
  z-index: 0;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  animation: fadeInUp 1s ease-out;
  color: white; /* make hero text white for better contrast */
  padding: 0 1rem;
}

.hero-carousel {
  height: 100vh;
  padding-top: 80px; /* account for fixed header */
  position: relative;
  overflow: hidden;
}

.carousel {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 80px);
  touch-action: pan-y pinch-zoom; /* Allow vertical scrolling but prevent horizontal scrolling during swipe */
  -webkit-touch-callout: none; /* Prevent callout on iOS */
  -webkit-user-select: none; /* Prevent text selection on iOS */
  user-select: none;
}

.carousel-slides {
  display: flex;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  width: 300%; /* Ensure container is wide enough for 3 slides */
  height: 100%;
  touch-action: pan-y pinch-zoom;
}

.slide {
  min-width: 100%;
  width: 100%; /* Ensure each slide takes full width */
  height: 100%;
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill container completely */
  object-position: center center; /* Default positioning, overridden by hero-responsive.css */
  /* Enhanced image quality for optimized hero images */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated; /* For sharp edges on high-res images */
  /* Subtle enhancement without quality loss */
  filter: brightness(0.7) saturate(1.05) contrast(1.05);
  transform-origin: center center;
  z-index: 1;
  /* Ensure images load with maximum quality */
  will-change: transform;
  backface-visibility: hidden;
}

/* Optimized positioning for hero images (handled by hero-responsive.css)
   These rules are kept minimal to avoid conflicts */

/* Note: Specific slide positioning is handled by hero-responsive.css
   to ensure optimal display of the optimized images from images/hero/ folder */

/* Enhanced text readability for slide 3 */
.slide[data-index="2"] .slide-content {
  background: rgba(0, 0, 0, 0.4);
  padding: 3rem 2rem;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

/* Performance optimizations for optimized hero images */
.slide-bg {
  /* Improve loading for optimized images */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Smooth transitions for image loading */
.slide-bg[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide-bg[loading="lazy"].loaded,
.slide-bg:not([loading="lazy"]) {
  opacity: 1;
}

/* Responsive positioning delegated to hero-responsive.css for better optimization */

@media (max-width: 900px) {
  .hero-carousel {
    height: 70vh;
    min-height: 500px;
  }
  
  .carousel {
    height: calc(70vh - 80px);
    min-height: 420px;
  }
  
  .slide {
    height: 100%;
  }
  
  /* Image positioning handled by hero-responsive.css */
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 60vh;
    min-height: 400px;
  }
  
  .carousel {
    height: calc(60vh - 80px);
    min-height: 320px;
  }
  
  /* Image positioning and quality handled by hero-responsive.css */
}

/* Fallback when slide images are missing: use background color/gradient */
.slide:has(.slide-bg[src=""]) {
  background: linear-gradient(135deg, #e6eef2 0%, #f8fafc 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 4rem 2rem;
  max-width: 720px;
  text-align: left; /* Ensure left alignment */
}

.slide .eyebrow {
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.slide-title {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.05;
}

.slide-excerpt {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

/* Ensure all textual elements in hero/carousel are white for readability */
.hero-carousel .eyebrow,
.hero-carousel .slide-title,
.hero-carousel .slide-excerpt,
.hero-carousel .slide-content h2,
.hero-carousel .slide-content p {
  color: #ffffff !important;
}

/* Make secondary CTA on slides white-bordered and white text */
.hero-carousel .cta-btn-secondary {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.28) !important;
}

.hero-carousel .cta-btn-secondary:hover {
  background: rgba(255,255,255,0.08) !important;
}

.carousel-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
  pointer-events: none; /* Allow touch events to pass through to slides */
}

.carousel-controls .prev,
.carousel-controls .next {
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  pointer-events: auto; /* Re-enable pointer events for buttons */
  transition: background-color 0.3s ease;
}

.carousel-controls .prev:hover,
.carousel-controls .next:hover {
  background: rgba(0,0,0,0.65);
}

.indicators {
  display: flex;
  gap: 8px;
  align-items: center;
}

.indicators button {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
}

.indicators button.active {
  width: 36px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-secondary));
}

/* Make slides readable on small screens */
@media (max-width: 900px) {
  .slide-content {
    padding: 3rem 2rem;
    max-width: 100%;
    text-align: left;
  }
  
  .carousel-controls { 
    bottom: 20px; 
  }
  
  .slide-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    text-align: left;
    margin-bottom: 1rem;
  }
  
  .slide-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .slide-content {
    padding: 2rem 1.5rem;
  }
  
  .slide-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
    margin-bottom: 0.8rem;
    text-align: left;
  }
  
  .slide-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    text-align: left;
    line-height: 1.4;
  }
  
  .carousel-controls { 
    bottom: 15px; 
  }
}
.slide-content {
  padding: 1.5rem 1rem;
  text-align: left;
}
.slide {
  height: calc(70vh - 80px);
  min-height: 350px;
  max-height: 450px;
}
.slide-bg {
  object-fit: cover;
  object-position: center center;
}
.carousel-controls .prev, .carousel-controls .next {
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  background: rgba(0,0,0,0.6);
}
.carousel-controls {
  bottom: 16px;
}
.eyebrow {
  font-size: 0.85rem;
  padding: 4px 10px;
  margin-bottom: 0.75rem;
  text-align: left;
}
.indicators button {
  width: 12px;
  height: 12px;
  margin: 0 4px;
}
.indicators button.active {
  width: 40px;
  height: 12px;
}

/* Landscape orientation specific styles */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-carousel {
    height: calc(100vh - 60px);
    padding-top: 60px;
  }
  .slide {
    height: calc(90vh - 60px);
    min-height: 300px;
    max-height: 400px;
  }
  .slide-content {
    padding: 1.5rem 2rem;
    max-width: 600px;
  }
  .slide-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
  }
  .slide-excerpt {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  /* Image positioning handled by hero-responsive.css */
}

/* Additional landscape styles for tablets and larger screens */
@media (orientation: landscape) and (min-height: 501px) {
  .slide {
    height: calc(80vh - 80px);
    min-height: 400px;
    max-height: 550px;
  }
  .slide-content {
    padding: 2.5rem 3rem;
    max-width: 700px;
  }
  .slide-title {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  }
  .slide-excerpt {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* Ultra-wide landscape screens */
@media (orientation: landscape) and (min-width: 1200px) {
  .slide-content {
    padding: 3rem 4rem;
    max-width: 800px;
  }
  .slide-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  .slide-excerpt {
    font-size: 1rem;
  }
}

/* Ensure content is always fully visible on very small screens */
@media (max-height: 600px) and (orientation: portrait) {
  .slide {
    height: calc(85vh - 80px);
    min-height: 320px;
  }
  .slide-content {
    padding: 1.25rem 1rem;
  }
  .slide-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    margin-bottom: 0.5rem;
  }
  .slide-excerpt {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
}

/* Ensure all hero text is clearly visible on the background image */
.hero h1,
.hero p,
.hero .hero-buttons a {
  color: #ffffff;
}

/* Override gradient highlight inside hero to plain white for readability */
.hero .highlight {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: white !important;
  background-clip: initial !important;
  color: white !important;
}

/* Make secondary CTA readable on hero */
.hero .cta-btn-secondary {
  color: #ffffff;
  border-color: rgba(255,255,255,0.25);
  background: transparent;
}

.hero .cta-btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero .highlight::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  animation: pulse 3s ease-in-out infinite;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 600px;
}

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

.cta-btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 35, 66, 0.18);
}

/* Modern CTA Button with hover effects */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 6px 30px rgba(200,169,81,0.12);
}

.cta-btn:active {
  transform: translateY(0);
}

/* Clean minimalist section styles */
.section {
  padding: 5rem 0;
  background: var(--background-color);
  position: relative;
}

.section.light {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* About section: professional business advisory layout */
#about {
  background: var(--background-color);
  padding: 5rem 0;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.about-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.about-intro p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

.about-challenge-solution {
  margin-bottom: 4rem;
}

.challenge-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.challenge h3,
.solution h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.challenge ul,
.solution ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.challenge li,
.solution li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  line-height: 1.6;
}

.challenge li:last-child,
.solution li:last-child {
  border-bottom: none;
}

.about-values {
  margin-bottom: 4rem;
}

.about-values h3 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.value-item {
  text-align: center;
  padding: 2rem;
  background: var(--background-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-item h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.value-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.about-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.founder-quote {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--surface-color);
  padding: 3rem;
  border-radius: 16px;
}

.founder-quote blockquote {
  font-style: italic;
  color: var(--text-color);
  flex: 1;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

.quote-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 200px;
}

.quote-info {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.team-avatar.small {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .about-content h2 {
    font-size: 2rem;
  }

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

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

  .about-ctas {
    flex-direction: column;
    align-items: center;
  }

  .founder-quote {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .quote-meta {
    min-width: auto;
  }
}

/* Modern Timeline styles */
.timeline {
  margin-top: 3rem;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  border-radius: 1px;
}

.timeline-item {
  margin-bottom: 3rem;
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--surface-color);
  z-index: 1;
}

.timeline-year {
  position: absolute;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  background: var(--surface-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  white-space: nowrap;
  z-index: 2;
}

.timeline-content {
  background: var(--background-color);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  max-width: 400px;
  margin-top: 2rem;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.timeline-content h3 {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Modern Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--background-color);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.project-card:hover::before {
  opacity: 0.02;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.project-info {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.project-info h3 {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
  color: var(--primary-color);
}

.project-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* About Stats Section */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--background-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

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

.service-card {
  background: var(--background-color);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-icon .icon-finance {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  display: inline-block;
}

.service-card h3 {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--background-color);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

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

.team-photo {
  margin-bottom: 1.5rem;
}

.photo-placeholder {
  width: 100px;
  height: 100px;
  background: var(--surface-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto;
  border: 3px solid var(--border-color);
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--border-color);
}

.team-info h3 {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-info h4 {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Modern Services List */
.services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.services-list li {
  background: var(--background-color);
  padding: 1rem 2rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  font-weight: 500;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.services-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.services-list li:hover::before {
  left: 0;
}

.services-list li:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Modern Contact Form */
.contact-form {
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-row input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-row input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.contact-form textarea {
  margin-bottom: 2rem;
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-item {
  padding: 1.5rem;
  background: var(--background-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-item strong {
  display: block;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--primary-color);
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--primary-color);
}

/* Clean minimalist footer */
footer {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

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

/* About Section Enhancements */
.value-propositions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.value-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(30, 74, 93, 0.15);
}

.value-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Success Stories Section */
.success-stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.story-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.story-header h3 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.3rem;
}

.industry {
  background: var(--gradient-primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.challenge, .solution, .result {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.challenge strong, .solution strong, .result strong {
  color: var(--primary-color);
}

/* Team Section Enhancements */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.credential {
  background: rgba(30, 74, 93, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Contact Section */
#contact {
  background: var(--background-color);
  padding: 5rem 0;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  flex-shrink: 0;
  color: var(--primary-color);
  background: var(--background-color);
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.contact-details h4 {
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.contact-details address {
  font-style: normal;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--secondary-color);
}

.contact-note {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
  line-height: 1.4;
}

.cta-btn-small {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.cta-btn-small:hover {
  background: var(--secondary-color);
}

.contact-form-container {
  background: var(--surface-color);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.form-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info-cards {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .contact-header h2 {
    font-size: 2rem;
  }

  .contact-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .contact-icon {
    padding: 0.5rem;
  }

  .contact-form-container {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    background-position: center top;
  }

  /* Use a smaller background image on mobile if available */
  /* Hero background images removed - using carousel system instead */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .cta-btn-secondary {
    text-align: center;
    min-width: 150px;
  }
  
  .value-propositions {
    grid-template-columns: 1fr;
  }
  
  .success-stories {
    grid-template-columns: 1fr;
  }
  
  .story-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .logo a {
    font-size: 1.2rem;
  }
  
  .logo-img {
    height: 50px;
  }
  
  nav {
    padding: 0.8rem 0;
    height: 70px;
    position: relative;
  }
}
@media (max-width: 768px) {
  .nav-links {
    gap: 0.25rem;
  }
  
  .nav-links li a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-width: 60px;
  }
  
  .logo a {
    font-size: 1.5rem;
  }
  
  nav {
    height: 60px;
    padding: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-year {
    left: 20px;
    transform: none;
  }
  
  .timeline-content {
    max-width: none;
    margin-top: 2rem;
  }
  
  .timeline-item::before {
    left: 20px;
    transform: none;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1.5rem 1rem;
  }
  
  .stat-item h3 {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .services-list {
    gap: 1rem;
  }
  
  .services-list li {
    padding: 0.75rem 1.5rem;
  }
  
  .container {
    width: 95%;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.125rem;
  }
  
  .nav-links li a {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: 50px;
  }
  
  .logo a {
    font-size: 1.3rem;
  }

  /* Show hamburger and hide links by default on small screens */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255,255,255,0.98);
    width: 90%;
    max-width: 320px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
    transform: translateY(-10px) scaleY(0);
    transform-origin: top right;
    transition: transform 0.22s ease, opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.show {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li a {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-align: left;
  }
  
  .hero {
    height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
  
  .container {
    width: 98%;
    padding: 0 10px;
  }
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle particles */
.particle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

/* Scroll to top button (optional) */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .timeline {
    padding-left: 0;
  }
  .timeline::before {
    left: 0;
  }
  .timeline-year {
    flex: 0 0 80px;
    text-align: left;
  }
  .timeline-content {
    border-left: none;
    border-top: 4px solid var(--secondary-color);
  }
  .form-row {
    flex-direction: column;
  }
}

/* Text padding improvements for better mobile readability */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 1rem;
  }

  .hero p {
    padding: 0 0.5rem;
    max-width: 100%;
  }

  .section p {
    padding: 0 1rem;
  }

  .project-info,
  .timeline-content,
  .team-card,
  .contact-form {
    padding: 1rem;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 1.25rem;
  }

  .section p {
    padding: 0 1rem;
    text-align: center;
  }

  .project-info,
  .timeline-content,
  .team-card,
  .contact-form {
    padding: 0.85rem;
  }

  .container {
    padding: 0 10px;
  }
}

/* Testimonials Section */
#testimonials {
  background: var(--surface-color);
  padding: 4rem 0;
}

#testimonials h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

#testimonials > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

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

.testimonial-card {
  background: var(--background-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Legal Pages Styles */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-content h1 {
  color: var(--primary-color);
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 0.5rem;
  text-align: center;
}

.legal-content .last-updated {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

.legal-section h3 {
  color: var(--text-color);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem 0;
}

.legal-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Footer Links */
.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-links .separator {
  color: var(--text-light);
  margin: 0 0.5rem;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  position: relative;
}

.testimonial-content p::before {
  content: '"';
  font-size: 3rem;
  color: var(--secondary-color);
  position: absolute;
  top: -10px;
  left: -20px;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-info h4 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
}

.author-info p {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--primary-color);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

/* Carousel Progress Bar */
.carousel-progress {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--secondary-color);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}