/* Johnstan Contracting - Modern Design System */
/* Advanced CSS with High-Quality Effects & Animations */

:root {
    /* Modern Color Palette - Emerald Green Theme */
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Neutral Colors */
    --white: #ffffff;
    --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;
    --black: #000000;
    
    /* Gradients - Emerald Green Theme */
    --gradient-primary: linear-gradient(135deg, #047857 0%, #059669 25%, #10b981 50%, #059669 75%, #047857 100%);
    --gradient-primary-smooth: linear-gradient(135deg, #065f46 0%, #047857 20%, #059669 40%, #10b981 60%, #059669 80%, #047857 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1f2937 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.3);
    --shadow-glow-accent: 0 0 20px rgba(245, 158, 11, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* UI variant helpers */
body.ui-minimal .navbar { box-shadow: none; border-bottom: 1px solid rgba(0,0,0,.06); }
body.ui-minimal .card { box-shadow: none; border: 1px solid #e5e7eb; }
body.ui-minimal .btn-hero { border-radius: 8px; }

body.ui-bold .navbar { box-shadow: 0 10px 30px rgba(0,0,0,.12); }
body.ui-bold .card { box-shadow: 0 30px 40px rgba(0,0,0,.12); }
body.ui-bold .btn-hero { transform: none; font-weight: 800; letter-spacing: .3px; }

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

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

p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

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

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

.glass-effect {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-effect-dark {
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Advanced Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    padding: var(--space-md) 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: var(--white);
    transition: transform var(--transition-bounce);
    padding: var(--space-sm) 0;
}

.navbar-brand:hover {
    transform: scale(1.02);
    text-decoration: none;
    color: var(--white);
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.navbar-brand .brand-title {
    font-size: var(--header-title-size, 1.25rem);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.navbar-brand .brand-subtitle {
    font-size: var(--header-subtitle-size, 0.75rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
}

.logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--logo-container-bg, var(--gradient-primary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all var(--transition-bounce);
    flex-shrink: 0;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.logo-container:hover::before {
    left: 100%;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: all var(--transition-bounce);
    padding: 4px;
}

.default-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-square {
    position: relative;
    width: 32px;
    height: 32px;
    background: var(--logo-square-bg, rgba(255, 255, 255, 0.9));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-square i {
    position: absolute;
    font-size: 12px;
    color: var(--logo-icon-color, var(--primary));
    transition: all var(--transition-bounce);
}

.logo-square i.bi-hammer {
    top: 4px;
    left: 4px;
}

.logo-square i.bi-house {
    top: 4px;
    right: 4px;
}

.logo-square i.bi-droplet {
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    z-index: 1;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    font-weight: 500;
}

.nav-link {
    position: relative;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal);
    z-index: -1;
}

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

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section - Advanced Design */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary-smooth);
    overflow: hidden;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    background-size: cover;
    opacity: 0.2;
    /* Removed float animation to prevent interference with hero image */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: opacity var(--transition-slow);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.9), rgba(4, 120, 87, 0.95));
    transition: opacity var(--transition-slow);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
    animation: fadeInUp 0.8s ease-out;
    /* Changed to fadeInUp for smoother animation */
}

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

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

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.01em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    /* Changed to fadeInUp for smoother animation */
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
    font-weight: 500;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    /* Changed to fadeInUp for smoother animation */
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.6s both;
}

.trust-indicators .badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-800);
    font-weight: 700;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-bounce);
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-md);
}

.trust-indicators .badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Legacy Highlight */
.legacy-highlight {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-xl);
    animation: slideInUp 1s ease-out 0.8s both;
}

.legacy-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left var(--transition-slow);
}

.legacy-highlight:hover::before {
    left: 100%;
}

.legacy-highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.legacy-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-bounce);
}

.legacy-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all var(--transition-normal);
    transform: translate(-50%, -50%);
}

.legacy-highlight:hover .legacy-icon::before {
    width: 100%;
    height: 100%;
}

.legacy-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.legacy-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Stats Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    animation: slideInUp 1s ease-out 1s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 1.2s both;
}

.btn-hero {
    position: relative;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-bounce);
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

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

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

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

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

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

