/* Theme toggle icon: greyscale treatment */
.theme-toggle .theme-toggle-icon {
  display: inline-block;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 200ms ease;
}
.theme-toggle:hover .theme-toggle-icon,
.theme-toggle:focus-visible .theme-toggle-icon {
  filter: grayscale(60%) contrast(1.1);
}
:root[color-mode="dark"] .theme-toggle .theme-toggle-icon {
  filter: grayscale(100%) contrast(1.2) brightness(1.1);
}

/* Optional utility for greyscale logos if needed elsewhere */
.logo-greyscale { filter: grayscale(100%) contrast(1.05); }
.logo-greyscale:hover { filter: grayscale(60%) contrast(1.08); }
/* Accessible focus-visible styles */
/* Remove default outline when focus is not keyboard-induced */
:focus:not(:focus-visible) { outline: none; }

/* Base focus ring for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-menu a:focus-visible,
.nav-icon-btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 6px;
}

/* High-contrast focus ring on dark mode */
:root[color-mode="dark"] a:focus-visible,
:root[color-mode="dark"] button:focus-visible,
:root[color-mode="dark"] input:focus-visible,
:root[color-mode="dark"] select:focus-visible,
:root[color-mode="dark"] textarea:focus-visible,
:root[color-mode="dark"] .nav-menu a:focus-visible,
:root[color-mode="dark"] .nav-icon-btn:focus-visible {
  outline-color: var(--accent-light);
}

@media (prefers-reduced-motion: reduce) {
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  .nav-menu a:focus-visible,
  .nav-icon-btn:focus-visible {
    transition: none !important;
  }
}

/* UCFER - Your Trusted Partner for Accounting and Tax Needs - Main Styles */

/* Universal Logo and Header Settings - Apply to All Pages */
.logo-link img,
.nav-logo img,
.ucfer-logo-image {
  height: 140px !important;
  width: auto !important;
  max-width: none !important;
}

/* Layout container and typography rhythm - Service NSW style */
.container { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 480px) { .container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1200px) { .container { max-width: 1120px; padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1440px) { .container { max-width: 1200px; padding-left: 40px; padding-right: 40px; } }
.container--wide { max-width: 1360px; }
h1, .h1 { line-height: 1.2; margin: 0 0 var(--space-lg); letter-spacing: -0.01em; }
h2, .h2 { line-height: 1.25; margin: 0 0 var(--space-md); letter-spacing: -0.01em; }
h3, .h3 { line-height: 1.3; margin: 0 0 var(--space-sm); }
h4, .h4 { line-height: 1.35; margin: 0 0 var(--space-sm); }
p { margin: 0 0 var(--space-md); }
small, .text-sm { font-size: var(--font-size-sm); }

/* Button normalization */
.btn, button, .nav-icon-btn { line-height: 1; border-radius: var(--radius-sm); }
.btn { padding: 0.75rem 1rem; font-weight: 600; }
.btn.btn-primary { background: var(--accent-color); color: #fff; border: 1px solid var(--accent-color); }
.btn.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn:focus-visible { outline: 3px solid rgba(30, 58, 138, 0.35); outline-offset: 2px; }

/* Links contrast and states */
a { color: var(--accent-color); text-decoration: none; }
.logo-link { text-decoration: none !important; }
.logo-link:hover { text-decoration: none !important; }
a:hover:not(.logo-link) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
:root[color-mode="dark"] a { color: var(--accent-light); }
:root[color-mode="dark"] a:hover:not(.logo-link) { color: #8ab4ff; }
:root[color-mode="dark"] .logo-link:hover { text-decoration: none !important; }

.header.scrolled .logo-link img,
.header.scrolled .nav-logo img,
.header.scrolled .ucfer-logo-image {
  height: 100px !important;
}

@media (max-width: 768px) {
  .logo-link img,
  .nav-logo img,
  .ucfer-logo-image {
    height: 90px !important;
  }
}

/* Remove gaps between header and content - All Pages Flush */
.hero-margin-top {
  margin-top: 150px !important;
}

/* Override inline styles for flush connection */
.team-hero,
.portal-hero,
.checkout-hero,
.case-hero,
.contact-hero,
.industry-hero,
.service-hero {
  padding: var(--space-md) 0 var(--space-md) !important;
  margin-top: 0 !important;
}

/* Nav icon buttons standardized */
.nav-icon-btn { padding: 0.5rem; border-radius: 8px; transition: background-color 180ms ease, color 180ms ease; }
.nav-icon-btn:hover { background: rgba(0,0,0,0.06); }
:root[color-mode="dark"] .nav-icon-btn:hover { background: rgba(255,255,255,0.08); }

/* Modern CSS Reset with Custom Properties - Professional Standards */
:root {
  /* ============================================
     DESIGN TOKENS - AI-Optimized System
     Based on Adobe Spectrum Design System
     ============================================ */
  
  /* Color System - Adobe Inspired Palette */
  --primary-color: #000000;
  --secondary-color: #666666;
  --accent-color: #1e3a8a;
  --accent-light: #3b82f6;
  --accent-dark: #1e40af;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --orange: #f97316;
  --teal: #14b8a6;
  --text-color: #1a1a1a;
  --text-color-muted: #525252;
  --light-gray: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --overlay-dark: rgba(0, 0, 0, 0.75);
  --overlay-medium: rgba(0, 0, 0, 0.5);
  --overlay-light: rgba(0, 0, 0, 0.25);
  
  /* Spacing System - 8px Base Grid (AI-Recommended) */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 5rem;      /* 80px */
  
  /* Additional Spacing Tokens for Common Padding Patterns */
  --padding-xs: 0.5rem;   /* 8px */
  --padding-sm: 1rem;     /* 16px */
  --padding-md: 1.5rem;  /* 24px */
  --padding-lg: 2rem;    /* 32px */
  --padding-xl: 2.5rem;  /* 40px */
  --padding-2xl: 3rem;   /* 48px */
  
  /* Section Padding Tokens */
  --section-padding-compact: 1.875rem;  /* 30px */
  --section-padding-standard: 2.1875rem; /* 35px */
  --section-padding-medium: 2.8125rem;   /* 45px */
  --section-padding-large: 3.125rem;     /* 50px */
  --section-padding-xl: 3.75rem;         /* 60px */

  /* Gradients - Adobe Colors */
  --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  --gradient-teal: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --gradient-orange: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-pink: linear-gradient(135deg, #ec4899 0%, #db2777 100%);

  /* Shadows - Enhanced for depth and refinement */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1), 0 16px 48px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.12), 0 24px 64px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12), 0 20px 56px rgba(0, 0, 0, 0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Layout System - Responsive & AI-Optimized */
  --zoom-factor: 1;
  --viewport-width: 100vw;
  --header-height: 150px;
  --header-height-scrolled: 110px;
  --logo-width: 400px;
  --menu-gap: 0.1rem;
  --container-padding: var(--space-xl);
  --side-spacing: var(--space-xl);
  --section-padding: var(--space-2xl);
  --compact-spacing: var(--space-lg);
  
  /* Border Radius System - Enhanced for elegance */
  --radius-xs: 0.125rem;  /* 2px */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.625rem;  /* 10px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-2xl: 2rem;     /* 32px */
  --radius-full: 50%;
  
  /* Border Styles */
  --border-width-thin: 1px;
  --border-width-standard: 1.5px;
  --border-width-thick: 2px;
  --border-color-light: rgba(0, 0, 0, 0.05);
  --border-color-standard: rgba(0, 0, 0, 0.1);
  --border-color-emphasis: rgba(30, 58, 138, 0.2);
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  
  /* Z-Index Layer System */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-tooltip: 500;
  
  /* Animation & Transition System */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elegant: cubic-bezier(0.23, 1, 0.32, 1);
  --transition-snappy: cubic-bezier(0.4, 0, 0.6, 1);
}

/* Dark Mode Theme Tokens (Ryan Feigenbaum approach) */
:root[color-mode="dark"] {
  /* Light gray dark-mode palette for better UX */
  --text-color: #e8eaed;
  --text-color-muted: #b0b7c3;
  --white: #16181d; /* surface background: soft charcoal */
  --light-gray: #1d2127;
  --border-color: #2a2f37;
  --border-color-light: rgba(255, 255, 255, 0.08);
  --border-color-standard: rgba(255, 255, 255, 0.14);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-medium: rgba(0, 0, 0, 0.5);
  --overlay-light: rgba(255, 255, 255, 0.1);
}
:root[color-mode="dark"] .btn.btn-primary { background: var(--accent-light); color: #0b0f19; border-color: var(--accent-light); }
:root[color-mode="dark"] .btn.btn-primary:hover { background: #8ab4ff; border-color: #8ab4ff; color: #0b0f19; }

/* Ensure elevated surfaces are readable in dark mode */
:root[color-mode="dark"] .card,
:root[color-mode="dark"] .industry-card,
:root[color-mode="dark"] .service-card,
:root[color-mode="dark"] .article-card-contained,
:root[color-mode="dark"] .creative-card {
  background: var(--surface-1);
  border-color: var(--border-color);
  box-shadow: var(--elevation-1);
}

/* Hero titles/subtitles readability */
:root[color-mode="dark"] .hero-title { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
:root[color-mode="dark"] .hero-subtitle { color: #e5e7eb; }


/* Respect user preference when no explicit theme is set */
@media (prefers-color-scheme: dark) {
  :root:not([color-mode]) {
    --text-color: #e8eaed;
    --text-color-muted: #b0b7c3;
    --white: #16181d;
    --light-gray: #1d2127;
    --border-color: #2a2f37;
    --border-color-light: rgba(255, 255, 255, 0.08);
    --border-color-standard: rgba(255, 255, 255, 0.14);
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-medium: rgba(0, 0, 0, 0.5);
    --overlay-light: rgba(255, 255, 255, 0.1);
  }
}

/* Dark mode surface adjustments (non-breaking, leverage existing tokens) */
:root[color-mode="dark"] body {
  background: var(--white);
  color: var(--text-color);
}

:root[color-mode="dark"] .section-bg-white {
  background: #0f172a;
}

:root[color-mode="dark"] .section-bg-light {
  background: #0b1220;
}

:root[color-mode="dark"] .navbar .nav-menu a {
  color: var(--text-color);
}

/* Softer hover backgrounds and underline in light dark mode */
:root[color-mode="dark"] .nav-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-color);
  border-bottom-color: var(--accent-light);
  box-shadow: none;
  text-shadow: none;
}

:root[color-mode="dark"] .nav-menu a.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

:root[color-mode="dark"] .creative-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-color);
}

:root[color-mode="dark"] .article-card-contained {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-color);
}

:root[color-mode="dark"] .footer {
  background: #0b0f19;
  color: var(--text-color);
}

/* Dim large visuals slightly in dark mode for readability */
:root[color-mode="dark"] .hero,
:root[color-mode="dark"] .service-hero,
:root[color-mode="dark"] .service-hero-image img,
:root[color-mode="dark"] .professional-img,
:root[color-mode="dark"] .professional-img-article,
:root[color-mode="dark"] .professional-img-discover {
  filter: brightness(0.92) contrast(1.05) saturate(1.02);
}

/* Stronger hero overlay in dark mode for text contrast */
:root[color-mode="dark"] .hero::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* Theme toggle basic styles (minimal, inherits existing button system) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: transform 0.2s var(--transition-snappy), background 0.2s var(--transition-base);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.04);
}

