/* ============================================
   MODERN LIGHT THEME - PROFESSIONAL CONSULTANCY
   ============================================ */

/* CSS Variables - Professional Blue Theme */
:root {
  /* Brand Colors - Professional Blue Tones */
  --primary-blue: #2563eb;
  --primary-blue-dark: #1e40af;
  --primary-blue-light: #3b82f6;
  --primary-blue-lighter: #60a5fa;
  --primary-blue-lightest: #dbeafe;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Accent & Status Colors */
  --accent: #2563eb;
  --accent-hover: #1e40af;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Borders & Dividers */
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --divider: #f1f5f9;
  
  /* Shadows - Soft & Modern */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px 0 rgba(0, 0, 0, 0.12);
  --shadow-blue: 0 8px 24px 0 rgba(37, 99, 235, 0.15);
  --shadow-blue-lg: 0 12px 32px 0 rgba(37, 99, 235, 0.2);
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
  
  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER SPACER - Prevents layout shift
   ============================================ */

.header-spacer {
  height: 0;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: block;
}

/* ============================================
   HEADER - STICKY NAVIGATION
   ============================================ */

/* ============================================
   SMART NAVIGATION HEADER
   ============================================ */

.site-header.minimal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: relative; /* Normal position initially */
  top: 0;
  z-index: 1000;
  padding: 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: none;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, height;
  height: 80px; /* Full height */
}

/* Sticky state - becomes fixed after hero section */
.site-header.minimal.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(0); /* Fully visible when sticky */
}

/* Nav shrink state - reduced height when scrolling down */
.site-header.minimal.is-sticky.nav-shrink {
  height: 60px; /* Reduced height */
  transform: translateY(-10px); /* Subtle upward translation */
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0; /* Full padding */
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

/* Reduced padding when nav is shrunk */
.site-header.minimal.nav-shrink .header-inner {
  padding: 10px 0; /* Reduced padding */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smaller logo when nav is shrunk */
.site-header.minimal.nav-shrink .logo-img {
  height: 40px;
  max-width: 160px;
}

.logo:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  position: relative;
}

/* Slightly smaller nav items when nav is shrunk */
.site-header.minimal.nav-shrink .main-nav a {
  padding: 6px 12px;
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--primary-blue);
  background: var(--primary-blue-lightest);
}

.btn-cta {
  background: var(--primary-blue);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-blue);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease-in-out;
  display: inline-flex;
  align-items: center;
}

/* Slightly smaller CTA button when nav is shrunk */
.site-header.minimal.nav-shrink .btn-cta {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-cta:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-lg);
}

.hamburger {
  display: none;
  background: var(--primary-blue-lightest);
  border: 1px solid var(--border-color);
  color: var(--primary-blue);
  font-size: 22px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hamburger:hover {
  background: var(--primary-blue-lighter);
  border-color: var(--primary-blue);
  transform: scale(1.05);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  padding: 120px 0 100px;
  min-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  opacity: 0.4;
}

/* Fallback for browsers that don't support video or if video fails to load */
@supports not (object-fit: cover) {
  .hero-video {
    display: none;
  }
}

#particles {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.05), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.03), transparent 50%),
              rgba(255, 255, 255, 0.7);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--text-primary);
  letter-spacing: -1px;
}

/* Hero title uses reveal-up animation class */
.hero-title.reveal-up {
  opacity: 0;
  transform: translateY(30px);
}

.hero-sub {
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 700px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0;
  justify-content: center;
}

.clients {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.clients::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--border-color);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary);
}

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

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

.btn.primary {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn.primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-lg);
}

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

.btn.outline:hover {
  background: var(--primary-blue-lightest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.section h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.section h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 20px;
  font-size: 16px;
}

/* ============================================
   ABOUT SECTION - Redesigned 2025
   ============================================ */

/* Two-column layout wrapper: Left (text) + Right (cards) */
.about-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
  align-items: start;
}

