/* ============================================
   RankyWave SEO Agency - Modern Stylesheet
   ============================================
   Inspired by premium agency design with
   gradients, animations, and modern aesthetics.
   ============================================ */

/* CSS Custom Properties - RankyWave Brand Colors */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --accent-light: #4ade80;
    --teal: #14b8a6;
    --purple: #8b5cf6;
    --secondary: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Colors */
body.dark-mode {
    --secondary: #f1f5f9;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --text-lighter: #64748b;
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-dark: #020617;
    --border: #334155;
    --border-light: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.25);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

.theme-toggle:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle .moon-icon {
    display: block;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Link Styles */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

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

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.logo-img {
    height: 48px;
    width: auto;
}

.footer-logo {
    height: 56px;
    filter: brightness(0) invert(1);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-close {
    display: none;
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

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

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 120px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-alt);
}

.section-dark {
    background: var(--bg-dark);
    color: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-dark .section-title {
    color: white;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

.section-dark .section-description {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 50%, #f0fdf4 100%);
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.hero-badge svg {
    color: var(--teal);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

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

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 100%);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
}

/* Dashboard Visual */
.hero-visual {
    position: relative;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dashboard-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
    animation: dance 2s ease-in-out infinite;
}

@keyframes dance {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
    }
    25% { 
        transform: translateY(-6px) rotate(-3deg) scale(1.05); 
        box-shadow: 0 8px 20px rgba(20, 184, 166, 0.6);
    }
    50% { 
        transform: translateY(-2px) rotate(0deg) scale(1.02); 
        box-shadow: 0 6px 16px rgba(20, 184, 166, 0.5);
    }
    75% { 
        transform: translateY(-6px) rotate(3deg) scale(1.05); 
        box-shadow: 0 8px 20px rgba(20, 184, 166, 0.6);
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
}

.dashboard-growth {
    color: var(--teal);
    font-size: 0.875rem;
    font-weight: 700;
}

.chart-container {
    height: 160px;
    margin-bottom: 24px;
    padding: 8px 0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--teal) 0%, var(--primary) 100%);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
    min-height: 20px;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
    transform-origin: bottom;
}

.dashboard-stats {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.dash-stat {
    flex: 1;
    text-align: center;
}

.dash-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.dash-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.traffic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    box-shadow: var(--shadow);
    animation: bounce-dance 1.5s ease-in-out infinite;
}

@keyframes bounce-dance {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% { 
        transform: translateY(-8px) scale(1.08); 
        box-shadow: 0 12px 24px rgba(20, 184, 166, 0.3);
    }
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
    margin-top: 32px;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
    border: none;
}

.service-highlight .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-highlight h3,
.service-highlight p {
    color: white;
}

.service-highlight::after {
    display: none;
}

/* ============================================
   Off-Page SEO Section
   ============================================ */
.offpage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.offpage-card {
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

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

.offpage-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.offpage-card h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.offpage-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.offpage-card-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, rgba(34, 197, 94, 0.03) 100%);
    border: 2px solid var(--primary);
}

/* ============================================
   On-Page SEO Section
   ============================================ */
.onpage-grid {
    display: grid;
    gap: 24px;
}

.onpage-item {
    display: flex;
    gap: 28px;
    padding: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.onpage-item:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.onpage-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: var(--radius-lg);
}

.onpage-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.onpage-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Technical SEO Section
   ============================================ */
.technical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.technical-card {
    padding: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.technical-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.technical-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(34, 197, 94, 0.08) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.technical-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    position: relative;
}

.technical-card p {
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
}

/* ============================================
   Content Strategy Section
   ============================================ */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.content-left .section-tag {
    display: inline-flex;
    margin-bottom: 20px;
}

.content-left .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.content-left > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    font-size: 1.0625rem;
}

.content-features {
    list-style: none;
}

.content-features li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    color: var(--text);
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.content-features li:last-child {
    border-bottom: none;
}