.btn-outline-primary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

.scroll-indicator .btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
    transition: all var(--transition-bounce);
}

.scroll-indicator .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Section Styles */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out;
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    text-align: center;
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 1s ease-out 0.2s both;
}

/* Services Section */
.services-section {
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    min-height: 400px;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23e5e7eb" stop-opacity="0.3"/><stop offset="100%" stop-color="%23e5e7eb" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    background-size: cover;
    opacity: 0.5;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    height: 100%;
    animation: slideInUp 1s ease-out;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary-smooth);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto var(--space-lg) auto;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-bounce);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all var(--transition-normal);
    transform: translate(-50%, -50%);
}

.service-card:hover .service-icon::before {
    width: 100%;
    height: 100%;
}

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

.service-card h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.7;
    text-align: justify;
}

/* Before/After Section */
.before-after-section {
    background: var(--white);
    position: relative;
    padding: 80px 0;
    min-height: 400px;
}

.before-after-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.before-after-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.before-after-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-bounce);
    background: var(--gray-200);
}

.before-after-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.before-after-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all var(--transition-normal);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.before-after-image:hover img {
    filter: brightness(1.1) contrast(1.1);
}

.image-overlay {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 2;
}

.image-overlay .badge {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.before-after-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-bounce);
    height: 100%;
    position: relative;
}

.before-after-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

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

.before-after-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.before-after-card .card-body {
    padding: var(--space-xl);
}

.before-after-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.before-after-card .card-text {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Enhanced Before/After Interactive Slider Styles */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--gray-100);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.before-after-slider:hover {
    box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.ba-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: ew-resize;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-fast);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(1.02) contrast(1.05);
}

.ba-before {
    z-index: 1 !important;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%) !important;
    filter: blur(3px) brightness(0.95) contrast(1.05) saturate(0.975);
    transition: clip-path 0.3s ease, filter 0.3s ease;
}

.ba-after {
    z-index: 2 !important;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%) !important;
    filter: brightness(1.1) contrast(1.2) saturate(1.1);
    transition: clip-path 0.3s ease, filter 0.3s ease;
}

/* Enhanced Before/After Handle with Scroll Line */
.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981 0%, #047857 100%);
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    transition: var(--transition-fast);
    user-select: none;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    border-radius: 2px;
}

.ba-handle:hover,
.ba-handle.hover {
    background: linear-gradient(180deg, #047857 0%, #10b981 100%);
    width: 8px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
}

.ba-handle.dragging {
    background: linear-gradient(180deg, #047857 0%, #10b981 100%);
    width: 8px;
    box-shadow: 0 0 40px rgba(16, 185, 129, 1.0);
}

.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    transition: var(--transition-normal);
    user-select: none;
    backdrop-filter: blur(15px);
}

.ba-handle-button:hover,
.ba-handle-button.hover {
    background: #10b981;
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.6);
    border-color: #047857;
}

.ba-handle-button.dragging {
    background: #10b981;
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.8);
    border-color: #047857;
}

