/* SumoChuckStudio - Main Stylesheet */
/* Inspired by Rebelway's sleek design aesthetic */

:root {
    /* SumoChuck Brand Colors */
    --primary-color: #279c90;
    --primary-dark: #1f7c72;
    --secondary-color: #6c757d;
    --accent-color: #7bc142;
    --success-color: #7bc142;
    --warning-color: #ffc107;
    --danger-color: #dc3545;

    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-card: #1e1e1e;
    --bg-hover: #2d2d2d;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #87CEEB;
    --text-muted: #87CEEB;
    --text-light: #ffffff;

    /* Border Colors */
    --border-color: #333333;
    --border-light: #444444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-overlay: linear-gradient(45deg, rgba(47, 181, 163, 0.1) 0%, rgba(123, 193, 66, 0.1) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.6);

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 2rem;
}

/* Services Hero Carousel */
.services-hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(13,28,39,0.8) 50%, rgba(39,156,144,0.3) 100%);
}

/* Service Categories Badges */
.service-categories .badge {
    font-weight: 600;
    border: 2px solid rgba(39, 156, 144, 0.6);
    background-color: rgba(39, 156, 144, 0.8) !important;
    color: white !important;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-categories .badge:hover {
    background-color: var(--bs-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(39, 156, 144, 0.4);
}

/* Custom Carousel Indicators */
.carousel-indicators-custom {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-indicators-custom .indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.carousel-indicators-custom .indicator.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(39, 156, 144, 0.6), 0 0 20px rgba(39, 156, 144, 0.3);
}

.carousel-indicators-custom .indicator:hover {
    border-color: rgba(255,255,255,1);
    background: rgba(255,255,255,0.7);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

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

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

body {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(47, 181, 163, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(123, 193, 66, 0.03) 0%, transparent 50%);
    overflow-x: hidden;
}

/* Add padding to body except for home page */
body:not(.home-page) {
    padding-top: 80px; /* Increased to account for larger navbar */
}

/* Responsive adjustments for navbar padding */
@media (max-width: 991.98px) {
    body:not(.home-page) {
        padding-top: 70px; /* Tablet size */
    }
}

@media (max-width: 767.98px) {
    body:not(.home-page) {
        padding-top: 115px; /* Increased 25% more for mobile devices */
    }
}

@media (max-width: 575.98px) {
    body:not(.home-page) {
        padding-top: 125px; /* Increased 25% more for small mobile devices */
    }
}

@media (max-width: 480px) {
    body:not(.home-page) {
        padding-top: 140px; /* Increased 25% more for very small phones */
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
}

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

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

/* Override Bootstrap primary color */
.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Override Bootstrap text colors to ensure all text is white */
.text-muted {
    color: var(--text-secondary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-dark {
    color: var(--text-primary) !important;
}

/* Ensure any dark text becomes white */
* {
    color: inherit;
}

body, p, h1, h2, h3, h4, h5, h6, span, div, a {
    color: inherit;
}

/* Override any potential dark colors */
.text-body {
    color: var(--text-primary) !important;
}

/* Buttons */
.btn {
    font-weight: var(--font-weight-medium);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    border: 2px solid var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

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

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

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    border: 2px solid white;
    color: var(--bg-primary);
}

.btn-light:hover {
    background: var(--text-light);
    border-color: var(--text-light);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

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

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

/* Dollar Bill Button - Referral Popup Only */
#referral-dollar-bill {
    background: linear-gradient(145deg, 
        #2d5016 0%,      /* Dark dollar green */
        #4a8025 15%,     /* Medium dollar green */
        #5da82f 30%,     /* Bright dollar green */
        #4a8025 45%,     /* Medium dollar green */
        #3d6b1d 60%,     /* Darker dollar green */
        #4a8025 75%,     /* Medium dollar green */
        #5da82f 90%,     /* Bright dollar green */
        #2d5016 100%);   /* Dark dollar green */
    border: 3px solid #1a3009;
    border-radius: 15px;
    color: #1a3009 !important;
    font-weight: 900;
    font-size: 1.1rem !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 1px;
    transform: scale(1.15);
    animation: dollar-glow 2s ease-in-out infinite alternate;
}

#referral-dollar-bill::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: bill-pattern 3s linear infinite;
    pointer-events: none;
}

#referral-dollar-bill::after {
    content: '💵';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 7em;
    opacity: 0.2;
    z-index: 1;
    animation: money-float 1.5s ease-in-out infinite alternate;
}

#referral-dollar-bill:hover {
    background: linear-gradient(145deg, 
        #3d6b1d 0%,
        #5da82f 25%,
        #7bc142 50%,
        #5da82f 75%,
        #3d6b1d 100%);
    border-color: #0f1f05;
    color: #0f1f05 !important;
    transform: scale(1.2) translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 3px 8px rgba(255, 255, 255, 0.3),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(125, 193, 66, 0.6);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.4);
}

#referral-dollar-bill:hover::after {
    animation: money-bounce 0.6s ease-in-out infinite;
}

#referral-dollar-bill:active {
    transform: scale(1.1) translateY(-1px);
}

@keyframes dollar-glow {
    0% {
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.3),
            inset 0 2px 5px rgba(255, 255, 255, 0.2),
            inset 0 -2px 5px rgba(0, 0, 0, 0.1),
            0 0 15px rgba(125, 193, 66, 0.3);
    }
    100% {
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.3),
            inset 0 2px 5px rgba(255, 255, 255, 0.2),
            inset 0 -2px 5px rgba(0, 0, 0, 0.1),
            0 0 30px rgba(125, 193, 66, 0.6);
    }
}

