/* ===========================
   CSS Variables & Reset
   =========================== */

:root {
    /* Colors - Premium Bronze/Gold Palette */
    --primary-color: #4a4a4a;
    --primary-light: #808080;
    --primary-dark: #2d2d2d;
    --secondary-color: #a0a0a0;
    --accent-color: #b8860b;
    --accent-hover: #daa520;
    --accent-light: #d4af37;
    --bronze-color: #cd7f32;
    --silver-color: #a8a8a8;
    --success-color: #10b981;
    --info-color: #06b6d4;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #5a4a3a 0%, #8b7765 100%);
    --bg-gradient-light: linear-gradient(135deg, #f8f6f4 0%, #f0ebe5 100%);
    --bg-card: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    
    --border-color: #e2e8f0;
    --border-color-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-colored: 0 10px 30px rgba(192, 192, 192, 0.3);
    --shadow-metallic: 0 8px 25px rgba(192, 192, 192, 0.35);
    
    /* Typography */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 6rem 2rem;
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { 
    font-size: clamp(2.5rem, 4vw, 3.5rem); 
    font-family: var(--font-display);
    font-weight: 700;
}

h2 { 
    font-size: clamp(2rem, 3.5vw, 2.75rem); 
    font-family: var(--font-display);
}

h3 { 
    font-size: clamp(1.25rem, 2.5vw, 1.5rem); 
    font-weight: 600;
}

h4 { font-size: 1.125rem; }

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

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
}

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

/* ===========================
   Header & Navigation
   =========================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(90, 74, 58, 0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    transition: var(--transition-base);
}

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

.logo a {
    display: block;
    line-height: 0;
}

.logo-image {
    height: 65px;
    width: auto;
    transition: var(--transition-slow);
    filter: brightness(0) invert(1) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}

.header.scrolled .logo-image {
    animation: logo-metallic-shimmer 8s ease-in-out infinite;
    filter: hue-rotate(10deg) saturate(0.9) sepia(0.3) brightness(0.85) drop-shadow(0 2px 8px rgba(192, 192, 192, 0.2));
}

.logo-image:hover {
    transform: scale(1.05);
    animation-play-state: paused;
}

@keyframes logo-metallic-shimmer {
    0% {
        filter: hue-rotate(10deg) saturate(0.9) sepia(0.3) brightness(0.85) drop-shadow(0 2px 8px rgba(192, 192, 192, 0.2));
    }
    33% {
        filter: hue-rotate(0deg) saturate(0.7) sepia(0.2) brightness(1) drop-shadow(0 2px 8px rgba(192, 192, 192, 0.3));
    }
    66% {
        filter: hue-rotate(0deg) saturate(0.7) sepia(0.2) brightness(1) drop-shadow(0 2px 8px rgba(192, 192, 192, 0.25));
    }
    100% {
        filter: hue-rotate(10deg) saturate(0.9) sepia(0.3) brightness(0.85) drop-shadow(0 2px 8px rgba(192, 192, 192, 0.2));
    }
}

.logo-text,
.logo-text-fallback {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-phone a {
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-phone a:hover {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    letter-spacing: 0.03em;
    display: block;
    padding: 0.5rem 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .nav-menu a {
    color: var(--text-secondary);
    text-shadow: none;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.8), rgba(255, 200, 50, 0.8));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-menu > li > a:hover {
    color: white;
    transform: translateY(-2px);
}

.header.scrolled .nav-menu > li > a:hover {
    color: var(--primary-color);
}

.nav-menu > li > a:hover::after {
    transform: scaleX(1);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    position: relative;
}

.has-dropdown > a::after {
    content: '▾';
    margin-left: 0.4rem;
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    min-width: 320px;
    max-height: 600px;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    padding: 1rem 0;
    z-index: 1000;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    padding: 0;
}

.dropdown a {
    display: block;
    padding: 0.9rem 1.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    text-shadow: none;
    line-height: 1.4;
}

/* Disable the gold underline effect for dropdown items */
.dropdown a::after {
    display: none !important;
}

.dropdown a:hover {
    background: linear-gradient(90deg, 
        rgba(184, 134, 11, 0.08) 0%, 
        rgba(218, 165, 32, 0.04) 50%,
        transparent 100%
    );
    color: var(--primary-color);
    padding-left: 2rem;
    transform: translateX(4px);
}

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

.dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0 12px 12px 0;
}

.dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--accent-light));
    border-radius: 3px;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #a8a8a8, #c0c0c0);
    color: white;
    border-color: #a8a8a8;
    box-shadow: 0 4px 15px rgba(168, 168, 168, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c0c0c0, #d3d3d3);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(192, 192, 192, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(10, 36, 99, 0.3);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    min-height: 85vh;
    padding: 6rem 0 8rem;
    background: var(--bg-dark);
    border-bottom: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 85%,
        75% 85%,
        50% 95%,
        25% 85%,
        0 85%
    );
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    z-index: 100;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/glass-screen-wall-2025-04-01-12-54-03-utc.png') center/cover no-repeat;
    animation: hero-bg-load 4s ease-out forwards;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(54, 57, 63, 0.7) 0%, rgba(64, 67, 73, 0.65) 50%, rgba(54, 57, 63, 0.7) 100%),
        radial-gradient(circle at 20% 30%, rgba(74, 77, 83, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(60, 63, 69, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(44, 47, 53, 0.6) 0%, rgba(54, 57, 63, 0.55) 50%, rgba(44, 47, 53, 0.6) 100%),
        radial-gradient(ellipse at center, rgba(64, 67, 73, 0.5) 0%, rgba(50, 53, 59, 0.25) 40%, transparent 70%);
    pointer-events: none;
    animation: gradient-pulse 8s ease-in-out infinite;
}

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

@keyframes hero-bg-load {
    0% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    animation: overlay-fade-in 1.5s ease-out 0.3s both;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 400px;
    background: transparent;
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
}

@keyframes overlay-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 220, 225, 0.25), transparent 70%);
    border-radius: 50%;
    animation: float-glow 15s ease-in-out infinite;
}

@keyframes float-glow {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translate(40px, -40px) scale(1.15);
        opacity: 1;
    }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(230, 230, 235, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(230, 230, 235, 0.9);
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation: particle-float 8s ease-in-out infinite;
}

.particle-2 {
    top: 40%;
    right: 15%;
    animation: particle-float 10s ease-in-out infinite 1s;
}

.particle-3 {
    bottom: 30%;
    left: 20%;
    animation: particle-float 12s ease-in-out infinite 2s;
}

.particle-4 {
    top: 60%;
    right: 25%;
    animation: particle-float 9s ease-in-out infinite 3s;
}

.particle-5 {
    top: 30%;
    left: 40%;
    animation: particle-float 11s ease-in-out infinite 1.5s;
}

.particle-6 {
    bottom: 40%;
    right: 35%;
    animation: particle-float 13s ease-in-out infinite 2.5s;
}

.particle-7 {
    top: 50%;
    left: 50%;
    animation: particle-float 7s ease-in-out infinite 0.5s;
}

.particle-8 {
    bottom: 25%;
    left: 30%;
    animation: particle-float 14s ease-in-out infinite 3.5s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) translateX(40px);
        opacity: 1;
    }
}

.hero-grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.08;
}

.grid-line {
    position: absolute;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.grid-line-horizontal {
    width: 100%;
    height: 2px;
    top: 35%;
    animation: scan-horizontal 6s ease-in-out infinite;
}

.grid-line-vertical {
    width: 2px;
    height: 100%;
    left: 60%;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    animation: scan-vertical 8s ease-in-out infinite 1s;
}

@keyframes scan-horizontal {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(200px);
        opacity: 0.8;
    }
}

@keyframes scan-vertical {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-300px);
        opacity: 0.8;
    }
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.08;
}

.shape-circle {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(192, 192, 192, 0.4);
    border-radius: 50%;
    top: 15%;
    right: 10%;
    animation: shape-rotate 20s linear infinite;
}

.shape-square {
    width: 150px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    bottom: 20%;
    left: 8%;
    animation: shape-rotate 25s linear infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 156px solid rgba(200, 200, 205, 0.3);
    top: 45%;
    right: 20%;
    animation: shape-rotate 30s linear infinite;
}

@keyframes shape-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 5rem 2rem 6rem;
    animation: fadeInUp 1s ease-out;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.85fr);
    gap: 6rem;
    align-items: start;
    position: relative;
}

.hero-main {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-right: 2rem;
    position: relative;
}

.hero-latest-insight {
    background: transparent;
    border: none;
    padding: 0;
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    max-width: 320px;
}

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