.ba-handle-button i {
    font-size: 24px;
    color: #10b981;
    transition: var(--transition-normal);
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.ba-handle-button:hover i,
.ba-handle-button.hover i,
.ba-handle-button.dragging i {
    color: var(--white);
    transform: scale(1.1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.ba-handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #10b981 15%, 
        #10b981 85%, 
        transparent 100%);
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* Enhanced Before/After Labels */
.ba-label {
    position: absolute;
    top: 20px;
    z-index: 5;
    transition: var(--transition-normal);
    pointer-events: none;
    animation: fadeInUp 0.6s ease-out;
}

.ba-label-before {
    left: 20px;
    animation-delay: 0.2s;
}

.ba-label-after {
    right: 20px;
    animation-delay: 0.4s;
}

.ba-label .badge {
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.ba-label:hover .badge {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.ba-label-before .badge {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.ba-label-after .badge {
    background: linear-gradient(135deg, var(--primary), #047857);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

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

/* Project Details */
.project-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.project-details i {
    color: var(--primary);
    margin-right: 4px;
}

/* Focus styles for accessibility */
.ba-handle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.ba-handle:focus .ba-handle-button {
    background: var(--primary);
    color: var(--white);
}

.ba-handle:focus .ba-handle-button i {
    color: var(--white);
}

/* Loading state */
.before-after-slider.loading {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Enhanced Mobile Responsiveness for Before/After Slider */
@media (max-width: 768px) {
    .before-after-slider {
        height: 280px;
    }
    
    .ba-handle-button {
        width: 36px;
        height: 36px;
    }
    
    .ba-handle-button i {
        font-size: 16px;
    }
    
    .ba-label .badge {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* Enhanced Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .ba-handle {
        width: 6px;
        background: rgba(255, 255, 255, 1);
    }
    
    .ba-handle-button {
        width: 48px;
        height: 48px;
        border-width: 3px;
    }
    
    .ba-handle-button i {
        font-size: 20px;
    }
}

/* Smooth transitions for all interactive elements */
.before-after-slider * {
    transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gallery Section */
.gallery-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-filters .btn {
    margin: 0 5px 10px;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-filters .btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gallery-item {
    margin-bottom: 30px;
}

.gallery-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* Enforce uniform gallery image ratio */
.gallery-card .card-img-top,
.gallery-card img,
.gallery-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(1.02) contrast(1.05);
    will-change: transform;
}

/* Gallery image loading optimizations */
.gallery-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    position: relative;
    z-index: 2;
}

/* Optimize image loading */
.gallery-card img {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Hide title text under images in gallery cards */
.gallery-card .card-body h6,
.gallery-card .card-body .card-title {
    display: none;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.gallery-card:hover .gallery-item-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gallery-pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination-info {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-pagination {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
}

.btn-pagination:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-page-number {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
}

.btn-page-number:hover:not(.active) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    font-weight: 500;
    user-select: none;
}



.pagination-info-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.gallery-loading,
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.gallery-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Modal Styles */
#imageModal .modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: none;
    border-radius: 15px;
}

#imageModal .modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#imageModal .modal-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#imageModal .btn-close-white {
    filter: invert(1);
}

#modalImage {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-caption {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 10px 10px;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    #imageModal .modal-dialog {
        margin: 10px;
    }
    
    /* Mobile pagination adjustments */
    .pagination-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-numbers {
        gap: 5px;
    }
    
    .btn-page-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .btn-pagination {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .pagination-ellipsis {
        width: 35px;
        height: 35px;
    }
    
    #modalImage {
        max-height: 60vh;
    }
}

/* Testimonials Section */
.testimonials-section {
    background: var(--white);
    position: relative;
}





.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 4rem;
    color: var(--gray-200);
    font-family: serif;
    line-height: 1;
}

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

.stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Contact Section */
.contact-section {
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.05"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--white);
    padding: var(--space-md);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.form-control::placeholder {
    color: #ffffff;
    font-weight: 500;
}

.form-control::-webkit-input-placeholder {
    color: #ffffff;
    font-weight: 500;
}

.form-control::-moz-placeholder {
    color: #ffffff;
    font-weight: 500;
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: #ffffff;
    font-weight: 500;
}

/* Textarea placeholder styling */
textarea.form-control::placeholder {
    color: #ffffff;
    font-weight: 500;
}

textarea.form-control::-webkit-input-placeholder {
    color: #ffffff;
    font-weight: 500;
}

textarea.form-control::-moz-placeholder {
    color: #ffffff;
    font-weight: 500;
    opacity: 1;
}

textarea.form-control:-ms-input-placeholder {
    color: #ffffff;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    color: var(--white);
}

.form-label {
    color: var(--white);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.btn-submit {
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: var(--space-md) var(--space-2xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

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

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

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-accent);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-brand .brand-title {
    color: var(--white);
    font-size: var(--footer-title-size, 1.5rem);
    margin: 0;
    line-height: 1.2;
}

.footer-brand .brand-subtitle {
    color: var(--gray-400);
    font-size: var(--footer-subtitle-size, 1rem);
    margin: 0;
    line-height: 1.4;
}

.footer-brand .text-muted {
    color: var(--gray-500) !important;
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-section h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

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

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-bounce);
    margin-right: var(--space-sm);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-lg);
    margin-top: var(--space-2xl);
    text-align: center;
    color: var(--gray-400);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--transition-slow);
}

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

/* Loading States */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
    
    .hero-description {
        font-size: clamp(0.875rem, 3vw, 1rem);
    }
    
    .trust-indicators {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .before-after-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .before-after-container::before {
        display: none;
    }
    
    .gallery-filters {
        justify-content: center;
    }
    
    .gallery-filters .btn {
        font-size: 0.875rem;
        padding: var(--space-xs) var(--space-md);
    }
    
    .service-card,
    .testimonial-card,
    .before-after-card {
        margin-bottom: var(--space-lg);
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: var(--space-sm) 0;
    }
    
    .logo-container {
        width: 40px;
        height: 40px;
    }
    
    .logo-image {
        width: 100%;
        height: 100%;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .brand-title {
        font-size: 1rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-content {
        padding: 0 var(--space-md);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .service-card,
    .testimonial-card,
    .before-after-card {
        padding: var(--space-lg);
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .hero-cta {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: var(--space-lg) 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #000080;
        --accent: #ff8c00;
        --gray-50: #ffffff;
        --gray-900: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 

/* Theme-Specific Styles */
/* Default Theme - Emerald Green */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #34d399;
    --gradient-primary: linear-gradient(135deg, #047857 0%, #059669 25%, #10b981 50%, #059669 75%, #047857 100%);
    --gradient-primary-smooth: linear-gradient(135deg, #065f46 0%, #047857 20%, #059669 40%, #10b981 60%, #059669 80%, #047857 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #34d399 50%, #10b981 100%);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
    --shadow-glow-accent: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Emerald Green Theme (Enhanced) */
[data-theme="emerald"] {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #34d399;
    --gradient-primary: linear-gradient(135deg, #047857 0%, #059669 25%, #10b981 50%, #059669 75%, #047857 100%);
    --gradient-primary-smooth: linear-gradient(135deg, #065f46 0%, #047857 20%, #059669 40%, #10b981 60%, #059669 80%, #047857 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #34d399 50%, #10b981 100%);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
    --shadow-glow-accent: 0 0 20px rgba(16, 185, 129, 0.3);
}

[data-theme="emerald"] .hero-section {
    background: var(--gradient-primary-smooth);
}

[data-theme="emerald"] .hero-title .text-primary {
    color: #10b981 !important;
}

[data-theme="emerald"] .hero-subtitle {
    color: #34d399 !important;
}

[data-theme="emerald"] .service-icon {
    background: var(--gradient-primary-smooth);
}

[data-theme="emerald"] .legacy-icon {
    background: var(--gradient-accent);
}

[data-theme="emerald"] .btn-primary {
    background: var(--gradient-primary-smooth);
}

[data-theme="emerald"] .btn-submit {
    background: var(--gradient-accent);
}

/* Enhanced Emerald Green Effects */
[data-theme="emerald"] .btn-hero:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

[data-theme="emerald"] .gallery-card:hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

[data-theme="emerald"] .service-card:hover {
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1);
}

[data-theme="emerald"] .navbar {
    background: rgba(5, 150, 105, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="emerald"] .hero-badge {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="emerald"] .floating-stats .stat-card {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Default Emerald Green Theme Enhancements */
.btn-hero:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.gallery-card:hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.service-card:hover {
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1);
}

.navbar {
    background: rgba(5, 150, 105, 0.95);
    backdrop-filter: blur(10px);
}

.hero-badge {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.floating-stats .stat-card {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Emerald Green Text Accents */
.text-primary {
    color: #059669 !important;
}

.text-accent {
    color: #10b981 !important;
}

/* Emerald Green Border Accents */
.border-primary {
    border-color: #059669 !important;
}

.border-accent {
    border-color: #10b981 !important;
}

/* Contact Form Alert Styling */
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.contact-form .alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.contact-form .alert i {
    margin-right: 0.5rem;
}

/* Christmas Theme */
[data-theme="christmas"] {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --accent: #059669;
    --accent-dark: #047857;
    --accent-light: #10b981;
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
    --gradient-accent: linear-gradient(135deg, #059669 0%, #10b981 50%, #059669 100%);
    --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.3);
    --shadow-glow-accent: 0 0 20px rgba(5, 150, 105, 0.3);
}

[data-theme="christmas"] .hero-section {
    background: var(--gradient-primary);
}

[data-theme="christmas"] .hero-title .text-primary {
    color: #ef4444 !important;
}

[data-theme="christmas"] .hero-subtitle {
    color: #10b981 !important;
}

[data-theme="christmas"] .service-icon {
    background: var(--gradient-primary);
}

[data-theme="christmas"] .legacy-icon {
    background: var(--gradient-accent);
}

[data-theme="christmas"] .btn-primary {
    background: var(--gradient-primary);
}

[data-theme="christmas"] .btn-submit {
    background: var(--gradient-accent);
}

/* Summer Theme */
[data-theme="summer"] {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #f97316;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --gradient-primary: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #ea580c 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    --shadow-glow: 0 0 20px rgba(234, 88, 12, 0.3);
    --shadow-glow-accent: 0 0 20px rgba(245, 158, 11, 0.3);
}

[data-theme="summer"] .hero-section {
    background: var(--gradient-primary);
}

[data-theme="summer"] .hero-title .text-primary {
    color: #f97316 !important;
}

[data-theme="summer"] .hero-subtitle {
    color: #fbbf24 !important;
}

[data-theme="summer"] .service-icon {
    background: var(--gradient-primary);
}

[data-theme="summer"] .legacy-icon {
    background: var(--gradient-accent);
}

[data-theme="summer"] .btn-primary {
    background: var(--gradient-primary);
}

[data-theme="summer"] .btn-submit {
    background: var(--gradient-accent);
}

/* Theme Preview Styles */
.theme-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.preview-card {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all var(--transition-normal);
}

.preview-card.default-theme::before {
    background: var(--gradient-primary);
}

.preview-card.emerald-theme::before {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #059669 100%);
}

.preview-card.christmas-theme::before {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
}

.preview-card.summer-theme::before {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #ea580c 100%);
}

.preview-header h6 {
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.preview-header p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* Content Status Styles */
.content-status {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.status-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.status-item .badge {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
}

/* Admin Panel Theme Styles */
.admin-panel[data-theme="emerald"] {
    --primary: #059669;
    --accent: #10b981;
}

.admin-panel[data-theme="christmas"] {
    --primary: #dc2626;
    --accent: #059669;
}

.admin-panel[data-theme="summer"] {
    --primary: #ea580c;
    --accent: #f59e0b;
}

/* Theme Transition Effects */
* {
    transition: background-color var(--transition-normal), 
                color var(--transition-normal), 
                border-color var(--transition-normal);
}

/* Theme-specific animations */
[data-theme="emerald"] .service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.25);
}

[data-theme="christmas"] .service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.25);
}

[data-theme="summer"] .service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(234, 88, 12, 0.25);
}

/* Theme-specific button hover effects */
[data-theme="emerald"] .btn-hero:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

[data-theme="christmas"] .btn-hero:hover {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

[data-theme="summer"] .btn-hero:hover {
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.3);
}

/* Theme-specific form focus states */
[data-theme="emerald"] .form-control:focus,
[data-theme="emerald"] .form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

[data-theme="christmas"] .form-control:focus,
[data-theme="christmas"] .form-select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

[data-theme="summer"] .form-control:focus,
[data-theme="summer"] .form-select:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* Theme-specific link hover effects */
[data-theme="emerald"] a:hover {
    color: #10b981;
}

[data-theme="christmas"] a:hover {
    color: #dc2626;
}

[data-theme="summer"] a:hover {
    color: #ea580c;
}

/* Theme-specific badge styles */
[data-theme="emerald"] .badge.bg-primary {
    background-color: #059669 !important;
}

[data-theme="christmas"] .badge.bg-primary {
    background-color: #dc2626 !important;
}

[data-theme="summer"] .badge.bg-primary {
    background-color: #ea580c !important;
}

/* Theme-specific text colors */
[data-theme="emerald"] .text-primary {
    color: #059669 !important;
}

[data-theme="christmas"] .text-primary {
    color: #dc2626 !important;
}

[data-theme="summer"] .text-primary {
    color: #ea580c !important;
}

[data-theme="emerald"] .text-accent {
    color: #10b981 !important;
}

[data-theme="christmas"] .text-accent {
    color: #059669 !important;
}

[data-theme="summer"] .text-accent {
    color: #f59e0b !important;
} 

/* Hero Section - Text Image Parallax */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 0;
    background: var(--gradient-primary-smooth);
    overflow: hidden;
}

/* Parallax Background */
.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.parallax-bg {
    background: linear-gradient(135deg, #047857 0%, #059669 25%, #10b981 50%, #059669 75%, #047857 100%);
    background-size: 200% 200%;
    /* Removed gradientShift animation to prevent interference with hero image */
}

.parallax-overlay {
    background: rgba(0, 0, 0, 0.2);
    /* Reduced opacity to make image more visible */
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    color: white;
    padding: 120px 0 80px;
}

/* Parallax Elements */
.parallax-element {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Text Content - Left Side */
.hero-text-content {
    padding-right: 2rem;
}

/* Enhanced Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 16px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.1s both;
}

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

/* Enhanced Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.025em;
}

/* Premium gradient + glow for single-line hero title */
.title-gradient {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 8px 30px rgba(0,0,0,0.25);
    position: relative;
}

/* Shimmer sweep */
.title-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    height: 100%;
    width: 120%;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.25) 30%, transparent 60%);
    transform: skewX(-20deg);
    animation: titleShimmer 3.5s ease-in-out infinite;
}

@keyframes titleShimmer {
    0% { left: -120%; }
    60% { left: 120%; }
    100% { left: 120%; }
}

/* Subtle entrance motion */
.hero-title .title-gradient {
    animation: titleRise 0.9s ease-out both;
}

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

/* Animated text for "That Excel" */
.hero-title .animated-text {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: 
        titleRise 0.9s ease-out both,
        textGlow 3s ease-in-out infinite,
        gradientShift 4s ease-in-out infinite;
    position: relative;
}

.hero-title .animated-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    animation: textShimmer 2.5s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.3));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.6));
        transform: scale(1.02);
    }
}

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

@keyframes textShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hover effects for animated text */
.hero-title .animated-text:hover {
    animation: 
        textGlow 1.5s ease-in-out infinite,
        gradientShift 2s ease-in-out infinite,
        textBounce 0.6s ease-in-out;
    cursor: pointer;
}

@keyframes textBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced Subtitle */
.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    animation: slideInUp 1s ease-out 0.3s both;
}

.subtitle-main {
    color: var(--accent-light);
    display: block;
}

.subtitle-secondary {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    font-size: 0.9em;
}

/* Enhanced Description */
.hero-description {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: slideInUp 1s ease-out 0.4s both;
}

/* Enhanced Trust Indicators */
.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: slideInUp 1s ease-out 0.5s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.trust-item i {
    color: var(--accent);
    font-size: 1rem;
}

/* Enhanced CTA Buttons */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: slideInUp 1s ease-out 0.6s both;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
}

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

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

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero i {
    transition: transform 0.3s ease;
}

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

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

.btn-hero.btn-outline-primary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: pulse-glow 2s ease-in-out infinite alternate;
    cursor: pointer;
    transition: all var(--transition-bounce);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    }
}

.btn-hero.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* General hero button styles */
.btn-hero {
    cursor: pointer;
    transition: all var(--transition-bounce);
}

/* Hero Main Content */
.hero-main-content {
    animation: slideInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 16px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.1s both;
}

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

/* Enhanced Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.025em;
}

.hero-title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.hero-title .text-primary {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-title .text-accent {
    color: var(--accent-light) !important;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Enhanced Subtitle */
.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    animation: slideInUp 1s ease-out 0.3s both;
}

.subtitle-highlight {
    color: var(--accent-light);
    display: block;
}

.subtitle-text {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    font-size: 0.9em;
}

/* Enhanced Description */
.hero-description {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: slideInUp 1s ease-out 0.4s both;
}

/* Enhanced Trust Indicators */
.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: slideInUp 1s ease-out 0.5s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.trust-item i {
    color: var(--accent);
    font-size: 1rem;
}

/* Enhanced CTA Buttons */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: slideInUp 1s ease-out 0.6s both;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.btn-hero.btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Stats Container */
.hero-stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    animation: slideInUp 1s ease-out 0.7s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-indicators {
        flex-direction: column;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }
    
    .hero-description {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
    }
} 

/* Image Content - Right Side */
.hero-image-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    /* Ensure image container is not affected by text animations */
    z-index: 1;
}

