/* =====================================================
   BROADSAFE CARE COMMUNITY SERVICES
   Modern CSS Stylesheet
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES & ROOT
   ===================================================== */
:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;

    /* Secondary Colors */
    --secondary: #0891b2;
    --secondary-dark: #0e7490;
    --secondary-light: #06b6d4;

    /* Accent Colors */
    --accent: #8b5cf6;
    --accent-light: #a78bfa;

    /* Success/Warning/Error */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Background & Text */
    --white: #ffffff;
    --black: #000000;
    --body-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #2563eb 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #0c4a6e 50%, #134e4a 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --container-max: 1280px;
    --section-padding: 6rem;
}

/* =====================================================
   2. RESET & BASE STYLES
   ===================================================== */
*, *::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: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--body-bg);
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* =====================================================
   3. PRELOADER
   ===================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    position: relative;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* =====================================================
   4. LAYOUT & CONTAINER
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--section-padding) 0;
}

/* =====================================================
   5. TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
}

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

.section-header .section-description {
    margin: 0 auto;
}

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

/* =====================================================
   6. BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn i {
    font-size: 0.875rem;
    transition: transform var(--transition);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

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

.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   7. TOP BAR
   ===================================================== */
.top-bar {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 0.5rem 0;
    font-size: 0.8125rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-left i {
    color: var(--primary-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--white);
}

.language-selector select {
    background: transparent;
    border: 1px solid var(--gray-700);
    color: var(--gray-300);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* =====================================================
   8. HEADER & NAVIGATION
   ===================================================== */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

/* Dropdown */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   9. HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(8, 145, 178, 0.3) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--success);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 540px;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    padding: 2rem;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3) 0%, rgba(52, 211, 153, 0.3) 100%);
    top: 0;
    right: 0;
    filter: blur(40px);
}

.hero-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(96, 165, 250, 0.3) 100%);
    bottom: 0;
    left: 0;
    filter: blur(40px);
    animation-delay: -3s;
}

.hero-img-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 450px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--white);
}

.hero-img-placeholder i {
    font-size: 5rem;
    opacity: 0.9;
}

.hero-img-placeholder span {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.9;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.25rem;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* =====================================================
   10. PAGE HERO (Inner Pages)
   ===================================================== */
.page-hero {
    position: relative;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.page-hero-content {
    color: var(--white);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   11. ABOUT PREVIEW SECTION
   ===================================================== */
.about-preview {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img-main {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 6rem;
    position: relative;
    z-index: 1;
}

.about-img-secondary {
    position: absolute;
    width: 180px;
    height: 180px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    bottom: -30px;
    right: -30px;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.experience-badge {
    position: absolute;
    top: 30px;
    left: -30px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    z-index: 2;
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.exp-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =====================================================
   12. SERVICES SECTION
   ===================================================== */
.services {
    background: var(--gray-50);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

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

.service-card.featured {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.service-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.service-card.featured .service-title {
    color: var(--white);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.service-card.featured .service-description {
    color: rgba(255, 255, 255, 0.85);
}

.service-features {
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.service-features li i {
    color: var(--success);
    font-size: 0.75rem;
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.85);
}

.service-card.featured .service-features li i {
    color: var(--white);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.service-link i {
    transition: transform var(--transition);
}

.service-link:hover i {
    transform: translateX(4px);
}

.service-card.featured .service-link {
    color: var(--white);
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* =====================================================
   13. WHY CHOOSE US SECTION
   ===================================================== */
.why-choose-us {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.why-item:hover {
    background: var(--primary-50);
}

.why-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
}

.why-detail h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.why-detail p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.why-image-wrapper {
    position: relative;
}

.why-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    max-width: 450px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--white);
}

.why-img-placeholder i {
    font-size: 5rem;
}

.why-img-placeholder span {
    font-size: 1.25rem;
    font-weight: 600;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--warning);
    font-size: 1.25rem;
}

.floating-card span {
    font-weight: 600;
    font-size: 0.875rem;
}

.floating-card.card-1 {
    top: 20%;
    left: -20px;
}

.floating-card.card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: -2s;
}

/* =====================================================
   14. PROCESS SECTION
   ===================================================== */
.process {
    background: var(--gray-50);
}

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

.process-line {
    position: absolute;
    top: 35px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--gray-200);
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.process-cta {
    text-align: center;
    margin-top: 3rem;
}

/* =====================================================
   15. TESTIMONIALS SECTION
   ===================================================== */
.testimonials {
    background: var(--white);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition);
}

.testimonial-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--warning);
    font-size: 0.875rem;
}

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

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

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.author-info span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.nav-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition);
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--primary);
}

/* =====================================================
   16. REGISTRATION INFO SECTION
   ===================================================== */
.registration-info {
    background: var(--gray-50);
}

.registration-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.registration-content {
    padding: 3rem;
}

.registration-badge {
    width: 70px;
    height: 70px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.registration-content h2 {
    margin-bottom: 1rem;
}

.registration-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.registration-details {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 150px;
}

.detail-value {
    color: var(--text-primary);
}

.detail-value.status-approved {
    color: var(--success);
    font-weight: 600;
}

.detail-value.status-approved i {
    margin-right: 0.25rem;
}

.registration-image {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ndis-logo {
    text-align: center;
    color: var(--white);
}

.ndis-logo span:first-child {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.ndis-logo .subtitle {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* =====================================================
   17. CTA SECTION
   ===================================================== */
.cta-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: -1;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -100px;
}

.cta-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -50px;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* =====================================================
   18. FOOTER
   ===================================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
}

.footer-top {
    padding: 5rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    background: var(--gradient-primary);
}

.footer-logo .logo-name {
    color: var(--white);
}

.footer-logo .logo-tagline {
    color: var(--gray-400);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition);
    text-decoration: none;
}

.footer-social a i {
    font-size: 1.1rem;
    line-height: 1;
    width: auto;
    height: auto;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--white);
}

.footer-contact ul li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact ul li i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.footer-contact ul li a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-contact ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 1.5rem 0;
}

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

.footer-bottom p {
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: color var(--transition);
}

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

/* =====================================================
   19. BACK TO TOP BUTTON
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1040;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}


/* =====================================================
   20. FORMS
   ===================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition);
}

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

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
}

.checkbox-label input {
    width: auto;
}

.form-error {
    color: var(--error);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.form-success {
    text-align: center;
    padding: 3rem;
}

.form-success.hidden {
    display: none;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.form-success h3 {
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* =====================================================
   21. CONTACT PAGE SPECIFIC
   ===================================================== */
.contact-section {
    background: var(--white);
}

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

.contact-form-wrapper {
    background: var(--gray-50);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
}

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

.contact-info-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.contact-info-card h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact-info-card > p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

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

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--white);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.info-content a,
.info-content span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    display: block;
}

.info-content a:hover {
    color: var(--white);
}

.social-connect {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-connect h4 {
    color: var(--white);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.social-links-large {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--white);
    color: var(--primary);
}

.quick-actions {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.quick-actions h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition);
}