.hero-insights-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    background: rgba(168, 168, 168, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-insights-badge:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.hero-insights-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-insight-card-stacked {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-insight-card-stacked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(192, 192, 192, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-insight-card-stacked:hover::before {
    opacity: 1;
}

.hero-insight-card-stacked[data-animation-delay="0"] {
    animation-delay: 0s;
}

.hero-insight-card-stacked[data-animation-delay="1"] {
    animation-delay: 1s;
}

.hero-insight-card-stacked[data-animation-delay="2"] {
    animation-delay: 2s;
}

.hero-insight-card-stacked:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-6px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 215, 0, 0.3);
}

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

.hero-insight-card-stacked .hero-insight-date {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 215, 0, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-insight-card-stacked .hero-insight-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-insight-card-stacked .hero-insight-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 215, 0, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-insight-card-stacked .hero-insight-link:hover {
    color: rgba(255, 215, 0, 1);
    gap: 0.5rem;
}

.hero-insight-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.hero-insight-link:hover::after {
    transform: translateX(2px);
}

.hero-insight-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-insight-prev,
.hero-insight-next {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.hero-insight-prev:hover,
.hero-insight-next:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.hero-badges-row {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-badge-image {
    width: 100px;
    height: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.hero-badge-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0;
    margin-top: 0;
    animation: badge-entrance 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s both;
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.8), 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    align-self: flex-start;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    border-radius: 30px;
}

@keyframes badge-entrance {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.hero-title {
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: 0.01em;
    position: relative;
    color: white;
    animation: hero-title-entrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    filter: drop-shadow(0 10px 60px rgba(0, 0, 0, 0.45)) 
            drop-shadow(0 6px 30px rgba(0, 0, 0, 0.4))
            drop-shadow(0 2px 15px rgba(0, 0, 0, 0.3))
            drop-shadow(0 0 40px rgba(0, 0, 0, 0.25));
    overflow: visible;
    text-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

@keyframes silver-shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 500% 50%;
    }
}

.hero-title::after {
    content: none;
}


@keyframes line-expand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 100px;
        opacity: 1;
    }
}

@keyframes hero-title-entrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 100%;
    margin: 0;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.3s both;
    font-weight: 400;
    text-shadow: 
        0 3px 25px rgba(0, 0, 0, 0.8), 
        0 5px 40px rgba(0, 0, 0, 0.6),
        0 1px 3px rgba(0, 0, 0, 1);
    margin-bottom: 1rem;
}

.hero-engagement-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.engagement-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.engagement-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: white;
}

.badge-managed {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(218, 165, 32, 0.3));
    border-color: rgba(255, 215, 0, 0.5);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.badge-managed::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(218, 165, 32, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.badge-managed::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: sparkle 4s ease-in-out infinite;
    border-radius: 6px;
    pointer-events: none;
}

.badge-managed:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.35), rgba(218, 165, 32, 0.4));
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px) scale(1.03);
}

@keyframes sparkle {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}

.badge-fixed {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.badge-fixed:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.badge-tm {
    background: rgba(144, 144, 144, 0.2);
    border-color: rgba(160, 160, 160, 0.25);
}

.badge-tm:hover {
    background: rgba(144, 144, 144, 0.3);
    border-color: rgba(160, 160, 160, 0.4);
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 2.5rem;
    animation: hero-stats-entrance 1s ease-out 0.8s both;
    position: relative;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: calc(-6rem - 320px + 1.5rem);
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

@keyframes hero-stats-entrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(255, 255, 255, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.8);
    transition: var(--transition-base);
    animation: number-glow 3s ease-in-out infinite;
}

.stat-item:hover .stat-number {
    transform: scale(1.15);
    text-shadow: 
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 80px rgba(255, 255, 255, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.9);
}

@keyframes number-glow {
    0%, 100% {
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(255, 255, 255, 0.3),
            0 2px 10px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 40px rgba(255, 255, 255, 0.7),
            0 0 80px rgba(255, 255, 255, 0.4),
            0 2px 10px rgba(0, 0, 0, 0.9);
    }
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: hero-cta-entrance 1s ease-out 0.6s both;
    margin-top: 0;
    margin-bottom: 1rem;
}

@keyframes hero-cta-entrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta .btn {
    min-width: 220px;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.hero .btn-primary {
    background: linear-gradient(135deg, #a8a8a8, #c0c0c0);
    border-color: #a8a8a8;
    box-shadow: 0 4px 20px rgba(168, 168, 168, 0.4);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #c0c0c0, #d3d3d3);
    box-shadow: 0 6px 30px rgba(192, 192, 192, 0.6);
    transform: translateY(-2px) scale(1.02);
}

.hero .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.hero .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* ===========================
   Clients Carousel
   =========================== */

.clients-carousel {
    padding: 3rem 0 4rem;
    background: white;
    overflow: hidden;
    position: relative;
    margin-top: -4rem;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 0 rgba(192, 192, 192, 0.1);
    z-index: 10;
}

.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.clients-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.clients-intro h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clients-track {
    display: flex;
    overflow: hidden;
}

.clients-slide {
    display: flex;
    gap: 4rem;
    animation: scroll-logos 40s linear infinite;
    align-items: center;
}

.client-logo {
    height: 50px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%) sepia(0.15) hue-rotate(10deg);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%) sepia(0.2) hue-rotate(10deg);
    transform: scale(1.1);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.clients-carousel:hover .clients-slide {
    animation-play-state: paused;
}

/* ===========================
   Managed Services Hero
   =========================== */

.managed-services-hero {
    padding: 8rem 2rem;
    background: var(--bg-primary);
    position: relative;
}

.section-header-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(220, 220, 220, 0.1));
    color: var(--accent-color);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 2px solid var(--accent-color);
}

#managed-services-highlight .container {
    text-align: center;
}

#managed-services-highlight .section-badge {
    display: inline-block;
    width: auto;
}

#managed-services-highlight .section-title {
    text-align: center;
}

#managed-services-highlight .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title-large {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-display);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title-large::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 2px;
}

.about .section-title-large {
    position: relative;
    filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.15)) 
            drop-shadow(0 8px 25px rgba(0, 0, 0, 0.1)) 
            drop-shadow(0 3px 10px rgba(0, 0, 0, 0.08));
    text-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
}

.managed-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.managed-intro-content h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.managed-intro-content .btn {
    margin-top: 2rem;
}

.most-popular-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bronze-color), var(--accent-hover));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.managed-intro-image {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    min-height: 400px;
    border-radius: 16px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.managed-intro-image::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(192, 192, 192, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.managed-intro-image:hover::after {
    opacity: 1;
}

.managed-intro-image:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 215, 0, 0.2);
}

.managed-intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/glass-screen-wall-2025-04-01-12-54-03-utc.png') center/cover;
    border-radius: 16px;
    animation: bg-zoom-pan 12s ease-in-out infinite, bg-brightness 8s ease-in-out infinite;
}

@keyframes bg-zoom-pan {
    0%, 100% {
        transform: scale(1) translate(0, 0);
    }
    25% {
        transform: scale(1.12) translate(-3%, -3%);
    }
    50% {
        transform: scale(1.08) translate(3%, 2%);
    }
    75% {
        transform: scale(1.15) translate(-2%, 3%);
    }
}

@keyframes bg-brightness {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    50% {
        filter: brightness(1.15) contrast(1.1);
    }
}

/* Gold shading */
.managed-intro-bg-gold {
    filter: brightness(0.8) contrast(1.25) sepia(0.6) hue-rotate(25deg) saturate(1.5);
}

.managed-intro-bg-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(218, 165, 32, 0.35) 0%, 
        rgba(184, 134, 11, 0.3) 30%,
        rgba(212, 175, 55, 0.32) 60%,
        rgba(218, 165, 32, 0.35) 100%
    );
    border-radius: 16px;
}

.managed-intro-bg-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(218, 165, 32, 0.3) 0%, transparent 50%);
    border-radius: 16px;
    animation: gold-shimmer 8s ease-in-out infinite;
}

@keyframes gold-shimmer {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Silver shading */
.managed-intro-bg-silver {
    filter: brightness(0.9) contrast(1.15) grayscale(0.6) sepia(0.3) hue-rotate(-10deg) saturate(0.6);
}

.managed-intro-bg-silver::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(192, 192, 192, 0.4) 0%, 
        rgba(211, 211, 211, 0.35) 30%,
        rgba(169, 169, 169, 0.38) 60%,
        rgba(192, 192, 192, 0.4) 100%
    );
    border-radius: 16px;
}

.managed-intro-bg-silver::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(192, 192, 192, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(211, 211, 211, 0.4) 0%, transparent 50%);
    border-radius: 16px;
    animation: silver-pulse 6s ease-in-out infinite;
}

