/* Palette: Purple & White */
:root {
    --primary: #9d00ff; /* Electric Purple */
    --primary-rgb: 157, 0, 255;
    --secondary: #c084fc; /* Light Purple */
    --dark: #0f001a; /* Deep Purple Black */
    --dark-soft: #1a0033;
    --light: #ffffff; /* Pure White */
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(157, 0, 255, 0.2);
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Calistoga', serif;
    font-weight: 400;
}

/* Global Color Overrides */
::selection { background-color: var(--primary); color: var(--light); }
a { color: var(--primary); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--secondary); }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; color: var(--light) !important; }
.btn-primary { 
    background-color: var(--primary) !important; 
    border-color: var(--primary) !important; 
    color: var(--light) !important;
    font-weight: 700;
}
.btn-primary:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    transform: translateY(-2px);
}
.btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: var(--light) !important;
}

/* Navbar: #18 (Glass-Zoom Interactive Brand) */
#mainNav {
    padding: 1rem 0; /* Slightly tighter padding */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

#mainNav.scrolled {
    padding: 0.8rem 0;
    background: rgba(15, 0, 26, 0.9);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
}

.brand-wrapper {
    transition: transform 0.4s ease;
}

.brand-wrapper:hover {
    transform: scale(1.08);
}

/* Logo Treatment #5: Clean Glass Style */
.brand-pill-container {
    background: transparent; /* Removed background */
    border: none; /* Removed border */
    padding: 0.5rem 0; /* Adjusted padding */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-wrapper:hover .brand-pill-container {
    background: transparent;
    border: none;
    transform: scale(1.05);
}

.brand-logo {
    height: 55px; /* Refined height */
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.brand-wrapper:hover .brand-logo {
    transform: rotate(-5deg);
}


.navbar-brand {
    font-size: 1.8rem;
    color: var(--light) !important;
    letter-spacing: -0.5px;
}

.navbar-brand .accent {
    color: var(--primary);
    position: relative;
}

.nav-link {
    color: var(--light) !important;
    font-weight: 500;
    margin: 0 1rem;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary) !important;
}

.btn-cta {
    background: var(--primary);
    color: var(--light);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(157, 0, 255, 0.3);
}

/* Hero: Enhanced Modern Design */
.hero-section {
    min-height: 100vh;
    min-height: 900px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--dark);
    padding: 120px 0 80px;
}

/* Animated Background Gradient */
.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(157, 0, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(157, 0, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.05) 0%, transparent 70%);
    animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Grid Overlay */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(157, 0, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 6s; }
.particle:nth-child(5) { left: 85%; top: 25%; animation-delay: 8s; }
.particle:nth-child(6) { left: 20%; top: 80%; animation-delay: 10s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-100px) scale(1.5); opacity: 0.6; }
}

/* Floating Icons */
.hero-float-icon {
    position: absolute;
    color: var(--primary);
    opacity: 0.15;
    pointer-events: none;
    animation: iconFloat 8s ease-in-out infinite;
}

.hero-float-icon i {
    font-size: 4rem;
}

.icon-1 { top: 15%; left: 5%; animation-delay: 0s; }
.icon-2 { top: 25%; right: 8%; animation-delay: -2s; }
.icon-3 { bottom: 30%; left: 8%; animation-delay: -4s; }
.icon-4 { bottom: 20%; right: 5%; animation-delay: -6s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Trust Badge */
.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(157, 0, 255, 0.1);
    border: 1px solid rgba(157, 0, 255, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-icon {
    color: #00ff88;
    font-size: 1.1rem;
}

.trust-text {
    color: var(--light);
    letter-spacing: 0.5px;
}

/* Hero Title */
.hero-title {
    font-family: 'Calistoga', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--primary);
    text-shadow: 0 0 40px rgba(157, 0, 255, 0.5);
}

.title-location {
    display: block;
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 0.5rem;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(157, 0, 255, 0.4);
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(157, 0, 255, 0.5);
    color: var(--light);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1.1rem 2.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    background: rgba(157, 0, 255, 0.1);
    color: var(--light);
    transform: translateY(-3px);
}

/* Quick Stats */
.hero-quick-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--light);
}

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

.quick-stat-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.quick-stat-text strong {
    color: var(--light);
}