.content-features li svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-card {
    padding: 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.content-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.content-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   WordPress Section
   ============================================ */
.wordpress-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.wordpress-feature {
    padding: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.wordpress-feature:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.wordpress-feature h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.wordpress-feature p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Process Section
   ============================================ */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.process-step {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.step-content {
    flex: 1;
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.step-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Case Studies Section
   ============================================ */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    padding: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.case-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.case-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.case-card > p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

.case-results {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.result-item {
    display: flex;
    flex-direction: column;
}

.result-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   Why Us Section
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    padding: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.why-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 24px;
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-content .section-tag {
    display: inline-flex;
    margin-bottom: 20px;
}

.contact-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.contact-content > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    font-size: 1.0625rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text);
    font-size: 1rem;
}

.info-item svg {
    color: var(--primary);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

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

/* ============================================
   CTA Section
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--secondary);
    padding: 100px 0 40px;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-links li:not(:has(a)) {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: white;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .dashboard-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .about-grid,
    .content-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .services-grid,
    .cases-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: white;
        padding: 100px 40px 40px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        z-index: 100;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-close {
        display: block;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .chart-container {
        height: 120px;
    }
    
    .dashboard-stats {
        gap: 16px;
    }
    
    .dash-stat-number {
        font-size: 1.25rem;
    }
    
    .services-grid,
    .offpage-grid,
    .technical-grid,
    .wordpress-grid,
    .cases-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .offpage-card-featured {
        grid-column: span 1;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .process-timeline::before {
        left: 28px;
    }
    
    .step-marker {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    .onpage-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-lg {
        padding: 14px 28px;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   Dark Mode Specific Styles
   ============================================ */
body.dark-mode {
    background: var(--bg);
}

body.dark-mode .header {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: var(--border);
}

body.dark-mode .header.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

body.dark-mode .hero::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 50%);
}

body.dark-mode .hero-badge {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .hero-title {
    color: #f1f5f9;
}

body.dark-mode .dashboard-card {
    background: var(--bg-alt);
    border-color: var(--border);
}

body.dark-mode .traffic-badge {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .section-alt {
    background: var(--bg-alt);
}

body.dark-mode .section-title {
    color: #f1f5f9;
}

body.dark-mode .feature-card,
body.dark-mode .service-card,
body.dark-mode .offpage-card,
body.dark-mode .onpage-item,
body.dark-mode .technical-card,
body.dark-mode .content-card,
body.dark-mode .wordpress-feature,
body.dark-mode .step-content,
body.dark-mode .case-card,
body.dark-mode .why-card,
body.dark-mode .contact-form-wrapper {
    background: var(--bg-alt);
    border-color: var(--border);
}

body.dark-mode .feature-card h4,
body.dark-mode .service-card h3,
body.dark-mode .offpage-card h3,
body.dark-mode .onpage-content h3,
body.dark-mode .technical-card h3,
body.dark-mode .content-card h4,
body.dark-mode .wordpress-feature h3,
body.dark-mode .step-content h3,
body.dark-mode .case-card h3,
body.dark-mode .why-card h3 {
    color: #f1f5f9;
}

body.dark-mode .nav-link {
    color: var(--text);
}

body.dark-mode .nav-link:hover {
    color: var(--primary-light);
}

body.dark-mode .btn-secondary {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .btn-outline {
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: rgba(14, 165, 233, 0.1);
}

body.dark-mode .nav-toggle span {
    background: var(--text);
}

body.dark-mode .nav-menu {
    background: var(--bg);
}

body.dark-mode .nav-close {
    color: var(--text);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

body.dark-mode .logo-img {
    filter: brightness(1.1);
}

body.dark-mode .footer {
    background: #020617;
}

body.dark-mode .section-tag {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(34, 197, 94, 0.2) 100%);
    border-color: rgba(14, 165, 233, 0.3);
}

body.dark-mode .chart-bar {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--teal) 100%);
}

/* ============================================
   Enhanced Animations & Effects
   ============================================ */

/* Scroll Reveal Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Enhanced Card 3D Hover Effects */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}

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

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

.feature-card,
.why-card {
    position: relative;
}

.feature-card::before,
.why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}

.feature-card:hover::before,
.why-card:hover::before {
    opacity: 1;
}

.feature-card:hover,
.why-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.offpage-card:hover {
    transform: translateY(-6px);
    border-left: 4px solid var(--teal);
}

.case-card {
    position: relative;
}

.case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}

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

.case-card:hover {
    transform: translateY(-10px) scale(1.01);
}

/* Glowing Effects */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.glow-effect:hover::after {
    opacity: 1;
}

/* Floating Animation for Hero Elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

.float-animation-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

/* Hero Visual Enhancements - uses CSS custom properties for mouse parallax */
.dashboard-card {
    --mouse-x: 0px;
    --mouse-y: 0px;
    animation: float 8s ease-in-out infinite;
    transform: translate(var(--mouse-x), var(--mouse-y));
}

