/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    overflow-x: hidden;
}

/* Prevent viewport scaling issues when lightbox is open */
body.lightbox-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Global Animated Background - Moved to white sections only */
.global-animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none; /* Hide from all sections initially */
}

.global-animated-background .floating-bubbles {
    position: relative;
    width: 100%;
    height: 100%;
}

.global-animated-background .bubble {
    position: absolute;
    bottom: -50px;
    left: var(--left);
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.2), rgba(30, 58, 138, 0.08));
    border-radius: 50%;
    animation: floatUp var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(1px);
}

.global-animated-background .bubble::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(1px);
}

/* Global animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(219, 234, 254, 0.05) 0%, transparent 50%);
    animation: backgroundShift 30s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

/* Enhanced background for service pages and other pages */
body:not(.home-page)::before {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(30, 58, 138, 0.04) 100%),
        radial-gradient(circle at 25% 75%, rgba(219, 234, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(147, 197, 253, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(191, 219, 254, 0.06) 0%, transparent 50%);
    animation: subtleBackgroundShift 40s ease-in-out infinite;
}

/* Service page specific enhancements */
.service-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.service-page::before {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(30, 58, 138, 0.03) 100%),
        radial-gradient(circle at 20% 80%, rgba(219, 234, 254, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 40% 60%, rgba(191, 219, 254, 0.08) 0%, transparent 60%);
    animation: serviceBackgroundShift 50s ease-in-out infinite;
}

/* Legal pages enhancement */
.legal-page {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.legal-page::before {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(30, 58, 138, 0.02) 100%),
        radial-gradient(circle at 30% 70%, rgba(219, 234, 254, 0.08) 0%, transparent 70%),
        radial-gradient(circle at 70% 30%, rgba(147, 197, 253, 0.06) 0%, transparent 70%);
    animation: legalBackgroundShift 60s ease-in-out infinite;
}

/* Enhanced content sections for service and legal pages */
.service-page main,
.legal-page main {
    position: relative;
    z-index: 2;
}

.service-page .hero,
.legal-page .hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.service-page .content-section,
.legal-page .content-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    margin-bottom: 2rem;
}

.service-page .content-section h2,
.legal-page .content-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-page .content-section p,
.legal-page .content-section p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Enhanced cards for service pages */
.service-page .service-card,
.legal-page .info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-page .service-card:hover,
.legal-page .info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

/* Floating decorative elements for service pages */
.service-page::after,
.legal-page::after {
    content: '';
    position: fixed;
    top: 10%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.service-page::before {
    content: '';
    position: fixed;
    bottom: 15%;
    left: 8%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    z-index: 1;
    pointer-events: none;
}

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

@keyframes toolFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-8px) rotate(2deg) scale(1.02);
    }
    50% {
        transform: translateY(-12px) rotate(0deg) scale(1.05);
    }
    75% {
        transform: translateY(-6px) rotate(-2deg) scale(1.03);
    }
}

@keyframes toolPulse {
    0%, 100% {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
    }
}

@keyframes toolGlow {
    0%, 100% {
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 6px 12px rgba(59, 130, 246, 0.2)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.1));
    }
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #dc2626;
    --accent-color: #3b82f6;
    --light-blue: #dbeafe;
    --dark-blue: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 16px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Animation Variables */
    --animation-duration: 0.6s;
    --animation-delay: 0.1s;
    --animation-stagger: 0.1s;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

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

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

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

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

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

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--animation-duration) var(--ease-out);
}

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

.fade-in-up {
    animation: fadeInUp var(--animation-duration) var(--ease-out) forwards;
}

.fade-in-left {
    animation: fadeInLeft var(--animation-duration) var(--ease-out) forwards;
}

.fade-in-right {
    animation: fadeInRight var(--animation-duration) var(--ease-out) forwards;
}

.scale-in {
    animation: scaleIn var(--animation-duration) var(--ease-out) forwards;
}

.slide-in-up {
    animation: slideInUp var(--animation-duration) var(--ease-out) forwards;
}