.action-btn i {
    font-size: 1.25rem;
    color: var(--primary);
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.action-btn:hover i {
    color: var(--white);
}

.action-btn.whatsapp i {
    color: #25d366;
}

.action-btn.whatsapp:hover {
    background: #25d366;
}

.ndis-info-box {
    background: var(--primary-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.ndis-info-box .ndis-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.ndis-info-box h4 {
    margin-bottom: 0.5rem;
}

.ndis-info-box p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.map-section {
    background: var(--gray-50);
    padding: 4rem 0;
}

.map-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    height: 400px;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-placeholder h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.map-placeholder p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.faq-teaser {
    background: var(--white);
    padding: 3rem 0;
}

.faq-teaser-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
    padding: 2rem 3rem;
    border-radius: var(--radius-xl);
}

.faq-teaser-text h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-teaser-text p {
    color: var(--text-secondary);
}

/* =====================================================
   22. FAQ PAGE SPECIFIC
   ===================================================== */
.faq-categories {
    background: var(--white);
    padding: 2rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

/* Mobile FAQ Categories Fix */
@media (max-width: 768px) {
    .faq-categories {
        position: relative;
        top: 0;
        z-index: 10;
        padding: 1rem 0;
    }

    .category-tabs {
        gap: 0.375rem;
        padding: 0 0.5rem 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition);
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary);
    color: var(--white);
}

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

.faq-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.category-title i {
    color: var(--primary);
}

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition);
}

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

.faq-question i {
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.faq-answer ul,
.faq-answer ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer ul li,
.faq-answer ol li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    list-style: disc;
}

.faq-answer ol li {
    list-style: decimal;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: underline;
}

.faq-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
}

.sidebar-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.sidebar-card h3 {
    margin-bottom: 0.5rem;
}

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

.phone-link {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.sidebar-card.resources {
    text-align: left;
}

.sidebar-card.resources h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-links {
    margin-top: 1rem;
}

.resource-links li {
    margin-bottom: 0.75rem;
}

.resource-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.resource-links a:hover {
    color: var(--primary);
}

/* =====================================================
   23. SERVICES PAGE SPECIFIC
   ===================================================== */
.services-overview {
    background: var(--white);
    padding: 4rem 0 2rem;
}

.overview-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.overview-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.service-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.category-chip:hover {
    background: var(--primary);
    color: var(--white);
}

.service-detail {
    background: var(--white);
}

.service-detail.alt-bg {
    background: var(--gray-50);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse > * {
    direction: ltr;
}

.service-detail-badge {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.service-detail-content h2 {
    margin-bottom: 1rem;
}

.service-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.service-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-group h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.feature-group h4 i {
    color: var(--primary);
}

.feature-group ul {
    margin-left: 1.5rem;
}

.feature-group ul li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    list-style: disc;
}

.service-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-img-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--white);
}

.service-img-placeholder i {
    font-size: 5rem;
}

.service-img-placeholder span {
    font-size: 1.25rem;
    font-weight: 600;
}

.pricing-info {
    background: var(--gray-50);
}

.pricing-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pricing-feature {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.pricing-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.pricing-feature h4 {
    margin-bottom: 0.5rem;
}

.pricing-feature p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* =====================================================
   24. CAREERS PAGE SPECIFIC
   ===================================================== */
.why-work-section {
    background: var(--white);
}

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

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
}

.benefit-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0 auto 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

.job-listings {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.job-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.job-info h3 {
    margin-bottom: 0.75rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.job-meta i {
    color: var(--primary);
}

.job-badge {
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.job-badge.new {
    background: var(--success);
    color: var(--white);
}

.job-description p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.job-description h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.job-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.job-description ul li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    list-style: disc;
}

.job-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.qualities-section {
    background: var(--white);
}

.qualities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.qualities-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.quality-item {
    display: flex;
    gap: 1rem;
}

.quality-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.quality-text h4 {
    margin-bottom: 0.25rem;
}

.quality-text p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.qualities-img-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--white);
    margin: 0 auto;
}

.qualities-img-placeholder i {
    font-size: 5rem;
}

.qualities-img-placeholder span {
    font-size: 1.25rem;
    font-weight: 600;
}

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

.apply-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.career-form .form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.career-form .form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.career-form .form-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.career-form .form-section h3 i {
    color: var(--primary);
}

.file-upload {
    position: relative;
}

.file-upload input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.file-name {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =====================================================
   25. TESTIMONIALS PAGE SPECIFIC
   ===================================================== */
.testimonial-stats {
    background: var(--white);
    padding: 4rem 0;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-testimonial {
    background: var(--gray-50);
    padding: 4rem 0;
}

.featured-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.featured-quote {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.featured-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

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

.featured-author .author-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.author-details h4 {
    margin-bottom: 0.25rem;
}

.author-details span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.author-rating {
    margin-top: 0.5rem;
}

.author-rating i {
    color: var(--warning);
    font-size: 0.875rem;
}

.testimonials-grid-section {
    background: var(--white);
}

.testimonials-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-item {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition);
}

.testimonial-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-xl);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-service {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-full);
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.video-testimonials {
    background: var(--gray-50);
}

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

.video-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
}

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

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    transition: all var(--transition);
}

.play-btn:hover {
    transform: scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-info h4 {
    margin-bottom: 0.25rem;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.share-story {
    background: var(--white);
    padding: 4rem 0;
}

.share-card {
    background: var(--gradient-primary);
    padding: 4rem;
    border-radius: var(--radius-2xl);
    text-align: center;
}

.share-content {
    max-width: 600px;
    margin: 0 auto;
    color: var(--white);
}

.share-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.share-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.share-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* =====================================================
   26. ABOUT PAGE SPECIFIC
   ===================================================== */
.our-story {
    background: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image-wrapper {
    position: relative;
}

.story-img-main {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 6rem;
}

.story-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.badge-text {
    font-weight: 600;
    font-size: 0.875rem;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.story-stats .stat {
    text-align: center;
}

.story-stats .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.story-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

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

.mvv-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.mvv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.mvv-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
}

.mvv-card h3 {
    margin-bottom: 1rem;
}

.mvv-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.values-list {
    text-align: left;
    margin-top: 1rem;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.values-list li i {
    color: var(--success);
}

.our-approach {
    background: var(--white);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.approach-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.approach-item {
    display: flex;
    gap: 1rem;
}

.approach-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.approach-text h4 {
    margin-bottom: 0.25rem;
}

.approach-text p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.approach-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach-img-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--white);
}

.approach-img-placeholder i {
    font-size: 5rem;
}

.approach-img-placeholder span {
    font-size: 1.25rem;
    font-weight: 600;
}

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

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

.team-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.team-image {
    position: relative;
}

.team-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.team-social {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: all var(--transition);
}

.team-card:hover .team-social {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.team-social a {
    width: 35px;
    height: 35px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition);
}

.team-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    margin-bottom: 0.25rem;
}

.team-info span {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
}

.team-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.certifications {
    background: var(--white);
}

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

.cert-card {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
}

.cert-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-xl);
}

.cert-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.cert-card h4 {
    margin-bottom: 0.5rem;
}