/* Gradient Text Animation */
.text-gradient-animated {
    background: linear-gradient(270deg, var(--teal), var(--accent), var(--primary), var(--teal));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Button Ripple Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

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

/* Smooth Icon Transitions */
.service-icon,
.feature-icon,
.why-icon {
    transition: transform 0.4s ease, background 0.4s ease;
}

.service-card:hover .service-icon,
.feature-card:hover .feature-icon,
.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

/* Process Timeline Animation */
.step-marker {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-step:hover .step-marker {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.process-step:hover .step-content {
    transform: translateX(12px);
    box-shadow: var(--shadow-xl);
}

/* Section Tag Pulse */
.section-tag {
    animation: tag-pulse 3s ease-in-out infinite;
}

@keyframes tag-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0); }
}

/* Chart Bar Animation on Scroll */
.chart-bar {
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.6s ease-out;
}

.chart-container.visible .chart-bar {
    transform: scaleY(1);
}

.chart-container.visible .chart-bar:nth-child(1) { transition-delay: 0.05s; }
.chart-container.visible .chart-bar:nth-child(2) { transition-delay: 0.1s; }
.chart-container.visible .chart-bar:nth-child(3) { transition-delay: 0.15s; }
.chart-container.visible .chart-bar:nth-child(4) { transition-delay: 0.2s; }
.chart-container.visible .chart-bar:nth-child(5) { transition-delay: 0.25s; }
.chart-container.visible .chart-bar:nth-child(6) { transition-delay: 0.3s; }
.chart-container.visible .chart-bar:nth-child(7) { transition-delay: 0.35s; }
.chart-container.visible .chart-bar:nth-child(8) { transition-delay: 0.4s; }
.chart-container.visible .chart-bar:nth-child(9) { transition-delay: 0.45s; }
.chart-container.visible .chart-bar:nth-child(10) { transition-delay: 0.5s; }
.chart-container.visible .chart-bar:nth-child(11) { transition-delay: 0.55s; }
.chart-container.visible .chart-bar:nth-child(12) { transition-delay: 0.6s; }

/* Stat Number Counter Animation */
.stat-number, .dash-stat-number, .result-number {
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number,
.dash-stat:hover .dash-stat-number {
    transform: scale(1.1);
}

/* Navigation Link Underline Animation */
.nav-link {
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::before {
    width: 100%;
    left: 0;
}

/* Contact Form Focus Effects */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
}

/* CTA Section Animated Background */
.cta::before {
    animation: pulse-glow 4s ease-in-out infinite;
}

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

/* Smooth Page Transitions */
.section {
    transition: background 0.5s ease;
}

/* Logo Hover Effect */
.nav-logo:hover .logo-img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Footer Links Animation */
.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--teal), var(--accent));
    z-index: 10001;
    transition: width 0.1s ease-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

/* Magnetic Button Effect - uses CSS custom properties */
.btn-primary,
.btn-secondary {
    --magnetic-x: 0px;
    --magnetic-y: 0px;
    transform: translate(var(--magnetic-x), var(--magnetic-y));
    transition: transform 0.2s ease-out, background 0.3s ease, box-shadow 0.3s ease;
}

/* Typing Cursor Animation */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