.slide-in-down {
    animation: slideInDown var(--animation-duration) var(--ease-out) forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Staggered Animations */
.stagger-animation > * {
    opacity: 0;
    animation: fadeInUp var(--animation-duration) var(--ease-out) forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Hover Animations */
.hover-lift {
    transition: transform var(--transition-fast) var(--ease-out);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform var(--transition-fast) var(--ease-out);
}

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

.hover-glow {
    transition: box-shadow var(--transition-fast) var(--ease-out);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Loading Animation */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Page Load Animation */
.page-load {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

/* Page Loaded State */
body.page-loaded .page-load {
    opacity: 1;
}

/* Enhanced Header Animation */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s var(--ease-out);
}

/* Fix header animation causing text overflow */
.header.slide-in-down {
    animation: none !important;
    transform: none !important;
}

/* Enhanced Navigation Links */
.nav-link {
    position: relative;
    transition: var(--transition);
}

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

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

/* Enhanced Social Icons */
.social-icon {
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Enhanced Header Layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
}

.logo {
    flex-shrink: 0;
}

/* Header logo protection */
.logo-img {
    pointer-events: none;
    cursor: default;
    user-select: none;
    max-height: 40px;
    width: auto;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.logo-box i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    transition: var(--transition);
}

/* Call Me Button */
.call-me-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 1rem;
    white-space: nowrap;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.call-me-btn i {
    font-size: 0.9rem;
    animation: phoneJiggle 3s ease-in-out infinite;
}

.call-me-btn:hover {
    animation: none;
    transform: translateY(-2px) scale(1.05);
}

.call-me-btn:hover i {
    animation: phoneJiggle 0.6s ease-in-out;
}

/* Phone Jiggle Animation */
@keyframes phoneJiggle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    20% {
        transform: scale(1.2) rotate(-5deg);
    }
    40% {
        transform: scale(1.1) rotate(5deg);
    }
    60% {
        transform: scale(1.15) rotate(-3deg);
    }
    80% {
        transform: scale(1.05) rotate(2deg);
    }
}

/* Mobile responsive for header */
@media (max-width: 1024px) {
    .nav-list {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .call-me-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .logo {
        min-width: 150px;
    }
    
    .logo-box {
        font-size: 0.9rem;
    }
    
    .logo-box i {
        font-size: 1.2rem;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .nav-list {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .social-icons {
        gap: 0.3rem;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .call-me-btn {
        margin-left: 0.3rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .call-me-btn span {
        display: none;
    }
    
    .call-me-btn::after {
        content: "Call";
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-list {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
        white-space: nowrap;
    }
    
    .call-me-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    /* Additional mobile header fixes for small screens */
    .logo-box {
        max-width: 100%;
        white-space: nowrap;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        line-height: 1.1;
    }
    
    .section-header h2 {
        font-size: 1.8rem !important;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        line-height: 1.1;
    }
    
    .services-header h2 {
        font-size: 1.8rem !important;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        line-height: 1.1;
    }
}

/* Enhanced Service Cards */
.service-card {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s var(--ease-out);
}

.service-card:hover::before {
    left: 100%;
}

/* Enhanced Testimonial Cards */
.testimonial-card {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s var(--ease-out);
}

.testimonial-card:hover::before {
    left: 100%;
}

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

/* Enhanced Form Animations */
.form-group {
    transition: var(--transition);
}

.form-group:focus-within {
    transform: translateY(-2px);
}

.form-group input,
.form-group select,
.form-group textarea {
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced Contact Items */
.contact-item {
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    transition: var(--transition);
}

.contact-item:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Enhanced Business Hours */
.hours-row {
    transition: var(--transition);
}

.hours-row:hover {
    background: var(--light-blue);
    transform: translateX(5px);
}

.hours-row.today {
    background: var(--primary-color);
    color: var(--white);
    animation: pulse 2s ease-in-out infinite;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    padding-top: 80px !important; /* Account for fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Improve mobile text wrapping to prevent clipping */
h1, h2, .hero-title, .section-header h2, .services-header h2 {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

.call-me-btn.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.call-me-btn.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

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

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

.btn-secondary:active {
    transform: translateY(0);
}

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

/* Header */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    padding: 0.6rem 0 !important;
    z-index: 99999 !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Header scroll effect */
.header.scrolled {
    padding: 0.4rem 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(30, 58, 138, 0.2) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: all 0.3s ease;
    z-index: -1;
}

.social-icon:hover::before {
    transform: scale(1.1);
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.facebook-icon::before {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
}

.instagram-icon::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.whatsapp-icon::before {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

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

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Header when at top of page (landing page) */
.header.at-top {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(30, 58, 138, 0.05) !important;
    padding: 0.4rem 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
}

.header.scrolled .logo-text h1 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.header.scrolled .logo-text p {
    font-size: 0.8rem;
}

.header.scrolled .iopsa-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo-box {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.15);
    transition: var(--transition);
}

.logo-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.25);
}

.logo-box i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.logo-text h1 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.7rem;
    margin-bottom: 0;
    color: var(--text-light);
}

.logo-badges {
    margin-top: 0.5rem;
}

.iopsa-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

/* Navigation */
.nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background: rgba(220, 38, 38, 0.05);
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
}

.nav-link.active {
    background: rgba(220, 38, 38, 0.08);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.nav-link.active::after {
    width: 80%;
    background: var(--secondary-color);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
}

/* Glowing Home Button */
.nav-link[href="index.html"] {
    color: var(--white);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
}

.nav-link[href="index.html"]:hover {
    color: var(--white);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    transform: translateY(-2px) scale(1.05);
}

.nav-link[href="index.html"]::after {
    display: none;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.4);
    }
}



.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(220, 38, 38, 0.05);
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* Comprehensive Mobile Support for iOS, Android, and Tablets */

/* iOS and Android specific fixes - consolidated into main header rule */

/* Touch-friendly improvements */
.btn, .nav-link, .mobile-menu-btn {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: manipulation;
}

/* Quality of Life Improvements */

/* Smooth focus indicators for better accessibility */
.btn:focus,
.nav-link:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states for buttons */
.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;
}

/* Improved hover effects */
.service-card:hover,
.testimonial-card:hover,
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Better form feedback */
.form-group input:valid,
.form-group textarea:valid {
    border-color: #10b981;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Smooth page transitions - but not for header elements */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent page transitions from affecting header elements */
.page-transition .header,
.page-transition .header *,
.page-transition .logo-box,
.page-transition .logo-box *,
.page-transition .nav,
.page-transition .nav *,
.page-transition .call-me-btn {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

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

/* Better text selection */
::selection {
    background: rgba(30, 58, 138, 0.2);
    color: var(--text-dark);
}

/* Keyboard navigation improvements */
.keyboard-navigation .btn:focus,
.keyboard-navigation .nav-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Phone number clickable styling */
.phone-number {
    cursor: pointer;
    transition: var(--transition);
}

.phone-number:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Form validation visual feedback */
.form-group input.valid,
.form-group textarea.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

/* Improved button hover states */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

/* Better focus states for accessibility */
.btn:focus,
.nav-link:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    font-weight: 500;
    border-left: 4px solid #059669;
}

.notification.error {
    background: #ef4444;
    border-left-color: #dc2626;
}

.notification.info {
    background: #3b82f6;
    border-left-color: #2563eb;
}

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

.notification-message {
    flex: 1;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* Mobile notification adjustments */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.9rem;
        padding: 0.875rem 1.25rem;
    }
}

/* Loading skeleton for images */
.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Hide navigation completely on mobile */
    .nav {
        display: none !important;
    }
    .nav-list {
        display: none !important;
    }
    .mobile-menu-btn {
        display: none !important;
    }
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Mobile header layout fixes */
    .logo-box {
        white-space: nowrap;
        max-width: 100%;
    }
    
    .logo-box span {
        white-space: nowrap;
    }
    
    .hero-title {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        line-height: 1.2;
        font-size: 1.8rem !important;
    }
    
    .hero-description {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        font-size: 1rem !important;
        line-height: 1.5;
    }
    
    .section-header h2 {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        line-height: 1.2;
    }
    
    .services-header h2 {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        line-height: 1.2;
    }
    
    .service-card h3 {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    
    .service-card p {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    
    /* Testimonials section mobile fixes */
    .testimonials-header h2 {
        font-size: 2rem !important;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        line-height: 1.2;
    }
    
    .testimonials-header p {
        font-size: 1rem !important;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        line-height: 1.5;
        word-spacing: 0.1em;
        letter-spacing: 0.02em;
    }
    
    .testimonials-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat-item {
        text-align: center;
    }
    
    /* Adjust header layout for mobile without navigation */
    .header-content {
        justify-content: center;
        padding: 0.5rem 15px;
    }
    .logo {
        justify-content: center;
        flex: none;
    }
    .logo-box {
        margin: 0 auto;
    }
    
    /* Mobile-specific button styling */
    .btn-primary {
        background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
        color: var(--white) !important;
    }
    .btn-secondary {
        background: #2a2a2a !important;
        color: #ffffff !important;
    }
    .btn-secondary:hover {
        background: #3a3a3a !important;
    }
    
    /* Mobile theme colors */
    .section-header h2::after {
        background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    }
    .service-icon {
        background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    }
    .gallery-filter.active {
        background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    }
    .gallery-filter:hover {
        background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    }

    
    /* Prevent body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Hide all emoji and tool elements on mobile */
    .tool-icon,
    .emoji-item,
    .emoji-box,
    [class*="emoji"],
    [class*="tool"],
    .plumbing-tools-container,
    .testimonials-emoji-decorations,
    .find-us-emoji-decorations,
    .services-emoji-decorations,
    .hero-emoji-decorations {
        display: none !important;
    }
    
    /* Hide notification badges and logo badges on mobile */
    .notification,
    .logo-badge,
    .iopsa-badge,
    .video-badge,
    .notification-badge,
    [class*="badge"] {
        display: none !important;
    }
    
    /* Hide any notification-related elements */
    [class*="notification"],
    .notification-content,
    .notification-message,
    .notification-close {
        display: none !important;
    }
    
    /* Hide 3D elements on mobile */
    [class*="3d"],
    .testimonial-3d-item,
    .shower-3d,
    .pipe-3d-small {
        display: none !important;
    }
}

/* Tablet Support */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }
    
    .services-header h2 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Landscape orientation for mobile */
@media (orientation: landscape) and (max-height: 600px) {
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        width: 100% !important;
    }
    
    body {
        padding-top: 60px !important;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    

}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-box,
    .service-card,
    .testimonial-card,
    .contact-form {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* iOS Safari specific fixes - consolidated into main rules */

/* Android Chrome specific fixes - consolidated into main rules */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: -1;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

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

.hero-description {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

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

.modern-logo {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 3px solid var(--primary-color);
    animation: slideInRight 1s ease forwards;
    position: relative;
    overflow: hidden;
    margin-top: -2rem;
}

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

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

.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    overflow: hidden;
}

.logo-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.logo-image-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    filter: brightness(0) invert(1);
    opacity: 1;
}

.header-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 0.5rem;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px;
}

.footer-logo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 0.5rem;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px;
}

.logo-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.logo-text .established {
    color: var(--secondary-color);
    font-size: 1.125rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.logo-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-image {
    height: 96px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
    opacity: 0.9;
}

.logo-image:hover {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.iopsa-logo {
    height: 90px;
}

.pirb-logo {
    height: 100px;
}

.logo-contact {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.logo-contact i {
    font-size: 1.25rem;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.established {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

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

/* Wave Pattern */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.wave-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cpath fill='%23ffffff' fill-opacity='0.3' d='M0,300 C300,200 600,400 900,300 C1050,250 1200,350 1200,350 L1200,600 L0,600 Z'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    opacity: 0.5;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

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

.section-header h2 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.services-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.services-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.services-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}



/* Ensure proper spacing for 8 cards */
@media (min-width: 1200px) {
    .services-hero {
        gap: 4rem;
        padding: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
        padding: 0 3rem;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .services-hero {
        gap: 3rem;
        padding: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
        padding: 0 1.5rem;
    }
}

.service-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 58, 138, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 280px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 58, 138, 0.2);
}

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

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

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.3);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    font-size: 1.35rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    font-size: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Bubbles for Gallery section */
.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(147, 197, 253, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 123, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 123, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

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

.gallery .section-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.gallery .section-header h2 {
    color: #2c3e50;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2c3e50 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: none;
}

.gallery .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.gallery .section-header p {
    color: #6c757d;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none;
    font-weight: 400;
}



.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-filter {
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

/* Gallery Filter Navigation */
.gallery-filter-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.filter-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover i,
.filter-btn.active i {
    transform: scale(1.1);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.filter-btn:hover .btn-glow,
.filter-btn.active .btn-glow {
    opacity: 1;
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    min-height: 500px;
    position: relative;
    padding: 1rem;
}

/* Create a masonry-like effect with different heights */
.gallery-item:nth-child(3n+1) {
    grid-row: span 1;
    /* animation-delay removed for performance */
}

.gallery-item:nth-child(3n+2) {
    grid-row: span 1;
    transform: translateY(15px);
    /* animation-delay removed for performance */
}

.gallery-item:nth-child(3n+3) {
    grid-row: span 1;
    transform: translateY(-5px);
    /* animation-delay removed for performance */
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.03) !important;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(0, 123, 255, 0.25);
}

/* Add floating animation to gallery items */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.gallery-item {
    /* animation disabled for performance */
}

.gallery-item:nth-child(2) { animation-delay: 1s; }
.gallery-item:nth-child(3) { animation-delay: 2s; }
.gallery-item:nth-child(4) { animation-delay: 3s; }
.gallery-item:nth-child(5) { animation-delay: 4s; }
.gallery-item:nth-child(6) { animation-delay: 5s; }

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: fadeInUp 0.6s ease forwards, float 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}



.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

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

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 123, 255, 0.2);
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}



.gallery-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(45deg, #f8fafc, #e2e8f0);
}

.gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover .gallery-image::before {
    opacity: 1;
}

.gallery-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px 16px 0 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 123, 255, 0.1) 0%, 
        rgba(0, 86, 179, 0.05) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover .gallery-image::before {
    opacity: 1;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) contrast(1.05);
    transform: scale(1.02);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.gallery-image img:not([src]), 
.gallery-image img[src=""],
.gallery-image img[src*="undefined"] {
    display: none;
}

.gallery-image::after {
    content: 'Image Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 0.9rem;
    display: none;
}

.gallery-image img:not([src]) + .gallery-image::after,
.gallery-image img[src=""] + .gallery-image::after,
.gallery-image img[src*="undefined"] + .gallery-image::after {
    display: block;
}

/* Add card-style bottom section */
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.gallery-item:hover::after {
    transform: scaleX(1);
}

/* Add subtle glow effect */
.gallery-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007bff, #0056b3, #007bff);
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.gallery-item:hover::before {
    opacity: 0.3;
}

/* Add inner glow effect */
.gallery-item-inner-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover .gallery-item-inner-glow {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.95) 0%, 
        rgba(0, 86, 179, 0.9) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2.5rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border-radius: 16px 16px 0 0;
}

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

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

.gallery-info {
    text-align: center;
    color: white;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 3;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-info p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.view-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

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

.view-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #007bff;
    transform: scale(1.08);
    border-color: white;
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.view-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.view-btn:hover i {
    transform: scale(1.2);
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

/* Prefer-reduced-motion: curb heavy animations for accessibility/performance */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Mobile performance tweaks */
@media (max-width: 480px) {
    img { image-rendering: auto; }
    .gallery-image { aspect-ratio: 4/3; }
    .hero, .services, .testimonials, .gallery, .find-us { background-attachment: scroll; }
}

.lightbox.active {
    display: flex;
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.3) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.lightbox.active .lightbox-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

#lightbox-image {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    animation: imageEntrance 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes imageEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-info {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    text-align: center;
    animation: infoEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes infoEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox-info h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.lightbox-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: navEntrance 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes navEntrance {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-nav.prev {
    left: 25px;
}

.lightbox-nav.next {
    right: 25px;
}

/* Lightbox image loading animation */
.lightbox-image-container {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

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

/* Gallery responsive design */
@media (max-width: 768px) {
    .gallery {
        padding: 4rem 0;
    }
    
    .gallery .section-header h2 {
        font-size: 2.5rem;
    }
    
    .gallery .section-header p {
        font-size: 1.1rem;
    }
    
    .gallery-filter-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .filter-container {
        justify-content: center;
    }
    
    .filter-btn {
        width: auto;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-item {
        border-radius: 16px;
    }
    
    .gallery-overlay {
        padding: 2rem;
    }
    
    .gallery-info h3 {
        font-size: 1.4rem;
    }
    
    .gallery-info p {
        font-size: 1rem;
    }
    
    .view-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery .section-header h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-filter-nav {
        padding: 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Lightbox responsive design */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
        border-radius: 12px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        padding: 12px;
        font-size: 16px;
    }
    
    .lightbox-nav.prev {
        left: 15px;
    }
    
    .lightbox-nav.next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox-info {
        padding: 20px;
    }
    
    .lightbox-info h3 {
        font-size: 1.4rem;
    }
    
    .lightbox-info p {
        font-size: 1rem;
    }
}

/* Gallery Folder Styles */
.gallery-folder {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
}

.gallery-folder:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.folder-preview {
    cursor: pointer;
    transition: all 0.3s ease;
}

.folder-preview:hover {
    transform: translateY(-2px);
}

.folder-preview-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}

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

.folder-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.folder-preview:hover .folder-preview-overlay {
    opacity: 1;
}

.folder-preview-info {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.folder-preview-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.folder-preview-info p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.image-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

.expand-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.expand-indicator i {
    font-size: 1.5rem;
    opacity: 0.8;
}

.expand-indicator span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.folder-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.folder-content.expanded {
    max-height: 1000px;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-100);
}

.project-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.project-image-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(59, 130, 246, 0.7));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--white);
    text-align: center;
    padding: 1rem;
}

.project-image-item:hover .project-image-overlay {
    opacity: 1;
}

.project-image-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-image-overlay .view-btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-image-overlay .view-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.03) translateY(-4px);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.2);
}

/* Modern Gallery Slideshow */
.gallery-slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease-in-out;
}