@keyframes bill-pattern {
    0% { transform: translateX(-50%) translateY(-50%); }
    100% { transform: translateX(-40%) translateY(-40%); }
}

@keyframes money-float {
    0% { transform: translateY(-50%) scale(1); }
    100% { transform: translateY(-60%) scale(1.1); }
}

@keyframes money-bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-40%) scale(1.3) rotate(10deg); }
}

/* Navigation */
.navbar {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    padding: 0.1875rem 0; /* 50% of 0.375rem */
    z-index: 1030; /* Bootstrap default navbar z-index */
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98) !important;
    padding: 0.125rem 0; /* 50% of 0.25rem */
    box-shadow: var(--shadow-lg);
}

/* Mobile navbar adjustments */
@media (max-width: 767.98px) {
    .navbar {
        padding: 0.0625rem 0; /* 50% of 0.125rem */
    }
    
    .navbar.scrolled {
        padding: 0.03125rem 0; /* 50% of 0.0625rem */
    }
}

.navbar-brand {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color) !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.navbar-brand-logo {
    height: 44.5px;
    width: auto;
    margin-right: 10px;
    transition: all var(--transition-fast);
    transform: scale(0.50625);
}

.navbar-brand-logo-only {
    max-height: none;
    width: auto;
    transition: all var(--transition-fast);
    transform: scale(0.84375); /* Increased by 25% from 0.675 */
}

/* Scaling the div in the navbar */
.scaled-div {
    transform: scale(0.84375); /* Match the navbar logo scale exactly */
    transition: all var(--transition-fast); /* Maintain the same transition */
}

.navbar-brand:hover .scaled-div {
    transform: scale(0.875); /* Slightly larger on hover */
}

/* Fixed Logo Above Navbar */
.fixed-logo {
    position: fixed;
    top: 8px;
    left: 20px;
    z-index: 1060; /* Above navbar (navbar is z-index 1030) */
    transition: all var(--transition-fast);
}

.fixed-logo-img {
    height: 60px;
    width: auto;
    transform: scale(1.35); /* Match footer logo scale */
    transition: all var(--transition-fast);
}

.fixed-logo:hover .fixed-logo-img {
    transform: scale(1.45); /* Slightly larger on hover */
}

.navbar-brand-logo-only img {
    height: 30px;
    width: auto;
}

.navbar-brand:hover .navbar-brand-logo,
.navbar-brand:hover .navbar-brand-logo-only {
    transform: scale(0.875); /* Slightly larger on hover, matching scaled-div */
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.navbar-brand-studio {
    font-size: 0.5625rem;
    color: #87CEEB;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: var(--font-weight-medium);
    margin: 0 0.25rem;
    padding: 0.25rem 0.5rem !important;
    border-radius: 6px;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link i {
    font-size: 1.634rem;
    color: #87CEEB !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(47, 181, 163, 0.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed navbar */
    display: flex;
    align-items: center;
}

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

.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
                radial-gradient(circle at 30% 70%, rgba(47, 181, 163, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Sound Toggle Button */
.sound-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000 !important; /* Highest z-index - above everything including popups */
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.sound-toggle-btn:hover {
    background: rgba(39, 156, 144, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.1);
}

.sound-toggle-btn.muted {
    color: #999;
    border-color: #999;
}

.sound-toggle-btn.muted:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Portfolio Hero with Video Background */
#portfolio-hero {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

/* Mobile portfolio hero adjustments */
@media (max-width: 767.98px) {
    #portfolio-hero {
        margin-top: 20px;
        min-height: calc(100vh - 20px);
    }
}

#portfolio-hero .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#portfolio-hero .hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

#portfolio-hero .hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
                radial-gradient(circle at 30% 70%, rgba(47, 181, 163, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    z-index: 1;
}

#portfolio-hero .container {
    position: relative;
    z-index: 2;
}

/* Page Hero */
.page-hero {
    padding: 6rem 0 4rem; /* Increased top padding for better spacing from navbar */
    background: var(--gradient-dark);
    position: relative;
    margin-top: 0;
    min-height: 50vh; /* Consistent minimum height */
    display: flex;
    align-items: center; /* Center content vertically */
}

/* Desktop - extra spacing for page hero */
@media (min-width: 992px) {
    .page-hero {
        padding-top: 8rem; /* Extra spacing on desktop for better clearance */
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    opacity: 0.3;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.scroll-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

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

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
}

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

/* Background Colors */
.bg-dark-secondary {
    background: var(--bg-secondary) !important;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

/* Cards */
.service-card,
.additional-service-card,
.value-card,
.facility-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.service-card:hover,
.additional-service-card:hover,
.value-card:hover,
.facility-card:hover {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.25) 25%, 
        rgba(123, 193, 66, 0.18) 50%, 
        rgba(39, 156, 144, 0.22) 75%, 
        rgba(26, 26, 26, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(39, 156, 144, 0.25);
}

.service-icon,
.value-icon,
.facility-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all var(--transition-normal);
    border: 3px solid transparent;
}

.service-card:hover .service-icon,
.value-card:hover .value-icon,
.facility-card:hover .facility-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

/* Project Showcase */
.project-showcase {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.project-showcase:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
}

.project-showcase:hover .project-overlay {
    opacity: 1;
}

.project-showcase:hover .project-image img {
    transform: scale(1.1);
}

.project-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Portfolio */
.portfolio-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem 0.5rem 0;
    border-radius: 8px;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.portfolio-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
    position: relative;
    backdrop-filter: blur(10px);
}

.portfolio-card:hover {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.25) 25%, 
        rgba(123, 193, 66, 0.18) 50%, 
        rgba(39, 156, 144, 0.22) 75%, 
        rgba(26, 26, 26, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(39, 156, 144, 0.25);
    border-color: var(--primary-color);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
}

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

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1rem;
}

.portfolio-tags .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Team */
.team-card,
.team-member-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-normal);
    height: 100%;
}

