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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    overflow-x: hidden;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    text-align: center;
}


a:visited {
  color: #4a9eff; 
}
.logo {
    width: 50px;
    height: 50px;
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: #4a9eff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #4a9eff;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #4a9eff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.pagetitle{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Section with Slideshow */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero::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"><circle cx="50" cy="50" r="1" fill="%234a9eff" opacity="0.1"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    z-index: 2;
}

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

.hero-content {
    text-align: center;
    z-index: 3;
    max-width: 800px;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #4a9eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #4a9eff, #3b7dd8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 158, 255, 0.5);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #111111;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #4a9eff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 158, 255, 0.2);
    position: relative;
    overflow: hidden;
}


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

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.2);
}

.service-card h3 {
    color: #4a9eff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    line-height: 1.6;
    opacity: 0.9;
}

/* Why Section */
.why-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a, #1a1f2f);
    text-align: center;
    justify-content: center;
}

.why-content {
    max-width: 1000px;
    margin: 0 auto;
}

.why-service {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    transition: all 0.3s ease;
}

.why-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 158, 255, 0.2);
    border-color: #4a9eff;
}

.why-service h3 {
    color: #4a9eff !important;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.why-service p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-align: justify;
}

.why-service p:last-child {
    margin-bottom: 0;
}


/* About Section - Refined */
.about {
    padding: 100px 0;
    background: #111111;
}

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

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #4a9eff;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

.service-areas h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4a9eff;
}

.area-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

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

.area-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 158, 255, 0.2);
    border-color: #4a9eff;
}

.area-icon {
    width: 120px;
    height: 100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: top;
    justify-content: center;
}

.area-card h3 {
    color: #4a9eff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.area-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a, #1a1f2f);
}

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

.contact-info h3 {
    color: #4a9eff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form-wrapper {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.bpglogocontact {
    width: 375px;
    height: 375px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: top;
    justify-content: center;
    
}

.telephone {
    text-decoration: none;
    border: 1px solid rgba(74, 158, 255, 0.2);
    text-align: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    display: flex;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4a9eff;

}

.goodsamaritanwhitehats{
    color: white;
}
/* Footer */
footer {
    background: #000000;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(74, 158, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

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

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

    .why-service p {
        font-size: 1rem;
        text-align: left;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* NEW STYLES ADDED FOR SERVICE PAGES */

/* Why Section Links - Grid Layout */
.why-content {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1200px !important;
}

.why-service-link {
    text-decoration: underline;
    text-decoration-style: dotted;
    display: block;
    color: #4a9eff !important;
}

.why-service-link .why-service {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    min-width: 200px;
    color: #4a9eff !important;
}

.why-service-link .why-service h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: #4a9eff;
}

/* Service Page Styles */
.service-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #0a0a0a, #1a1f2f);
    text-align: center;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #4a9eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-intro {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.service-content {
    padding: 80px 0;
    background: #111111;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    color: #4a9eff;
    margin-bottom: 1.5rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.content-section ul {
    list-style: none;
    margin: 1.5rem 0;
}

.content-section li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    opacity: 0.9;
}

.content-section li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4a9eff;
    font-size: 1.2rem;
}

.image-gallery {
    padding: 60px 0;
    background: linear-gradient(135deg, #0a0a0a, #1a1f2f);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(74, 158, 255, 0.2);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 158, 255, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Update service grid for smaller screens */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .why-content {
        grid-template-columns: 1fr;
    }
}