/* Left Side: Text Content */
.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible .about-text {
  opacity: 1;
  transform: translateY(0);
}

.about-text p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 20px;
  max-width: 100%;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Right Side: Vision & Mission Cards Container */
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Modern Card Design */
.about-card {
  background: var(--bg-primary);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(20px);
}

/* Fade-in animation on scroll */
.about-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle accent line on hover */
.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth hover effect */
.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-blue-lighter);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

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

/* Card Typography */
.about-card h3 {
  color: var(--primary-blue);
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.3px;
}

.about-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

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

.service-card {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary-blue-lightest), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--primary-blue-lighter);
  box-shadow: var(--shadow-xl);
}

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

.service-card .icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2));
  transition: transform var(--transition-base);
}

.service-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
  color: var(--text-primary);
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   INDUSTRIES SECTION
   ============================================ */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.industry-item {
  background: var(--bg-primary);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  text-align: center;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.industry-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue-lightest), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.industry-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue-lighter);
  box-shadow: var(--shadow-md);
  color: var(--primary-blue);
}

.industry-item:hover::before {
  opacity: 1;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

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

.pf {
  background: var(--bg-primary);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-slow);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.pf::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
  transform: scaleX(0);
  transition: transform var(--transition-slow);
}

.pf:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue-lighter);
}

.pf:hover::before {
  transform: scaleX(1);
}

.pf img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  margin-bottom: 20px;
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-md);
}

.pf:hover img {
  transform: scale(1.05);
}

.pf h4 {
  color: var(--text-primary);
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.pf p {
  color: var(--text-secondary);
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
}

.btn-view-detail {
  width: 100%;
  padding: 12px 24px;
  background: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
  margin-top: auto;
}

.btn-view-detail:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.test-card {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-blue);
  position: relative;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.test-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 64px;
  color: var(--primary-blue);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-width: 6px;
}

.test-card blockquote {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 16px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.test-card cite {
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  display: block;
  margin-top: 12px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

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

.contact-left h2 {
  margin-bottom: 24px;
}

.contact-left p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 17px;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.contact-info li {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info li::before {
  content: '→';
  color: var(--primary-blue);
  font-weight: bold;
}

.contact-info a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.contact-info a:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.socials a {
  color: var(--primary-blue);
  text-decoration: none;
  padding: 12px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-base);
  background: var(--bg-primary);
}

.socials a:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.contact-form {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 15px;
  transition: all var(--transition-base);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px var(--primary-blue-lightest);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown),
.contact-form input.error,
.contact-form textarea.error {
  border-color: var(--error);
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
  border-color: var(--success);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light);
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: none;
  transition: all var(--transition-base);
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  display: block;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
  display: block;
}

.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: inline;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--bg-secondary);
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-color);
  margin-top: 100px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.brand-ft {
  max-width: 500px;
  flex: 1;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.footer-logo-link:hover {
  transform: translateY(-4px);
}

.footer-logo-link:active {
  transform: translateY(-2px);
}

.footer-logo-img {
  height: 160px;
  width: auto;
  max-width: 500px;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition-base);
}

.footer-logo-link:hover .footer-logo-img {
  opacity: 0.9;
}

.brand-ft .muted {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.separator {
  color: var(--text-muted);
  opacity: 0.3;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ============================================
   GO TO TOP BUTTON
   ============================================ */

.go-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  transform: translateY(20px);
}

.go-to-top:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue-lg);
}

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

.go-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   MODERN SCROLL-BASED ANIMATIONS
   Premium, subtle, professional animations
   ============================================ */

/* Animation Timing Variables */
:root {
  --anim-duration-fast: 0.5s;
  --anim-duration-base: 0.7s;
  --anim-duration-slow: 0.9s;
  --anim-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --anim-easing-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --anim-stagger-delay: 0.08s;
}