.team-card:hover,
.team-member-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    transition: all var(--transition-normal);
}

.team-member-card .team-image {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-normal);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
}

.team-member-card:hover .team-overlay {
    opacity: 1;
}

.team-social a {
    color: white;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: all var(--transition-fast);
}

.team-social a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.team-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* AI Agent Styles */
.ai-agent-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.ai-agent-card:hover {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.25) 25%, 
        rgba(123, 193, 66, 0.18) 50%, 
        rgba(39, 156, 144, 0.22) 75%, 
        rgba(26, 26, 26, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    border-color: var(--primary-color);
    box-shadow: 0 15px 45px rgba(39, 156, 144, 0.25);
}

.ai-status {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.ai-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.ai-status-indicator.online {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

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

.chat-btn {
    transition: all var(--transition-fast);
}

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

/* Chat Modal Styles */
.chat-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    max-height: 350px;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.agent {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    word-wrap: break-word;
}

.chat-message.user .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.agent .message-content {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

/* Copy Message Button Styles */
.message-content {
    position: relative;
}

.copy-message-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.message-content:hover .copy-message-btn {
    opacity: 1;
}

.copy-message-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.copy-message-btn.copied {
    background: #28a745;
    color: white;
    opacity: 1;
}

.chat-message.user .copy-message-btn {
    background: rgba(0, 0, 0, 0.2);
}

.chat-message.user .copy-message-btn:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Copy Conversation Button */
.copy-conversation-btn {
    transition: all 0.2s ease;
}

.copy-conversation-btn:hover {
    transform: scale(1.05);
}

/* Chat Attachment Styles */
.chat-attachments {
    background: rgba(39, 156, 144, 0.05);
    border: 1px solid rgba(39, 156, 144, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
}

.attachment-preview {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin: 0.25rem;
    max-width: 300px;
    transition: all 0.2s ease;
}

.attachment-preview:hover {
    background: rgba(255, 255, 255, 0.15);
}

.link-input-area {
    background: rgba(39, 156, 144, 0.05);
    border: 1px solid rgba(39, 156, 144, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
}

/* File upload button styling */
#fileUploadBtn, #linkInputBtn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

#fileUploadBtn:hover, #linkInputBtn:hover {
    color: var(--primary-color);
    background: rgba(39, 156, 144, 0.1);
}

/* Input group attachments */
.input-group-text {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 0.5rem;
}

.chat-typing {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-input-container .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(39, 156, 144, 0.25);
}

.agent-intro {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Statistics */
.stat-item {
    padding: 2rem 0;
}

.counter {
    font-weight: var(--font-weight-bold);
    color: white;
}

/* Process */
.process-step {
    position: relative;
    padding: 2rem 1rem;
}

.process-number {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    color: white;
    font-size: 0.875rem;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.process-step:hover .process-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Service Sections */
.service-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-section:last-child {
    border-bottom: none;
}

.service-content {
    padding: 2rem 0;
}

.service-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.service-features .feature-item i {
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

/* Forms */
.contact-form-wrapper,
.contact-info-wrapper {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.contact-form-wrapper::before,
.contact-info-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(39, 156, 144, 0.05) 50%, transparent 70%);
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}

.contact-form-wrapper > *,
.contact-info-wrapper > * {
    position: relative;
    z-index: 2;
}

/* Contact Content Section Background */
#contact-content {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

#contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(123, 193, 66, 0.06) 0%, transparent 50%),
        linear-gradient(45deg, rgba(39, 156, 144, 0.02) 0%, transparent 50%, rgba(123, 193, 66, 0.02) 100%);
    pointer-events: none;
    z-index: 1;
}

#contact-content .container {
    position: relative;
    z-index: 2;
}

.form-control,
.form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: #87CEEB;
}

.form-floating > label {
    color: #87CEEB;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

/* Contact Information */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-details h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 1rem;
}

/* Accordion */
.accordion-dark .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-dark .accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
    border: none;
    font-weight: var(--font-weight-medium);
    padding: 1.25rem 1.5rem;
}

.accordion-dark .accordion-button:not(.collapsed) {
    background: var(--bg-hover);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-dark .accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-dark .accordion-body {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* Mobile flash messages adjustments */
@media (max-width: 767.98px) {
    .flash-messages {
        top: 20px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

.flash-messages .alert {
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--bg-primary) !important;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer h5, .footer h6 {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.footer .text-muted {
    color: var(--text-muted) !important;
}

/* Industry Tools Styling */
.tool-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.tool-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(39, 156, 144, 0.15);
}

.tool-item i {
    transition: all 0.3s ease;
}

.tool-item:hover i {
    transform: scale(1.1);
    color: var(--primary) !important;
}

.tool-item h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tool-item small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Tool Logo Styling */
.tool-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.tool-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.tool-item:hover .tool-logo-img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Specific logo adjustments */
.adobe-logo {
    filter: brightness(1.2);
}

.maxon-logo {
    border-radius: 4px;
}

.openart-logo {
    width: 40px;
    height: 40px;
}

/* Mobile responsive logos */
@media (max-width: 768px) {
    .tool-logo {
        width: 50px;
        height: 50px;
    }
}

/* Pipeline Stage Styling */
.pipeline-stage {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    padding: 1.5rem 1rem;
    height: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
    position: relative;
}

.pipeline-stage:hover {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.25) 25%, 
        rgba(123, 193, 66, 0.18) 50%, 
        rgba(39, 156, 144, 0.22) 75%, 
        rgba(26, 26, 26, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(39, 156, 144, 0.25);
}

.pipeline-stage:hover .stage-number {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(39, 156, 144, 0.4);
}

.stage-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 auto;
}

/* Service Card Styling */
.service-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.service-card:hover {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.25) 25%, 
        rgba(123, 193, 66, 0.18) 50%, 
        rgba(39, 156, 144, 0.22) 75%, 
        rgba(26, 26, 26, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(39, 156, 144, 0.25);
}

.service-card .service-icon {
    width: 60px;
    height: 60px;
    background: rgba(39, 156, 144, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-card .service-icon i {
    font-size: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:hover {
    color: var(--primary);
}

.service-list li::before {
    content: "→";
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Category Preview Cards */
.category-preview-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.category-preview-card:hover {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.25) 25%, 
        rgba(123, 193, 66, 0.18) 50%, 
        rgba(39, 156, 144, 0.22) 75%, 
        rgba(26, 26, 26, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(39, 156, 144, 0.25);
}

.preview-icon {
    width: 80px;
    height: 80px;
    background: rgba(39, 156, 144, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.preview-icon i {
    font-size: 2rem;
}

.preview-meta .badge {
    background-color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .pipeline-stage {
        padding: 1rem 0.75rem;
    }
    
    .stage-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Pricing Page Styles - Remove custom spacing since page-hero now handles it */

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    text-align: center;
}

.pricing-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: var(--bg-hover);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.pricing-card:hover .pricing-icon {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pricing-amount {
    margin: 1.5rem 0;
}

.pricing-amount .currency {
    font-size: 1.5rem;
    color: var(--primary-color);
    vertical-align: top;
}

.pricing-amount .amount {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.pricing-amount .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.pricing-footer {
    margin-top: 2rem;
}

/* User Type Cards */
.user-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-normal);
    height: 100%;
}

.user-type-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.user-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    transition: all var(--transition-normal);
}

.user-type-card:hover .user-icon {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Trust Score Features */
.trust-score-features {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.feature-priority {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-priority.high {
    background: #dc3545;
}

.feature-priority.medium {
    background: #fd7e14;
}

.feature-priority.low {
    background: #198754;
}

/* FAQ Accordion Styling */
.accordion-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: none !important;
    padding: 1.5rem !important;
    font-weight: var(--font-weight-semibold);
}

.accordion-button:not(.collapsed) {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
}

.accordion-body {
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem !important;
}

/* Particle Demo Styles */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

.particle-controls {
    position: relative;
    z-index: 10;
}

.feature-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.feature-card:hover {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.25) 25%, 
        rgba(123, 193, 66, 0.18) 50%, 
        rgba(39, 156, 144, 0.22) 75%, 
        rgba(26, 26, 26, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 45px rgba(39, 156, 144, 0.25);
}

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

.tech-specs .spec-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.spec-icon {
    width: 40px;
    height: 40px;
    background: rgba(39, 156, 144, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-stats {
    border: 1px solid rgba(39, 156, 144, 0.3);
}

.stat-value {
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    margin-top: 0.5rem;
}

/* Store Section Styles */
.store-search-form .form-control:focus,
.store-search-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(39, 156, 144, 0.25);
}

.store-preview-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.store-preview-card:hover {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.25) 25%, 
        rgba(123, 193, 66, 0.18) 50%, 
        rgba(39, 156, 144, 0.22) 75%, 
        rgba(26, 26, 26, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 45px rgba(39, 156, 144, 0.25);
}

.preview-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-preview-card:hover .preview-image img {
    transform: scale(1.1);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-preview-card:hover .preview-overlay {
    opacity: 1;
}

.preview-content {
    padding: 1.5rem;
}

.preview-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-product-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.store-product-card:hover {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.25) 25%, 
        rgba(123, 193, 66, 0.18) 50%, 
        rgba(39, 156, 144, 0.22) 75%, 
        rgba(26, 26, 26, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 45px rgba(39, 156, 144, 0.25);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-content {
    padding: 1.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.product-rating .stars {
    color: #ffc107;
}

.search-filters {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

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

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.page-link {
    background: var(--dark-bg);
    border-color: var(--primary-color);
    color: var(--text-light);
}

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

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

/* Service Cards - Modern Box/Module Style */
.service-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(39, 156, 144, 0.15);
    border-color: var(--primary-color);
}

.service-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.service-level {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-level.free {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.service-level.beginner {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.service-level.intermediate {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.service-level.advanced {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.service-content {
    padding: 0 1.5rem 1rem 1.5rem;
    flex-grow: 1;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.service-price {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin: 1rem 0;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 8px;
}

.price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

.service-rating {
    padding-bottom: 1rem;
}

.service-rating .stars {
    font-size: 0.9rem;
}

.service-actions {
    padding: 1.5rem;
    background: rgba(39, 156, 144, 0.05);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.service-actions .btn {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.service-actions .btn-outline-light {
    border-color: var(--border-color);
    color: var(--text-light);
}

.service-actions .btn-outline-light:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: white;
}

.service-actions .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 700;
}

.service-actions .btn-primary:hover {
    background: #1e7e6d;
    border-color: #1e7e6d;
    transform: translateY(-1px);
}

/* Category Preview Cards */
.category-preview-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.category-preview-card:hover {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.25) 25%, 
        rgba(123, 193, 66, 0.18) 50%, 
        rgba(39, 156, 144, 0.22) 75%, 
        rgba(26, 26, 26, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.1) 0%, transparent 50%);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 45px rgba(39, 156, 144, 0.25);
}

.preview-icon {
    font-size: 3rem;
    text-align: center;
}

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

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-weight: 700;
    line-height: 1;
}

/* Interactive Particle System Styles */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.particle-info .info-item {
    padding: 1rem;
    background: rgba(39, 156, 144, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(39, 156, 144, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.particle-info .info-item:hover {
    background: rgba(39, 156, 144, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.particle-info .info-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-section .container {
    z-index: 2;
    position: relative;
}

.hero-section h1,
.hero-section p.lead,
.particle-info .info-item {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Responsive particle canvas */
@media (max-width: 768px) {
    .particle-info .col-md-3 {
        margin-bottom: 1rem;
    }

    .particle-info .info-item {
        padding: 0.75rem;
    }

    .particle-info .info-item i {
        font-size: 1.25rem;
    }
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer .social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
}

/* Footer Logo */
.footer-logo {
    width: auto;
    height: 60px;
    max-height: 60px;
    transform: scale(1.35);
    transform-origin: left center;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 3rem 0;
        --container-padding: 1.5rem;
    }

    .hero-section {
        min-height: 100vh;
        padding-top: 70px; /* Smaller navbar on tablets */
    }

    .page-hero {
        padding: 3rem 0 3rem; /* Body padding handles navbar spacing */
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .service-content,
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 2rem;
    }

    .team-image {
        width: 100px;
        height: 100px;
    }

    .process-step {
        padding: 1.5rem 0.5rem;
    }

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

    .filter-btn {
        margin: 0.25rem;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px; /* Smaller navbar on mobile */
        padding-bottom: 2rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1.125rem;
    }

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

    .service-card,
    .additional-service-card,
    .value-card,
    .facility-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-icon,
    .value-icon,
    .facility-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

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

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand-studio {
        font-size: 0.5rem;
    }

    .navbar-nav .nav-link i {
        font-size: 1.4rem;
    }

    .navbar-brand-logo {
        height: 18px;
        margin-right: 0.4rem;
    }

    .navbar-brand-logo-only img {
        height: 440px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .service-card,
    .additional-service-card,
    .value-card,
    .facility-card,
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1.25rem;
    }

    .process-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        top: -5px;
        right: 10px;
    }

    .process-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .flash-messages {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Completely disable text selection and highlighting */
::selection {
    background: transparent !important;
    color: inherit !important;
}

::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

/* Disable all text selection highlighting */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-highlight: none !important;
    -moz-highlight: none !important;
}

/* Re-enable text selection for form inputs and editable content */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Disable any potential highlighting on specific elements */
h1, h2, h3, h4, h5, h6, p, span, div, a, li {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Override any browser highlighting for Motion Graphics text */
.service-section ,
,
.text-motion-graphics {
    background: transparent !important;
    color: #87CEEB !important;
}

/* Ensure consistent text coloring for service titles */
.service-content h4 {
    color: #87CEEB !important;
    background: transparent !important;
}

/* Specifically target Motion Graphics heading to match blue theme */
.service-content h4: {
    color: #87CEEB !important;
    background:  !important;
}

/* Focus visible for accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-custom {
    border-radius: 12px !important;
}

.transition-custom {
    transition: all var(--transition-normal) !important;
}

/* Additional Responsive Hero Section Adjustments */

/* Extra Small Mobile (Portrait phones) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 50px;
        padding-bottom: 1rem;
    }
    
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

/* Large Tablets and Small Laptops */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding-top: 80px;
    }
}

/* Large Screens (TVs, Large Monitors) */
@media (min-width: 1400px) {
    .hero-section {
        padding-top: 90px;
        padding-bottom: 3rem;
    }
    
    .hero-section .display-4 {
        font-size: 3.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.5rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 4rem;
    }
    
    .hero-section .display-4 {
        font-size: 4rem;
    }
    
    .hero-section .lead {
        font-size: 1.75rem;
    }
    
    .page-hero {
        padding: 4rem 0 4rem; /* Body padding handles navbar spacing */
    }
}

/* Page Hero Mobile Adjustments */
@media (max-width: 767.98px) {
    .page-hero {
        padding: 2rem 0 2rem; /* Body padding handles navbar spacing */
    }
}

@media (max-width: 575.98px) {
    .page-hero {
        padding: 1.5rem 0 1.5rem; /* Body padding handles navbar spacing */
    }
}

/* Money-Themed Referral Ad - Cycling Variations */
.referral-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 25vw; /* 25% of viewport width */
    min-width: 280px; /* Minimum width for small screens */
    max-width: 400px; /* Maximum width for large screens */
    z-index: 99999 !important; /* Highest z-index, above all Bootstrap elements */
    animation: slideInUp 0.5s ease-out, moneyFloat 6s ease-in-out infinite, themeRotation 15s infinite;
    transform-origin: center bottom;
}

.referral-card {
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    /* Default Dollar Bill Theme */
    background: linear-gradient(135deg, 
        #1a4f1a 0%, 
        #2d5a2d 25%, 
        #0f3d0f 50%, 
        #1a4f1a 75%, 
        #2d5a2d 100%);
    border: 3px solid #ffd700;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 2px 10px rgba(255, 215, 0, 0.2),
        0 0 30px rgba(255, 215, 0, 0.3);
    transition: all 0.5s ease;
}

/* Money Pattern Overlay */
.referral-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 8px,
            rgba(255, 215, 0, 0.03) 8px,
            rgba(255, 215, 0, 0.03) 16px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(255, 215, 0, 0.03) 8px,
            rgba(255, 215, 0, 0.03) 16px
        );
    animation: patternShimmer 4s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Sparkle Effects - Removed static spinning emojis */

/* Enhanced text visibility for referral popup */
.referral-card h5,
.referral-card p,
.referral-card small {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.referral-card .btn {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

/* Money-Themed CTA Button Styling */
.referral-card .btn-cta {
    background: linear-gradient(45deg, 
        #ffd700 0%, 
        #ffed4e 25%, 
        #ffc107 50%, 
        #ffed4e 75%, 
        #ffd700 100%);
    background-size: 200% 200%;
    border: 3px solid #228b22;
    color: #1a4f1a;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    animation: goldShimmer 3s ease infinite, buttonFloat 4s ease-in-out infinite;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.referral-card .btn-cta:hover {
    background: linear-gradient(45deg, 
        #ffed4e 0%, 
        #fff176 25%, 
        #ffd700 50%, 
        #fff176 75%, 
        #ffed4e 100%);
    transform: translateY(-4px) scale(1.05) rotate(2deg);
    box-shadow: 
        0 12px 35px rgba(255, 215, 0, 0.6),
        inset 0 2px 8px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 215, 0, 0.5);
    border-color: #32cd32;
    color: #0d4f0d;
    text-decoration: none;
}

.referral-card .btn-cta:active {
    transform: translateY(-1px) scale(1.02);
}

.cta-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-shine {
    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;
}

.referral-card .btn-cta:hover .cta-shine {
    left: 100%;
}

/* Money-Themed Animation Keyframes */
@keyframes moneyFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-10px) rotate(1deg) scale(1.02); 
    }
    50% { 
        transform: translateY(-15px) rotate(-1deg) scale(1.05); 
    }
    75% { 
        transform: translateY(-10px) rotate(0.5deg) scale(1.02); 
    }
}

@keyframes themeRotation {
    0%, 30% { 
        /* Dollar Bill Theme */
        filter: hue-rotate(0deg) saturate(1);
    }
    35%, 65% { 
        /* Pot of Gold Theme */
        filter: hue-rotate(30deg) saturate(1.2) brightness(1.1);
    }
    70%, 100% { 
        /* Gold Coins Theme */
        filter: hue-rotate(60deg) saturate(1.5) brightness(1.2);
    }
}

@keyframes patternShimmer {
    0% { 
        background-position: 0% 0%, 0% 0%; 
        opacity: 0.3;
    }
    50% { 
        background-position: 100% 100%, -100% -100%; 
        opacity: 0.6;
    }
    100% { 
        background-position: 0% 0%, 0% 0%; 
        opacity: 0.3;
    }
}


@keyframes goldShimmer {
    0%, 100% { 
        background-position: 0% 50%; 
        box-shadow: 
            0 8px 25px rgba(255, 215, 0, 0.4),
            inset 0 2px 5px rgba(255, 255, 255, 0.3);
    }
    50% { 
        background-position: 100% 50%; 
        box-shadow: 
            0 12px 30px rgba(255, 215, 0, 0.6),
            inset 0 2px 8px rgba(255, 255, 255, 0.4),
            0 0 15px rgba(255, 215, 0, 0.3);
    }
}

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

/* Money-Themed Text Styling */
.referral-card h5 {
    color: #ffd700 !important;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.5) !important;
    font-weight: 900;
    z-index: 10;
    position: relative;
}

.referral-card p, .referral-card small {
    color: #f0f8ff !important;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(255, 255, 255, 0.3) !important;
    z-index: 10;
    position: relative;
}

/* Money-Themed Button Updates */
.referral-card .btn-primary {
    background: linear-gradient(135deg, #348595, #2c717e);
    border: none;
    box-shadow: 0 4px 15px rgba(52, 133, 149, 0.3);
}

.referral-card .btn-primary:hover {
    background: linear-gradient(135deg, #2c717e, #245d68);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 133, 149, 0.5);
}

.referral-card .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    background: rgba(0, 0, 0, 0.2);
}

.referral-card .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

.referral-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    border: 2px solid #228b22 !important;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a4f1a !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    font-weight: bold;
    z-index: 15;
}

.referral-close:hover {
    background: linear-gradient(135deg, #ffed4e, #fff176) !important;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    color: #0d4f0d !important;
    cursor: pointer;
}

/* BDR Chat Widget - Mobile Responsive */
@media (max-width: 768px) {
    .referral-ad {
        bottom: 15px;
        right: 15px;
    }
    
    .bdr-avatar-btn {
        width: 52px;
        height: 52px;
    }
    
    .bdr-toast {
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .referral-ad {
        bottom: 12px;
        right: 12px;
    }
    
    .bdr-avatar-btn {
        width: 48px;
        height: 48px;
    }
    
    .bdr-avatar-btn i {
        font-size: 20px;
    }
    
    .bdr-toast {
        max-width: 200px;
        padding: 10px;
    }
    
    .bdr-toast-msg {
        font-size: 10px;
    }
    
    .bdr-btn {
        font-size: 9px;
        padding: 6px 8px;
    }
}

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

@keyframes buttonPulse {
    0%, 100% { 
        box-shadow: 0 8px 35px rgba(123, 193, 66, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 45px rgba(123, 193, 66, 0.6);
        transform: scale(1.02);
    }
}

/* AI Persona Movement-Only Hover Effects */
.team-image img,
.ai-agent-avatar img {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
}

/* Floating Animation for Different Personas */
.team-image:hover img {
    transform: scale(1.1) rotate(2deg) translateY(-5px);
    animation: personaFloat 2s ease-in-out infinite alternate;
}

.ai-agent-avatar:hover img {
    transform: scale(1.15) rotate(-2deg);
    animation: personaPulse 1.5s ease-in-out infinite;
}

/* Different animation styles for variety */
.team-member-card:nth-child(odd) .team-image:hover img {
    transform: scale(1.1) rotate(-3deg) translateX(3px);
    animation: personaWiggle 2.5s ease-in-out infinite;
}

.team-member-card:nth-child(even) .team-image:hover img {
    transform: scale(1.08) rotate(1deg) translateY(-8px);
    animation: personaBounce 1.8s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes personaFloat {
    0% { transform: scale(1.1) rotate(2deg) translateY(-5px); }
    100% { transform: scale(1.12) rotate(2deg) translateY(-8px); }
}

@keyframes personaPulse {
    0%, 100% { transform: scale(1.15) rotate(-2deg); }
    50% { transform: scale(1.18) rotate(-1deg); }
}

@keyframes personaWiggle {
    0%, 100% { transform: scale(1.1) rotate(-3deg) translateX(3px); }
    25% { transform: scale(1.1) rotate(-2deg) translateX(2px); }
    50% { transform: scale(1.1) rotate(-3deg) translateX(4px); }
    75% { transform: scale(1.1) rotate(-1deg) translateX(1px); }
}

@keyframes personaBounce {
    0%, 100% { transform: scale(1.08) rotate(1deg) translateY(-8px); }
    50% { transform: scale(1.1) rotate(1deg) translateY(-12px); }
}


/* Careers Page Styles */
.no-openings-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.15) 25%, 
        rgba(123, 193, 66, 0.1) 50%, 
        rgba(39, 156, 144, 0.12) 75%, 
        rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(circle at 30% 40%, rgba(47, 181, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(123, 193, 66, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.area-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.12) 50%, 
        rgba(26, 26, 26, 0.95) 100%);
    border: 1px solid rgba(39, 156, 144, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.area-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 156, 144, 0.2);
}

.area-icon {
    font-size: 1.5rem;
}

/* Cost Estimator Styles */
.cost-estimator-page .estimator-form-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(39, 156, 144, 0.12) 30%, 
        rgba(123, 193, 66, 0.08) 70%, 
        rgba(26, 26, 26, 0.95) 100%);
    border: 1px solid rgba(39, 156, 144, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(39, 156, 144, 0.15);
}

.cost-estimator-page .estimator-results-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.15) 50%, 
        rgba(26, 26, 26, 0.98) 100%);
    border: 1px solid rgba(39, 156, 144, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 40px rgba(39, 156, 144, 0.2);
}

.cost-estimator-page .ai-assistant-card {
    background: linear-gradient(135deg, 
        rgba(39, 156, 144, 0.1) 0%, 
        rgba(123, 193, 66, 0.05) 100%);
    border: 1px solid rgba(39, 156, 144, 0.3);
}

.cost-estimator-page .cost-breakdown {
    font-size: 0.95rem;
}

.cost-estimator-page .example-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.9) 0%, 
        rgba(39, 156, 144, 0.1) 50%, 
        rgba(26, 26, 26, 0.9) 100%);
    border: 1px solid rgba(39, 156, 144, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cost-estimator-page .example-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(39, 156, 144, 0.25);
}

.cost-estimator-page .example-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.cost-estimator-page .btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(39, 156, 144, 0.3);
}

.cost-estimator-page .btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 156, 144, 0.2);
}

.cost-estimator-page .sticky-top {
    top: 2rem;
}

/* Modal Styles */
.cost-estimator-page .modal-content {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(39, 156, 144, 0.15) 50%, 
        rgba(26, 26, 26, 0.98) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(39, 156, 144, 0.3);
}

.cost-estimator-page .modal-header,
.cost-estimator-page .modal-footer {
    border-color: rgba(39, 156, 144, 0.4);
}

.cost-estimator-page .modal-body .ai-assistant-card {
    background: linear-gradient(135deg, 
        rgba(39, 156, 144, 0.1) 0%, 
        rgba(123, 193, 66, 0.05) 100%);
    border: 1px solid rgba(39, 156, 144, 0.3);
}

.cost-estimator-page .modal-body .bg-dark-tertiary {
    background: rgba(26, 26, 26, 0.8) !important;
    border: 1px solid rgba(39, 156, 144, 0.2);
}

/* Expertise Section - 5 Boxes at 20% Each Responsively */
#services-overview .row .col-lg-2 {
    flex: 0 0 20%;
    max-width: 20%;
}

/* Medium screens (tablets) - 3 boxes first row, 2 second row */
@media (max-width: 991.98px) and (min-width: 768px) {
    #services-overview .row .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    #services-overview .row .col-lg-2:nth-child(4),
    #services-overview .row .col-lg-2:nth-child(5) {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Small screens - stack vertically */
@media (max-width: 767.98px) {
    #services-overview .row .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* Stripe Modal - No Particles */
#stripeCheckoutModal .modal-content {
    background: rgba(26, 26, 26, 0.98) !important;
    position: relative;
    z-index: 1060;
}

#stripeCheckoutModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85) !important;
    z-index: 1055;
}

/* Hide any particle canvases when modal is open */
.modal-open .particle-canvas,
.modal-open canvas[id*="particle"] {
    display: none !important;
}

/* Ensure modal has solid background */
.modal.show .modal-content {
    background: rgba(26, 26, 26, 0.98) !important;
    backdrop-filter: blur(0px) !important;
}

/* ========================================
   MOBILE OPTIMIZATION - Standalone Ready
   ======================================== */

/* Touch-Friendly Targets (48px minimum) */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        padding: 12px 20px;
    }
    
    .btn-sm {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Form inputs touch-friendly */
    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    /* Improved spacing for mobile */
    .section-padding {
        padding: 3rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(26, 26, 26, 0.98);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 8px;
        min-height: 48px;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(39, 156, 144, 0.2);
    }
    
    .navbar-toggler {
        min-width: 48px;
        min-height: 48px;
        padding: 8px;
    }
}

/* Mobile Hero Video Optimization */
@media (max-width: 768px) {
    .hero-video-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .hero-video-wrapper iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
    }
}

/* Mobile Chat Modal Improvements */
@media (max-width: 768px) {
    #aiChatModal .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    
    #aiChatModal .modal-content {
        max-height: calc(100vh - 1rem);
    }
    
    #aiChatModal .modal-body {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
    
    .chat-messages {
        max-height: 300px;
    }
    
    .chat-input-container textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* Mobile Form Improvements */
@media (max-width: 576px) {
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Full-width buttons on mobile */
    .contact-form .btn {
        width: 100%;
    }
}

/* Mobile Card Improvements */
@media (max-width: 576px) {
    .service-card,
    .pricing-card,
    .additional-service-card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Mobile Typography Adjustments */
@media (max-width: 480px) {
    h1, .display-1 { font-size: 2rem; }
    h2, .display-2 { font-size: 1.75rem; }
    h3, .display-3 { font-size: 1.5rem; }
    h4, .display-4 { font-size: 1.375rem; }
    h5, .display-5 { font-size: 1.25rem; }
    
    .lead {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
}

/* Mobile Footer Improvements */
@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0;
    }
    
    .footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    .footer-logo {
        max-width: 150px;
    }
    
    .social-links a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

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

/* Smooth scrolling for all devices */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print styles for professional output */
@media print {
    .navbar,
    .footer,
    .referral-ad,
    #aiChatModal,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ========================================
   IMAGE OPTIMIZATION & LAZY LOADING
   ======================================== */

/* Lazy loading placeholder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Responsive images */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Image placeholder/skeleton */
.img-placeholder {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* Optimized image containers */
.img-container {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Aspect ratio containers for CLS prevention */
.aspect-1-1 { aspect-ratio: 1 / 1; }
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-3-2 { aspect-ratio: 3 / 2; }

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