/* --- Professional Light Theme --- */
body {
    /* This color acts as a fallback if the image doesn't load */
    background-color: #ffffff;
    
    /* This adds your image as a fixed background with a transparent white layer */
    background-image: linear-gradient(rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.50)), url('images/font.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* This keeps the background still while you scroll */

    color: #212529;
    font-family: 'Poppins', sans-serif;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 0;
    text-align: center;
    background-color: transparent; /* Changed from light grey to transparent */
}

.brand-subtitle {
    color: #ffffff; /* Changed to white for high contrast */
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /* Added a shadow to lift the text from the background */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); 
}

/* --- Services Section --- */
.services-section .row {
    display: flex;
    flex-wrap: wrap;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 65vh;
    padding: 2.5rem;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0) 70%);
}

.cctv {
    background-image: url('images/camera.jpg'); 
}

.pc-build {
    background-image: url('images/hero-background.png'); 
}

.home-tech {
    background-image: url('images/background.png');
}

.service-card-content {
    position: relative; 
    z-index: 2;
    text-align: center;
}

.service-card-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.service-card-content p {
    font-size: 1.1rem;
    max-width: 400px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: #fff;
}

.btn-outline-light {
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border: 2px solid #fff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
}

/* --- New Content Sections Styling --- */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.testimonial-card {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    height: 100%;
    border-radius: 0 8px 8px 0;
}

.testimonial-card .quote {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: #212529;
    text-align: right;
}

.contact-section {
    background-color: rgba(248, 249, 250, 0.8); /* Slightly transparent */
    padding: 3rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    background-color: transparent;
    color: #6c757d;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* --- Custom Logo Styling --- */
.kamelidis-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin-bottom: 1rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .services-section .col-lg-6 {
        padding: 0;
    }
    .service-card {
        min-height: 50vh;
        border-radius: 0;
    }
}
@media (max-width: 576px) {
    .kamelidis-logo {
        max-width: 320px;
    }
    .service-card-content h2 {
        font-size: 2rem;
    }
}

/* Style for the "Who We Are" paragraph */
#about .lead {
    color: #ffffff; /* Changed to white for high contrast */
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /* Added a shadow to lift the text from the background */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* --- Fade-in on Scroll Animation --- */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fix for contact section text color */
#contact .lead {
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Adjustments for three cards in a row, making them stack better on smaller screens */
@media (min-width: 992px) {
    .services-section .col-lg-6 {
        width: 50%;
    }
    .services-section .col-lg-6:nth-child(3) {
        width: 100%; /* Or change to 33.33% if you want 3 cards per row */
    }
}