@keyframes silver-pulse {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.85;
        filter: brightness(1.1);
    }
}

/* White/Light shading */
.managed-intro-bg-white {
    filter: brightness(1.3) contrast(1.05) grayscale(0.3) saturate(0.8);
}

.managed-intro-bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(240, 248, 255, 0.4) 0%, 
        rgba(245, 245, 245, 0.35) 30%,
        rgba(248, 248, 255, 0.38) 60%,
        rgba(240, 248, 255, 0.4) 100%
    );
    border-radius: 16px;
}

.managed-intro-bg-white::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 248, 255, 0.4) 0%, transparent 50%);
    border-radius: 16px;
    animation: white-glow 10s ease-in-out infinite;
}

@keyframes white-glow {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.15);
    }
}

.feature-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
    filter: sepia(0.15) saturate(0.9) hue-rotate(10deg);
    object-fit: contain;
}

.feature-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(90, 74, 58, 0.25);
    filter: sepia(0.2) saturate(1) hue-rotate(10deg);
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

.image-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-light);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.image-placeholder p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.managed-intro {
    max-width: 800px;
}

.managed-intro .lead {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.managed-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.managed-intro p strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===========================
   Pricing Section
   =========================== */

.pricing {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.pricing-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/unsplash-image-GWe0dlVD9e0.png') center/cover;
    background-attachment: fixed;
    filter: brightness(0.85) contrast(1.1);
    z-index: 0;
}

.pricing-bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(210, 210, 215, 0.05) 0%, 
        rgba(225, 225, 230, 0.04) 30%,
        rgba(235, 235, 240, 0.03) 60%,
        rgba(225, 225, 230, 0.04) 100%
    );
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.pricing::before::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: rgba(0, 0, 0, 0.4);
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
}

.pricing .section-title {
    font-size: 2.5rem;
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.pricing .section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    margin-top: 3rem;
    padding-top: 1rem;
    position: relative;
    z-index: 2;
}

.adhoc-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(192, 192, 192, 0.4);
}

.adhoc-card::before {
    opacity: 0.7;
}

.adhoc-card .pricing-tier {
    color: white;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 2.5rem;
    position: relative;
    transition: var(--transition-slow);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pricing-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.3);
}

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

.pricing-card.featured {
    border: 1px solid rgba(192, 192, 192, 0.5);
    box-shadow: 0 8px 30px rgba(192, 192, 192, 0.4);
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(15px);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-3px);
}

.subscription-badge {
    position: absolute;
    top: -1px;
    left: -1px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0 0 12px 0;
    box-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 150, 199, 0.3);
    z-index: 5;
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-badge::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 6px solid rgba(160, 130, 50, 0.8);
    border-bottom: 6px solid transparent;
}

.popular-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    padding: 0.6rem 1.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(192, 192, 192, 0.5);
    animation: pulse 2s ease-in-out infinite;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    z-index: 10;
}

@keyframes pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 6px 20px rgba(192, 192, 192, 0.5);
    }
    50% { 
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 8px 30px rgba(192, 192, 192, 0.6);
    }
}

.pricing-tier {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: white;
    margin-bottom: 0.5rem;
}

.tier-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
    padding-top: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.pricing-note {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    padding: 2.5rem;
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.pricing-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light), var(--accent-color));
}

.pricing-note p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.pricing-note p:last-child {
    margin-bottom: 0;
}

/* ===========================
   Benefits Section
   =========================== */

.benefits {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.benefits-header-centered {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title-centered {
    font-size: 2.5rem;
    font-family: var(--font-display);
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.corporate-tech-bg {
    display: none;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    transition: var(--transition-slow);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05), rgba(192, 192, 192, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

.benefit-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(220, 220, 220, 0.1));
    border-radius: 12px;
    padding: 12px;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(220, 220, 220, 0.2));
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.benefit-card p {
    margin: 0;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* ===========================
   Experience Section
   =========================== */

.experience {
    padding: var(--section-padding);
    background: url('images/glass-screen-wall-2025-04-01-12-54-03-utc.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(54, 57, 63, 0.7) 0%, rgba(64, 67, 73, 0.65) 50%, rgba(54, 57, 63, 0.7) 100%),
        radial-gradient(circle at 20% 30%, rgba(74, 77, 83, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(60, 63, 69, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

.experience::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(44, 47, 53, 0.6) 0%, rgba(54, 57, 63, 0.55) 50%, rgba(44, 47, 53, 0.6) 100%),
        radial-gradient(ellipse at center, rgba(64, 67, 73, 0.5) 0%, rgba(50, 53, 59, 0.25) 40%, transparent 70%);
    pointer-events: none;
}

.experience .container {
    position: relative;
    z-index: 1;
}

.experience .section-title-large,
.experience .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.experience .section-badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.experience .insight-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.experience .insight-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}

.experience .insight-card h3 {
    color: var(--text-primary);
}

.experience .insight-card p {
    flex-grow: 1;
    color: var(--text-secondary);
}

.experience .insight-card .card-link {
    color: var(--accent-color);
    font-weight: 600;
}


.experience-grid-combined {
    position: relative;
}


.experience-intro {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.experience-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 3px solid white;
    filter: sepia(0.15) saturate(0.9) hue-rotate(10deg);
    object-fit: cover;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.experience-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition-slow);
}

.experience-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.experience-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--accent-color), var(--silver-color), transparent) 1;
}

.experience-category ul {
    list-style: none;
    padding: 0;
}

.experience-category ul li {
    padding: 0.875rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: 1.25rem;
}

.experience-category ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ===========================
   Expertise Section
   =========================== */

.expertise {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.expertise-header-centered {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-top: 3rem;
}

.section-intro-centered {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.corporate-tech-bg-expertise {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 250px;
    z-index: 0;
    overflow: hidden;
}

.corporate-tech-bg-expertise::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    left: -10%;
    top: -10%;
    background: url('images/blue-gradient-background-halftone-style-2025-02-10-09-35-25-utc.png') center/cover;
    opacity: 0.1;
    animation: bg-pan 40s ease-in-out infinite;
}

.corporate-tech-bg-expertise::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 150, 199, 0.1) 0%, transparent 50%);
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes bg-pan {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-20px, 20px) scale(1.08);
    }
    66% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.section-title {
    text-align: left;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 2px;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    line-height: 1.8;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.expertise-grid-combined {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 1100px) {
    .expertise-grid-combined {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .expertise-grid-combined {
        grid-template-columns: 1fr;
    }
}

.expertise-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}


.expertise-card {
    background: var(--bg-card);
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: var(--transition-slow);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

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

.expertise-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
}

.expertise-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-link {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link::after {
    content: '';
    transition: transform 0.3s ease;
}

.card-link:hover {
    color: var(--accent-color);
}

.card-link:hover::after {
    transform: translateX(5px);
}

/* ===========================
   Insights Section
   =========================== */

.insights {
    padding: var(--section-padding);
    /* Match the background styling of the "Lawyers who know tech." (About) section */
    background: 
        linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f5f5f5 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(0, 0, 0, 0.015) 50px,
            rgba(0, 0, 0, 0.015) 100px
        );
    position: relative;
}

.insights::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.managed-services-summary {
    max-width: 1000px;
    margin: 0 auto;
}

.managed-services-content {
    text-align: center;
}

.managed-services-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.managed-services-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.managed-services-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(192, 192, 192, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

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

.feature-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 215, 0, 0.3);
    cursor: pointer;
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

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

.managed-services-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.insight-card {
    background: var(--bg-card);
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: var(--transition-slow);
    border-radius: 12px;
    position: relative;
}

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

.insight-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.insight-type {
    display: inline-block;
    font-size: 0.75rem;
    color: white;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(192, 192, 192, 0.3);
}

.insight-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.insight-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* ===========================
   CTA Banner
   =========================== */

.cta-banner {
    padding: 5rem 2rem;
    /* Use a richer, darker gradient here so the foreground text has strong contrast */
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(192, 192, 192, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(160, 160, 160, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes glow-shift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    /* High-contrast heading on the darker CTA background */
    color: var(--text-inverse);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-family: var(--font-display);
    text-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.cta-content p {
    /* Slightly softened but still high-contrast body text */
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.35);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-banner .btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-banner .btn-primary:hover {
    background: linear-gradient(135deg, #a8a8a8, #c0c0c0);
    color: white;
    border-color: #a8a8a8;
    transform: translateY(-3px);
}

.cta-banner .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

/* ===========================
   About Section
   =========================== */

.about {
    padding: var(--section-padding);
    background: 
        linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f5f5f5 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(0, 0, 0, 0.015) 50px,
            rgba(0, 0, 0, 0.015) 100px
        );
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(192, 192, 192, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(192, 192, 192, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.about-wrapper {
    max-width: 1200px;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-intro-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.about-intro-content p {
    margin-bottom: 1.5rem;
}

.about-intro-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.tech-animation-container {
    width: 100%;
    height: 500px;
    position: relative;
    background: linear-gradient(135deg, rgba(155, 133, 121, 0.05), rgba(192, 192, 192, 0.05));
    border-radius: 16px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    z-index: 2;
}

.tech-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    filter: sepia(0.45) saturate(1.2) hue-rotate(-10deg) brightness(0.95) contrast(1.15);
}

.tech-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, 
            rgba(184, 134, 11, 0.25) 0%, 
            rgba(205, 127, 50, 0.2) 30%,
            rgba(218, 165, 32, 0.22) 60%,
            rgba(184, 134, 11, 0.25) 100%
        ),
        radial-gradient(circle at center, rgba(218, 165, 32, 0.15) 0%, transparent 70%);
    border-radius: 16px;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.animated-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(192, 192, 192, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 192, 192, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

.floating-code-blocks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.code-block {
    position: absolute;
    width: 100px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    opacity: 0.15;
    border-radius: 8px;
    animation: float-block 8s ease-in-out infinite;
}

.cb-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.cb-2 {
    top: 40%;
    right: 15%;
    width: 80px;
    height: 80px;
    animation-delay: 1s;
}

.cb-3 {
    bottom: 25%;
    left: 20%;
    width: 120px;
    height: 50px;
    animation-delay: 2s;
}

.cb-4 {
    top: 60%;
    right: 25%;
    width: 90px;
    height: 70px;
    animation-delay: 1.5s;
}

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

.tech-circles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tech-circle-anim {
    position: absolute;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-circle 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.2);
}

.tc-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.tc-2 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 20%;
    animation-delay: 1s;
}

.tc-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes pulse-circle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
}

.flow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.4;
    animation: flow-move 6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.fl-1 {
    width: 200px;
    top: 30%;
    left: 0;
    animation-delay: 0s;
}

.fl-2 {
    width: 250px;
    top: 60%;
    right: 0;
    animation-delay: 1s;
}

.fl-3 {
    width: 180px;
    bottom: 25%;
    left: 15%;
    animation-delay: 2s;
}

@keyframes flow-move {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(300px);
        opacity: 0;
    }
}

.about-header-with-image {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-image {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.recognition-badges-about {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.recognition-badge-img {
    width: 110px;
    max-width: 110px;
    height: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition-base);
    mix-blend-mode: multiply;
    object-fit: contain;
    position: relative;
    overflow: hidden;
}

.recognition-badge-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6) 30%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.6) 70%,
        transparent
    );
    pointer-events: none;
    z-index: 3;
    animation: shimmer-badge 3s ease-in-out infinite;
    transform: skewX(-20deg);
}

.recognition-badge-img:nth-child(1)::before {
    animation-delay: 0s;
}

.recognition-badge-img:nth-child(2)::before {
    animation-delay: 1.5s;
}

@keyframes shimmer-badge {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.recognition-badge-img:hover {
    transform: scale(1.05);
}

.profile-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
    filter: sepia(0.15) saturate(0.9) hue-rotate(10deg);
    object-fit: cover;
}

.hero-badges-row {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-badge-image {
    width: 120px;
    height: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.hero-badge-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.about-wrapper .section-title {
    margin-bottom: 2.5rem;
}

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

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.why-choose-section {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 50%, #cd7f32 100%);
    color: white;
    padding: 6rem 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    pointer-events: none;
    animation: pattern-slide 20s linear infinite;
}

@keyframes pattern-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(20px);
    }
}

.why-choose-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.why-choose-section .container {
    position: relative;
    z-index: 1;
}

.why-choose-section h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    font-family: var(--font-display);
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 1rem;
}