/* Hero Cards Section */
.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: 2rem;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(157, 0, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.hero-feature-card:hover {
    transform: translateX(-10px);
    border-color: var(--primary);
    background: rgba(157, 0, 255, 0.08);
}

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

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.card-emergency .card-icon {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b7a;
}

.card-residential .card-icon {
    background: rgba(157, 0, 255, 0.15);
    color: var(--primary);
}

.card-commercial .card-icon {
    background: rgba(0, 200, 255, 0.15);
    color: #00c8ff;
}

.card-content {
    flex: 1;
}

.card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--light);
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.card-arrow {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.hero-feature-card:hover .card-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* About: #6 (Abstract Fluid Shape Mask) */
.about-section {
    padding: 100px 0;
}

.fluid-mask-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.fluid-mask {
    width: 100%;
    height: 100%;
    background: url('../img/locksmith_about_1768758783993.png') center/cover no-repeat;
    clip-path: url(#fluid-path);
    transition: all 0.5s ease;
}

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

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item .number {
    font-size: 3.5rem;
    font-family: 'Calistoga', serif;
    color: var(--primary);
    display: block;
}

.stat-item .label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Services: #12 (Floating Irregular Bubble Grid) */
.services-section {
    padding: 100px 0;
    background: var(--dark-soft);
}

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

.service-bubble {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 60px 20px 80px 30px;
    transition: all 0.4s ease;
    animation: float 6s ease-in-out infinite;
}

.service-bubble:nth-child(even) {
    animation-delay: 2s;
    border-radius: 30px 80px 40px 90px;
}

.service-bubble:hover {
    background: rgba(184, 115, 51, 0.05);
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
}

.bubble-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

/* Detail Sections */
.detail-section { padding: 100px 0; }

/* Detail #14: Glass-Panel Spotlight */
.glass-spotlight {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 5rem;
    overflow: hidden;
}

.spotlight-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184, 115, 51, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Detail #20: Typography Spotlight */
.typo-spotlight {
    position: relative;
    padding: 100px 0;
}

.bg-letter {
    position: absolute;
    font-size: 40rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.02;
    z-index: 0;
    font-family: 'Calistoga', serif;
    pointer-events: none;
}

/* CTA Strip #18: Hyper-Compact Pill */
.cta-pill-strip {
    display: flex;
    justify-content: center;
    padding: 50px 0;
}

.cta-pill {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1rem 3rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* CTA Strip #10: Isometric Shadow Bar */
.cta-iso-bar {
    background: var(--primary);
    padding: 4rem 0;
    transform: skewY(-2deg);
    box-shadow: 20px 20px 0 var(--dark-soft);
    margin: 100px 0;
}

.cta-iso-content {
    transform: skewY(2deg);
    color: var(--dark);
    text-align: center;
}

/* FAQ: #10 (Hyper-Bold Typo Accordion) */
.faq-accordion .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0;
}

.faq-accordion .accordion-button {
    background: transparent;
    color: var(--light);
    font-family: 'Calistoga', serif;
    font-size: 2.5rem;
    padding: 2rem 0;
    box-shadow: none;
    text-align: left;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
}

.faq-accordion .accordion-body {
    padding: 0 0 2rem 0;
    font-size: 1.2rem;
    max-width: 800px;
    opacity: 1; /* Increased from 0.8 for visibility */
    color: var(--light); /* Explicitly set color */
}

/* Contact: #7 (Bento Connect Grid) */
.bento-connect {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item.map-item {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
}

.bento-item h4 { color: var(--primary); margin-bottom: 1rem; }
.bento-item .val { font-size: 1.5rem; font-weight: 600; }

/* Service Area: #18 (Bento Masonry Area) */
.area-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.area-tile {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.area-tile:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
}

/* Footer: #16 (Bento-Grid Footer V2) */
.footer-bento {
    background: var(--dark-soft);
    padding: 100px 0 40px; /* Increased top padding */
    border-top: 1px solid var(--glass-border);
}

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

.footer-col h5 { 
    margin-bottom: 2rem; 
    color: var(--primary); 
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-col .text-muted {
    color: var(--light) !important; /* Increased visibility */
    opacity: 0.7;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

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

.footer-links a { 
    color: var(--light); 
    text-decoration: none; 
    opacity: 0.8; /* Increased visibility */
    transition: 0.3s; 
    font-size: 1.05rem;
}

.footer-links a:hover { 
    opacity: 1; 
    color: var(--primary); 
    padding-left: 5px;
}

.footer-col p.text-muted {
    margin-bottom: 0.5rem;
}

.footer-bottom-text, 
.footer-bento .text-muted {
    color: var(--light) !important;
    opacity: 0.8; /* Increased from 0.5/0.7 */
    font-size: 1rem;
}

/* Responsive & Mobile Optimizations */
@media (max-width: 1200px) {
    .hero-title { font-size: 3.5rem; }
    .hero-cards { padding-left: 1rem; }
}

@media (max-width: 991px) {
    #mainNav {
        background: rgba(15, 0, 26, 0.95);
        backdrop-filter: blur(20px);
        padding: 0.8rem 0;
    }

    .navbar-collapse {
        background: var(--dark-soft);
        margin-top: 1rem;
        padding: 2rem;
        border-radius: 24px;
        border: 1px solid var(--glass-border);
    }

    .nav-link {
        margin: 1rem 0;
        text-align: center;
        font-size: 1.2rem;
    }

    .btn-cta {
        width: 100%;
        margin-top: 1rem;
    }

    .hero-section { padding: 100px 0 60px; min-height: auto; }
    .hero-section .row { min-height: auto; padding: 2rem 0 !important; }
    .hero-title { font-size: 2.8rem; }
    .title-location { font-size: 1.4rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-cards {
        padding-left: 0;
        margin-top: 3rem;
    }

    .hero-quick-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-float-icon { display: none; }

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

    .bento-connect {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.map-item {
        grid-column: span 1;
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .title-location { font-size: 1.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.8rem; }

    .hero-quick-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero-feature-card {
        padding: 1.25rem;
    }

    .card-content h4 { font-size: 1rem; }
    .card-content p { font-size: 0.8rem; }

    .hero-float-icon { display: none; }

    .stat-item .number { font-size: 2.5rem; }

    .glass-spotlight { padding: 2rem; border-radius: 30px; }

    .faq-accordion .accordion-button { font-size: 1.4rem; }

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

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

    .cta-pill {
        flex-direction: column;
        padding: 2rem;
        border-radius: 30px;
        text-align: center;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-section { padding: 90px 0 40px; }
    .hero-title { font-size: 1.9rem; }
    .title-location { font-size: 1rem; }
    .hero-subtitle { font-size: 0.95rem; }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .hero-trust-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-feature-card {
        padding: 1rem;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .area-masonry { grid-template-columns: 1fr; }
}
