/* --- Import Google Font for a Modern Look --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- General Styling & Color Scheme --- */
:root {
    --primary-color: #003366; /* Blue from your flyer */
    --secondary-color: #f4f7f6;
    --dark-color: #333;
    --light-color: #fff;
    --heading-font: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 80px 20px;
    text-align: center;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #666;
    font-size: 1.1rem;
}

/* --- Header & Navigation --- */
header {
    background: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 1rem 2rem;
}

.logo img {
    height: 50px; /* This line controls the logo's height */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--light-color) !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #004B85;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('assets/images/header-background.jpg') center center/cover no-repeat;
    color: var(--light-color);
    text-align: center;
    padding: 100px 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--light-color);
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-main {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.cta-button-main:hover {
    background-color: #eee;
    transform: translateY(-2px);
}

/* --- Services Section --- */
#services {
    background-color: var(--secondary-color);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensures the image corners are rounded */
    text-align: left;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content {
    padding: 25px;
}
.service-card h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
}
.service-card p {
    margin: 0;
    color: #666;
}

/* --- Projects Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* --- FAQ Section --- */
#faq {
    background-color: var(--secondary-color);
}
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.faq-item {
    border-bottom: 1px solid #ddd;
}
.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    position: relative;
    font-family: var(--heading-font);
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.faq-question.active::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer p {
    padding: 0 20px 20px 20px;
    margin: 0;
}

/* --- Contact Section --- */
.contact-content {
    display: flex;
    gap: 40px;
    text-align: left;
}
.contact-info { flex: 1; }
form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
form input, form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
form button {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

/* --- Footer --- */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* --- Mobile Responsive --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span {
    height: 3px;
    width: 25px;
    background: var(--dark-color);
    margin-bottom: 4px;
    border-radius: 5px;
}

/* PASTE THIS CODE BEFORE THE @media LINE */
/* --- Team Section --- */
#team {
    background-color: var(--secondary-color);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.team-member {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.team-member img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}
.team-member:hover img {
    transform: scale(1.05);
}
.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.9), transparent);
    color: var(--light-color);
    padding: 40px 20px 20px;
    text-align: left;
}
.member-overlay h3 {
    margin: 0 0 5px 0;
    color: var(--light-color);
    font-size: 1.4rem;
}
.member-overlay p {
    margin: 0;
    font-size: 0.9rem;
}
.member-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 51, 102, 0.95);
    color: var(--light-color);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.team-member.active .member-details {
    opacity: 1;
}

/* --- Add this code to your style.css file --- */

/* --- About Section Columns --- */
#about {
    background: linear-gradient(to bottom, #f4f7f6, #e0e8f0); /* Light blue gradient */
    color: #333; /* Ensures text stays dark and readable */
}
.about-grid {
    display: flex;
    gap: 40px; /* Adjust the space between columns */
    text-align: left;
    margin-top: 40px;
}

.about-column {
    flex: 1; /* This makes each column take up equal space */
}

.about-column p {
    margin-top: 0;
}

/* --- Service Page Specific Styles --- */
.page-hero {
    background: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 60px 20px;
}
.page-hero h1 {
    color: var(--light-color);
    font-size: 3rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}
.process-step h4 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Make service cards clickable */
a.service-link {
    text-decoration: none;
    color: inherit;
}

/* --- ADD THIS CODE TO YOUR style.css FILE --- */

/* --- Savings Calculator Section --- */
.calculator-container {
    max-width: 600px;
    margin: auto;
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.calculator-form label {
    font-weight: bold;
    text-align: left;
}
.calculator-form input {
    padding: 12px;
    font-size: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.calculator-form button {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}
.calculator-results {
    margin-top: 20px;
}
.calculator-results h3 {
    font-size: 1.5rem;
}
.calculator-results p {
    font-size: 1.8rem;
    font-weight: bold;
    color: #28a745; /* Green for savings */
    margin: 10px 0;
}

/* --- Spotlight Image Size Fix --- */
#spotlight .about-image img {
    width: 100%;
    max-height: 450px; /* Controls the maximum height of the image */
    object-fit: cover; /* Ensures the image fills the space without distortion */
    border-radius: 8px;
}

/* ADD THIS TO YOUR style.css FILE */

/* --- Electronics Page - Capabilities Section --- */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.capability-card {
    text-align: center;
    padding: 20px;
}
.capability-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.capability-card h3 {
    font-size: 1.3rem;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    z-index: 100;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 15px; /* Vertically center the icon */
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: var(--light-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links li { text-align: center; padding: 10px; width: 100%; }
    .hamburger { display: flex; }
    
    .contact-content { flex-direction: column; }
    .gallery-grid { grid-template-columns: 1fr; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h1 {
    font-size: 2.2rem;
    }

    .about-grid {
    flex-direction: column;
}
}
/* ======================================= */
/* =     BOARD REPAIR SECTION STYLES     = */
/* ======================================= */

#board-repair {
    padding: 50px 0;
}

.repair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.repair-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.repair-list {
    list-style: none;
    padding-left: 0;
}

.repair-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.repair-list li i {
    color: var(--primary-color); /* Assuming you have --primary-color */
    width: 30px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Accordion Styles (Inspired by benchmark) */
.accordion {
    max-width: 800px;
    margin: 20px auto 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background-color: #ffffff;
    border: none;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: #ffffff;
    padding: 0 25px;
}

.accordion-content p {
    padding-bottom: 20px;
    line-height: 1.6;
}

/* Accordion Active State */
.accordion-item.active .accordion-header {
    background-color: #f5f5f5;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    max-height: 300px; /* Adjust as needed */
    padding: 0 25px;
}


/* Responsive styles for repair grid */
@media (max-width: 768px) {
    .repair-grid {
        grid-template-columns: 1fr;
    }

    .repair-image {
        order: -1; /* Puts image on top on mobile */
        margin-bottom: 20px;
    }
}