.hero-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Ensure image is stable and not affected by other animations */
    transform: none;
    will-change: transform;
}

.hero-main-image:hover .parallax-image {
    transform: scale(1.05);
}

/* Floating Stats Cards */
.floating-stats {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-stats .stat-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    transition: all 0.3s ease;
    /* Ensure stats don't interfere with hero image */
    z-index: 2;
}

.floating-stats .stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-card-1 {
    top: 10%;
    right: -20px;
    width: 120px;
}

.stat-card-2 {
    bottom: 30%;
    left: -30px;
    width: 100px;
}

.stat-card-3 {
    top: 60%;
    right: -10px;
    width: 110px;
}

.floating-stats .stat-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1rem;
    color: white;
}

.floating-stats .stat-number {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.floating-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Decorative Elements */
.hero-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.decorative-circle-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.decorative-circle-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite 2s;
}

.decorative-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    height: 2px;
}

.decorative-line-1 {
    width: 100px;
    top: 40%;
    right: 15%;
    transform: rotate(45deg);
    animation: pulse 4s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-image-container {
        height: 400px;
    }
    
    .floating-stats .stat-card {
        display: none;
    }
    
    .decorative-circle {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }
    
    .hero-description {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
    }
    
    .hero-image-container {
        height: 300px;
    }
} 