.cert-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =====================================================
   27. RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image {
        display: none;
    }

    .about-grid,
    .why-grid,
    .story-grid,
    .approach-grid,
    .qualities-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-grid.reverse {
        direction: ltr;
    }

    .about-image,
    .why-image,
    .story-image,
    .approach-image,
    .qualities-image,
    .service-detail-image {
        order: -1;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .testimonials-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-line {
        display: none;
    }

    .registration-card {
        grid-template-columns: 1fr;
    }

    .registration-image {
        padding: 3rem;
    }

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

    .faq-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 200px;
    }

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

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

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .top-bar {
        display: none;
    }

    /* Nav menu styles moved to mobile-specific section below */

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .service-features-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .faq-teaser-content {
        flex-direction: column;
        text-align: center;
    }

    .testimonials-masonry,
    .video-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .team-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .pricing-features {
        grid-template-columns: 1fr;
    }

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

    .action-buttons {
        flex-direction: column;
    }

    .apply-form-wrapper {
        padding: 1.5rem;
    }

    .featured-card {
        padding: 2rem;
    }

    .share-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

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

    .checkbox-group {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
    }
}

/* =====================================================
   28. ANIMATIONS & KEYFRAMES
   ===================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* =====================================================
   29. UTILITY CLASSES
   ===================================================== */
.hidden {
    display: none !important;
}

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

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

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* =====================================================
   30. PRINT STYLES
   ===================================================== */
@media print {
    .header,
    .footer,
    .back-to-top,
    .top-bar {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: var(--text-primary);
        text-decoration: underline;
    }

    .page-hero {
        background: var(--gray-100) !important;
        color: var(--text-primary) !important;
        padding: 2rem 0;
    }

    .page-hero * {
        color: var(--text-primary) !important;
    }
}

/* =====================================================
   31. MODERN EFFECTS & ENHANCEMENTS
   ===================================================== */

/* Glass Morphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.gradient-text-accent {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Gradient Border */
.gradient-border {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(var(--white), var(--white)) padding-box,
                var(--gradient-primary) border-box;
    border: 2px solid transparent;
}

.gradient-border-animated {
    position: relative;
    overflow: hidden;
}

.gradient-border-animated::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, #2563eb, #0891b2, #8b5cf6, #2563eb);
    z-index: -1;
    border-radius: inherit;
    animation: borderRotate 4s linear infinite;
}

.gradient-border-animated::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--white);
    border-radius: inherit;
    z-index: -1;
}

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

/* Glow Effects */
.glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
}