.why-choose-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: line-expand 1s ease-out;
}

@keyframes line-expand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        opacity: 1;
    }
}

.about-capabilities h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

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

.capability {
    position: relative;
    padding: 2rem;
    padding-left: 4rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: fade-in-up 0.6s ease-out forwards;
    overflow: hidden;
}

.capability::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent
    );
    pointer-events: none;
    z-index: 1;
}

.capability:nth-child(1) {
    animation-delay: 0.1s;
}

.capability:nth-child(2) {
    animation-delay: 0.2s;
}

.capability:nth-child(3) {
    animation-delay: 0.3s;
}

.capability:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.capability:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
}

.capability::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent
    );
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.capability-arrow {
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
    transform: translateX(0);
    z-index: 2;
}

.capability:hover .capability-arrow {
    transform: translateX(5px) scale(1.2);
    color: var(--accent-hover);
}

.capability::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-light));
    border-radius: 12px 0 0 12px;
    transition: height 0.4s ease;
    z-index: 1;
}

.capability:hover::after {
    height: 100%;
}

.capability h4 {
    margin-bottom: 0.75rem;
    margin-left: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.capability:hover h4 {
    color: var(--accent-color);
}

.capability p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    transition: color 0.3s ease;
    margin-left: 1rem;
}

.capability:hover p {
    color: var(--text-primary);
}

/* ===========================
   Contact Section
   =========================== */

.contact {
    padding: var(--section-padding);
    /* Use the same refined background treatment as the dedicated contact-form section */
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05) 0%, rgba(160, 160, 160, 0.08) 100%);
    position: relative;
}

.contact .section-subtitle {
    text-align: left;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact .section-subtitle a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    transition: var(--transition-base);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(192, 192, 192, 0.3);
}

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

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

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

.contact-form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.contact-form:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(192, 192, 192, 0.1);
}

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

.contact-form button {
    width: auto;
    margin-top: 1rem;
}

.contact-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===========================
   Video Sections
   =========================== */

.video-section {
    padding: 6rem 0;
    position: relative;
}

.video-section.video-about {
    background: url('images/glass-screen-wall-2025-04-01-12-54-03-utc.png') center/cover no-repeat;
    position: relative;
}

.video-section.video-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(54, 57, 63, 0.7) 0%, rgba(64, 67, 73, 0.65) 50%, rgba(54, 57, 63, 0.7) 100%),
        radial-gradient(circle at 20% 30%, rgba(74, 77, 83, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(60, 63, 69, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

.video-section.video-about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(44, 47, 53, 0.6) 0%, rgba(54, 57, 63, 0.55) 50%, rgba(44, 47, 53, 0.6) 100%),
        radial-gradient(ellipse at center, rgba(64, 67, 73, 0.5) 0%, rgba(50, 53, 59, 0.25) 40%, transparent 70%);
    pointer-events: none;
}

.video-section.video-about .section-title-large,
.video-section.video-about .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-section.video-about .section-badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.video-section.video-about .video-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-section.video-about .video-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.video-section.video-about .video-card h3 {
    color: rgba(255, 255, 255, 0.95);
}

.video-section.video-about .video-card p {
    color: rgba(255, 255, 255, 0.7);
}

.video-section.video-about .container {
    position: relative;
    z-index: 1;
}

.video-section.video-resources {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.video-section.video-resources .section-badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.video-section.video-resources .section-title-large,
.video-section.video-resources .section-subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.video-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(192, 192, 192, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

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

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 215, 0, 0.2);
}

.video-placeholder,
.video-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.video-embed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.4) 0%,
        rgba(52, 73, 94, 0.35) 50%,
        rgba(44, 62, 80, 0.4) 100%
    );
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 12px 12px 0 0;
}

.video-card:hover .video-embed::after {
    opacity: 0.6;
}

.video-embed iframe {
    border-radius: 12px 12px 0 0;
}

.video-placeholder {
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-orange {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-card:hover .video-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.video-card h3 {
    padding: 1.75rem 2rem 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    position: relative;
}

.video-card h3::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 2rem;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), rgba(255, 215, 0, 0.3));
    border-radius: 2px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.video-card:hover h3::before {
    opacity: 1;
    transform: translateX(0);
}

.video-card:hover h3 {
    padding-top: 2.25rem;
}

.video-card p {
    padding: 0 2rem 2rem;
    color: #546e7a;
    font-size: 0.95rem;
    line-height: 1.7;
}