/* ============================================
   BASE REVEAL CLASSES
   ============================================ */

/* Standard reveal: fade + slide up (20-30px) */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity var(--anim-duration-base) var(--anim-easing),
              transform var(--anim-duration-base) var(--anim-easing);
  will-change: transform, opacity;
}

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

/* Reveal with more upward movement */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--anim-duration-slow) var(--anim-easing),
              transform var(--anim-duration-slow) var(--anim-easing);
  will-change: transform, opacity;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade only (for paragraphs and soft elements) */
.reveal-fade {
  opacity: 0;
  transition: opacity var(--anim-duration-slow) var(--anim-easing-soft);
  will-change: opacity;
}

.reveal-fade.visible {
  opacity: 1;
}

/* ============================================
   SECTION ENTRY ANIMATIONS
   Each section fades in and slides up when entering viewport
   ============================================ */

.section {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity var(--anim-duration-base) var(--anim-easing),
              transform var(--anim-duration-base) var(--anim-easing);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   STAGGERED CHILDREN ANIMATIONS
   Cards animate one-by-one with small delay
   ============================================ */

/* Stagger container - triggers staggered animation of children */
.reveal-stagger {
  opacity: 0;
}

.reveal-stagger.visible {
  opacity: 1;
}

/* Staggered children - service cards, portfolio items, testimonials, etc. */
.reveal-stagger .service-card,
.reveal-stagger .industry-item,
.reveal-stagger .pf,
.reveal-stagger .test-card,
.reveal-stagger .about-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--anim-duration-base) var(--anim-easing),
              transform var(--anim-duration-base) var(--anim-easing);
}

/* When stagger container is visible, animate children with delay */
.reveal-stagger.visible .service-card,
.reveal-stagger.visible .industry-item,
.reveal-stagger.visible .pf,
.reveal-stagger.visible .test-card,
.reveal-stagger.visible .about-card {
  opacity: 1;
  transform: translateY(0);
}

/* Individual stagger delays applied via JavaScript */
.reveal-stagger .service-card:nth-child(1),
.reveal-stagger .industry-item:nth-child(1),
.reveal-stagger .pf:nth-child(1),
.reveal-stagger .test-card:nth-child(1),
.reveal-stagger .about-card:nth-child(1) {
  transition-delay: calc(var(--anim-stagger-delay) * 1);
}

.reveal-stagger .service-card:nth-child(2),
.reveal-stagger .industry-item:nth-child(2),
.reveal-stagger .pf:nth-child(2),
.reveal-stagger .test-card:nth-child(2),
.reveal-stagger .about-card:nth-child(2) {
  transition-delay: calc(var(--anim-stagger-delay) * 2);
}

.reveal-stagger .service-card:nth-child(3),
.reveal-stagger .industry-item:nth-child(3),
.reveal-stagger .pf:nth-child(3),
.reveal-stagger .test-card:nth-child(3),
.reveal-stagger .about-card:nth-child(3) {
  transition-delay: calc(var(--anim-stagger-delay) * 3);
}

.reveal-stagger .service-card:nth-child(4),
.reveal-stagger .industry-item:nth-child(4),
.reveal-stagger .pf:nth-child(4),
.reveal-stagger .test-card:nth-child(4),
.reveal-stagger .about-card:nth-child(4) {
  transition-delay: calc(var(--anim-stagger-delay) * 4);
}

.reveal-stagger .service-card:nth-child(5),
.reveal-stagger .industry-item:nth-child(5),
.reveal-stagger .pf:nth-child(5),
.reveal-stagger .test-card:nth-child(5),
.reveal-stagger .about-card:nth-child(5) {
  transition-delay: calc(var(--anim-stagger-delay) * 5);
}

.reveal-stagger .service-card:nth-child(6),
.reveal-stagger .industry-item:nth-child(6),
.reveal-stagger .pf:nth-child(6),
.reveal-stagger .test-card:nth-child(6),
.reveal-stagger .about-card:nth-child(6) {
  transition-delay: calc(var(--anim-stagger-delay) * 6);
}