.glow-accent {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Text Glow */
.text-glow {
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* Modern Card Hover Effects */
.card-lift {
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.card-tilt {
    transition: transform var(--transition);
    transform-style: preserve-3d;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
}

/* Shimmer Loading Effect */
.shimmer {
    background: linear-gradient(90deg,
        var(--gray-200) 25%,
        var(--gray-100) 50%,
        var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg,
        var(--gray-200) 0%,
        var(--gray-100) 50%,
        var(--gray-200) 100%);
    background-size: 400% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

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

/* Floating Animation */
.float {
    animation: float 3s ease-in-out infinite;
}

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

/* Pulse Ring Effect */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: var(--primary);
    opacity: 0;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* Ripple Effect for Buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.ripple:active::after {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(40) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Magnetic Hover Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blur In Animation */
.blur-in {
    animation: blurIn 0.5s ease-out forwards;
}

@keyframes blurIn {
    0% {
        filter: blur(10px);
        opacity: 0;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

/* Reveal Animation */
.reveal {
    clip-path: inset(0 100% 0 0);
    animation: reveal 0.8s ease-out forwards;
}

@keyframes reveal {
    to { clip-path: inset(0 0 0 0); }
}

/* Morphing Background */
.morph-bg {
    background: linear-gradient(-45deg, #2563eb, #0891b2, #8b5cf6, #10b981);
    background-size: 400% 400%;
    animation: morphGradient 15s ease infinite;
}

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

/* Neon Effect */
.neon {
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--primary),
        0 0 30px var(--primary),
        0 0 40px var(--primary);
}

.neon-box {
    box-shadow:
        0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        inset 0 0 5px var(--primary);
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation:
        typing 3.5s steps(40, end),
        blinkCaret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* Parallax Effect */
.parallax-container {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    transform-origin: center center;
}

.parallax-back {
    transform: translateZ(-1px) scale(2);
}

.parallax-front {
    transform: translateZ(0);
}

/* Smooth Underline */
.smooth-underline {
    position: relative;
    text-decoration: none;
}

.smooth-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.smooth-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Split Text Animation */
.split-text {
    display: inline-block;
    overflow: hidden;
}

.split-text span {
    display: inline-block;
    animation: splitReveal 0.5s ease forwards;
    animation-delay: calc(var(--char-index) * 0.03s);
    transform: translateY(100%);
}

@keyframes splitReveal {
    to { transform: translateY(0); }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* Floating Buttons Container - Fixed & Optimized */
.floating-buttons {
    position: fixed;
    bottom: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.floating-buttons.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.35rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-decoration: none;
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-btn.whatsapp:hover {
    background: linear-gradient(135deg, #2EE077 0%, #159F8A 100%);
}

.floating-btn.facebook,
.floating-btn.messenger {
    background: linear-gradient(135deg, #0084FF 0%, #0066CC 100%);
}

.floating-btn.facebook:hover,
.floating-btn.messenger:hover {
    background: linear-gradient(135deg, #0099FF 0%, #0077DD 100%);
}

.floating-btn.phone {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.floating-btn.phone:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.floating-btn:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.floating-btn:active {
    transform: scale(1.05);
}

/* Tooltip styling */
.floating-btn .btn-tooltip,
.floating-btn .tooltip {
    position: absolute;
    right: 65px;
    background: var(--gray-900);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-btn .btn-tooltip::after,
.floating-btn .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--gray-900);
}

.floating-btn:hover .btn-tooltip,
.floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 62px;
}

/* Pulse animation for attention */
@keyframes floatingPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
    }
}

.floating-btn.pulse {
    animation: floatingPulse 1s ease-in-out;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: var(--white);
    padding: 1.5rem;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    color: var(--gray-300);
    flex: 1;
    min-width: 300px;
}

.cookie-content a {
    color: var(--primary-light);
}

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

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.cookie-btn.accept {
    background: var(--primary);
    color: var(--white);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-600);
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

/* Enhanced Focus States */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    z-index: 10000;
    border-radius: var(--radius);
    transition: top var(--transition);
}

.skip-link:focus {
    top: 10px;
}

/* Loading Button State */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

.btn.loading::after {
    border-top-color: var(--white);
}

/* Form Validation States */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--success);
}

.form-group.success .form-icon {
    color: var(--success);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error);
}

.form-group.error .form-error {
    display: block;
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform var(--transition);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Particle Effect Overlay */
.particles-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--primary-dark), var(--secondary-dark));
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary);
    color: var(--white);
}

/* Smooth Image Loading */
img {
    transition: opacity var(--transition);
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Card Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.card-shine:hover::before {
    transform: translateX(100%);
}

/* Responsive Adjustments for Modern Effects */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 80px;
        right: 15px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
    }

    .floating-btn .tooltip {
        display: none;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Reduce 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;
    }

    .float,
    .pulse-ring::before,
    .morph-bg,
    .shimmer,
    .skeleton {
        animation: none;
    }
}

/* =====================================================
   32. ENHANCED MOBILE & TABLET RESPONSIVENESS
   ===================================================== */

/* Tablet Landscape (1024px - 1200px) */
@media (max-width: 1200px) and (min-width: 993px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Tablet Portrait (768px - 992px) */
@media (max-width: 992px) and (min-width: 769px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.0625rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    /* Fix navigation for tablet */
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Mobile Large (480px - 768px) */
@media (max-width: 768px) {
    /* Base Typography */
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Header Mobile Fixes */
    .header {
        padding: 0.75rem 0;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .logo-name {
        font-size: 1rem;
    }

    .logo-tagline {
        font-size: 0.625rem;
    }

    /* Hero Mobile - padding handled in mobile-specific section below */
    .hero {
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Section Spacing */
    section {
        padding: 3rem 0;
    }

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

    .section-title {
        font-size: 1.625rem;
    }

    .section-description {
        font-size: 0.9375rem;
    }

    /* Page Hero */
    .page-hero {
        padding: 5rem 0 2.5rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero p {
        font-size: 0.9375rem;
    }

    .breadcrumb {
        font-size: 0.8125rem;
    }

    /* Cards */
    .service-card,
    .testimonial-card,
    .mvv-card,
    .benefit-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .service-title {
        font-size: 1.125rem;
    }

    .service-description {
        font-size: 0.875rem;
    }

    /* Forms */
    .form-group label {
        font-size: 0.875rem;
    }

    .form-control {
        padding: 0.75rem 1rem;
        font-size: 1rem; /* Prevent zoom on iOS */
    }

    select.form-control {
        font-size: 1rem;
    }

    textarea.form-control {
        min-height: 120px;
    }

    .checkbox-label {
        font-size: 0.875rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .btn i {
        font-size: 0.875rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.9375rem;
    }

    /* Footer */
    .footer-top {
        padding: 2.5rem 0;
    }

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

    .footer-about p {
        font-size: 0.875rem;
    }

    .footer-links h4,
    .footer-services h4,
    .footer-contact h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links ul li,
    .footer-services ul li {
        margin-bottom: 0.5rem;
    }

    .footer-links a,
    .footer-services a {
        font-size: 0.875rem;
    }

    .footer-contact li {
        font-size: 0.875rem;
    }

    .footer-bottom {
        padding: 1rem 0;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .footer-bottom-links {
        gap: 1rem;
    }

    .footer-bottom-links a {
        font-size: 0.75rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

    /* Contact Info Cards */
    .info-card {
        padding: 1.25rem;
    }

    .info-card h4 {
        font-size: 1rem;
    }

    .info-card p {
        font-size: 0.875rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .faq-answer {
        padding: 1rem;
        font-size: 0.875rem;
    }

    /* Testimonials */
    .testimonial-text {
        font-size: 0.9375rem;
    }

    .author-info h4 {
        font-size: 0.9375rem;
    }

    .author-info span {
        font-size: 0.75rem;
    }

    /* Stats */
    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    /* Social Links */
    .social-links a,
    .footer-social a {
        width: 36px;
        height: 36px;
    }

    .social-links-large a {
        width: 40px;
        height: 40px;
    }

    /* Process Steps */
    .process-step {
        padding: 1.25rem;
    }

    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .process-title {
        font-size: 1rem;
    }

    /* Jobs Grid */
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-card {
        padding: 1.25rem;
    }

    /* Registration Card */
    .registration-image {
        padding: 2rem;
    }

    .registration-details {
        padding: 1.5rem;
    }

    /* Quick Actions */
    .quick-action {
        padding: 1rem;
    }

    .quick-action i {
        font-size: 1.25rem;
    }

    .quick-action span {
        font-size: 0.8125rem;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Header */
    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-name {
        font-size: 0.9375rem;
    }

    .logo-tagline {
        display: none;
    }

    /* Hero - padding handled in mobile-specific section */
    .hero-title {
        font-size: 1.625rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    /* Section */
    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .section-description {
        font-size: 0.875rem;
    }

    /* Page Hero - padding handled in mobile-specific section */

    .page-hero h1 {
        font-size: 1.5rem;
    }

    /* Cards */
    .service-card,
    .testimonial-card {
        padding: 1rem;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    /* Buttons full width on smallest screens */
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-buttons .btn,
    .cta-buttons .btn,
    .action-buttons .btn {
        width: 100%;
    }

    /* Form */
    .form-control {
        padding: 0.625rem 0.875rem;
    }

    /* Stats */
    .stat-value {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    /* Floating buttons smaller */
    .floating-buttons {
        bottom: 70px;
        right: 10px;
    }

    .floating-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    /* Back to top */
    .back-to-top {
        width: 40px;
        height: 40px;
        right: 10px;
        bottom: 10px;
    }

    /* Cookie banner */
    .cookie-content {
        padding: 0.5rem;
    }

    .cookie-content p {
        font-size: 0.75rem;
    }

    .cookie-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
    }

    .form-control {
        min-height: 44px;
    }

    select.form-control {
        min-height: 44px;
    }

    .social-links a,
    .footer-social a {
        min-width: 44px;
        min-height: 44px;
    }

    .faq-question {
        min-height: 48px;
    }

    .checkbox-label {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Remove hover effects on touch */
    .service-card:hover,
    .testimonial-card:hover,
    .mvv-card:hover,
    .benefit-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* Active states instead */
    .btn:active {
        transform: scale(0.98);
    }

    .service-card:active,
    .testimonial-card:active {
        transform: scale(0.99);
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0 2rem;
    }

    .page-hero {
        padding: 4rem 0 1.5rem;
    }

    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(0.5rem, env(safe-area-inset-top));
    }

    .footer-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .floating-buttons {
        bottom: max(100px, calc(100px + env(safe-area-inset-bottom)));
        right: max(20px, env(safe-area-inset-right));
    }

    .back-to-top {
        bottom: max(15px, calc(15px + env(safe-area-inset-bottom)));
        right: max(15px, env(safe-area-inset-right));
    }

    .cookie-banner {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .service-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable automatic dark mode
    :root {
        --white: #1a1a2e;
        --body-bg: #16213e;
        --text-primary: #eee;
        --text-secondary: #aaa;
        --gray-50: #0f3460;
        --gray-100: #16213e;
        --gray-800: #e94560;
    }
    */
}

/* Fix for iOS input zoom */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* =====================================================
   MODERN MOBILE EXPERIENCE - iOS & Android Optimized
   ===================================================== */

/* Mobile-First Variables */
@media (max-width: 768px) {
    :root {
        --mobile-nav-height: 70px;
        --mobile-bottom-safe: env(safe-area-inset-bottom, 0px);
        --mobile-top-safe: env(safe-area-inset-top, 0px);
        --mobile-touch-target: 48px;
        --mobile-spacing: 1rem;
    }
}

/* Enhanced Mobile Navigation - Modern Slide-In */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--mobile-nav-height);
        padding: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 9999;
    }

    .navbar {
        height: 100%;
        padding: 0 var(--mobile-spacing);
    }

    /* Full-screen mobile menu with iOS-style design */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for iOS Safari */
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--mobile-nav-height) + 20px) var(--mobile-spacing) calc(var(--mobile-spacing) + var(--mobile-bottom-safe));
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        z-index: 9998;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Modern mobile nav links */
    .nav-item {
        opacity: 0;
        transform: translateX(-20px);
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active .nav-item:nth-child(7) { transition-delay: 0.4s; }

    .nav-link {
        display: flex;
        align-items: center;
        min-height: var(--mobile-touch-target);
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        border-radius: var(--radius-lg);
        margin-bottom: 0.5rem;
        transition: all 0.2s ease;
        border-bottom: none;
        background: transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--primary-50);
        color: var(--primary);
    }

    .nav-link:active {
        transform: scale(0.98);
        background: var(--primary-100);
    }

    /* Mobile dropdown improvements */
    .dropdown-menu {
        background: var(--gray-50);
        border-radius: var(--radius-lg);
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
    }

    .dropdown-menu li a {
        min-height: var(--mobile-touch-target);
        display: flex;
        align-items: center;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    /* Animated hamburger menu */
    .mobile-menu-btn {
        display: flex;
        width: var(--mobile-touch-target);
        height: var(--mobile-touch-target);
        padding: 12px;
        border-radius: var(--radius-md);
        transition: background 0.2s ease;
        z-index: 10000;
    }

    .mobile-menu-btn:active {
        background: var(--gray-100);
    }

    .mobile-menu-btn span {
        height: 2.5px;
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Add mobile menu CTA button */
    .nav-menu::after {
        content: '';
        display: block;
        height: 80px;
    }

    /* Logo adjustments for mobile */
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .logo-tagline {
        font-size: 0.65rem;
    }
}

/* Enhanced Hero for Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(var(--mobile-nav-height) + 2rem) 0 3rem;
    }

    .hero .container {
        padding: 0 var(--mobile-spacing);
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.15;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: var(--mobile-touch-target);
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .hero-image {
        display: none;
    }

    .hero-scroll {
        display: none;
    }
}

/* Page Hero Mobile Optimization */
@media (max-width: 768px) {
    .page-hero {
        padding: calc(var(--mobile-nav-height) + 2rem) 0 2.5rem;
    }

    .page-hero h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .page-hero p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Modern Mobile Cards */
@media (max-width: 768px) {
    .service-card,
    .testimonial-card,
    .mvv-card,
    .benefit-card,
    .pricing-card {
        padding: 1.5rem;
        border-radius: var(--radius-xl);
        margin-bottom: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Enhanced Mobile Forms */
@media (max-width: 768px) {
    .form-control {
        min-height: var(--mobile-touch-target);
        padding: 0.875rem 1rem;
        font-size: 16px;
        border-radius: var(--radius-md);
        border-width: 2px;
    }

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

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

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

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

    .checkbox-label {
        min-height: var(--mobile-touch-target);
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .checkbox-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
        margin-right: 0.75rem;
    }

    .btn-block {
        min-height: 52px;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }
}

/* Mobile-Optimized Section Headers */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.2;
    }

    .section-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    section {
        padding: 3rem 0;
    }
}

/* Mobile Contact Section */
@media (max-width: 768px) {
    .contact-info-card {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .info-content h4 {
        font-size: 1rem;
    }

    .info-content p,
    .info-content a {
        font-size: 0.9rem;
    }
}

/* Mobile Footer Enhancement */
@media (max-width: 768px) {
    .footer {
        padding-top: 3rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-brand {
        margin-bottom: 1rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-links h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

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

    .footer-links a {
        font-size: 0.9rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .footer-social {
        gap: 0.75rem;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .footer-bottom {
        padding: 1.5rem 0;
        padding-bottom: calc(1.5rem + var(--mobile-bottom-safe));
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Mobile Floating Elements */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: calc(20px + var(--mobile-bottom-safe));
        right: 15px;
        gap: 0.75rem;
    }

    .floating-btn {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: calc(15px + var(--mobile-bottom-safe));
        right: 15px;
    }
}

/* iOS PWA Standalone Mode Support */
@media (display-mode: standalone) {
    .header {
        padding-top: var(--mobile-top-safe);
    }

    .nav-menu {
        padding-top: calc(var(--mobile-nav-height) + var(--mobile-top-safe) + 20px);
    }

    .hero {
        padding-top: calc(var(--mobile-nav-height) + var(--mobile-top-safe) + 2rem);
    }

    .page-hero {
        padding-top: calc(var(--mobile-nav-height) + var(--mobile-top-safe) + 2rem);
    }
}

/* Enhanced Touch Interactions */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for all interactive elements */
    a, button, .btn, input, select, textarea {
        min-height: 44px;
    }

    /* Remove tap highlight on iOS */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Smooth momentum scrolling */
    .nav-menu,
    .dropdown-menu,
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }

    /* Active state feedback */
    .btn:active,
    .nav-link:active,
    .service-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    /* Pull-to-refresh prevention on iOS */
    body {
        overscroll-behavior-y: none;
    }

    /* Sticky hover fix for touch */
    @media (hover: none) {
        .btn:hover {
            transform: none;
            box-shadow: inherit;
        }
    }
}

/* iOS-specific optimizations - Fixed for proper scrolling */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari smooth scrolling */
    html {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent text size adjustment */
    body {
        -webkit-text-size-adjust: 100%;
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce complex animations on mobile */
    .hero-shape,
    .hero-particles {
        display: none;
    }

    /* Optimize backdrop-filter for performance */
    .glass-card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Disable parallax effects on mobile */
    [data-parallax],
    .parallax {
        transform: none !important;
    }

    /* GPU acceleration for smooth scrolling */
    .header,
    .nav-menu,
    .floating-buttons,
    .back-to-top {
        will-change: transform;
        transform: translateZ(0);
    }
}

/* Small Phone Screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    :root {
        --mobile-spacing: 0.875rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.875rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .footer-brand .logo-name {
        font-size: 1rem;
    }
}

/* Extra Small Screens (Galaxy Fold, etc.) */
@media (max-width: 320px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-buttons .btn {
        font-size: 0.8rem;
        padding: 0.65rem 1rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
}

/* Notch Support for Modern iPhones */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .header {
            padding-left: max(var(--mobile-spacing), env(safe-area-inset-left));
            padding-right: max(var(--mobile-spacing), env(safe-area-inset-right));
        }

        .nav-menu {
            padding-left: max(var(--mobile-spacing), env(safe-area-inset-left));
            padding-right: max(var(--mobile-spacing), env(safe-area-inset-right));
        }

        .container {
            padding-left: max(var(--mobile-spacing), env(safe-area-inset-left));
            padding-right: max(var(--mobile-spacing), env(safe-area-inset-right));
        }

        .footer {
            padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
        }
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--mobile-nav-height) + 1rem) 0 1.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: calc(var(--mobile-nav-height) + 10px) var(--mobile-spacing) var(--mobile-spacing);
        height: auto;
        max-height: 100vh;
        max-height: 100dvh;
    }

    .nav-item {
        flex: 0 0 auto;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .page-hero {
        padding: calc(var(--mobile-nav-height) + 1rem) 0 1rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }
}

/* Accessibility Improvements for Mobile */
@media (max-width: 768px) {
    /* Focus states visible on mobile */
    :focus-visible {
        outline: 3px solid var(--primary);
        outline-offset: 2px;
    }

    /* Skip link for mobile */
    .skip-link {
        position: absolute;
        top: -100%;
        left: 0;
        z-index: 10001;
        padding: 1rem;
        background: var(--primary);
        color: white;
        transition: top 0.3s;
    }

    .skip-link:focus {
        top: 0;
    }

    /* Reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
        .nav-menu,
        .nav-item,
        .mobile-menu-btn span {
            transition: none;
        }

        .nav-menu.active .nav-item {
            transition-delay: 0s;
        }
    }
}

/* Mobile Cookie Banner Enhancement */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
        padding-bottom: calc(1rem + var(--mobile-bottom-safe));
        flex-direction: column;
        gap: 1rem;
    }

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

    .cookie-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .cookie-buttons {
        width: 100%;
        display: flex;
        gap: 0.75rem;
    }

    .cookie-btn {
        flex: 1;
        min-height: 44px;
        font-size: 0.85rem;
    }
}

/* Mobile Modal/Popup Optimization */
@media (max-width: 768px) {
    .modal,
    .popup {
        padding: var(--mobile-spacing);
        padding-top: calc(var(--mobile-spacing) + var(--mobile-top-safe));
        padding-bottom: calc(var(--mobile-spacing) + var(--mobile-bottom-safe));
    }

    .modal-content,
    .popup-content {
        max-height: calc(100vh - 4rem);
        max-height: calc(100dvh - 4rem);
        overflow-y: auto;
        border-radius: var(--radius-xl);
    }

    .modal-close,
    .popup-close {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

/* Mobile FAQ Accordion Enhancement */
@media (max-width: 768px) {
    .faq-item {
        margin-bottom: 0.75rem;
    }

    .faq-question {
        min-height: 56px;
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .faq-answer {
        padding: 0 1.25rem 1rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 0.875rem;
    }
}

/* Mobile Notification/Toast Enhancement */
@media (max-width: 768px) {
    .notification,
    .toast {
        left: var(--mobile-spacing);
        right: var(--mobile-spacing);
        bottom: calc(var(--mobile-spacing) + var(--mobile-bottom-safe));
        max-width: none;
        border-radius: var(--radius-lg);
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Final iOS-specific adjustments */
@media (max-width: 768px) {
    /* Prevent zoom on double-tap */
    html {
        touch-action: manipulation;
    }

    /* Smooth font rendering on iOS */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* Fix for iOS Safari 100vh issue */
    .full-height {
        height: 100vh;
        height: 100dvh;
        height: -webkit-fill-available;
    }
}

/* =====================================================
   ENHANCED TESTIMONIALS SLIDER
   ===================================================== */
.testimonials {
    overflow: hidden;
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.testimonials-slider {
    display: flex;
    overflow: visible;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    padding: 1rem 0;
}

.testimonials-slider:active {
    cursor: grabbing;
}

.testimonials-slider .testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
}

.testimonials-slider .testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-100);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 1rem;
}

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

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.author-info h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

/* Testimonials Navigation */
.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonials-nav .nav-btn,
.testimonials-nav .prev,
.testimonials-nav .next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.testimonials-nav .nav-btn:hover,
.testimonials-nav .prev:hover,
.testimonials-nav .next:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.testimonials-nav .nav-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.testimonials-nav .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-nav .dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

.testimonials-nav .dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* Responsive Testimonials */
@media (max-width: 992px) {
    .testimonials-slider .testimonial-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .testimonials-slider .testimonial-card {
        flex: 0 0 calc(100% - 20px);
        padding: 1.5rem;
    }

    .testimonials-nav .nav-btn,
    .testimonials-nav .prev,
    .testimonials-nav .next {
        width: 40px;
        height: 40px;
    }

    .testimonial-text {
        font-size: 0.9375rem;
    }
}

/* =====================================================
   ADDITIONAL VISUAL EFFECTS
   ===================================================== */

/* Gradient Text Animation */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Pulse Animation for CTA buttons */
.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;
}

/* Floating Animation for Cards */
@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.service-card:hover .service-icon,
.floating-card {
    animation: floatAnimation 3s ease-in-out infinite;
}

/* Shine Effect on Cards */
.service-card::after,
.testimonial-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::after,
.testimonial-card:hover::after {
    opacity: 1;
    animation: shineEffect 0.6s ease forwards;
}

@keyframes shineEffect {
    0% { transform: rotate(30deg) translateX(-100%); }
    100% { transform: rotate(30deg) translateX(100%); }
}

/* Glow Effect on Focus */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Smooth Page Load Animation */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageLoad 0.5s ease forwards;
}

/* Enhanced Section Transitions */
section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Improved Stats Counter Animation */
.stat-number,
[data-count] {
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-number,
.stat-item:hover [data-count] {
    transform: scale(1.1);
    color: var(--primary);
}

/* Button Hover Lift Effect */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(-1px);
}

/* Service Card Icon Bounce */
.service-card .service-icon {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Enhanced Hero Section */
.hero-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-badge {
    animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}

/* Scroll Indicator Animation */
.scroll-indicator {
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Form Input Focus Animation */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group label {
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--primary);
}

/* CTA Section Animated Background */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(37, 99, 235, 0.1) 0%,
        rgba(8, 145, 178, 0.1) 50%,
        rgba(37, 99, 235, 0.1) 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: 0;
}

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

/* Footer Link Hover Animation */
.footer a {
    position: relative;
    transition: color 0.3s ease;
}

.footer-links a::after,
.footer-services a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

/* Social Icons Hover Effect */
.footer-social a,
.social-links a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.footer-social a:hover,
.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary);
    color: white;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Improved Loading States */
.skeleton {
    background: linear-gradient(90deg,
        var(--gray-200) 25%,
        var(--gray-100) 50%,
        var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .testimonials-slider {
        scroll-behavior: auto;
    }
}

/* =====================================================
   MODERN iOS/ANDROID STYLE DESIGN SYSTEM
   ===================================================== */

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Modern Card Hover Effects */
.service-card,
.testimonial-card,
.stat-card,
.feature-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.service-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

/* iOS-style Buttons */
.btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.btn:active {
    transform: scale(0.97);
}

/* Modern Input Fields */
.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1),
        0 4px 12px rgba(37, 99, 235, 0.15);
    background: #fff;
}

/* Floating Labels (iOS Style) */
.form-floating {
    position: relative;
}

.form-floating .form-control::placeholder {
    color: transparent;
}

.form-floating label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    font-size: 16px;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 16px;
    font-size: 12px;
    background: #fff;
    padding: 0 8px;
    color: var(--primary);
}

/* Modern Stats Counter Animation */
.stat-number {
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

/* Smooth Page Transitions */
.page-transition {
    animation: pageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Modern Scroll Snap */
.testimonials-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    scroll-snap-align: center;
}

/* Haptic Feedback Visual */
@keyframes hapticPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.98); }
}

.btn:active {
    animation: hapticPulse 0.1s ease;
}

/* Modern Badge Styles */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%);
    color: #fff;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* iOS-style Toggle Switch */
.toggle-switch {
    position: relative;
    width: 51px;
    height: 31px;
    background: #e5e5ea;
    border-radius: 31px;
    transition: background 0.3s;
    cursor: pointer;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 27px;
    height: 27px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

/* Modern Navigation Pills */
.nav-pills-modern {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.nav-pills-modern .nav-pill {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-pills-modern .nav-pill.active {
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Android Material Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 1;
    transition: 0s;
}

/* Modern Card Shadows */
.shadow-soft {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.04);
}

.shadow-medium {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.06);
}

.shadow-strong {
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.08),
        0 32px 64px rgba(0, 0, 0, 0.08);
}

/* Modern Loading Spinner */
.spinner-modern {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinnerRotate 0.8s linear infinite;
}

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

/* iOS-style Pull to Refresh Indicator */
.pull-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modern Floating Action Button (FAB) - renamed to avoid conflict with Font Awesome .fab class */
.fab-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow:
        0 6px 20px rgba(37, 99, 235, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow:
        0 8px 28px rgba(37, 99, 235, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.fab-button:active {
    transform: scale(0.95);
}

/* Modern Skeleton Loader */
.skeleton-modern {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modern Tooltip */
.tooltip-modern {
    position: relative;
}

.tooltip-modern::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

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

/* Enhanced Service Cards - Mobile First */
@media (max-width: 767px) {
    .service-card {
        border-radius: 20px;
        padding: 24px;
    }

    .service-card:active {
        transform: scale(0.98);
        background: rgba(37, 99, 235, 0.02);
    }

    .btn {
        border-radius: 14px;
        padding: 16px 24px;
        font-size: 16px;
    }

    .form-control {
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: 12px;
    }
}

/* Modern Card Grid */
.card-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Modern Divider */
.divider-modern {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.1) 80%,
        transparent
    );
    margin: 32px 0;
}

/* Enhanced Header Glass Effect */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Modern Progress Bar */
.progress-modern {
    height: 6px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-modern-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better Touch Targets for Mobile */
@media (pointer: coarse) {
    .nav-link,
    .btn,
    .service-link,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* =====================================================
   FLOATING BUTTONS & SOCIAL MEDIA - MOBILE RESPONSIVE
   ===================================================== */

/* Tablet & Small Desktop (992px and below) */
@media (max-width: 992px) {
    .floating-buttons {
        bottom: 90px;
        right: 15px;
        gap: 10px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .floating-btn .btn-tooltip,
    .floating-btn .tooltip {
        display: none !important;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 85px;
        right: 15px;
        gap: 10px;
    }

    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 15px;
        font-size: 0.9rem;
    }

    /* Footer social icons - mobile fixes */
    .footer-social {
        justify-content: center;
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
    }

    .footer-social a i {
        font-size: 1rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .floating-buttons {
        bottom: 80px;
        right: 12px;
        gap: 8px;
    }

    .floating-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: 10px;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile (375px and below) */
@media (max-width: 375px) {
    .floating-buttons {
        bottom: 70px;
        right: 8px;
        gap: 5px;
    }

    .floating-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 10px;
        right: 8px;
    }
}

/* Ultra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .floating-buttons {
        bottom: 65px;
        right: 6px;
        gap: 4px;
    }

    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .back-to-top {
        width: 36px;
        height: 36px;
        bottom: 8px;
        right: 6px;
    }

    .footer-social a {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .floating-buttons {
        flex-direction: row;
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
        gap: 10px;
    }

    .floating-buttons.visible {
        transform: translateX(50%);
    }

    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .back-to-top {
        bottom: auto;
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

/* Cookie banner adjustment - ensure floating buttons stay visible */
.cookie-banner.show ~ .floating-buttons,
.cookie-consent.show ~ .floating-buttons {
    bottom: 140px;
}

@media (max-width: 768px) {
    .cookie-banner.show ~ .floating-buttons,
    .cookie-consent.show ~ .floating-buttons {
        bottom: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-banner.show ~ .floating-buttons,
    .cookie-consent.show ~ .floating-buttons {
        bottom: 110px;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Skip Link for Keyboard Navigation */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
}

/* Heading Style Classes - Maintain visual hierarchy while using correct semantic order */
.h3-style {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

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

/* Contact info card - ensure white text on gradient background */
.contact-info-card .h3-style,
.contact-info-card .h4-style,
.contact-info-card h2,
.contact-info-card h3 {
    color: var(--white) !important;
}

.contact-info-card .info-content span,
.contact-info-card .info-content a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-info-card .info-content a:hover {
    color: var(--white) !important;
}

/* Improved Color Contrast - exclude contact-info-card which has its own styling */
.text-secondary,
.legal-section p,
.legal-section ul li,
.form-group label {
    color: #475569; /* Improved from #64748b for better contrast */
}

/* Links must be distinguishable without relying on color alone */
.legal-section a,
.ndis-info-box a,
.footer a,
.breadcrumb a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-section a:hover,
.ndis-info-box a:hover,
.footer a:hover,
.breadcrumb a:hover {
    text-decoration-thickness: 2px;
}

/* Contact info card links - no underline needed, already on colored background */
.contact-info-card a {
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* Form Fieldset Styling */
.form-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-fieldset legend {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

/* Map placeholder title */
.map-location-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Focus visible improvements for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Non-composited animation fixes for performance */
.floating-btn,
.back-to-top,
.floating-buttons {
    will-change: transform, opacity;
}

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

.floating-btn.pulse {
    animation: pulse 2s ease-in-out;
}

/* Ensure sufficient touch target size (48x48 minimum) */
.checkbox-label {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

/* Improved button contrast */
.btn-outline {
    border-width: 2px;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Why Choose Us - Improved contrast for .why-number */
.why-number {
    color: #1e3a8a !important; /* Dark blue for WCAG AA contrast */
    background: #dbeafe !important; /* Light blue background */
}

/* Registration status - Improved contrast */
.status-approved {
    color: #15803d !important; /* Darker green for better contrast */
}

/* Author name styling for testimonials */
.author-name {
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary);
}

/* =====================================================
   MOBILE PERFORMANCE & LOADING FIXES
   ===================================================== */

/* Prevent layout shift and ensure fast first paint */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Critical: Prevent blocking on mobile */
body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: manipulation;
}

/* Prevent double-tap zoom on interactive elements (iOS fix) */
button, a, input, select, textarea, .btn, .nav-link, .service-card, .floating-btn {
    touch-action: manipulation;
}

/* GPU acceleration for smooth animations */
.header,
.hero,
.service-card,
.testimonial-card,
.floating-buttons,
.floating-btn,
.back-to-top,
.nav-menu {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-particles,
    .particle,
    .scroll-progress {
        display: none !important;
    }
}

/* =====================================================
   iOS SPECIFIC OPTIMIZATIONS
   ===================================================== */

/* Fix iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero,
    .page-hero {
        min-height: -webkit-fill-available;
    }

    /* Fix iOS rubber banding */
    body {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    body:not(.menu-open) {
        position: relative;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* iOS input zoom prevention */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* iOS safe area padding */
    .header {
        padding-top: env(safe-area-inset-top);
    }

    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .floating-buttons {
        bottom: calc(100px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }

    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }

    /* Fix iOS momentum scrolling */
    .nav-menu,
    .testimonials-slider,
    .services-grid {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix iOS tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Better touch feedback for iOS */
    .btn:active,
    .nav-link:active,
    .service-card:active,
    .floating-btn:active {
        opacity: 0.7;
        transition: opacity 0.1s ease;
    }
}

/* Fix notch/Dynamic Island on newer iPhones */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* =====================================================
   ANDROID SPECIFIC OPTIMIZATIONS
   ===================================================== */

/* Android Chrome address bar resize fix */
@media screen and (max-width: 991px) {
    .hero {
        min-height: calc(100vh - 56px);
        min-height: calc(100svh - 56px); /* Small viewport height for address bar */
    }

    .page-hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

/* Android smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Better font rendering on Android */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Android ripple effect for buttons */
@media (hover: none) and (pointer: coarse) {
    .btn {
        position: relative;
        overflow: hidden;
    }

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

    .btn:active::after {
        width: 200%;
        height: 200%;
    }
}

/* =====================================================
   TABLET SPECIFIC OPTIMIZATIONS (768px - 1024px)
   ===================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    /* Tablet container */
    .container {
        max-width: 90%;
        padding: 0 2rem;
    }

    /* Tablet navigation - horizontal menu */
    .nav-menu {
        display: flex;
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    /* Tablet hero adjustments */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Two-column services grid for tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Tablet service cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Two-column testimonials */
    .testimonials-slider {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .testimonial-card {
        margin: 0;
    }

    /* Tablet contact layout */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    /* About page two columns */
    .story-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Tablet FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Floating buttons for tablet */
    .floating-buttons {
        bottom: 80px;
        right: 24px;
        gap: 12px;
    }

    .floating-btn {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    /* Show tooltips on tablet */
    .floating-btn .btn-tooltip {
        display: none;
    }

    /* Footer grid for tablet */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Section padding for tablet */
    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero {
        min-height: 60vh;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Larger touch targets */
    .btn {
        min-height: 52px;
        padding: 0.875rem 1.5rem;
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
        padding: 80px 0 40px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   IMPROVED MOBILE TOUCH INTERACTIONS
   ===================================================== */

/* Touch-friendly tap areas (minimum 44x44px per Apple, 48x48px per Material) */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .btn,
    .floating-btn,
    .back-to-top,
    .social-link,
    .faq-question,
    .checkbox-label {
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Larger checkbox/radio touch area */
    input[type="checkbox"],
    input[type="radio"] {
        width: 24px;
        height: 24px;
    }

    /* Better spacing between touch targets */
    .nav-menu {
        gap: 0;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        padding: 1rem 1.25rem;
    }

    /* Disable hover effects on touch devices */
    .service-card:hover,
    .testimonial-card:hover,
    .btn:hover {
        transform: none;
    }

    /* Touch feedback instead */
    .service-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-md);
    }

    .btn:active {
        transform: scale(0.95);
    }

    /* Swipe hint for sliders */
    .testimonials-slider::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
        pointer-events: none;
    }
}

/* =====================================================
   MOBILE LOADING OPTIMIZATION
   ===================================================== */

/* Content visibility for offscreen elements */
.footer,
.cta-section,
.registration-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Lazy rendering for below-fold content */
@media (max-width: 991px) {
    section:not(.hero):not(.page-hero) {
        content-visibility: auto;
        contain-intrinsic-size: 0 400px;
    }
}

/* Optimize images for mobile */
img {
    content-visibility: auto;
    loading: lazy;
}

/* Critical path CSS - ensure above-fold content renders first */
.header,
.hero,
.page-hero {
    contain: layout style;
}

/* =====================================================
   MOBILE MENU IMPROVEMENTS
   ===================================================== */

@media (max-width: 991px) {
    /* Fix mobile menu overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-link {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
        font-weight: 500;
    }

    /* Mobile menu button animation */
    .mobile-menu-btn {
        width: 48px;
        height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        z-index: 1001;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s ease;
        display: block;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* =====================================================
   MOBILE FORM OPTIMIZATIONS
   ===================================================== */

@media (max-width: 767px) {
    /* Stack form elements */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        width: 100%;
    }

    /* Larger form inputs */
    input,
    select,
    textarea {
        min-height: 52px;
        font-size: 16px;
        padding: 0.875rem 1rem;
        border-radius: var(--radius-md);
    }

    /* Full width buttons */
    .btn-block,
    .contact-form .btn {
        width: 100%;
    }

    /* Better checkbox styling */
    .checkbox-label {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .checkmark {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
}

/* =====================================================
   PERFORMANCE: REDUCE ANIMATIONS ON LOW-END DEVICES
   ===================================================== */

/* Detect low-end devices via update feature */
@media (update: slow) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .hero-particles,
    .scroll-progress {
        display: none !important;
    }
}

/* Battery saver / low power mode */
@media (prefers-reduced-motion: reduce) {
    .floating-btn,
    .service-card,
    .testimonial-card {
        transition: none !important;
    }

    .hero-gradient,
    .hero-particles {
        animation: none !important;
    }
}

/* =====================================================
   DARK MODE SUPPORT (OPTIONAL)
   ===================================================== */

@media (prefers-color-scheme: dark) {
    /* Only if user system is in dark mode - uncomment to enable
    :root {
        --body-bg: #0f172a;
        --white: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --gray-50: #1e293b;
        --gray-100: #334155;
    }
    */
}

/* =====================================================
   HIGH CONTRAST MODE
   ===================================================== */

@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .service-card,
    .testimonial-card,
    .contact-info-card {
        border: 2px solid var(--text-primary);
    }

    a {
        text-decoration: underline;
    }
}

/* =====================================================
   DEVICE-SPECIFIC STYLES (via JS class)
   ===================================================== */

/* iOS Specific */
body.is-ios {
    /* Fix rubber banding */
    overscroll-behavior: none;
}

body.is-ios .hero {
    /* Use CSS variable for real viewport height */
    min-height: calc(var(--vh, 1vh) * 100);
}

body.is-ios input,
body.is-ios select,
body.is-ios textarea {
    /* Prevent zoom on focus */
    font-size: 16px !important;
}

/* Android Specific */
body.is-android .btn {
    /* Better tap feedback */
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
}

/* Touch Device Specific */
body.is-touch .service-card,
body.is-touch .testimonial-card {
    /* Disable hover transforms on touch */
    transition: box-shadow 0.3s ease;
}

body.is-touch .service-card:hover,
body.is-touch .testimonial-card:hover {
    transform: none;
}

/* Mobile Specific */
body.is-mobile .hero-particles {
    /* Reduce particle count on mobile */
    opacity: 0.3;
}

body.is-mobile .scroll-progress {
    /* Thicker progress bar on mobile */
    height: 4px;
}

/* Tablet Specific */
body.is-tablet .container {
    max-width: 95%;
}

body.is-tablet .floating-btn {
    width: 54px;
    height: 54px;
}

/* Fix for body.menu-open on iOS */
body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

body.is-ios.menu-open {
    height: 100%;
    height: -webkit-fill-available;
}