.video-resources .video-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-resources .video-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: url('images/glass-screen-wall-2025-04-01-12-54-03-utc.png') center/cover no-repeat;
    color: var(--text-inverse);
    padding: 3rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(54, 57, 63, 0.7) 0%, rgba(64, 67, 73, 0.65) 50%, rgba(54, 57, 63, 0.7) 100%),
        radial-gradient(circle at 20% 30%, rgba(74, 77, 83, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(60, 63, 69, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(44, 47, 53, 0.6) 0%, rgba(54, 57, 63, 0.55) 50%, rgba(44, 47, 53, 0.6) 100%),
        radial-gradient(ellipse at center, rgba(64, 67, 73, 0.5) 0%, rgba(50, 53, 59, 0.25) 40%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 0.9fr 2fr 0.85fr 0.6fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    align-items: start;
}

.footer-intro {
    grid-column: 1;
}

.footer-section {
    margin: 0;
    padding: 0;
}

.footer-expertise {
    grid-column: 2;
}

.footer-expertise,
.footer-section:last-child {
    align-self: start;
}

.expertise-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.expertise-category h4 {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0;
    line-height: 1.2;
    min-height: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.expertise-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-category ul li {
    margin-bottom: 0.75rem;
}

.expertise-category ul li:last-child {
    margin-bottom: 0;
}

.expertise-category ul li a {
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.expertise-category ul li a:hover {
    color: var(--accent-light);
    padding-left: 0.5rem;
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    margin-top: 0;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    min-height: 2.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-section .logo-text {
    color: var(--text-inverse);
    font-size: 1.125rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
}

.footer-phone {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-phone:hover {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li:last-child {
    margin-bottom: 0;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: var(--transition-base);
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-bottom .disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1400px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .video-grid-2,
    .video-grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .capabilities-list {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .about-header-with-image {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .profile-badge {
        bottom: -20px;
        right: -20px;
    }
    
    .award-badge {
        width: 80px;
    }
    
    .experience-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .corporate-tech-bg,
    .corporate-tech-bg-expertise {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }
    
    /* Prevent horizontal overflow on mobile */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
    }
    
    img,
    video {
        max-width: 100%;
        height: auto;
    }
    
    .video-section {
        padding: 3rem 0;
    }
    
    .video-grid-2,
    .video-grid-4 {
        margin-top: 2rem;
    }
    
    .video-card h3 {
        font-size: 1.1rem;
        padding: 1.25rem 1.25rem 0.5rem;
    }
    
    .video-card p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Mobile Navigation Improvements */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        display: flex;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0;
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        color: var(--text-secondary) !important;
        text-shadow: none;
        font-size: 1.1rem;
        padding: 1rem 0.5rem;
        display: block;
        min-height: 44px;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0.5rem 0 0 1rem;
        border-top: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .has-dropdown.active .dropdown {
        max-height: 1000px;
    }
    
    .dropdown a {
        font-size: 1rem !important;
        padding: 0.85rem 1rem;
        border-left: 2px solid var(--accent-color);
        min-height: 44px;
    }
    
    .has-dropdown > a::after {
        float: right;
    }
    
    .nav-phone {
        display: block !important;
    }
    
    .nav-phone a {
        background: var(--accent-color);
        color: white !important;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
        display: block;
        margin-top: 1rem;
        min-height: 48px;
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
        min-width: 44px;
        min-height: 44px;
    }
    
    .mobile-menu-toggle span {
        background: white;
    }
    
    body:has(.service-hero) .mobile-menu-toggle span {
        background: white;
    }
    
    body:has(.service-hero) .header.scrolled .mobile-menu-toggle span {
        background: var(--text-secondary);
    }
    
    /* Hero Section Mobile Improvements */
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        padding: 2rem 1.25rem;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-main {
        text-align: left;
        padding: 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.75rem);
        line-height: 1.25;
        margin-bottom: 1.25rem;
        text-align: left;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .hero-engagement-badges {
        justify-content: flex-start;
        gap: 0.65rem;
        margin: 1.5rem 0;
        flex-wrap: wrap;
    }
    
    .engagement-badge {
        font-size: 0.8rem;
        padding: 0.65rem 1.1rem;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }
    
    .badge-managed {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
        min-height: 38px;
    }
    
    .hero-cta {
        justify-content: flex-start;
        gap: 1rem;
        margin-top: 2rem;
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        min-height: 52px;
        padding: 1rem 2rem;
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide hero stats on mobile */
    .hero-stats {
        display: none;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .hero-latest-insight {
        position: static;
        max-height: none;
        margin-top: 2rem;
        width: 100%;
    }
    
    .hero-insights-stack {
        gap: 1rem;
    }
    
    .hero-insight-card-stacked {
        padding: 1.5rem;
    }
    
    /* Sections & Content Mobile Improvements */
    .managed-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section-header-center {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .section-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .section-title-large {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Hide Deep Tech-Sector Expertise cards on mobile */
    .experience .insights-grid {
        display: none;
    }
    
    /* Hide images and image placeholders on mobile (except backgrounds and logos) */
    .about-intro-image,
    .tech-animation-container,
    .recognition-badges-about,
    .managed-intro-image,
    .clients-carousel,
    .video-section.video-about {
        display: none;
    }
    
    /* Adjust layouts when images are hidden */
    .about-intro-grid,
    .managed-intro-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .insight-card {
        padding: 1.75rem;
    }
    
    /* Contact & Form Mobile Improvements */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-info {
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        min-height: 48px;
        padding: 0.85rem 1rem;
    }
    
    .contact-form textarea {
        min-height: 120px;
    }
    
    .contact-form .btn {
        width: 100%;
        min-height: 52px;
        font-size: 1.05rem;
    }
    
    /* Footer Mobile Improvements */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-intro,
    .footer-expertise {
        grid-column: auto;
    }
    
    .expertise-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Cards & Grids Mobile Improvements */
    .expertise-grid,
    .pricing-grid,
    .benefits-grid,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .managed-services-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    /* Buttons & Touch Targets */
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .btn-large {
        min-height: 52px;
        padding: 1.15rem 2.5rem;
        font-size: 1.05rem;
    }
    
    /* Improve tap targets for links */
    a {
        min-height: 24px;
        display: inline-block;
    }
    
    /* Video Section Mobile */
    .video-grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* About Section Mobile */
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .capabilities-list {
        gap: 1.5rem;
    }
    
    .capability {
        padding: 1.5rem;
    }
    
    /* Prevent overflow from animations and particles */
    .hero-particles,
    .hero-shapes,
    .hero-grid-lines {
        display: none;
    }
    
    /* Improve spacing for better mobile experience */
    section {
        overflow-x: hidden;
    }
    
    /* Better logo sizing for header */
    .header .logo-image {
        height: 60px;
    }
    
    .header.scrolled .logo-image {
        height: 55px;
    }
}

@media (max-width: 480px) {
    /* Container & Base Spacing for Small Mobile */
    .container {
        padding: 0 1rem;
    }
    
    body {
        font-size: 15px;
    }
    
    /* Hero Section for Small Mobile */
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-main {
        text-align: left;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        line-height: 1.25;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.65;
        text-align: left;
        margin-bottom: 1.25rem;
    }
    
    .engagement-badges,
    .hero-engagement-badges {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 1.25rem 0;
    }
    
    .engagement-badge {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
        min-height: 34px;
    }
    
    .badge-managed {
        font-size: 0.8rem;
        padding: 0.65rem 1.1rem;
        min-height: 36px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
        margin-top: 1.75rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    /* Hero stats are hidden on mobile (see 768px breakpoint) */
    .hero-stats {
        display: none;
    }
    
    .hero-latest-insight {
        padding: 0;
        margin-top: 2rem;
    }
    
    .hero-latest-insight-header {
        margin-bottom: 1rem;
    }
    
    .hero-insights-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.85rem;
    }
    
    .hero-insight-card-stacked {
        padding: 1.25rem;
    }
    
    .hero-insight-title {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .hero-insight-date {
        font-size: 0.75rem;
    }
    
    /* Sections for Small Mobile */
    .section-header-center {
        padding: 0 0.5rem;
        margin-bottom: 2.5rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 0.45rem 0.9rem;
    }
    
    .section-title,
    .section-title-large {
        font-size: clamp(1.65rem, 6vw, 2rem);
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    /* Cards for Small Mobile */
    .expertise-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expertise-card,
    .insight-card,
    .pricing-card,
    .benefit-card {
        padding: 1.5rem;
    }
    
    .insight-card h3 {
        font-size: 1.1rem;
    }
    
    .insight-card p {
        font-size: 0.9rem;
    }
    
    /* Pricing for Small Mobile */
    .pricing-amount .price {
        font-size: 2.25rem;
    }
    
    /* Lists for Small Mobile */
    .experience-category ul li {
        font-size: 0.9rem;
    }
    
    .contact-form-info ul li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    /* Footer for Small Mobile */
    .footer {
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.85rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.65rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .footer-logo-image {
        height: 50px;
    }
    
    /* CTA Boxes for Small Mobile */
    .cta-box {
        padding: 1.5rem 1.25rem;
    }
    
    .cta-box h3 {
        font-size: 1.25rem;
    }
    
    .cta-box p {
        font-size: 0.9rem;
    }
    
    /* Service Pages for Small Mobile */
    .service-hero {
        padding: 6rem 0 3rem;
    }
    
    .service-hero h1 {
        font-size: clamp(1.65rem, 6vw, 2rem);
        line-height: 1.3;
    }
    
    .service-intro {
        font-size: 1rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    /* Navigation for Small Mobile */
    .logo-image {
        height: 55px;
    }
    
    .nav {
        padding: 1.5rem 1rem;
    }
    
    /* Managed Services for Small Mobile */
    .managed-intro-content h3 {
        font-size: 1.35rem;
    }
    
    .managed-intro-content p {
        font-size: 0.95rem;
    }
    
    /* Video Cards for Small Mobile */
    .video-card h3 {
        font-size: 1rem;
    }
    
    .video-card p {
        font-size: 0.85rem;
    }
    
    /* Forms for Small Mobile */
    .contact-form {
        padding: 1.75rem 1.25rem;
    }
    
    .contact-form-title {
        font-size: 1.35rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Contact page for Small Mobile */
    .contact-page .service-content {
        padding: 3rem 1rem;
    }
    
    .contact-page .main-content h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .contact-page .main-content h3 {
        font-size: 1.4rem;
    }
    
    .contact-page .main-content p,
    .contact-page .main-content li {
        font-size: 0.95rem;
    }
    
    .contact-page .cta-box {
        padding: 1.5rem 1rem;
    }
    
    /* Clients Carousel for Small Mobile */
    .clients-carousel {
        padding: 2rem 0 3rem;
        margin-top: -2rem;
    }
    
    .clients-intro h3 {
        font-size: 1.15rem;
        padding: 0 1rem;
    }
    
    .client-logo {
        max-height: 35px;
        width: auto;
    }
    
    .clients-slide {
        gap: 3rem;
    }
    
    /* About Section for Small Mobile */
    .about-intro-content p {
        font-size: 0.95rem;
    }
    
    .capability h4 {
        font-size: 1.05rem;
    }
    
    .capability p {
        font-size: 0.9rem;
    }
    
    /* Recognition Badges for Small Mobile */
    .recognition-badges-about {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .recognition-badge-img {
        max-width: 180px;
    }
}

/* ===========================
   Additional Mobile Enhancements for iPhone
   =========================== */

/* iPhone SE and very small screens (320px - 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: clamp(1.65rem, 8vw, 2rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-cta .btn {
        padding: 0.95rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .section-title-large {
        font-size: clamp(1.5rem, 7vw, 1.85rem);
    }
    
    .container {
        padding: 0 0.85rem;
    }
    
    .nav {
        padding: 1.5rem 0.85rem;
    }
    
    .logo-image {
        height: 50px;
    }
}

/* Improve touch interactions on all mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    a,
    button,
    .btn,
    .engagement-badge {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Prevent zoom on input focus (iOS) */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px;
    }
    
    /* Smooth scrolling on mobile */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===========================
   Animations
   =========================== */

/* Scroll reveal animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Staggered animations */
.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-card,
.expertise-card,
.insight-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.benefit-card:nth-child(1),
.expertise-card:nth-child(1) {
    animation-delay: 0.1s;
}

.benefit-card:nth-child(2),
.expertise-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3),
.expertise-card:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-card:nth-child(4),
.expertise-card:nth-child(4) {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(5),
.expertise-card:nth-child(5) {
    animation-delay: 0.5s;
}

.benefit-card:nth-child(6),
.expertise-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Parallax effect on hero */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.02) 0%, rgba(196, 154, 108, 0.05) 100%);
    pointer-events: none;
}

/* ===========================
   Mobile Menu Styles
   =========================== */

@media (max-width: 768px) {
    /* Disable scrolled header effect on mobile and hide logo on scroll */
    .header.scrolled,
    body:has(.service-hero) .header.scrolled {
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    .logo-image {
        filter: brightness(0) invert(1) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5)) !important;
        animation: none !important;
    }
    
    /* Hide logo when scrolled on mobile */
    .header.scrolled .logo,
    .header.scrolled .logo-image,
    body:has(.service-hero) .header.scrolled .logo,
    body:has(.service-hero) .header.scrolled .logo-image {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .header.scrolled .nav-menu a,
    body:has(.service-hero) .header.scrolled .nav-menu a {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    }
    
    .header.scrolled .nav-menu > li > a:hover,
    body:has(.service-hero) .header.scrolled .nav-menu > li > a:hover {
        color: white !important;
    }
    
    .header.scrolled .nav-phone a,
    body:has(.service-hero) .header.scrolled .nav-phone a {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
    }
    
    /* Hide client carousel on mobile */
    .clients-carousel {
        display: none;
    }
    
    /* Hide insights section on mobile */
    .hero-latest-insight {
        display: none;
    }
    
    /* Hide hero CTA buttons and stats on mobile */
    .hero-cta {
        display: none !important;
    }
    
    .hero-stats {
        display: none !important;
    }
    
    /* Hide capability arrows on mobile */
    .capability-arrow {
        display: none;
    }
    
    /* Add horizontal divider after hero section on mobile */
    .hero {
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 3rem;
        clip-path: none !important;
    }
    
    /* Remove hero gradient overlay and shaped divider on mobile */
    .hero::after {
        display: none !important;
    }
    
    .hero-content {
        clip-path: none !important;
    }
    
    /* Replace shaped divider with simple horizontal line above About section */
    .about::before {
        display: none !important;
    }
    
    .about::after {
        display: none !important;
    }
    
    .about {
        border-top: 2px solid rgba(0, 0, 0, 0.1);
        padding-top: 3rem;
        background: var(--bg-primary) !important;
        background-image: none !important;
    }
    
    /* Center the Most Popular badge on mobile */
    .most-popular-badge {
        display: block;
        text-align: center;
        margin: 0.5rem auto 0;
    }
    
    .managed-intro-content h3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Center managed services section on mobile */
    .managed-services-hero .section-header-center,
    .managed-services-hero .managed-intro-content {
        text-align: center;
    }
    
    .managed-services-hero .managed-intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .managed-services-hero .managed-intro-content .btn {
        margin-left: auto;
        margin-right: auto;
        display: inline-block;
    }
    
    .managed-services-hero .managed-intro-content h3 {
        text-align: center;
    }
    
    .managed-services-hero .managed-intro-content p {
        text-align: center;
    }
    
    /* Hide footer expertise columns on mobile - only show Resources and Legal */
    .footer-expertise {
        display: none;
    }
    
    /* Add horizontal separator after contact section on mobile */
    .contact {
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 3rem;
    }
    
    .logo {
        margin-left: 0.5rem;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        animation: slideDown 0.3s ease-out;
        gap: 0;
    }
    
    /* Mobile menu item styling */
    .nav-menu.active > li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 0;
    }
    
    .nav-menu.active > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu.active a {
        color: var(--text-primary) !important;
        text-shadow: none !important;
        padding: 1rem 0.75rem !important;
        font-size: 1rem !important;
        font-weight: 500;
        border-radius: 0 !important;
        border: none !important;
    }
    
    .nav-menu.active > li > a::after {
        display: none;
    }
    
    .nav-menu.active a:hover {
        background: rgba(0, 0, 0, 0.03);
        color: var(--primary-color) !important;
    }
    
    .nav-menu.active .nav-phone a {
        background: var(--primary-color) !important;
        color: white !important;
        padding: 0.875rem 1.25rem !important;
        border-radius: 6px !important;
        text-align: center;
        font-weight: 600;
        margin-top: 0.5rem;
    }
    
    .nav-menu.active .nav-phone a:hover {
        background: var(--primary-dark) !important;
        transform: translateY(-1px);
    }
    
    .dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: none !important;
        padding-left: 0 !important;
        padding-top: 0.5rem !important;
        display: none !important;
        background: rgba(0, 0, 0, 0.02) !important;
        max-height: none !important;
        overflow: visible !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
    
    .dropdown li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        list-style: none !important;
        display: block !important;
    }
    
    .dropdown li:last-child {
        border-bottom: none !important;
    }
    
    .dropdown a {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
        color: #2c3e50 !important;
        display: block !important;
        text-shadow: none !important;
        font-weight: 500 !important;
    }
    
    .has-dropdown.active .dropdown {
        display: block !important;
    }
    
    .nav-menu.active .dropdown {
        position: static !important;
        width: 100% !important;
    }
    
    .nav-menu.active .has-dropdown.active .dropdown {
        display: block !important;
        animation: none !important;
    }
    
    .has-dropdown > a {
        position: relative;
    }
    
    .has-dropdown.active > a::before {
        content: '−';
        position: absolute;
        right: 0.75rem;
        font-size: 1.5rem;
        line-height: 1;
        color: var(--text-secondary);
    }
    
    .has-dropdown:not(.active) > a::before {
        content: '+';
        position: absolute;
        right: 0.75rem;
        font-size: 1.5rem;
        line-height: 1;
        color: var(--text-secondary);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

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

/* ===========================
   Profile Pages
   =========================== */

.profile-hero {
    padding: 10rem 2rem 4rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.profile-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-image {
    position: relative;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.image-placeholder svg {
    width: 100px;
    height: 100px;
}

.profile-info h1 {
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.profile-title {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.profile-contact {
    margin-top: 1.5rem;
}

.profile-contact p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.profile-contact a {
    color: var(--text-primary);
    transition: var(--transition-base);
}

.profile-contact a:hover {
    color: var(--accent-color);
}

.profile-content {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.profile-sections {
    max-width: 900px;
}

.profile-section {
    margin-bottom: 4rem;
}

.profile-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.profile-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.qualifications-list,
.experience-list,
.approach-list {
    list-style: none;
    padding: 0;
}

.qualifications-list li,
.experience-list li,
.approach-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
    color: var(--text-secondary);
}

.qualifications-list li::before,
.experience-list li::before,
.approach-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

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

.expertise-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-left: 3px solid var(--accent-color);
}

.expertise-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.expertise-item p {
    margin: 0;
    font-size: 0.95rem;
}

.cta-section {
    padding: 5rem 2rem;
    background: var(--bg-dark);
    text-align: center;
}

.cta-content h2 {
    color: var(--text-inverse);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, #a8a8a8, #c0c0c0);
    border-color: #a8a8a8;
}

.cta-section .btn-primary:hover {
    background: linear-gradient(135deg, #c0c0c0, #d3d3d3);
    border-color: #c0c0c0;
}

.cta-section .btn-secondary {
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Page-specific styles */
.page-hero {
    padding: 10rem 2rem 6rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 1.5rem;
}

.page-hero .lead {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.page-content {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.content-wrapper {
    max-width: 900px;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

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

.feature-box {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.feature-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.tier-details {
    margin: 3rem 0;
}

.tier-detail-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    transition: var(--transition-base);
}

.tier-detail-card:hover {
    box-shadow: var(--shadow-lg);
}

.tier-detail-card.featured-tier {
    border-color: var(--accent-color);
    background: var(--bg-secondary);
}

.tier-detail-card .badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--accent-color);
    color: white;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-detail-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.tier-desc {
    font-size: 1.125rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.tier-detail-card h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.tier-detail-card ul {
    list-style: none;
    padding: 0;
}

.tier-detail-card ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tier-detail-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .image-placeholder {
        margin: 0 auto;
    }
    
    .expertise-areas {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================
   Service Pages
   ========================================== */

/* Make header on service pages look identical to homepage */
body:has(.service-hero) .header {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

body:has(.service-hero) .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(90, 74, 58, 0.15);
}

body:has(.service-hero) .nav-menu a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 5px 20px rgba(0, 0, 0, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 0, 0, 0.2);
}

body:has(.service-hero) .header.scrolled .nav-menu a {
    color: var(--text-secondary);
    text-shadow: none;
}

body:has(.service-hero) .nav-menu > li > a:hover {
    color: white;
    transform: translateY(-2px);
}

body:has(.service-hero) .header.scrolled .nav-menu > li > a:hover {
    color: var(--primary-color);
}

body:has(.service-hero) .nav-phone a {
    color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.15);
}

body:has(.service-hero) .nav-phone a:hover {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

body:has(.service-hero) .header.scrolled .nav-phone a {
    color: var(--text-secondary) !important;
    border-color: rgba(0, 0, 0, 0.1);
    text-shadow: none;
}

body:has(.service-hero) .header.scrolled .nav-phone a:hover {
    color: var(--primary-color) !important;
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.02);
}

body:has(.service-hero) .logo-image {
    filter: 
        brightness(0) 
        invert(1) 
        drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4))
        drop-shadow(0 5px 20px rgba(0, 0, 0, 0.3))
        drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

body:has(.service-hero) .header.scrolled .logo-image {
    filter: none;
}

body:has(.service-hero) .has-dropdown > a::after {
    content: '▾';
    margin-left: 0.4rem;
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

body:has(.service-hero) .has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

body:has(.service-hero) .dropdown {
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 320px;
    max-height: 600px;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

body:has(.service-hero) .dropdown a {
    color: var(--text-secondary);
    text-shadow: none;
}

body:has(.service-hero) .dropdown a:hover {
    background: linear-gradient(90deg, 
        rgba(184, 134, 11, 0.08) 0%, 
        rgba(218, 165, 32, 0.04) 50%,
        transparent 100%
    );
    color: var(--primary-color);
    padding-left: 2rem;
    transform: translateX(4px);
}

body:has(.service-hero) .dropdown a:hover::before {
    transform: scaleY(1);
}

body:has(.service-hero) .dropdown a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.service-hero {
    background: url('images/glass-screen-wall-2025-04-01-12-54-03-utc.png') center/cover no-repeat;
    padding: 12rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(54, 57, 63, 0.7) 0%, rgba(64, 67, 73, 0.65) 50%, rgba(54, 57, 63, 0.7) 100%),
        radial-gradient(circle at 20% 30%, rgba(74, 77, 83, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(60, 63, 69, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

.service-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(44, 47, 53, 0.6) 0%, rgba(54, 57, 63, 0.55) 50%, rgba(44, 47, 53, 0.6) 100%),
        radial-gradient(ellipse at center, rgba(64, 67, 73, 0.5) 0%, rgba(50, 53, 59, 0.25) 40%, transparent 70%);
    pointer-events: none;
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: none;
}

.service-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-intro {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 5px 20px rgba(0, 0, 0, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    line-height: 1.6;
}

.service-content {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Contact page: make the main content and form each take half the width on desktop */
.contact-page .content-grid {
    grid-template-columns: 1fr 1fr;
}

.main-content {
    max-width: 900px;
}

.main-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.main-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.main-content h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.main-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.main-content ul {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

.main-content ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.main-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.cta-box {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(160, 160, 160, 0.15) 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.cta-box h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Lists inside sidebar CTA boxes (e.g. onboarding "What Happens Next?") */
.sidebar .cta-box ul {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding-left: 0;
}

.sidebar .cta-box ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sidebar .cta-box ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.35rem;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.cta-box .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.related-services {
    background: rgba(248, 248, 248, 0.5);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-services h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.related-services ul {
    list-style: none;
    padding: 0;
}

.related-services ul li {
    margin-bottom: 1rem;
}

.related-services ul li a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-base);
    display: block;
    padding: 0.5rem 0;
}

.related-services ul li a:hover {
    color: var(--accent-hover);
    padding-left: 0.5rem;
}

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

.benefit-card {
    background: rgba(248, 248, 248, 0.5);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.benefit-card h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

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

.tier-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tier-card {
    background: rgba(248, 248, 248, 0.5);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.tier-card.featured {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(160, 160, 160, 0.2) 100%);
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    position: relative;
}

.tier-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.tier-card h4 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 0;
}

.tier-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.tier-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tier-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tier-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* Contact Form Section */
.contact-form-section {
    padding: 1rem 0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05) 0%, rgba(160, 160, 160, 0.08) 100%);
    width: 100%;
    overflow-x: auto;
}

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

/* Calendly wrapper - break out of container */
.calendly-wrapper {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 2rem auto 0;
    padding: 0;
}

/* Calendly widget styling */
.service-content .calendly-inline-widget,
.contact-form-section .calendly-inline-widget {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

.service-content .calendly-inline-widget iframe,
.contact-form-section .calendly-inline-widget iframe {
    width: 100% !important;
    height: 700px !important;
    border: none !important;
    display: block !important;
}

.contact-form-info {
    padding-right: 2rem;
}

.contact-form-info h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.contact-form-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-form-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-form-info ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-form-info ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.contact-form-container {
    position: relative;
}

.contact-form-container h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: translateY(0);
    transition: var(--transition-base);
}

.service-contact-form:hover {
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.15),
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: white;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(192, 192, 192, 0.1);
}

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

.service-contact-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sidebar {
        position: static;
    }
    
    /* Contact page specific tablet fixes */
    .contact-page .content-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .contact-page .sidebar {
        order: -1;
    }
    
    .contact-page .main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-intro {
        font-size: 1.2rem;
    }
    
    .service-content {
        padding: 4rem 1.5rem;
    }
    
    .main-content h2 {
        font-size: 2rem;
    }
    
    .main-content h3 {
        font-size: 1.6rem;
    }
    
    .benefits-grid,
    .tier-comparison {
        grid-template-columns: 1fr;
    }
    
    .tier-card.featured {
        transform: scale(1);
    }
    
    .tier-card:hover {
        transform: translateY(-4px);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .service-contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-section {
        padding: 1rem 0.5rem;
    }
    
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-info {
        padding-right: 0;
    }
    
    /* Contact page specific mobile fixes */
    .contact-page .content-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .contact-page .sidebar {
        order: -1;
    }
    
    .contact-page .main-content {
        order: 1;
    }
}

/* Phase Cards for Managed Services */
.phase-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.phase-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: var(--transition-base);
}

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

.phase-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.phase-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.phase-card p {
    line-height: 1.7;
}

/* Experience Columns */
.experience-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.7;
}

.styled-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .phase-container {
        grid-template-columns: 1fr;
    }
    
    .experience-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===========================
   Blog Post Styling
   =========================== */

#blog-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem auto 0;
    flex-wrap: wrap;
}

.blog-page-link {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.blog-page-link:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
    background: rgba(255, 215, 0, 0.05);
}

.blog-page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.blog-page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.blog-post-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-post-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.blog-post-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    position: relative;
}

.blog-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.blog-post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-post-date {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    align-self: flex-start;
}

.blog-post-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.blog-post-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-content h2 a:hover {
    color: var(--primary-color);
}

.blog-post-content p {
    flex-grow: 1;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

.blog-post-content .btn-secondary {
    align-self: flex-start;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.blog-post-content .btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-primary);
}

/* Responsive blog posts */
@media (max-width: 1200px) {
    #blog-posts-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #blog-posts-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-post-image {
        height: 200px;
    }
    
    .blog-post-content {
        padding: 1.5rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.375rem;
    }
    
    .blog-post-content p {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .blog-post-content {
        padding: 1.25rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.25rem;
    }
}

/* ===========================
   Blog Post Page Specific Styles
   =========================== */

/* Ensure CTA buttons in blog post sidebar are properly styled */
.sidebar .cta-box .btn-primary,
.sidebar .cta-box .btn-secondary {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.875rem 1.5rem !important;
    margin: 0 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
}

.sidebar .cta-box .btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
    border: 2px solid var(--primary-color) !important;
    margin-bottom: 1rem !important;
}

.sidebar .cta-box .btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(74, 74, 74, 0.4) !important;
}

.sidebar .cta-box .btn-secondary {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.sidebar .cta-box .btn-secondary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2) !important;
}

/* Blog post content styling */
#post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

#post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
}

#post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.375rem;
    font-weight: 600;
}

#post-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

#post-content p {
    margin-bottom: 1.25rem;
}

#post-content ul,
#post-content ol {
    margin: 1.25rem 0 1.25rem 2rem;
    line-height: 1.8;
}

#post-content ul li,
#post-content ol li {
    margin-bottom: 0.75rem;
}

#post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

#post-content a:hover {
    color: var(--primary-hover);
}

#post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

#post-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-primary);
}

#post-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

#post-content pre {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

#post-content pre code {
    background: none;
    padding: 0;
}

/* ===========================
   Form Messages & Loading States
   =========================== */

.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideInDown 0.3s ease;
}

.form-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

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

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-loader::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

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

/* ===========================
   Managed Services Page Enhancements
   =========================== */

/* Video Card - matching homepage video style */
.service-video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 3rem 0;
}

.service-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 215, 0, 0.2);
}

.service-video-card .video-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.video-card-content {
    padding: 1.75rem 2rem 2rem;
}

.video-card-content h4 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.video-card-content p {
    color: #546e7a;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Document Automation Showcase - Premium Design */
.automation-showcase-container {
    margin: 3.5rem 0;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.automation-header {
    padding: 4rem 3rem 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.automation-badge {
    display: inline-block;
    background: rgba(184, 134, 11, 0.1);
    color: #8b6914;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(184, 134, 11, 0.3);
    position: relative;
    z-index: 1;
}

.automation-header h4 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    color: #1f2937;
}

.automation-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.automation-workflow {
    padding: 3.5rem 3rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    position: relative;
    z-index: 2;
    background: #ffffff;
}

.workflow-step {
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-icon-box {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    animation: iconGlow 3s ease-in-out infinite;
}

.workflow-step:nth-child(1) .step-icon-box {
    animation-delay: 0s;
}

.workflow-step:nth-child(3) .step-icon-box {
    animation-delay: 1s;
}

.workflow-step:nth-child(5) .step-icon-box {
    animation-delay: 2s;
}

@keyframes iconGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border-color: #e5e7eb;
    }
    50% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.08),
            0 0 0 4px rgba(184, 134, 11, 0.15),
            0 0 20px rgba(184, 134, 11, 0.2);
        border-color: rgba(184, 134, 11, 0.4);
    }
}

.step-icon-box:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
    animation: none;
}

.step-svg {
    width: 36px;
    height: 36px;
    color: var(--accent-color);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.step-icon-box:hover .step-svg {
    transform: scale(1.1);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    background: rgba(184, 134, 11, 0.08);
    padding: 0.35rem 1rem;
    border-radius: 50px;
}

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

.step-details h5 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.step-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

.workflow-connector {
    flex: 0 0 80px;
    position: relative;
    margin: 0 -40px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-connector::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(184, 134, 11, 0.15) 10%,
        rgba(184, 134, 11, 0.3) 50%,
        rgba(184, 134, 11, 0.15) 90%,
        transparent 100%
    );
    border-radius: 10px;
}

.workflow-connector::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--accent-color) 50%,
        transparent 100%
    );
    border-radius: 10px;
    animation: flowRight 2s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes flowRight {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}


