/* --- Modern Design Variables --- */
:root {
    --primary: #003366;       /* Deep Corporate Blue */
    --primary-light: #2a5298; /* Lighter Gradient Blue */
    --secondary: #ffb703;     /* Solar Gold */
    --pastel-bg: #e3f2fd;     /* New Pastel Blue for Top Bar */
    --footer-bg: #002855;     /* New Deep Blue for Footer */
    --footer-dark: #001a38;   /* Darker Blue for Copyright */
    --accent: #2ecc71;        /* Growth Green */
    --dark: #1b1b1b;
    --light: #f4f7f6;
    --white: #ffffff;
    --text-body: #555555;
    --text-heading: #222222;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

/* --- Global Typography & Reset --- */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-body);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Modern Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}

/* --- Top Bar (Updated Color) --- */
.top-bar {
    background-color: var(--pastel-bg); /* Pastel Blue */
    color: var(--primary); /* Dark Blue Text */
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 0;
}

/* --- Navigation --- */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-heading) !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width .3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- Hero Carousel --- */
.carousel-item {
    height: 85vh;
    min-height: 500px;
    position: relative;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,51,102,0.8), rgba(0,51,102,0.3));
    display: flex;
    align-items: center;
}

.carousel-caption {
    position: static;
    text-align: left;
    padding-bottom: 0;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s;
}

/* --- Section Styling --- */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--secondary);
    display: block;
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Service Cards --- */
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
}

/* --- Solar Scheme Banner --- */
.solar-banner {
    background: linear-gradient(45deg, #fbc02d, #f57f17);
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- Portfolio Grid --- */
.portfolio-img {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 280px;
    box-shadow: var(--shadow);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-img:hover img {
    transform: scale(1.1);
}

.portfolio-img:hover .portfolio-overlay {
    opacity: 1;
}

/* --- Footer (Updated Colors) --- */
.footer {
    background: var(--footer-bg); /* Deep Blue */
    color: #bbb;
    padding-top: 70px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
}

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

.copyright {
    background: var(--footer-dark); /* Darker Blue */
    padding: 20px 0;
    margin-top: 50px;
}

/* --- Contact Form --- */
.form-control {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
    background: #fff;
}

/* --- Lightbox --- */
#lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

#lightbox img {
    max-height: 85vh;
    max-width: 90vw;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .carousel-caption h1 { font-size: 2rem; }
    .carousel-item { height: 60vh; }
}