/* Section Background Transitions */
.section {
    position: relative;
    overflow: hidden;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section.in-view::after {
    opacity: 1;
}

/* Hero Mouse Parallax Elements */
.hero-parallax-layer {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Animated Counter Styles */
.counter-animated {
    display: inline-block;
    min-width: 2ch;
}

/* Dark Mode Adjustments for New Features */
body.dark-mode .back-to-top {
    background: linear-gradient(135deg, var(--primary-light), var(--teal));
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

body.dark-mode .scroll-progress {
    background: linear-gradient(90deg, var(--primary-light), var(--teal), var(--accent));
}

body.dark-mode .typing-cursor {
    background: var(--primary-light);
}

/* ============================================
   Page Loading Animation
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    animation: pulse-logo 1.5s ease-in-out infinite;
}

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

.loader-bar {
    width: 150px;
    height: 4px;
    background: rgba(14, 165, 233, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    border-radius: 2px;
    animation: loader-progress 1.5s ease-out forwards;
}

@keyframes loader-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

body.dark-mode .page-loader {
    background: var(--dark-bg);
}

/* ============================================
   Floating Contact Button
   ============================================ */
.floating-contact {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.floating-contact.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.floating-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.5);
}

.floating-contact::before {
    content: 'Chat with us';
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-contact:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Animated Blob Shapes
   ============================================ */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-float 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.15);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(34, 197, 94, 0.12);
    top: 50%;
    right: 10%;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: rgba(20, 184, 166, 0.1);
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

body.dark-mode .blob-1 { background: rgba(14, 165, 233, 0.08); }
body.dark-mode .blob-2 { background: rgba(34, 197, 94, 0.06); }
body.dark-mode .blob-3 { background: rgba(20, 184, 166, 0.05); }

/* ============================================
   Smooth Dark Mode Transition
   ============================================ */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

.header,
.service-card,
.feature-card,
.offpage-card,
.case-card,
.why-card,
.testimonial-content,
.faq-item,
.contact-form,
.footer {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ============================================
   Button Arrow Animations
   ============================================ */
.btn-primary svg,
.btn-secondary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-arrow .arrow-icon {
    transition: transform 0.3s ease;
}

.btn-arrow:hover .arrow-icon {
    transform: translateX(5px);
}

/* ============================================
   Animated Gradient Borders
   ============================================ */
.gradient-border {
    position: relative;
    z-index: 1;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--teal), var(--accent), var(--primary));
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: gradient-border-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

@keyframes gradient-border-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   3D Card Tilt Effect
   ============================================ */
.service-card,
.case-card {
    transform-style: preserve-3d;
}

.service-card:hover,
.case-card:hover {
    transition: transform 0.1s ease-out;
}

/* ============================================
   Navigation Active Link Highlight
   ============================================ */
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::before {
    width: 100%;
    left: 0;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--teal));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--teal), var(--accent));
}

body.dark-mode::-webkit-scrollbar-track {
    background: var(--dark-card);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-100);
}

body.dark-mode * {
    scrollbar-color: var(--primary) var(--dark-card);
}

/* ============================================
   Floating Labels for Form Inputs
   ============================================ */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    padding-top: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group textarea ~ label {
    top: 1.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.75rem;
    color: var(--primary);
    background: white;
    padding: 0 0.25rem;
}

body.dark-mode .form-group input:focus ~ label,
body.dark-mode .form-group input:not(:placeholder-shown) ~ label,
body.dark-mode .form-group textarea:focus ~ label,
body.dark-mode .form-group textarea:not(:placeholder-shown) ~ label {
    background: var(--dark-card);
}

.form-group .validation-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group.valid .validation-icon.valid-icon,
.form-group.invalid .validation-icon.invalid-icon {
    opacity: 1;
}

.form-group.valid input {
    border-color: var(--accent);
}

.form-group.invalid input {
    border-color: #ef4444;
}

/* ============================================
   Circular Progress Rings
   ============================================ */
.progress-ring-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.progress-ring-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring svg {
    transform: rotate(-90deg);
    width: 120px;
    height: 120px;
}

.progress-ring-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 8;
}

body.dark-mode .progress-ring-bg {
    stroke: var(--dark-card);
}

.progress-ring-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease-out;
}

.progress-ring.animated .progress-ring-fill {
    stroke-dashoffset: var(--progress-offset, 339.292);
}

.progress-ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

body.dark-mode .progress-ring-value {
    color: var(--dark-text);
}

.progress-ring-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
    max-width: 100px;
}

body.dark-mode .progress-ring-label {
    color: var(--dark-text-secondary);
}

/* ============================================
   Section Color Transitions
   ============================================ */
.section-transition {
    transition: background-color 0.6s ease;
}

.section-alt {
    background-color: var(--gray-50);
}

body.dark-mode .section-alt {
    background-color: rgba(30, 41, 59, 0.5);
}

/* Color accent overlays based on scroll position */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--scroll-y, 0%), 
        rgba(14, 165, 233, 0.03) 0%, 
        transparent 50%);
    transition: background 0.5s ease;
}

body.dark-mode::before {
    background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--scroll-y, 0%), 
        rgba(14, 165, 233, 0.05) 0%, 
        transparent 50%);
}

/* ============================================
   Parallax Section Backgrounds
   ============================================ */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.parallax-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(60px);
}

.parallax-shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.1);
    top: 10%;
    left: -5%;
}

.parallax-shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(34, 197, 94, 0.08);
    top: 60%;
    right: -3%;
}

.parallax-shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(20, 184, 166, 0.06);
    bottom: 10%;
    left: 40%;
}

body.dark-mode .parallax-shape-1 { background: rgba(14, 165, 233, 0.06); }
body.dark-mode .parallax-shape-2 { background: rgba(34, 197, 94, 0.04); }
body.dark-mode .parallax-shape-3 { background: rgba(20, 184, 166, 0.03); }