/* ============================================
   IMAGE ANIMATIONS
   Fade in + subtle scale-up (0.96 → 1)
   ============================================ */

.reveal-image,
.reveal img,
.pf img,
.service-card img {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity var(--anim-duration-base) var(--anim-easing),
              transform var(--anim-duration-base) var(--anim-easing);
  will-change: transform, opacity;
}

.reveal-image.visible,
.reveal.visible img,
.pf.visible img,
.service-card.visible img {
  opacity: 1;
  transform: scale(1);
}

/* Modal images should always be visible - not part of scroll animation */
.portfolio-modal-image img {
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: none !important;
}

/* ============================================
   TEXT ANIMATIONS
   Headings: fade + slide up
   Paragraphs: fade only (slower, softer)
   ============================================ */

/* Heading animations */
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--anim-duration-base) var(--anim-easing),
              transform var(--anim-duration-base) var(--anim-easing);
}

.reveal.visible h2,
.reveal.visible h3,
.reveal.visible h4,
.reveal.visible h5,
.reveal.visible h6 {
  opacity: 1;
  transform: translateY(0);
}

/* Paragraph animations - fade only, slower */
.reveal p {
  opacity: 0;
  transition: opacity var(--anim-duration-slow) var(--anim-easing-soft);
}

.reveal.visible p {
  opacity: 1;
}

/* Staggered paragraph animation within sections */
.reveal p:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal p:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal p:nth-child(3) {
  transition-delay: 0.3s;
}

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

/* Button hover enhancements */
.btn {
  transition: transform var(--transition-base) var(--anim-easing),
              box-shadow var(--transition-base) var(--anim-easing);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn.primary:hover {
  box-shadow: var(--shadow-blue-lg);
}

/* Card hover enhancements */
.service-card,
.industry-item,
.pf,
.test-card,
.about-card {
  transition: transform var(--transition-base) var(--anim-easing),
              box-shadow var(--transition-base) var(--anim-easing),
              border-color var(--transition-base) var(--anim-easing);
}

.service-card:hover,
.industry-item:hover,
.pf:hover,
.test-card:hover,
.about-card:hover {
  transform: translateY(-4px);
}

/* Footer elements */
.site-footer .footer-top,
.site-footer .footer-bottom {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity var(--anim-duration-base) var(--anim-easing),
              transform var(--anim-duration-base) var(--anim-easing);
}

.site-footer.visible .footer-top,
.site-footer.visible .footer-bottom {
  opacity: 1;
  transform: translateY(0);
}

/* Small reveal variant */
.reveal.small {
  font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

@media (max-width: 1024px) {
  .hero-content {
    max-width: 100%;
  }
  
  .hero-sub {
    max-width: 100%;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid,
  .portfolio-grid,
  .test-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  /* About section: Stack layout on tablet */
  .about-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 80px 0 60px;
    min-height: auto;
  }
  
  /* Reduce video opacity on mobile for better performance and readability */
  .hero-video {
    opacity: 0.3;
  }
  
  .hero-overlay {
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.05), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.03), transparent 50%),
                rgba(255, 255, 255, 0.8);
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-sub {
    font-size: 18px;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hamburger {
    display: block;
  }
  
  .header-left {
    gap: 16px;
  }
  
  .main-nav {
    display: none;
    position: fixed;
    left: 20px;
    top: 60px;
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    min-width: 200px;
    border: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    transition: top 0.3s ease-in-out;
  }
  
  /* Adjust mobile menu position when header is sticky and shrunk */
  .site-header.minimal.is-sticky.nav-shrink ~ * .main-nav {
    top: 48px;
  }
  
  .main-nav a {
    display: block;
    margin: 8px 0;
    text-align: left;
    width: 100%;
  }
  
  .btn-cta {
    display: none;
  }
  
  .header-right .hamburger {
    display: block;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .section h2 {
    font-size: 32px;
  }
  
  .services-grid,
  .portfolio-grid,
  .test-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }
  
  /* About section: Mobile optimizations */
  .about-content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }
  
  .about-text p {
    font-size: 16px;
    line-height: 1.7;
  }
  
  .about-card {
    padding: 28px;
  }
  
  .about-card h3 {
    font-size: 18px;
  }
  
  .about-card p {
    font-size: 14px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .logo-img {
    height: 42px;
    max-width: 160px;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .footer-logo-wrapper {
    justify-content: flex-start;
    width: 100%;
  }
  
  .footer-logo-img {
    height: 130px;
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .section h2 {
    font-size: 24px;
  }
  
  .service-card,
  .about-card,
  .test-card {
    padding: 24px;
  }
  
  .contact-form {
    padding: 24px;
  }
  
  .go-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .go-to-top svg {
    width: 18px;
    height: 18px;
  }
  
  .logo-img {
    height: 38px;
    max-width: 140px;
  }
  
  .footer-logo-img {
    height: 100px;
    max-width: 320px;
  }
}

/* ============================================
   PORTFOLIO MODAL / POPUP
   ============================================ */

.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  padding: 20px;
}

.portfolio-modal.active {
  opacity: 1;
  visibility: visible;
}

.portfolio-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.portfolio-modal-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  z-index: 1;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-slow);
}