/* Elegant Document Generation Animation */
.document-preview {
    margin: 3rem 3rem 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}

.doc-window {
    background: white;
}

.doc-header-bar {
    background: #f9fafb;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-filename {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.doc-author {
    font-size: 0.75rem;
    color: #6b7280;
}

.doc-content {
    padding: 3rem 4rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: white;
    min-height: 500px;
}

.doc-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #1f2937;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.doc-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #1f2937;
    margin-bottom: 1.25rem;
    text-align: justify;
    opacity: 0;
}

/* Typing Animation Effect */
.typing-text {
    min-height: 1.8em;
}

/* Blinking cursor while typing */
.typing-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent-color);
    margin-left: 2px;
    animation: blink 0.7s step-end infinite;
    vertical-align: text-bottom;
}

/* Hide cursor after typing is complete */
.typing-text.typing-complete::after {
    display: none;
}

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

.generation-complete {
    margin-top: 3rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease 9s forwards;
}

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

.generation-complete svg {
    width: 24px;
    height: 24px;
    color: #10b981;
    flex-shrink: 0;
}

.generation-complete span {
    font-family: var(--font-body);
    font-weight: 600;
    color: #065f46;
    font-size: 0.9375rem;
}

.automation-value-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #e5e7eb;
    position: relative;
    z-index: 2;
    background: #ffffff;
}