:root[color-mode="dark"] .theme-toggle {
  border-color: var(--border-color);
}

:root[color-mode="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Modern CSS Reset - Industry Standard */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth Scrolling for Better UX */
html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  font-family: "Archivo", "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga', 'kern';
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  letter-spacing: -0.011em;
}

/* Category grid inspired by Service NSW structure */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.category-card { background: var(--surface-0, #fff); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; box-shadow: var(--elevation-1, var(--shadow)); transition: box-shadow 180ms ease, transform 180ms ease; }
.category-card:hover { box-shadow: var(--elevation-2, var(--shadow-md)); transform: translateY(-2px); }
.category-card h3 { margin: 0 0 8px; font-size: 1.125rem; color: var(--accent-color); }
.category-card p { margin: 0 0 12px; color: var(--secondary-color); font-size: 0.95rem; }
.category-card .category-actions { margin-top: 8px; }
.category-card .category-actions a { font-weight: 600; }
:root[color-mode="dark"] .category-card { background: var(--surface-1, #111624); border-color: var(--border-color); }

#page.site {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

/* Remove default button and input styles - Enhanced */
button,
input,
select,
textarea {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: inherit;
  line-height: 1.5;
  color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

button {
  cursor: pointer;
  border: none;
  font-family: "Source Sans 3", sans-serif;
}

/* Icon-only nav buttons - flat appearance */
.nav-icon-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.25rem;
  color: var(--text-color);
}
.nav-icon-btn:hover {
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}
.nav-icon-btn:focus {
  outline: none;
  box-shadow: none;
}


  /* Responsive body classes for dynamic adaptation */
body.mobile {
  font-size: 95%;
}

body.tablet {
  font-size: 98%;
}

body.desktop {
  font-size: 100%;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Global typography — self-hosted Archivo / Source Sans 3 (see css/ucfer-wb-clone.css) */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Archivo", "Source Sans 3", 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.25;
  margin: 0 0 1rem 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p,
li,
span,
div {
  font-family: "Source Sans 3", 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.003em;
}

a {
  font-family: "Source Sans 3", 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  text-decoration: none;
  color: var(--accent-color);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

a:hover:not(.logo-link) {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

/* Adobe-style Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Header - Modern CSS Grid Layout with Performance Optimizations */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: 'navbar';
  min-width: 320px;
  box-sizing: border-box;
  will-change: height, transform;
}

.header.scrolled {
  height: var(--header-height-scrolled) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* Dark mode: keep header dark even when scrolled */
:root[color-mode="dark"] .header,
:root[color-mode="dark"] .header.scrolled {
  background: #0b0f19;
  border-bottom-color: var(--border-color);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([color-mode]) .header,
  :root:not([color-mode]) .header.scrolled {
    background: #0b0f19;
    border-bottom-color: var(--border-color);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
  animation: navGlow 4s ease-in-out infinite;
}
/* Improve visibility of the animated top bar in dark mode */
:root[color-mode="dark"] .header::before {
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0.8;
}
@media (prefers-color-scheme: dark) {
  :root:not([color-mode]) .header::before {
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    opacity: 0.8;
  }
}

@keyframes navGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.navbar {
  padding: 0;
  transition: padding 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
  flex: 1;
}

.header.scrolled .navbar {
  padding: 0; /* No padding - minimal */
}

/* Reduce vertical padding in header */
.nav-container {
  padding: 5px var(--side-spacing) !important;
}

.nav-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 5px var(--side-spacing);
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr auto;
  grid-template-areas: 'logo . menu';
  gap: 1rem;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

/* Allow absolute placement for actions at top-right */
.navbar .nav-container { position: relative; }

.nav-actions {
  position: absolute;
  top: 8px;
  right: var(--side-spacing);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: var(--z-sticky);
}

.theme-toggle {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.25rem;
  line-height: 1;
  cursor: pointer;
}
.theme-toggle .theme-toggle-icon {
  font-size: 1.05rem;
}
.theme-toggle:hover {
  background: transparent;
  transform: translateY(-1px);
}
.theme-toggle:focus {
  outline: none;
  box-shadow: none;
}

/* Shopping cart icon in nav-actions */
.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-color, #0ea5e9);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cart-count-badge[style*="display: none"] {
  display: none !important;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  grid-area: logo;
}

.header.scrolled .nav-logo {
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
  text-decoration: none !important;
}

.ucfer-logo-image {
  height: 140px;
  width: auto;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(1) contrast(1.1);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease,
    transform 0.3s ease;
}

.header.scrolled .ucfer-logo-image {
  height: 100px;
}

.ucfer-logo-image:hover {
  filter: brightness(1.1) contrast(1.2);
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex-shrink: 0;
  grid-area: menu;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  display: flex;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-family: "Archivo", "Source Sans 3", 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: -0.005em;
  position: relative;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  padding-bottom: calc(0.75rem - 2px);
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.nav-menu a:hover {
  color: #2563eb;
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom-color: var(--accent-color);
  text-decoration: none;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.nav-menu a:active {
  transform: translateY(0);
}

.nav-menu a::before { content: none; }

/* Active menu item styling - no underline, only on hover */
.nav-menu a.active {
  color: var(--accent-color);
  font-weight: 700;
  border-bottom: 2px solid transparent;
  padding-bottom: calc(0.75rem - 2px);
  background: transparent;
  border-radius: 0;
}

.nav-menu a.active::before {
  width: 100%;
  background: var(--accent-color);
}

.nav-menu a.active:hover {
  color: var(--accent-color);
  transform: none;
  background: transparent;
  border-bottom-color: var(--accent-color);
  box-shadow: none;
  text-shadow: none;
}

/* Hero Section - Professional Banner with Real People */
.hero {
  background-image: url('../assets/images/bg-hero-desk.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: white;
  padding: var(--section-padding-standard) 0 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 150px;
}

/* Services hero tweaks to ensure proper spacing under fixed header and legibility */
.hero.services-hero {
  margin-top: var(--header-height);
  padding-top: calc(var(--section-padding-standard) * 0.6);
  padding-bottom: calc(var(--section-padding-standard) * 0.4);
  background-attachment: scroll; /* avoid jank on some mobile browsers */
}

.header.scrolled ~ .hero.services-hero,
.header.scrolled + .hero.services-hero {
  margin-top: var(--header-height-scrolled);
}

/* Services Sidebar: ensure hero offsets respect header shrink */
.service-hero.hero-margin-top { margin-top: var(--header-height); }
.header.scrolled + .services-wrapper .service-hero.hero-margin-top { margin-top: var(--header-height-scrolled); }

/* Subtle overlay for text readability */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  animation: pulse 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Hero with Video Background */
.hero-with-video {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/images/bg-services-hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.4);
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero-background-video {
    display: none;
  }
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(30, 30, 30, 0.65) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 480px) { .hero-container { padding: 0 24px; } }
@media (min-width: 1200px) { .hero-container { padding: 0 32px; } }
@media (min-width: 1440px) { .hero-container { max-width: 1200px; padding: 0 40px; } }

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: "Archivo", "Source Sans 3", 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  letter-spacing: -0.035em;
  position: relative;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.65), 0 2px 18px rgba(0, 0, 0, 0.45);
  animation: titleGlow 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title {
    animation: none;
  }
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), 0 2px 15px rgba(0, 0, 0, 0.4);
  }
  50% {
    text-shadow: 0 4px 35px rgba(0, 0, 0, 0.8), 0 2px 20px rgba(0, 0, 0, 0.6);
  }
}

/* Removed underline from hero-title */

.hero-subtitle {
  font-family: "Archivo", "Source Sans 3", 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-family: "Archivo", "Source Sans 3", 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 1.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Articles Section - Compact */
.articles {
  padding: var(--section-padding-compact) 0;
  background: var(--light-gray);
}

.section {
  padding: var(--section-padding-compact) 0;
}

.section-title-centered,
.section-subtitle-centered {
  margin-bottom: 20px;
}

.section-title {
  font-family: "Archivo", "Source Sans 3", 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-family: "Archivo", "Source Sans 3", 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Compact Articles Container */
.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.article-card-contained {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.article-card-contained:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.2);
}

.article-card-contained:active {
  transform: translateY(-2px) scale(1.002);
}

.article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card-contained .article-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.article-card-contained .article-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-contained:hover .article-image img {
  transform: scale(1.08);
}

.article-card-contained .article-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card-contained:hover .article-image::after {
  opacity: 1;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.read-more:hover {
  color: var(--accent-light);
  transform: translateX(4px);
}

.article-card-contained .article-content {
  padding: var(--padding-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-contained .article-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--primary-color);
  font-weight: 600;
}

.article-card-contained .article-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
  color: var(--text-color);
}

.articles-cta {
  text-align: center;
  margin-top: 2rem;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.15);
}

.article-image {
  height: 200px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-image img {
  transform: scale(1.12);
}

.article-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.article-card:hover .article-image::before {
  opacity: 1;
}

.placeholder-image {
  color: var(--secondary-color);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--padding-sm);
}

.article-content {
  padding: var(--padding-md);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.4;
}

.article-content p {
  color: var(--secondary-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
}

.article-date {
  color: var(--secondary-color);
}

.article-tag {
  color: var(--accent-color);
  font-weight: 500;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.btn {
  padding: var(--padding-xs) var(--padding-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-number {
  padding: var(--padding-xs) var(--padding-sm);
  border-radius: var(--radius-sm);
  color: var(--secondary-color);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-number.active {
  color: var(--primary-color);
  font-weight: 500;
}

.page-number:hover {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.page-dots {
  color: var(--secondary-color);
  padding: 0 8px;
}

/* Discover Section */
.discover {
  padding: var(--section-padding-standard) 0;
  background: var(--light-gray);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  border-radius: var(--radius-full);
  background-size: 200% 100%;
  animation: barShimmer 2.5s linear infinite;
}

@keyframes barShimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.section-subtitle {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.discover-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.discover-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.2);
  background: var(--white);
}

.discover-item .discover-image {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-item:hover .discover-image {
  transform: scale(1.05);
}

.discover-image {
  height: 150px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.discover-item h4 {
  padding: var(--padding-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  text-align: center;
}

/* BP&O Plus Section */
.plus-section {
  padding: var(--section-padding-standard) 0;
  background: var(--white);
  text-align: center;
}

.plus-content h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--primary-color);
  letter-spacing: -1px;
}

.plus-content p {
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.plus-content a {
  color: var(--accent-color);
  text-decoration: none;
}

.plus-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.feature {
  color: var(--text-color);
  font-size: 0.9rem;
}

.pricing-plans {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.plan {
  border: 1px solid var(--border-color);
  padding: var(--padding-lg);
  border-radius: var(--radius-lg);
  min-width: 200px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.plan p {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.plan-detail {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.plan-note {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin-top: 2rem;
}

/* Adobe Creative Suite Resources Section */
.adobe-resources {
  padding: 2.5rem 0;
  background: var(--white);
}

.adobe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.adobe-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
}

.adobe-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.adobe-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.adobe-item:hover::before {
  opacity: 0.05;
}

.adobe-image {
  height: 220px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.adobe-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.placeholder-image {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1;
  animation: fadeInUp 0.6s ease-out;
}

.adobe-item h4 {
  color: var(--primary-color);
  margin: 1rem 1rem 0.5rem 1rem;
  font-size: 1.2rem;
}

.adobe-item p {
  color: var(--secondary-color);
  margin: 0 1rem 1rem 1rem;
  line-height: 1.5;
}

.adobe-item .btn {
  margin: 0 1rem 1rem 1rem;
  display: inline-block;
}

/* Enhanced Adobe Express Add-ons Section */
.enhanced-addons-section {
  margin-top: 4rem;
  padding: 3rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
}

.enhanced-addons-section h3 {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.enhanced-addons-section p {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.enhanced-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.enhanced-addon-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.enhanced-addon-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(30, 58, 138, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.enhanced-addon-item:hover::before {
  left: 100%;
}

.enhanced-addon-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.addon-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.enhanced-addon-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.enhanced-addon-item p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Adobe Demo Section */
.adobe-demo-section {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 16px;
  color: white;
}

.adobe-demo-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.adobe-demo-section p {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.demo-output {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  min-height: 200px;
  color: var(--text-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.demo-output h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.demo-output p {
  color: var(--text-color);
  text-align: left;
  margin-bottom: 0.5rem;
}

.demo-output button {
  margin-top: 1rem;
}

/* Functional Tool Output Styles */
.tool-output {
  margin-top: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.qr-result,
.invoice-result,
.budget-result {
  text-align: center;
}

.qr-code-display {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.2rem;
  line-height: 1.2;
}

.qr-pattern {
  display: inline-block;
  background: white;
  padding: 10px;
  border-radius: 4px;
}

.invoice-preview,
.budget-preview {
  text-align: left;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #1e3a8a;
}

.invoice-header .logo {
  font-size: 2rem;
  font-weight: bold;
  color: #1e3a8a;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.invoice-table th,
.invoice-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.invoice-table th {
  background-color: #f8f9fa;
}

.invoice-totals {
  text-align: right;
  margin-top: 20px;
}

.invoice-totals .total {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1e3a8a;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.budget-table th,
.budget-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.budget-table th {
  background-color: #f8f9fa;
}

.budget-summary {
  background: #e8f4fd;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.budget-summary p {
  margin: 5px 0;
}

/* Podcast Section */
.podcast-section {
  padding: var(--section-padding-large) 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.podcast-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.podcast-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(30, 58, 138, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.podcast-item:hover::before {
  left: 100%;
}

.podcast-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.podcast-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.podcast-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.podcast-item p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Podcast Demo Section */
.podcast-demo-section {
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 16px;
  color: white;
}

.podcast-demo-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.podcast-demo-section p {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.podcast-demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.podcast-demo-output {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  min-height: 200px;
  color: var(--text-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.podcast-demo-output h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.podcast-demo-output p {
  color: var(--text-color);
  text-align: left;
  margin-bottom: 0.5rem;
}

.podcast-demo-output button {
  margin-top: 1rem;
}

/* Podcast Preview Styles */
.podcast-result,
.podcast-preview {
  text-align: left;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.podcast-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #1e3a8a;
}

.podcast-logo {
  font-size: 2rem;
  font-weight: bold;
  color: #1e3a8a;
}

.podcast-details h2 {
  color: #1e3a8a;
  margin-bottom: 10px;
}

.podcast-details p {
  margin: 5px 0;
  color: var(--text-color);
}

.podcast-description {
  margin-bottom: 20px;
}

.podcast-chapters ul {
  margin: 10px 0;
  padding-left: 20px;
}

.podcast-chapters li {
  margin: 8px 0;
  color: var(--text-color);
}

/* Adobe AI Web Inspector Section */
.web-inspector-section {
  padding: var(--section-padding-large) 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.inspector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.inspector-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.inspector-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(30, 58, 138, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.inspector-item:hover::before {
  left: 100%;
}

.inspector-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.inspector-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.inspector-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.inspector-item p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Inspector Demo Section */
.inspector-demo-section {
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 16px;
  color: white;
}

.inspector-demo-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.inspector-demo-section p {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.inspector-demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.inspector-demo-output {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  min-height: 200px;
  color: var(--text-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.inspector-demo-output h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.inspector-demo-output p {
  color: var(--text-color);
  text-align: left;
  margin-bottom: 0.5rem;
}

.inspector-demo-output button {
  margin-top: 1rem;
}

/* Analysis Results Styling */
.analysis-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.analysis-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.analysis-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.analysis-section p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.detailed-report {
  margin: 2rem 0;
}

.report-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  border-left: 4px solid var(--accent-color);
}

.report-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.report-section ul {
  margin: 0;
  padding-left: 1.5rem;
}

.report-section li {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.recommendations-section {
  margin-top: 2rem;
  padding: 2rem;
  background: #e8f4fd;
  border-radius: 12px;
}

.recommendations-section h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.recommendation-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommendation-item h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.recommendation-item ul {
  margin: 0;
  padding-left: 1.5rem;
}

.recommendation-item li {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Adobe PDF Documentation Library */
.documentation-library {
  padding: 30px 0 0 !important;
  background: var(--white);
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Force all last sections to have no bottom spacing */
section:last-of-type,
body > section:last-child,
main > section:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Specifically target the last section before footer */
.documentation-library + footer,
section + footer {
  margin-top: 0 !important;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.document-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.document-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.document-card:hover::before {
  opacity: 0.05;
}

.document-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.document-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.document-card p {
  color: var(--secondary-color);
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* PDF Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: var(--padding-lg);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 1200px;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  color: var(--text-color);
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  line-height: 1;
}

.close:hover {
  color: var(--accent-color);
  background: rgba(30, 58, 138, 0.1);
  transform: rotate(90deg) scale(1.1);
}

.close:active {
  transform: rotate(90deg) scale(0.95);
  background: rgba(30, 58, 138, 0.15);
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Logos Section */
.logos {
  padding: var(--section-padding-standard) 0;
  background: var(--light-gray);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.logo-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: var(--padding-md) var(--padding-sm);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  border-radius: var(--radius-md);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.6;
  letter-spacing: -0.003em;
  box-shadow: var(--shadow);
}

.logo-item a {
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--padding-xs);
  border: none;
  transition: none;
}

.logo-item a:hover {
  border: none;
  background: transparent;
}

.logo-item:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.logo-item:active {
  transform: translateY(-2px) scale(1.01);
}

.newsletter-signup {
  text-align: center;
  background: var(--white);
  padding: var(--padding-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.newsletter-signup h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: "Source Sans 3", sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Footer - Flush at bottom, centered container - Compact */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 1.5rem 0 0 !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  margin-top: 3rem;
}
.footer .container { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 480px) { .footer .container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1200px) { .footer .container { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1440px) { .footer .container { padding-left: 40px; padding-right: 40px; } }

/* Ensure no space after footer */
footer:after {
  content: none !important;
  display: none !important;
}


/* Make footer the absolute last visual element */
.footer,
footer {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 0.5rem;
  font-weight: 400;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.25rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.85;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  display: inline-block;
  padding: 0.15rem 0;
  position: relative;
}

.footer-section a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.footer-section a:hover::before {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 0.75rem !important;
  padding-bottom: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
  font-size: 0.85rem;
  margin-bottom: 0 !important;
}

.footer-disclaimer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-disclaimer p {
  font-size: 0.7rem;
  line-height: 1.6;
  opacity: 0.6;
  text-align: left;
  margin: 0;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links-flex {
  display: flex;
  gap: 20px;
  align-items: center;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.security-badge-icon {
  font-size: 1.2rem;
}

.security-badge-text {
  font-size: 0.85rem;
}

/* Ensure footer has no bottom spacing */
.footer,
footer {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    margin: 0;
    padding: 20px;
  }

  .header,
  .footer,
  .btn,
  .nav-menu,
  .modal,
  .hero-buttons {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  img {
    max-width: 100%;
    height: auto;
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
    color: black !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
    color: black !important;
  }

  section {
    page-break-inside: avoid;
  }

  .article-card {
    page-break-inside: avoid;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
  }
}

/* Responsive Design - Medium screens */
@media (max-width: 1200px) {
  :root {
    --side-spacing: 40px;
    --menu-gap: 0.5rem;
  }

  .nav-container {
    padding: 0 var(--side-spacing);
  }

  .nav-menu a {
    font-size: 0.85rem;
  }
}

/* Mobile devices - Hide menu, show hamburger */
@media (max-width: 768px) {
  :root {
    --side-spacing: 20px;
    --menu-gap: 0.3rem;
  }

  .nav-container {
    padding: 0 var(--side-spacing);
    gap: 0.5rem;
  }

  .nav-menu {
    display: none;
  }

  .ucfer-logo-image {
    height: 90px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }
}

/* Tablet devices - Reduce gap, smaller font sizes */
@media (min-width: 769px) and (max-width: 1200px) {
  .nav-menu a {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* Desktop - Full width optimization */
@media (min-width: 1201px) {
  :root {
    --side-spacing: 40px;
    --menu-gap: 0.75rem;
  }

  .nav-menu a {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 3rem;
  }
}

/* Large desktop - Maximum width control */
@media (min-width: 1600px) {
  :root {
    --menu-gap: 1rem;
  }

  .nav-menu a {
    font-size: 0.95rem;
  }
}

.articles-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.discover-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.pricing-plans {
  flex-direction: column;
  align-items: center;
}

.logos-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.newsletter-form {
  flex-direction: column;
}

.plus-features {
  flex-direction: column;
  gap: 1rem;
}

/* Adobe Express Section */
.adobe-express-section {
  padding: 2.5rem 0; /* 40px */
  background: var(--light-gray);
}

.express-container {
  margin-top: 2rem;
}

/* Language Switcher Section */
.language-section {
  padding: 2.5rem 0; /* 40px */
  background: var(--white);
  border-top: 1px solid var(--border-color);
}

.language-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.language-selector label {
  font-weight: 600;
  color: var(--text-color);
}

.lang-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--white);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-select:hover {
  border-color: var(--accent-color);
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Standardized card component */
.card, .service-card, .industry-card, .team-card, .article-card-contained, .creative-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}
.service-card {
  padding: 32px;
  border-radius: var(--radius-xl);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(30, 58, 138, 0.25);
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
}

.service-card:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.service-card.featured {
  border: 2px solid var(--accent-color);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--accent-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-light);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.service-features {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--padding-md);
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  border-color: var(--accent-color);
}

.cart-total {
  padding: 20px 0;
  font-size: 1.2rem;
  font-weight: 600;
  border-top: 2px solid var(--border-color);
  margin-top: 20px;
}

.progress-timeline {
  margin-top: 30px;
}

.timeline-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--section-padding-compact);
  padding: var(--padding-lg);
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.timeline-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.timeline-item.completed {
  background: #e8f5e9;
}

.timeline-item.active {
  background: #e3f2fd;
  border: 2px solid var(--accent-color);
}

.timeline-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.timeline-content h4 {
  margin: 0 0 5px 0;
}

.timeline-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.btn {
  padding: 0.875rem 2rem; /* 14px 32px */
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: "Source Sans 3", 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  text-decoration: none;
  text-align: center;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.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 ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1);
}

.btn-secondary {
  background: var(--white);
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(1);
}

/* Colored Background Sections - Grant Thornton Style with Adobe Colors */
.section-bg-light {
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
  position: relative;
}

.section-bg-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-bg-gradient-blue {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  color: white;
}

.section-bg-gradient-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #a78bfa 100%);
  color: white;
}

.section-bg-gradient-teal {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #2dd4bf 100%);
  color: white;
}

.section-bg-gradient-orange {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
  color: white;
}

.section-bg-blue {
  background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

.section-bg-purple {
  background: linear-gradient(135deg, #f3e5f5 0%, #ffffff 100%);
}

.section-bg-green {
  background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.section-bg-white {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Fix Scroll Anchor Alignment */
/* Fix anchor scrolling to account for fixed header */
section[id] {
  scroll-margin-top: 160px;
  padding-top: 20px;
}

#home {
  scroll-margin-top: 0px;
  padding-top: 0px;
}

/* Smooth section transitions */
section {
  position: relative;
  transition: background-color 0.3s ease;
}

/* Hero Banner Fixes - Margin and Padding */
.hero-margin-top {
  margin-top: 150px;
  padding: 0;
}

/* Override inline hero padding to eliminate gaps */
.team-hero,
.portal-hero,
.checkout-hero,
.case-hero,
.contact-hero,
.industry-hero,
.service-hero,
.contact-hero {
  padding: var(--section-padding-large) 0 1.875rem; /* 50px 0 30px */
  margin-top: 150px;
}

/* Make hero sections connect directly with header */
.hero-margin-top {
  padding-top: 0;
  margin-top: 150px;
}

/* Reduce top spacing on all hero variations */
[class*="-hero"] {
  padding-top: 50px;
}

.hero-white-text {
  color: var(--white);
}

.hero-subtitle-text {
  color: rgba(255, 255, 255, 0.9);
}

/* Section Spacing - Compact Mode */
.section-padding {
  padding: var(--section-padding-compact) 0;
}

.section-padding-60 {
  padding: var(--space-md) 0;
}

/* Background Sections */
.bg-gradient-blue {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  color: white;
}

.bg-light-gray {
  background: var(--light-gray);
}

/* Button Styles */
.btn-margin-top {
  margin-top: 20px;
}

/* Industry Card Buttons */
.industry-card-btn {
  margin-top: 20px;
}

/* Team Card Buttons */
.team-card-btn {
  margin-top: 20px;
}

/* CTA Styles */
.cta-container {
  text-align: center;
  background: var(--accent-color);
  padding: 45px;
  border-radius: 12px;
  color: var(--white);
}

.cta-title {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  background: var(--white);
  color: var(--accent-color);
  padding: 15px 40px;
}

/* Order Summary Sticky */
.order-summary-sticky {
  height: fit-content;
  position: sticky;
  top: 120px;
}

/* Section Subtitle Styles */
.section-subtitle-centered {
  max-width: 800px;
  margin: 0 0 40px 0;
  text-align: left;
}

/* Section Backgrounds */
.section-bg-light-gray {
  background: var(--light-gray);
}

/* Portal Section */
.portal-section-style {
  min-height: 80vh;
}

/* Checkout Section */
.checkout-section-style {
  min-height: 80vh;
}

/* Details Summary Styling */
.details-summary {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.details-summary-label {
  font-weight: 500;
  color: var(--text-color);
}

.details-summary-value {
  color: var(--secondary-color);
}

/* Service Hero Image Styles */
.service-hero-image {
  margin: 30px 0;
}

.hero-image-placeholder {
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
}

/* Service Content Layout */
.service-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
}

/* Order Summary Box */
.order-summary-box {
  margin-top: 20px;
  padding: 15px;
  background: var(--white);
  border-radius: 6px;
}

.order-summary-list {
  margin: 0;
  padding-left: 20px;
}

/* Checkout Button Full Width */
.checkout-button-full {
  width: 100%;
  margin-top: 20px;
}

/* Team Member Styles */
.team-member-section {
  margin-bottom: 50px;
}

.team-member-title {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Portal Tabs */
.portal-section-main {
  min-height: 80vh;
}

.upload-area-large {
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Service Detail Active State */
.service-detail {
  display: none;
}

.service-detail.active {
  display: block;
}

/* Image Uploader */
.image-uploader {
  margin-bottom: 20px;
}

.image-uploader-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Quote Icon */
.quote-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* CTA Section Background */
.cta-section-bg {
  text-align: center;
  padding: 50px 0;
}

.cta-inner {
  background: var(--accent-color);
  padding: 45px;
  border-radius: 12px;
  color: var(--white);
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-inner p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-inner .btn {
  background: var(--white);
  color: var(--accent-color);
  padding: 15px 40px;
}

/* Service Hero Image Styles */
.service-hero-image-height {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  border-radius: 12px;
}

.service-features-lg {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Client Quote Styles */
.client-quote {
  padding: 25px;
  background: var(--light-gray);
  border-radius: 8px;
  margin-top: 20px;
}

.client-quote-attribution {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.client-quote-name {
  font-weight: 600;
  color: var(--accent-color);
}

.client-quote-company {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* Feature Large Box */
.feature-box-lg {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
}

.feature-icon-lg {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-box-lg h4 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.feature-box-lg p {
  color: var(--secondary-color);
  font-size: 0.95rem;
}

/* Case Result Box */
.case-result {
  background: var(--light-gray);
  padding: 15px;
  border-left: 3px solid var(--accent-color);
  margin-top: 20px;
}

/* Team CTA Section */
.team-cta-section {
  text-align: center;
  padding: 60px 0;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 12px;
}

.team-cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.team-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.team-cta-section .btn {
  background: var(--white);
  color: var(--accent-color);
  padding: 15px 40px;
}

/* Service Hero Image Gradients */
.hero-image-gradient-purple {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-image-gradient-orange {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.hero-image-gradient-green {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.hero-image-gradient-teal {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.hero-image-gradient-blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Social Links */
.team-social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.team-social-link {
  padding: 8px 12px;
  background: var(--light-gray);
  border-radius: 6px;
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.team-social-link:hover {
  background: var(--accent-color);
  color: var(--white);
}

/* Info Item Styles */
.info-item {
  padding: 25px;
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-icon-large {
  font-size: 2rem;
  color: var(--accent-color);
}

/* Contact Form Grid */
.contact-section-main {
  padding: 45px 0;
}

/* Portal Section */

/* Form Section */
.form-section-basic {
  margin-bottom: 30px;
}

.form-section h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
}

/* File Item */
.file-item-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Progress Bar */
.progress-bar-container {
  background: var(--light-gray);
  border-radius: 10px;
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  background: var(--accent-color);
  height: 100%;
  transition: width 0.3s ease;
}

/* Upload Area */
.upload-area-basic {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area-basic:hover {
  border-color: var(--accent-color);
  background: var(--light-gray);
}

/* Team Button Margin */
.team-card .btn {
  margin-top: 20px;
}

/* PDF Viewer Container */
.pdf-viewer-container {
  width: 100%;
  height: 600px;
  border: 1px solid #e0e0e0;
}

/* Footer Link Style */
.footer-link {
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-color);
}

/* Professional Elegant Typography */
.hero-title-edgy {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.hero-subtitle-edgy {
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.6;
}

/* Animated Gradient Background */
.animated-gradient-bg {
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Creative Card Hover Effects */
.creative-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.creative-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 20px;
}

.creative-card:hover::before {
  opacity: 1;
}

.creative-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

/* Glitch Text Effect */
.glitch-text {
  position: relative;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-2px, -2px); }
  20% { transform: translate(2px, 2px); }
  30% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 0); }
  60% { transform: translate(2px, 0); }
}

/* Creative Button Styles */
.btn-creative {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-2xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-creative::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-creative::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-creative:hover::after {
  width: 400px;
  height: 400px;
}

.btn-creative:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
  filter: brightness(1.05);
}

.btn-creative:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Magnetic Effect */
.magnetic-hover {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-hover:hover {
  transform: translate(10px, -10px);
}

/* Creative Image Overlay */
.creative-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.creative-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.creative-image-container:hover::after {
  opacity: 1;
}

/* Neon Glow Effect */
.neon-glow {
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.8),
               0 0 20px rgba(118, 75, 162, 0.8),
               0 0 30px rgba(102, 126, 234, 0.6);
}

/* Video Animation Container */
.video-animation-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 45px;
  color: white;
}

.video-animation-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Bold Section Headers */
.section-title-edgy {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: none;
}

/* Creative Hero Buttons */
.hero-buttons-creative {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  justify-content: center;
  align-items: center;
}

.hero-buttons-creative .btn-creative {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Creative Buttons Variants */
.btn-creative-transparent {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Video Animation Background Video Placeholder */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content-overlay {
  position: relative;
  z-index: 2;
}

/* Video Animation Section Styles */
.video-animation-container {
  position: relative;
  z-index: 2;
}

.video-animation-title {
  color: white;
  margin-bottom: 20px;
}

.video-animation-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Gradient Overlay for Better Text Readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Hero Content on Top of Overlay */
.hero .hero-container {
  position: relative;
  z-index: 2;
}

/* Enhanced Shadow for Better Readability */
.hero-title-edgy {
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), 0 2px 15px rgba(0, 0, 0, 0.4), 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Staggered Float Animation Delays */
.floating:nth-child(1) {
  animation-delay: 0s;
}

.floating:nth-child(2) {
  animation-delay: 0.5s;
}

.floating:nth-child(3) {
  animation-delay: 1s;
}

.floating:nth-child(4) {
  animation-delay: 1.5s;
}

/* Pulse Animation for CTA */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.btn-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Creative Grid Layout */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.creative-card-content {
  padding: 30px;
  position: relative;
  z-index: 2;
}

/* Glow Effect on Hover */
.glow-on-hover {
  transition: filter 0.3s ease;
}

.glow-on-hover:hover {
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
}

/* Modern Typography Mixes */
.modern-text-blend {
  mix-blend-mode: multiply;
}

/* Video Background Sections */
.video-background-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.85);
  z-index: 1;
}

.background-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;
}

.video-content-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-content-overlay h2,
.video-content-overlay p {
  text-align: center;
  margin: 0 auto;
}

.video-animation-description {
  margin: 20px auto 40px;
  max-width: 700px;
}

/* Video Promo Section */
.video-promo-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 100px 0;
  position: relative;
}

.promo-video-container {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.promo-video {
  width: 100%;
  height: auto;
  display: block;
}

/* Video Content Grid */
.video-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.video-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(30, 58, 138, 0.3);
}

.video-card-header {
  padding: 30px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
}

.video-card-body {
  padding: 30px;
}

.video-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.video-card-description {
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Animated Video Thumbnail */
.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.video-thumbnail-professional-team {
  background-image: url('../images/ucfer-professional-team.png');
}

.video-thumbnail-financial-reporting {
  background-image: url('../images/ucfer-financial-reporting.png');
}

.video-thumbnail-strategic-advisory {
  background-image: url('../images/ucfer-strategic-advisory.png');
}

.video-thumbnail-play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #1e3a8a;
  transition: all 0.3s ease;
}

.video-thumbnail:hover .video-thumbnail-play {
  transform: scale(1.1);
  background: white;
}

/* Promo Section Styles */
.promo-section-title {
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

.promo-section-description {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.video-grid-spacing {
  margin-top: 50px;
}

/* Video Thumbnail Gradient Variants */
.video-thumbnail-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.video-thumbnail-blue {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.video-thumbnail-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Professional Image Styling */
.professional-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.professional-img-article {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.professional-img-discover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.professional-img-case {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quote Text Italic */
.quote-text-italic {
  font-style: italic;
  margin-bottom: 20px;
}

/* Team Bio Text */
.team-bio-text {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Grid Margin Top */
.grid-margin-top {
  margin-top: 40px;
}

/* Full Width Button */
.btn-full-width {
  width: 100%;
  padding: 15px;
}

/* Hidden Input */
.hidden-input {
  display: none;
}

/* Upload Icon */
.upload-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Upload Hint Text */
.upload-hint-text {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Info Item Text */
.info-item-text {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Info Box */
.info-box {
  margin-top: 30px;
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
}

/* Info Box Title */
.info-box-title {
  margin-bottom: 15px;
}

/* Contact Link */
.contact-link {
  color: var(--accent-color);
}

/* Contact Map Section */
.contact-map-section {
  padding: var(--section-padding-medium) 0;
  background: var(--light-gray);
}

/* Client Portal Upload Area */
.portal-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 45px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--light-gray);
}

.portal-upload-area:hover {
  border-color: var(--accent-color);
  background: var(--white);
}

/* File Input Hidden */
.file-input-hidden {
  display: none;
}

/* Map Placeholder */
.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video Card Content Styling */
.video-card-features {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  font-size: 0.9rem;
}

.video-card-feature {
  margin: 5px 0;
}

/* Animated Statistics Banner */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 60px 0;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(103, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Animation Classes */
.animate-title {
  animation: fadeInUp 1s ease-out;
}

.animate-description {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-stat {
  animation: fadeInScale 0.8s ease-out both;
}

.animate-stat:nth-child(1) {
  animation-delay: 0.5s;
}

.animate-stat:nth-child(2) {
  animation-delay: 0.7s;
}

.animate-stat:nth-child(3) {
  animation-delay: 0.9s;
}

.animate-stat:nth-child(4) {
  animation-delay: 1.1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* UCFER Animated Experience Enhancements */
.ucfer-animated-experience {
  position: relative;
  overflow: hidden;
}

.ucfer-animated-experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(103, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Animated Video Card Enhancements */
.animated-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.animated-thumbnail {
  position: relative;
  overflow: hidden;
}

.animated-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.animated-thumbnail:hover::before {
  animation: shimmer 1s infinite;
}

/* Video Thumbnail Pulsing Play Button */
.video-thumbnail-play {
  animation: playButtonPulse 2s ease-in-out infinite;
}

@keyframes playButtonPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.animated-card:hover .video-thumbnail-play {
  animation: playButtonPulse 0.8s ease-in-out infinite;
  transform: scale(1.2);
}

/* Gradient Animation for Thumbnails */
.video-thumbnail {
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* UCFER Promotional Banner - Premium Upgrade */
.ucfer-promo-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(59, 130, 246, 0.12) 100%);
  border-left: 6px solid;
  border-image: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) 1;
  border-radius: 16px;
  padding: 40px;
  margin: 50px 0;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  animation: bannerSlideIn 1s ease-out;
  box-shadow: 0 10px 40px rgba(30, 58, 138, 0.08);
  position: relative;
  overflow: hidden;
}

.ucfer-promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
  animation: shimmer 3s infinite;
}

@keyframes bannerSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.promo-banner-content {
  margin-bottom: 20px;
}

.promo-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promo-banner-text {
  color: var(--secondary-color);
  font-size: 1rem;
  line-height: 1.6;
}

.promo-banner-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.promo-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-stat-icon {
  font-size: 1.2rem;
  color: #10b981;
  font-weight: bold;
}

.promo-stat-text {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Stats Banner Responsive */
@media (max-width: 768px) {
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 15px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .ucfer-promo-banner {
    padding: 20px;
  }

  .promo-banner-title {
    font-size: 1.2rem;
  }

  .promo-banner-stats {
    flex-direction: column;
    gap: 15px;
  }
}

/* Responsive Video Background Styles */
@media (max-width: 768px) {
  .hero-with-video {
    min-height: 70vh;
  }

  .hero-background-video {
    filter: brightness(0.35);
  }

  .hero-video-overlay {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(30, 30, 30, 0.7) 50%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }

  .hero-container {
    padding: 0 20px;
  }
}

/* Prevent video from loading on small screens to save bandwidth */
@media (max-width: 480px) {
  .hero-background-video {
    display: none;
  }

  .hero-with-video {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(20, 20, 20, 0.9) 50%,
      rgba(0, 0, 0, 0.95) 100%
    );
  }
}

/* ============================================
   HIGH-END REFINEMENTS & POLISH
   Premium visual enhancements and interactions
   ============================================ */

/* Glassmorphism Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-overlay {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Premium Button Enhancements */
.btn-creative-transparent {
  background: transparent;
  border: 2px solid white;
  color: white;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-creative-transparent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.5s ease;
}

.btn-creative-transparent:hover::before {
  left: 0;
}

.btn-creative-transparent:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Advanced Card Hover States */
.card-3d-effect {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-3d-effect:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

/* Smooth Scroll Enhancement */
html {
  scroll-padding-top: 120px;
  scroll-behavior: smooth;
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Skip Navigation for Screen Readers */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-color);
  color: white;
  padding: 1rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), 
              transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), 
              transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), 
              transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Parallax Effect */
.parallax-slow {
  transition: transform 0.3s ease-out;
}

.parallax-medium {
  transition: transform 0.2s ease-out;
}

.parallax-fast {
  transition: transform 0.1s ease-out;
}

/* Premium Loading States */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Subtle Glow Effects */
.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glow-effect:hover::after {
  opacity: 1;
}

/* Advanced Form Enhancements */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

input:valid,
textarea:valid {
  border-color: var(--success-color);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: var(--error-color);
}

/* Premium Navigation Hover Effects - Disabled, using border-bottom instead */
.nav-menu a::before,
.nav-menu a:hover::before,
.nav-menu a.active::before,
.nav-menu a::after,
.nav-menu a:hover::after {
  display: none !important;
  content: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Professional Image Overlays */
.image-hover-overlay {
  position: relative;
  overflow: hidden;
}

.image-hover-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-hover-overlay:hover::after {
  opacity: 1;
}

/* Advanced Gradient Animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animated {
  background: linear-gradient(
    45deg,
    var(--accent-dark),
    var(--accent-light),
    var(--accent-dark)
  );
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Premium Card Shadows */
.card-shadow-subtle {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
              0 4px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.card-shadow-subtle:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
              0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-shadow-enhanced {
  box-shadow: 0 10px 40px rgba(30, 58, 138, 0.1),
              0 20px 60px rgba(30, 58, 138, 0.05);
}

/* Smooth Scale Animations */
.scale-on-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-on-hover:hover {
  transform: scale(1.05);
}

.scale-in-out {
  animation: scaleInOut 2s ease-in-out infinite;
}

@keyframes scaleInOut {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Premium Text Effects */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--text-color) 0%,
    var(--accent-color) 50%,
    var(--text-color) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 3s ease infinite;
}

@keyframes shimmer-text {
  0%, 100% {
    background-position: -200% 0;
  }
  50% {
    background-position: 200% 0;
  }
}

/* Enhanced Border Animations */
.border-animated {
  position: relative;
  overflow: hidden;
}

.border-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  animation: borderFlow 2s infinite;
}

@keyframes borderFlow {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Premium Tooltip Styles */
.tooltip-advanced {
  position: relative;
}

.tooltip-advanced::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.tooltip-advanced:hover::before {
  opacity: 1;
}

/* Advanced Grid Animations */
.grid-stagger {
  animation-delay: calc(var(--stagger-delay, 0) * 0.1s);
}

.grid-stagger-child:nth-child(1) {
  animation-delay: 0s;
}

.grid-stagger-child:nth-child(2) {
  animation-delay: 0.1s;
}

.grid-stagger-child:nth-child(3) {
  animation-delay: 0.2s;
}

.grid-stagger-child:nth-child(4) {
  animation-delay: 0.3s;
}

/* Premium Section Dividers */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-color),
    transparent
  );
}

.section-divider-fancy {
  position: relative;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
}

/* Enhanced Backdrop Effects */
.backdrop-blur-strong {
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  background: rgba(255, 255, 255, 0.72);
}

.backdrop-blur-moderate {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.8);
}

.backdrop-blur-light {
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  backdrop-filter: blur(10px) saturate(180%);
  background: rgba(255, 255, 255, 0.88);
}

/* Professional Loading Indicators */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Advanced Intersection Observer Trigger */
.observer-trigger {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.observer-trigger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Premium Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Advanced Color Transitions */
.color-transition {
  transition: color 0.3s ease,
              background-color 0.3s ease,
              border-color 0.3s ease;
}

/* Premium Section Spacing */
.section-spacing-refined {
  padding: var(--space-3xl) 0;
}

.section-spacing-extra {
  padding: var(--space-4xl) 0;
}

/* Enhanced Responsive Typography */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High-Contrast Mode Support */
@media (prefers-contrast: high) {
  * {
    border-color: currentColor !important;
  }
  
  .btn,
  .card,
  .article-card {
    border-width: 2px !important;
  }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
  /* Reserved for dark mode implementation */
}

/* Print Optimizations */
@media print {
  .header,
  .footer,
  .btn,
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* Accessibility Enhancements */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading States & Skeletons */
.skeleton-card,
.skeleton-text,
.skeleton-button {
  background: linear-gradient(90deg, 
    var(--light-gray, #f3f4f6) 0%, 
    rgba(255, 255, 255, 0.5) 50%, 
    var(--light-gray, #f3f4f6) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, 
    var(--light-gray, #f3f4f6) 0%, 
    rgba(255, 255, 255, 0.5) 50%, 
    var(--light-gray, #f3f4f6) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skeleton-title {
  width: 70%;
  height: 24px;
  margin-bottom: 0.75rem;
}

.skeleton-text {
  width: 100%;
  height: 16px;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-button {
  width: 120px;
  height: 40px;
  margin-top: 1rem;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

:root[color-mode="dark"] .skeleton-card,
:root[color-mode="dark"] .skeleton-text,
:root[color-mode="dark"] .skeleton-button,
:root[color-mode="dark"] .skeleton-image {
  background: linear-gradient(90deg, 
    var(--light-gray, #2a2f37) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    var(--light-gray, #2a2f37) 100%);
  background-size: 200% 100%;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray, #f3f4f6);
  border-top-color: var(--accent-color, #0ea5e9);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--white, #ffffff);
  color: var(--text-color, #1a1a1a);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast-info {
  border-left: 4px solid var(--accent-color, #0ea5e9);
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color-muted, #6b7280);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: var(--text-color, #1a1a1a);
}

:root[color-mode="dark"] .toast {
  background: var(--white, #1d2127);
  color: var(--text-color, #e8eaed);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Premium Micro-interactions */
.micro-bounce {
  animation: microBounce 0.5s ease;
}

@keyframes microBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Advanced Shadow Elevation */
.elevation-0 {
  box-shadow: none;
}

.elevation-1 {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
              0 1px 2px rgba(0, 0, 0, 0.24);
}

.elevation-2 {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
              0 3px 6px rgba(0, 0, 0, 0.23);
}

.elevation-3 {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19),
              0 6px 6px rgba(0, 0, 0, 0.23);
}

.elevation-4 {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
              0 10px 10px rgba(0, 0, 0, 0.22);
}

.elevation-5 {
  box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30),
              0 15px 12px rgba(0, 0, 0, 0.22);
}

/* Premium Link Hover States */
.link-premium {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-premium::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-premium:hover::after {
  width: 100%;
}

.link-premium:hover {
  color: var(--accent-color);
}

/* Theme-specific logo swap */
.logo-dark { display: none; }
:root[color-mode="dark"] .logo-light { display: none; }
:root[color-mode="dark"] .logo-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([color-mode]) .logo-light { display: none; }
  :root:not([color-mode]) .logo-dark { display: inline; }
}
/* Utility: force logo to render as white without needing a separate asset */
.logo-white { filter: brightness(0) invert(1); }

/* Hero video support (tasteful, with accessibility) */
.hero-video-wrap { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.hero-video-wrap video { width: 100%; height: auto; display: block; object-fit: cover; filter: saturate(1.05) contrast(1.02); }
.hero-video-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.25)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap video,
  .hero-background-video,
  .background-video { display: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Split section layout (two-column) */
.section--split .container { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 992px) { .section--split .container { grid-template-columns: 1fr 1fr; gap: 48px; } }
.section--split .split-col { min-width: 0; }