/* Gallery Pagination Styles */
.gallery-pagination {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-pagination {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.page-number:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-number.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.page-number.ellipsis {
    background: transparent;
    border: none;
    cursor: default;
}

.page-number.ellipsis:hover {
    background: transparent;
    transform: none;
}

.pagination-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pagination-options .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    min-width: 80px;
}

.pagination-options .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Gallery Loading States */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--text-muted);
}

.gallery-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery Empty State */
.gallery-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.gallery-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .gallery-pagination {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-numbers {
        order: -1;
    }
    
    .pagination-options {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .btn-pagination {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Default Logo Styles */
.default-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-square {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-square i {
    color: white;
    font-size: 12px;
    position: absolute;
}

.logo-square i.bi-hammer {
    top: 8px;
    left: 8px;
}

.logo-square i.bi-house {
    top: 8px;
    right: 8px;
}

.logo-square i.bi-droplet {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Brand Colors CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333333;
} 

/* Mobile enhancements */
@media (max-width: 991.98px) {
  /* Ensure navbar toggler is visible and functional */
  .navbar-toggler {
    border-color: rgba(255,255,255,.25);
  }
  .navbar-toggler:focus {
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
  }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  /* Improve hero spacing on mobile */
  .hero-section .hero-content-wrapper .row { min-height: auto; padding-top: 4rem; padding-bottom: 3rem; }
  .hero-title { font-size: clamp(1.75rem, 5vw, 2.25rem); }
  .hero-subtitle { font-size: clamp(1rem, 3.5vw, 1.25rem); }
  .hero-description { font-size: 1rem; }
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: .75rem; }
  .hero-image-content { margin-top: 2rem; }
  .floating-stats { display: none; }

  /* Container padding for compact mobile view */
  .container { padding-left: 1rem; padding-right: 1rem; }
  .section { padding-top: 2rem; padding-bottom: 2rem; }
  .card-body { padding: 1rem !important; }

  
}

/* Prevent horizontal scroll on mobile */
html, body { overflow-x: hidden; }

/* Testimonials carousel tweaks */
.testimonial-carousel .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%;
}
.testimonial-carousel .carousel-item { padding: 0.5rem 0; }
.testimonial-card .stars { color: #f5c518; }

/* UI polish: use brand variables consistently */
:root {
  --primary: var(--primary-color, #2c3e50);
  --secondary: var(--secondary-color, #3498db);
  --accent: var(--accent-color, #e74c3c);
  --text: var(--text-color, #333333);
}

/* Section spacing and headings */
.section { padding-top: clamp(2.5rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.section-title { margin-bottom: .5rem; letter-spacing: .2px; }
.section-subtitle { color: #6b7280; margin-bottom: 2rem; }

/* Cards */
.card { border: none; border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 20px 30px rgba(0,0,0,.08); }

/* Hero CTA buttons */
.btn-hero { padding: .75rem 1.25rem; border-radius: 12px; font-weight: 600; }
.btn-hero.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-hero.btn-primary:hover { filter: brightness(1.05); }
.btn-hero.btn-outline-primary { 
    color: var(--primary); 
    border-color: var(--primary); 
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-hero.btn-outline-primary:hover { 
    color: #fff; 
    background: var(--primary); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Focus states accessibility */
.btn:focus, .btn:focus-visible { outline: none; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }

/* Navbar visual tweaks */
.navbar .nav-link { 
    padding: .5rem .75rem; 
    border-radius: .5rem; 
    transition: background-color .2s ease, color .2s ease; 
    color: var(--white) !important;
}
.navbar .nav-link:hover { 
    background: rgba(255,255,255,.1); 
    color: var(--white) !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 576px) {
    .navbar {
        padding: var(--space-sm) 0;
    }
    
    .navbar-brand {
        gap: var(--space-sm);
    }
    
    .navbar-brand .brand-title {
        font-size: calc(var(--header-title-size, 1.25rem) * 0.88);
    }
    
    .navbar-brand .brand-subtitle {
        font-size: calc(var(--header-subtitle-size, 0.75rem) * 0.93);
    }
    
    .logo-container {
        width: 40px;
        height: 40px;
    }
    
    .logo-image {
        width: 100%;
        height: 100%;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .brand-title {
        font-size: 1.1rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .service-card,
    .testimonial-card {
        margin-bottom: var(--space-lg);
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
    
    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-brand .logo-container {
        width: 50px;
        height: 50px;
    }
    
    .footer-brand .brand-title {
        font-size: calc(var(--footer-title-size, 1.5rem) * 0.83);
    }
    
    .footer-brand .brand-subtitle {
        font-size: calc(var(--footer-subtitle-size, 1rem) * 0.9);
    }
    
    /* Mobile button improvements */
    .btn-hero {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-hero.btn-outline-primary {
        animation: none; /* Disable pulse animation on mobile for better performance */
    }
    
    /* Mobile gallery improvements */
    .gallery-card .card-img-top,
    .gallery-card img {
        height: 200px; /* Slightly smaller on mobile for better performance */
    }
    
    .gallery-card:hover {
        transform: translateY(-5px); /* Reduced hover effect on mobile */
    }
    
    .gallery-card:hover img {
        transform: scale(1.02); /* Reduced scale effect on mobile */
    }
    
    .overlay-content i {
        font-size: 2rem; /* Smaller icon on mobile */
    }
}

/* Johnstan Section Styles */
.johnstan-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.johnstan-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.johnstan-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.johnstan-section .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.johnstan-section .section-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.location-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 600;
    color: #0f172a;
    line-height: 50px;
    min-height: 50px;
}

.location-prefix {
    color: #475569;
    font-weight: 500;
}

.location-rotator {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 50px;
    min-width: 200px;
}

.location-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s ease-in-out;
}

.location-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .johnstan-section {
        padding: 60px 0;
    }
    
    .location-container {
        flex-direction: column;
        gap: 0.25rem;
        line-height: 40px;
        min-height: 40px;
    }
    
    .location-rotator {
        height: 40px;
        min-width: 150px;
    }
}

/* Optional: Add a subtle background pattern */
.johnstan-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(5, 150, 105, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.05) 0%, transparent 50%);
    pointer-events: none;
}