.slide.active .slide-image img {
    transform: scale(1.02);
}

/* Slideshow Controls */
.slideshow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.control-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

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

.slide-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--white);
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

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

.gallery-info {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: var(--white);
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.gallery-view-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-view-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gallery-load-more {
    text-align: center;
}

/* Modern Lightbox Gallery */
.lightbox-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.lightbox-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.lightbox-gallery.active .lightbox-container {
    transform: scale(1);
}

.lightbox-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-content {
    display: flex;
    height: calc(100% - 80px);
}

.lightbox-main {
    flex: 2;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.lightbox-sidebar {
    flex: 1;
    background: var(--gray-100);
    padding: 2rem;
    overflow-y: auto;
}

.lightbox-info h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.lightbox-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.lightbox-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.lightbox-thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.lightbox-thumbnail:hover {
    transform: scale(1.05);
}

.lightbox-thumbnail.active {
    border-color: var(--primary-color);
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Gallery Modal (Legacy) */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-modal.active .gallery-modal-content {
    transform: scale(1);
}

.gallery-modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.gallery-modal-info {
    padding: 2rem;
    text-align: center;
}

.gallery-modal-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.gallery-modal-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.gallery-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 1;
}

/* About Perry Section */
.about-perry {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    position: relative;
    overflow: hidden;
}

/* Bubbles for About section */
.about-perry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 138, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(147, 197, 253, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

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

.about-text {
    padding-right: 2rem;
}

.about-text h2 {
    color: var(--text-dark);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

/* Video Features */
.video-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.feature span {
    font-weight: 500;
    color: var(--text-dark);
}

.contact-perry {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-perry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-perry:hover::before {
    transform: translateX(100%);
}

.contact-perry h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.phone-number:hover {
    color: var(--white) !important;
    text-decoration: none;
    transform: scale(1.05);
}

.contact-perry .btn {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-perry .btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* About Visual Section */
.about-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.perry-image {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.perry-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

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

.perry-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

/* Video Player */
.video-player {
    width: 100%;
    max-width: 450px;
}

.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 3px;
}

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

.video-container iframe {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 17px;
    background: var(--white);
}















/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 6rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
}

.back-to-home {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.back-btn i {
    font-size: 14px;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.6;
}

.breadcrumb .current {
    opacity: 0.7;
}

.blog-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    color: #ffffff;
}

.blog-content {
    padding: 4rem 0;
    background: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post-card.featured-post {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.featured-post .post-image {
    height: 100%;
    min-height: 300px;
}

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

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

.featured-post .post-title {
    font-size: 2rem;
}

.post-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.read-more-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.read-more-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
}

/* Newsletter Signup */
.newsletter-signup {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.newsletter-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    white-space: nowrap;
}

/* Blog Modal */
.blog-post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.blog-post-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease;
    position: relative;
}

.blog-post-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.blog-post-modal-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .blog-post-card.featured-post {
        grid-template-columns: 1fr;
    }
    
    .blog-hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 4rem 0;
    }
    
    .back-to-home {
        top: 15px;
        left: 15px;
    }
    
    .back-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero-content p {
        font-size: 1.1rem;
    }
    
    .blog-content {
        padding: 2rem 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-image {
        height: 200px;
    }
    
    .featured-post .post-image {
        min-height: 200px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .newsletter-signup {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

/* Responsive Design for About Perry Section */
@media (max-width: 1024px) {
    .about-content {
        gap: 3rem;
    }
    
    .about-text h2 {
        font-size: 2.4rem;
    }
    
    .about-text p {
        font-size: 1.1rem;
    }
    
    .perry-image {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .about-perry {
        padding: 4rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-text {
        padding-right: 0;
        order: 2;
    }
    
    .about-visual {
        order: 1;
    }
    
    .about-text h2 {
        font-size: 2.2rem;
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .video-features {
        align-items: center;
    }
    
    .feature {
        width: 100%;
        max-width: 400px;
    }
    
    .perry-image {
        width: 250px;
        height: 250px;
    }
    
    .video-player {
        max-width: 400px;
    }
    
    .video-container iframe {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .perry-image {
        width: 220px;
        height: 220px;
    }
    
    .contact-perry {
        padding: 2rem;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
    
    .video-container iframe {
        height: 180px;
    }
}

/* Video Section */
.video-section {
    padding: 5rem 0;
    background: var(--white);
}

.video-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.video-text h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.video-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.video-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.video-features .feature i {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.video-player {
    position: relative;
}

.video-container {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    aspect-ratio: 16/9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--dark-blue);
}

.play-button i {
    font-size: 2rem;
    color: var(--white);
    margin-left: 4px;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.video-overlay h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-overlay p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.video-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

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

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

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1d4ed8 0%, #93c5fd 100%);
    position: relative;
    z-index: 2;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    z-index: -1;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-10vh) scale(0.8);
    }
    30% {
        opacity: 1;
        transform: translateY(-30vh) scale(1);
    }
    60% {
        opacity: 1;
        transform: translateY(-60vh) scale(1.1);
    }
    80% {
        opacity: 0.8;
        transform: translateY(-80vh) scale(1.2);
    }
    100% {
        transform: translateY(-150vh) scale(1.3);
        opacity: 0;
    }
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(-2%) translateY(-1%) scale(1.02);
    }
    50% {
        transform: translateX(1%) translateY(-2%) scale(0.98);
    }
    75% {
        transform: translateX(-1%) translateY(1%) scale(1.01);
    }
}

@keyframes subtleBackgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateX(-1%) translateY(-0.5%) scale(1.01);
        opacity: 0.9;
    }
    50% {
        transform: translateX(0.5%) translateY(-1%) scale(0.99);
        opacity: 1;
    }
    75% {
        transform: translateX(-0.5%) translateY(0.5%) scale(1.005);
        opacity: 0.95;
    }
}

@keyframes serviceBackgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }
    33% {
        transform: translateX(-0.8%) translateY(-0.3%) scale(1.008);
        opacity: 0.92;
    }
    66% {
        transform: translateX(0.3%) translateY(-0.8%) scale(0.992);
        opacity: 1;
    }
}

@keyframes legalBackgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-0.5%) translateY(-0.2%) scale(1.005);
        opacity: 0.95;
    }
}

.testimonials-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.testimonials-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.testimonials-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonials-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.hero-mascot {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.hero-mascot:hover {
    transform: scale(1.05);
}

.testimonials-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.featured-testimonial {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.featured-testimonial::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-family: serif;
}

.featured-testimonial blockquote {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.featured-testimonial .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.125rem;
}

.author-info strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.875rem;
    opacity: 0.8;
}

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

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

.rating {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-content blockquote {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-style: italic;
}

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

.testimonial-card .author-avatar {
    width: 40px;
    height: 40px;
    background: var(--light-blue);
    color: var(--primary-color);
    font-size: 0.875rem;
}

.testimonial-card .author-info strong {
    color: var(--primary-color);
    font-size: 1rem;
}

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

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

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Bubbles for Contact section */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(30, 58, 138, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(147, 197, 253, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

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

.contact-info h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--light-blue);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 40px;
    text-align: center;
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--text-dark);
}

/* Business Hours Styles */
.business-hours {
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.hours-row:hover {
    background: rgba(30, 58, 138, 0.02);
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin: 0 -0.5rem;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row .day {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
}

.hours-row .day::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.7;
}

.hours-row .time {
    color: var(--text-light);
    font-weight: 500;
    background: rgba(30, 58, 138, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hours-row.closed .time {
    color: var(--white);
    background: var(--secondary-color);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.hours-row.closed .day {
    color: var(--text-light);
}

.hours-row.closed .day::before {
    background: var(--secondary-color);
    opacity: 0.8;
}

/* Special styling for current day */
.hours-row.today {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    margin: 0.25rem 0;
    padding: 0.75rem 1rem;
}

.hours-row.today .day {
    color: var(--primary-color);
    font-weight: 700;
}

.hours-row.today .time {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(30, 58, 138, 0.1);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

/* Enhanced select dropdown styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.form-group select option {
    padding: 0.75rem;
    background: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group select option:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Find Us Section */
.find-us {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Bubbles for Find Us section */
.find-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.09) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(30, 58, 138, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 45% 55%, rgba(147, 197, 253, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Removed duplicate find-us::before rule */

.map-container {
    max-width: 1400px;
    margin: 0 auto;
}

.map-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.map-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.map-content > p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-align: center;
}

.map-wrapper {
    position: relative;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.google-map {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

.map-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-info h4 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-info p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-info p:last-child {
    margin-bottom: 0;
}

.map-info i {
    color: var(--secondary-color);
    width: 16px;
    text-align: center;
}

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

.map-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Animated bubbles inside footer */
.footer-bubbles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.footer-bubbles .bubble {
    position: absolute;
    bottom: -40px;
    left: var(--left);
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.25), rgba(30, 58, 138, 0.1));
    border-radius: 50%;
    animation: floatUp var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

@media (prefers-reduced-motion: reduce) {
    .footer-bubbles .bubble { animation: none; opacity: 0.4; }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

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

.footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

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

.footer-logo .logo-box {
    margin: 0 auto 1rem;
    background: var(--white);
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-info {
    text-align: right;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 400;
}

.footer-info p {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    text-align: center;
}

/* Platform-specific hover colors */
.social-link:hover[aria-label="Facebook"] {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
}

.social-link:hover[aria-label="Instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
    box-shadow: 0 10px 30px rgba(220, 39, 67, 0.4);
}

.social-link:hover[aria-label="WhatsApp"] {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Icon-specific positioning */
.social-link .fa-facebook {
    transform: translateY(-1px);
}

.social-link .fa-instagram {
    transform: translateY(-1px);
}

.social-link .fa-whatsapp {
    transform: translateY(-1px);
}

/* Contact Info */
.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    text-decoration: none;
}



/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h3::after,
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
    }
    
    body {
        padding-top: 70px !important; /* Smaller padding for mobile */
    }
    
    .nav {
        flex: none;
        width: auto;
        justify-content: flex-end;
        position: relative;
    }
    
    .logo {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
        flex: 1;
    }
    
    .logo-box {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .logo-box i {
        font-size: 1.2rem;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
        line-height: 1.1;
    }
    
    .logo-text p {
        font-size: 0.75rem;
    }
    
    .iopsa-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .logo-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile gallery adjustments */
    .gallery-item:hover {
        transform: translateY(-5px) scale(1.02) !important;
    }
    
    .gallery-info h3 {
        font-size: 1.25rem;
    }
    
    .gallery-info p {
        font-size: 0.9rem;
    }
    
    .gallery-view-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .gallery-filter {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .logo-text h3 {
        font-size: 1.25rem;
    }
    
    .logo-contact {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .video-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-info {
        text-align: center;
    }
    

}

@media (min-width: 1200px) {
    .google-map {
        height: 450px;
    }
    
    .map-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 0.5rem;
    }
    
    .logo-box {
        padding: 0.4rem 0.8rem;
        gap: 0.4rem;
    }
    
    .logo-box i {
        font-size: 1rem;
    }
    
    .logo-text h1 {
        font-size: 0.95rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .iopsa-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
    
    .mobile-menu-btn {
        padding: 0.4rem;
    }
    
    .mobile-menu-btn span {
        width: 20px;
        height: 2px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .map-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .map-overlay {
        position: relative;
        margin-top: 1rem;
        border-radius: var(--border-radius);
    }
    
    .google-map {
        height: 300px;
    }
}

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

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

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

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

/* Loading animation for service cards */
.service-card {
    animation: fadeIn 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

/* Testimonial card animations */
.testimonial-card {
    animation: slideInLeft 0.6s ease forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }
.testimonial-card:nth-child(7) { animation-delay: 0.7s; }
.testimonial-card:nth-child(8) { animation-delay: 0.8s; }
.testimonial-card:nth-child(9) { animation-delay: 0.9s; }

/* Recognizable Plumbing Tools */
.plumbing-tools-container,
.services-tools-container {
    display: none; /* disabled to prevent overlap artifacts on large desktop */
}

.tool-item,
.service-tool-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
    animation: float 4s ease-in-out infinite;
    transition: all 0.3s ease;
    opacity: 0.8;
    backdrop-filter: blur(5px);
}

.tool-item:hover,
.service-tool-item:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    min-width: 110px;
}

.tool-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: toolFloat 4s ease-in-out infinite;
}

.tool-image:hover {
    transform: scale(1.12) rotate(8deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.25);
    animation-play-state: paused;
}

/* Staggered animations for different tools */
.plunger-tool .tool-image {
    animation-delay: 0s;
    animation: toolFloat 4s ease-in-out infinite, toolGlow 3s ease-in-out infinite;
}

.torch-tool .tool-image {
    animation-delay: 0.8s;
    animation: toolFloat 4s ease-in-out infinite 0.8s, toolPulse 2.5s ease-in-out infinite 0.8s;
}

.basin-tool .tool-image {
    animation-delay: 1.6s;
    animation: toolFloat 4s ease-in-out infinite 1.6s, toolGlow 3s ease-in-out infinite 1.6s;
}

.pliers-tool .tool-image {
    animation-delay: 2.4s;
    animation: toolFloat 4s ease-in-out infinite 2.4s, toolPulse 2.5s ease-in-out infinite 2.4s;
}

.measure-tool .tool-image {
    animation-delay: 3.2s;
    animation: toolFloat 4s ease-in-out infinite 3.2s, toolGlow 3s ease-in-out infinite 3.2s;
}

/* Enhanced tool container animations */
.tool-item {
    transition: var(--transition);
    animation: toolContainerFloat 6s ease-in-out infinite;
}

.tool-item:hover {
    transform: translateY(-5px);
    animation-play-state: paused;
}

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

.tool-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Section Tool Positioning */
.plunger-tool {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.wrench-tool {
    top: 15%;
    right: 8%;
    animation-delay: 1.5s;
}

.torch-tool {
    bottom: 20%;
    left: 8%;
    animation-delay: 3s;
}

.cutter-tool {
    bottom: 15%;
    right: 5%;
    animation-delay: 4.5s;
}

/* Services Section Tool Positioning */
.basin-tool {
    top: 12%;
    left: 3%;
    animation-delay: 0s;
}

.pliers-tool {
    top: 8%;
    right: 5%;
    animation-delay: 2s;
}

.measure-tool {
    bottom: 18%;
    left: 5%;
    animation-delay: 4s;
}

/* Services 3D Plumbing Tools */
.pipe-cutter-3d {
    top: 10%;
    left: 3%;
    animation-delay: 0s;
}

.pipe-cutter-wheel {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 50%, #a0aec0 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        inset 3px 3px 6px rgba(255, 255, 255, 0.8),
        inset -3px -3px 6px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3);
    transform: rotateY(15deg) rotateX(10deg);
}

.pipe-cutter-handle {
    width: 8px;
    height: 70px;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #718096 100%);
    border-radius: 4px;
    position: absolute;
    top: 25px;
    left: 21px;
    box-shadow: 
        inset 1px 1px 2px rgba(255, 255, 255, 0.3),
        inset -1px -1px 2px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
    transform: rotateZ(25deg);
}

.pipe-cutter-shadow {
    width: 50px;
    height: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    position: absolute;
    bottom: -10px;
    left: 0;
    filter: blur(3px);
    transform: rotateX(60deg);
}

.torch-3d {
    top: 8%;
    right: 5%;
    animation-delay: 2.5s;
}

.torch-body {
    width: 40px;
    height: 80px;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #718096 100%);
    border-radius: 20px 20px 8px 8px;
    position: relative;
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.2),
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3);
    transform: rotateY(-10deg) rotateX(5deg);
}

.torch-tip {
    width: 20px;
    height: 30px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 50%, #9b2c2c 100%);
    border-radius: 10px 10px 5px 5px;
    position: absolute;
    top: -15px;
    left: 10px;
    box-shadow: 
        inset 1px 1px 2px rgba(255, 255, 255, 0.3),
        inset -1px -1px 2px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.torch-shadow {
    width: 40px;
    height: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    position: absolute;
    bottom: -10px;
    left: 0;
    filter: blur(3px);
    transform: rotateX(60deg);
}

.tape-measure-3d {
    bottom: 20%;
    left: 8%;
    animation-delay: 5s;
}

.tape-measure-case {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 50%, #a0aec0 100%);
    border-radius: 8px;
    position: relative;
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.6),
        inset -2px -2px 4px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3);
    transform: rotateY(10deg) rotateX(-5deg);
}

.tape-measure-tape {
    width: 40px;
    height: 8px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    border-radius: 4px;
    position: absolute;
    top: 16px;
    left: 10px;
    box-shadow: 
        inset 1px 1px 2px rgba(255, 255, 255, 0.8),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.1);
    transform: rotateZ(15deg);
}

.tape-measure-shadow {
    width: 60px;
    height: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    position: absolute;
    bottom: -10px;
    left: 0;
    filter: blur(3px);
    transform: rotateX(60deg);
}



/* Section positioning */
.hero,
.services,
.testimonials {
    position: relative;
}



/* Testimonials Emoji Decorations */
.testimonials-emoji-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Find Us Emoji Decorations */
.find-us-emoji-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Services Emoji Decorations */
.services-emoji-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Hero Emoji Decorations */
.hero-emoji-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.testimonials-emoji-decorations .emoji-box {
    position: absolute;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: float 7s ease-in-out infinite;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.testimonials-emoji-decorations .emoji-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonials-emoji-decorations .emoji-item {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9),
                 0 1px 2px rgba(255, 255, 255, 0.7);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.testimonials-emoji-decorations .emoji-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

/* Find Us Emoji Boxes - Same styling as testimonials */
.find-us-emoji-decorations .emoji-box {
    position: absolute;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: float 7s ease-in-out infinite;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.find-us-emoji-decorations .emoji-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.find-us-emoji-decorations .emoji-item {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9),
                 0 1px 2px rgba(255, 255, 255, 0.7);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.find-us-emoji-decorations .emoji-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

/* Services Emoji Boxes - Same styling as testimonials */
.services-emoji-decorations .emoji-box {
    position: absolute;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.services-emoji-decorations .emoji-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.services-emoji-decorations .emoji-item {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9),
                 0 1px 2px rgba(255, 255, 255, 0.7);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.services-emoji-decorations .emoji-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

/* Hero Emoji Boxes - Same styling as testimonials */
.hero-emoji-decorations .emoji-box {
    position: absolute;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: float 7s ease-in-out infinite;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.hero-emoji-decorations .emoji-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-emoji-decorations .emoji-item {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9),
                 0 1px 2px rgba(255, 255, 255, 0.7);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-emoji-decorations .emoji-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

/* Testimonials Emoji Boxes */
.testimonials-emoji-decorations .emoji-box:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.testimonials-emoji-decorations .emoji-box:nth-child(2) {
    top: 25%;
    right: 10%;
    animation-delay: 2s;
}

.testimonials-emoji-decorations .emoji-box:nth-child(3) {
    bottom: 20%;
    left: 12%;
    animation-delay: 4s;
}

/* Find Us Emoji Boxes */
.find-us-emoji-decorations .emoji-box:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.find-us-emoji-decorations .emoji-box:nth-child(2) {
    top: 25%;
    right: 10%;
    animation-delay: 2s;
}

.find-us-emoji-decorations .emoji-box:nth-child(3) {
    bottom: 20%;
    left: 12%;
    animation-delay: 4s;
}

/* Services Emoji Boxes */
.services-emoji-decorations .emoji-box:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.services-emoji-decorations .emoji-box:nth-child(2) {
    top: 25%;
    right: 10%;
    animation-delay: 2s;
}

.services-emoji-decorations .emoji-box:nth-child(3) {
    bottom: 20%;
    left: 12%;
    animation-delay: 4s;
}

/* Hero Emoji Boxes */
.hero-emoji-decorations .emoji-box:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.hero-emoji-decorations .emoji-box:nth-child(2) {
    top: 25%;
    right: 10%;
    animation-delay: 2s;
}

.hero-emoji-decorations .emoji-box:nth-child(3) {
    bottom: 20%;
    left: 12%;
    animation-delay: 4s;
}

/* Mobile responsive tool decorations */
@media (max-width: 768px) {
    .tool-item,
    .service-tool-item {
        transform: scale(0.8);
        padding: 0.75rem;
    }
    
    .tool-icon {
        font-size: 2rem;
    }
    
    .tool-label {
        font-size: 0.8rem;
    }
    
    .plunger-tool { top: 8%; left: 3%; }
    .wrench-tool { top: 12%; right: 5%; }
    .torch-tool { bottom: 15%; left: 5%; }
    .cutter-tool { bottom: 12%; right: 3%; }
    
    .basin-tool { top: 10%; left: 2%; }
    .pliers-tool { top: 6%; right: 3%; }
    .measure-tool { bottom: 15%; left: 3%; }
    
    /* Mobile social icons */
    .social-icons {
        margin-left: 0.5rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Professional Cartoon Plumber Character Styles */
.cartoon-plumber {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    animation: plumberFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

.plumber-character {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plumber-image {
    width: 350px;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    background: transparent;
}

.plumber-image:hover {
    transform: scale(1.05);
}

.plumber-shadow {
    width: 120px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    margin-top: -10px;
    animation: shadowPulse 4s ease-in-out infinite;
}

/* Enhanced floating animation */
@keyframes plumberFloat {
    0%, 100% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-50%) translateX(3px) rotate(1deg);
    }
    50% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }
    75% {
        transform: translateY(-50%) translateX(-3px) rotate(-1deg);
    }
}

/* Shadow pulse animation */
@keyframes shadowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1.1);
    }
}

/* Responsive adjustments for the plumber */
@media (max-width: 1024px) {
    .cartoon-plumber {
        right: 30px;
    }
    
    .plumber-image {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .cartoon-plumber {
        display: none;
    }
    /* Hide decorative mascots on mobile */
    .services-mascot,
    .testimonials-mascot,
    .hero-mascot,
    .cartoon-plumber,
    .plumber-character,
    .plumber-image,
    .plumber-shadow,
    .plumbing-tools-container,
    .services-tools-container {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .cartoon-plumber {
        display: none;
    }
    .services-mascot,
    .testimonials-mascot,
    .hero-mascot,
    .cartoon-plumber,
    .plumber-character,
    .plumber-image,
    .plumber-shadow,
    .plumbing-tools-container,
    .services-tools-container {
        display: none !important;
    }
}

/* Add a subtle glow effect on hover */
.cartoon-plumber:hover .plumber-image {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 20px rgba(30, 58, 138, 0.3));
}

/* Legal Pages Styling */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.legal-content h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-light);
}

.legal-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-navigation .btn {
    min-width: 150px;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .legal-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-navigation .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (min-width: 1440px) {
    .services-grid {
        max-width: 1700px;
        gap: 2.5rem;
    }
}

@media (min-width: 1920px) {
    .services-grid {
        max-width: 1900px;
        gap: 2.75rem;
    }
}

/* Mobile Text Overflow Prevention - Content Only */
@media (max-width: 768px) {
    /* Prevent viewport scaling issues */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Prevent animations from causing text overflow after page load */
    .header,
    .header *,
    .logo-box,
    .logo-box *,
    .nav-link,
    .call-me-btn,
    .nav,
    .nav-list,
    .social-icons,
    .social-icon {
        animation: none !important;
        transform: none !important;
        transition: none !important;
        opacity: 1 !important;
    }
    
    /* Ensure header is always visible and stable */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Specific fixes for content text overflow issues (excluding header) */
    .hero-title,
    .section-header h2,
    .services-header h2,
    .about-text h2,
    .testimonials-header h2,
    .contact-info h2,
    .find-us h3 {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        line-height: 1.2;
    }
    
    .hero-description,
    .section-header p,
    .services-header p,
    .about-text p,
    .service-card p,
    .testimonial-content p,
    .contact-info p {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    /* Fix for long service names */
    .service-card h3 {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        line-height: 1.3;
    }
    
    /* Fix for content buttons (not header buttons) */
    .btn:not(.call-me-btn) {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        white-space: normal;
    }
    
    /* Prevent any container from causing horizontal overflow */
    .container,
    .header-content,
    .hero-content,
    .services-hero,
    .testimonials-hero,
    .contact-content {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure all sections respect viewport width */
    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    /* Additional fixes for very small screens */
    .hero-title {
        font-size: 1.4rem !important;
        line-height: 1.1;
    }
    
    .section-header h2 {
        font-size: 1.6rem !important;
        line-height: 1.1;
    }
    
    .services-header h2 {
        font-size: 1.6rem !important;
        line-height: 1.1;
    }
    
    .service-card h3 {
        font-size: 1.1rem !important;
        line-height: 1.2;
    }
    
    .service-card p {
        font-size: 0.9rem !important;
        line-height: 1.4;
    }
}