@media (prefers-reduced-motion: reduce) {
    .parallax-bg,
    .progress-ring-fill {
        transition: none;
    }
}

/* ============================================
   Particle Background
   ============================================ */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    animation: particle-float 15s infinite ease-in-out;
}

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

/* ============================================
   Scroll Snap (Optional - can be toggled)
   ============================================ */
.scroll-snap-enabled {
    scroll-snap-type: y proximity;
}

.scroll-snap-enabled section {
    scroll-snap-align: start;
}

/* ============================================
   Animated Skill Meters
   ============================================ */
.skill-meter {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-out;
}

.skill-meter-fill.animated {
    width: var(--fill-width, 0%);
}

/* ============================================
   Enhanced Mobile Menu
   ============================================ */
.nav-menu {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        transform: translateX(100%);
        opacity: 0;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-menu .nav-link {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active .nav-item:nth-child(1) .nav-link { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) .nav-link { transition-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(3) .nav-link { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(4) .nav-link { transition-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(5) .nav-link { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(6) .nav-link { transition-delay: 0.35s; }
}

/* ============================================
   Navigation Tooltips
   ============================================ */
.nav-link {
    position: relative;
}

.nav-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dark);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--dark);
}

.nav-link:hover .nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Service Icon Morphing
   ============================================ */
.service-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.service-card:hover .service-icon svg {
    animation: icon-morph 0.5s ease;
}

@keyframes icon-morph {
    0% { transform: scale(1); }
    25% { transform: scale(0.8) rotate(-10deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    75% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ============================================
   Animated Gradient Background
   ============================================ */
.animated-gradient-bg {
    position: relative;
    overflow: hidden;
}

.animated-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.05) 0%, transparent 60%);
    animation: gradient-float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradient-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(5deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-5deg); }
}

/* ============================================
   Text Reveal on Scroll
   ============================================ */
.text-reveal {
    overflow: hidden;
}

.text-reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ============================================
   Card Flip Effects
   ============================================ */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* ============================================
   Custom Cursor Glow
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-glow.active {
    opacity: 1;
}

body.dark-mode .cursor-glow {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
}

/* ============================================
   Image Reveal Animations
   ============================================ */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    transform: translateX(-101%);
    z-index: 1;
    transition: transform 0.6s ease;
}

.image-reveal.visible::before {
    animation: image-wipe 1.2s ease forwards;
}

@keyframes image-wipe {
    0% { transform: translateX(-101%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

.image-reveal img {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.4s ease 0.3s, transform 0.6s ease 0.3s;
}

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

/* ============================================
   Animated SVG Icons
   ============================================ */
.icon-animated {
    transition: transform 0.4s ease, fill 0.3s ease;
}

.icon-animated:hover {
    transform: scale(1.2) rotate(10deg);
}

.service-card:hover .icon-animated,
.feature-card:hover .icon-animated {
    animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ============================================
   Testimonial Carousel
   ============================================ */
.testimonials {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--light) 0%, white 100%);
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 2rem;
    text-align: center;
}

.testimonial-content {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-info h4 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.testimonial-info span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.testimonial-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

body.dark-mode .testimonials {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

body.dark-mode .testimonial-content {
    background: var(--dark-card);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq {
    padding: var(--section-padding);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text);
    line-height: 1.7;
}

body.dark-mode .faq-item {
    background: var(--dark-card);
}

body.dark-mode .faq-question {
    color: white;
}

/* ============================================
   Sticky Section Indicators
   ============================================ */
.section-indicators {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: none;
}

@media (min-width: 1200px) {
    .section-indicators {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}

.section-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.section-indicator::before {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.section-indicator:hover::before {
    opacity: 1;
    visibility: visible;
}

.section-indicator.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

body.dark-mode .section-indicator {
    background: var(--dark-border);
}

body.dark-mode .section-indicator.active {
    background: var(--primary-light);
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in, .fade-in-left, .fade-in-right, .scale-in {
        opacity: 1;
        transform: none;
    }
    
    .typing-cursor {
        animation: none;
        opacity: 1;
    }
    
    .scroll-progress,
    .back-to-top {
        transition: none;
    }
    
    .page-loader {
        display: none;
    }
    
    .cursor-glow {
        display: none;
    }
    
    .text-reveal-word {
        opacity: 1;
        transform: none;
    }
}
