/* Reset and Base Styles */
:root {
    --primary-color: #4CAF50;
    --dark-blue: #0F2027;
    --mid-blue: #203A43;
    --light-blue: #2C5364;
    --text-dark: #333;
    --text-light: #f9f9f9;
    --body-bg: #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.8;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    padding-top: 80px; /* Header height */
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--mid-blue) 50%, var(--light-blue) 100%);
    color: var(--text-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
    position: relative;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
    padding: 1rem 0.5rem;
    display: flex;
    align-items: center;
}

nav ul li a:hover, .dropdown.active > a {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.btn-nav:hover {
    background: transparent;
    color: var(--primary-color) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-blue);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    list-style: none;
    z-index: 1001;
    min-width: 250px;
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 0;
    border-top: 3px solid var(--primary-color);
}

.dropdown > a .fa-chevron-down {
    margin-left: 8px;
    font-size: 0.8em;
    transition: transform 0.3s;
}

.dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    display: block;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 32, 39, 0.95), rgba(44, 83, 100, 0.95)), url('https://www.transparenttextures.com/patterns/cubes.png');
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;
}
.rating-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}
.stars { color: #FFD700; margin-right: 0.5rem; }
.review-count { font-weight: 600; }
.hero h1 { font-size: 3.2rem; margin-bottom: 1rem; line-height: 1.3; }
.hero h1 span { color: var(--primary-color); }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}
.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}
.btn-outline {
    background: transparent;
    border-color: white;
    margin-left: 1rem;
}
.btn-outline:hover {
    background: white;
    color: var(--dark-blue);
}

/* General Section Styling */
.section {
    padding: 6rem 0;
}
.section:nth-of-type(odd) {
    background-color: #f8f9fa;
}
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title h2 {
    font-size: 2.8rem;
    color: var(--dark-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}
.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.about-content { display: flex; align-items: center; gap: 4rem; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--dark-blue); }
.about-text p { margin-bottom: 1.5rem; }

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: all 0.3s;
    text-align: center;
    border-bottom: 4px solid transparent;
}
.service-card:hover { transform: translateY(-10px); border-bottom-color: var(--primary-color); }
.service-icon { font-size: 3rem; margin-bottom: 1.5rem; color: var(--primary-color); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--dark-blue); }
.service-link { display: inline-flex; align-items: center; color: var(--primary-color); font-weight: 600; margin-top: 1rem; }
.service-link i { margin-left: 5px; transition: transform 0.3s; }
.service-link:hover i { transform: translateX(5px); }

/* Contact Section */
.contact-container { display: flex; gap: 4rem; background: #fff; padding: 4rem; border-radius: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.contact-info, .contact-form { flex: 1; }
.contact-info h3 { font-size: 1.8rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; margin-bottom: 1.5rem; }
.contact-icon { font-size: 1.5rem; color: var(--primary-color); margin-right: 1.5rem; width: 40px; text-align: center; }
.contact-text h4 { font-size: 1.2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-control { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; transition: all 0.3s; background: #f9f9f9; }
.form-control:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); }
#form-message { font-weight: 600; }

/* Service Page Specific Styles */
.service-page-header { padding: 6rem 0; background: linear-gradient(rgba(15, 32, 39, 0.9), rgba(44, 83, 100, 0.9)), url('https://www.transparenttextures.com/patterns/cubes.png') no-repeat center center/cover; color: white; text-align: center; }
.service-page-header h1 { font-size: 3rem; margin-bottom: 1rem; }
.service-page-header p.subtitle { font-size: 1.2rem; max-width: 800px; margin: 0 auto; opacity: 0.9; }
.service-content { padding: 5rem 0; }
.service-content .container { max-width: 900px; }
.service-content h2 { font-size: 2.2rem; color: var(--dark-blue); margin: 2rem 0 1.5rem 0; padding-bottom: 0.5rem; border-bottom: 3px solid var(--primary-color); display: inline-block; }
.service-content h3 { font-size: 1.6rem; color: var(--light-blue); margin-top: 2.5rem; margin-bottom: 1rem; }
.service-content p, .service-content li { font-size: 1.1rem; color: #444; margin-bottom: 1.5rem; line-height: 1.9; }
.service-content ul { list-style-position: outside; padding-left: 1.5rem; }
.service-content strong { color: var(--dark-blue); font-weight: 600; }
.cta-section { margin-top: 4rem; padding: 3rem; background: var(--body-bg); border-radius: 15px; text-align: center; border-left: 8px solid var(--primary-color); }
.btn-cta { display: inline-block; background: var(--primary-color); color: white; padding: 1rem 2.5rem; border-radius: 50px; font-weight: 600; transition: all 0.3s; font-size: 1.1rem; box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3); }
.btn-cta:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(76, 175, 80, 0.4); }

/* FAQ Section */
.faq-item { border-bottom: 1px solid #eee; padding: 1.5rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-size: 1.2rem; font-weight: 600; color: var(--dark-blue); cursor: pointer; position: relative; padding-right: 30px; }
.faq-question::after { content: '+'; position: absolute; right: 0; font-size: 1.5rem; transition: transform 0.3s; color: var(--primary-color); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; }
.faq-item.active .faq-answer { max-height: 1000px; padding-top: 1rem; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }

/* Budget Calculator Styles */
.budget-calculator-form {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}
.budget-calculator-form .form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}
.budget-calculator-form .form-control {
    margin-bottom: 1.5rem;
}
.estimated-cost-result {
    margin-top: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed var(--primary-color);
}
.estimated-cost-result h3 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

/* Footer */
footer { background: var(--dark-blue); color: #bbb; padding: 5rem 0 2rem; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h3 { color: white; font-size: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-color); display: inline-block; }
.footer-links ul, .footer-services ul { list-style: none; }
.footer-links li, .footer-services li { margin-bottom: 1rem; }
.footer-links a, .footer-services a { transition: all 0.3s; }
.footer-links a:hover, .footer-services a:hover { color: var(--primary-color); transform: translateX(5px); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }


/* Responsive Styles */
@media (max-width: 992px) {
    .about-content, .contact-container { flex-direction: column; }
    .contact-container { padding: 2rem; }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 5%;
    }
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark-blue);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s ease-in-out;
    }
    nav ul.active { left: 0; }
    nav ul li { margin: 1rem 0; width: 100%; }
    .dropdown > a .fa-chevron-down { display: inline-block; }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.active .dropdown-menu { display: block; position: static; background: none; box-shadow: none; min-width: unset; width: 100%; padding: 0.5rem 0 0 1rem; border: none; }
    .dropdown-menu li a { padding: 0.5rem 0; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.2rem; }
}