.portfolio-modal.active .portfolio-modal-content {
  transform: scale(1) translateY(0);
}

.portfolio-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
  font-weight: 300;
}

.portfolio-modal-close:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  transform: rotate(90deg);
}

.portfolio-modal-body {
  padding: 40px;
}

.portfolio-modal-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.portfolio-modal-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.portfolio-website-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition-base);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--primary-blue-lightest);
}

.portfolio-website-link:hover {
  background: var(--primary-blue);
  color: #fff;
  transform: translateX(4px);
}

.portfolio-website-link span {
  transition: transform var(--transition-base);
}

.portfolio-website-link:hover span {
  transform: translateX(4px);
}

.portfolio-modal-image {
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.portfolio-modal-image img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1 !important;
  transform: scale(1) !important;
  /* Modal images should be visible immediately, no animation delay */
}

.portfolio-modal-section {
  margin-bottom: 32px;
}

.portfolio-modal-section:last-child {
  margin-bottom: 0;
}

.portfolio-modal-section h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-blue-lightest);
}

.portfolio-modal-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
  margin: 0;
}

.portfolio-features-list,
.portfolio-tech-list,
.portfolio-impact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portfolio-features-list li,
.portfolio-tech-list li,
.portfolio-impact-list li {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.portfolio-features-list li::before,
.portfolio-tech-list li::before,
.portfolio-impact-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 16px;
}

.portfolio-features-list li:last-child,
.portfolio-tech-list li:last-child,
.portfolio-impact-list li:last-child {
  margin-bottom: 0;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
  .portfolio-modal-content {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-md);
  }

  .portfolio-modal-body {
    padding: 24px;
  }

  .portfolio-modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .portfolio-modal-header h2 {
    font-size: 22px;
  }

  .portfolio-modal-section h3 {
    font-size: 18px;
  }

  .portfolio-modal-section p,
  .portfolio-features-list li,
  .portfolio-tech-list li,
  .portfolio-impact-list li {
    font-size: 14px;
  }

  /* Ensure modal image is visible on mobile */
  .portfolio-modal-image {
    margin-bottom: 24px;
  }

  .portfolio-modal-image img {
    opacity: 1 !important;
    transform: scale(1) !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .portfolio-modal {
    padding: 10px;
  }

  .portfolio-modal-body {
    padding: 20px;
  }

  .portfolio-modal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .portfolio-modal-section {
    margin-bottom: 24px;
  }
}