.value-prop {
    padding: 2.5rem 2rem;
    border-right: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.value-prop:last-child {
    border-right: none;
}

.value-prop:hover {
    background: linear-gradient(to bottom, #ffffff, rgba(248, 250, 251, 0.5));
}

.prop-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.prop-icon-circle {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.prop-icon-circle svg {
    width: 26px;
    height: 26px;
    color: var(--accent-color);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.value-prop:hover .prop-icon-circle {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
}

.value-prop:hover .prop-icon-circle svg {
    transform: scale(1.1);
}

.prop-header strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
}

.value-prop p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .automation-workflow {
        flex-direction: column;
        gap: 3rem;
        padding: 3rem 2rem;
    }
    
    .workflow-connector {
        display: none;
    }
    
    .document-preview {
        margin: 2rem 1rem 0;
    }
    
    .doc-header-bar {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .doc-filename {
        font-size: 0.8125rem;
    }
    
    .doc-author {
        font-size: 0.7rem;
    }
    
    .doc-content {
        padding: 2rem 1.5rem;
        min-height: 400px;
    }
    
    .doc-main-title {
        font-size: 1.25rem;
    }
    
    .doc-text {
        font-size: 0.9375rem;
        text-align: left;
    }
    
    .automation-value-props {
        grid-template-columns: 1fr;
    }
    
    .value-prop {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .value-prop:last-child {
        border-bottom: none;
    }
    
    .automation-header {
        padding: 2rem 1.5rem;
    }
    
    .automation-header h4 {
        font-size: 1.75rem;
    }
    
    .automation-intro {
        font-size: 1rem;
    }
}

