/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    --primary: #e67e22;
    --primary-dark: #d35400;
    --primary-light: rgba(230, 126, 34, 0.1);
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --text: #333333;
    --text-light: #666666;
    --light: #f8f9fa;
    --cream: #fdf6ec;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light);
    color: var(--dark);
    border-radius: 50%;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.theme-toggle-fixed {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--light);
    color: var(--dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1050;
}

.theme-toggle-fixed:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

[data-theme="dark"] .theme-toggle-fixed {
    background: #333;
    color: #fff;
}

[data-theme="dark"] .theme-toggle-fixed:hover {
    background: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.hero-subtitle {
    color: var(--light);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Page Hero */
.page-hero {
    height: 40vh;
    min-height: 300px;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 75px;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 46, 0.8);
}

.page-hero h1 {
    color: var(--white);
    position: relative;
    z-index: 10;
    font-size: 2.5rem;
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section-padding {
    padding: 80px 0;
}

.section-bg-light {
    background-color: var(--cream);
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

/* ==========================================================================
   Project Cards
   ========================================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    z-index: 2;
}

.status-ongoing { background-color: var(--primary); }
.status-completed { background-color: #27ae60; }
.status-upcoming { background-color: #2980b9; }

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.project-title a {
    color: var(--dark);
}

.project-title a:hover {
    color: var(--primary);
}

.project-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.detail-item i {
    color: var(--primary);
}

/* ==========================================================================
   Feature Cards (Why Choose Us)
   ========================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 70px 30px 40px; /* adjusted padding to visually center icon+title */
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid transparent;
    display: block; /* use standard block layout so elements do not shift */
    height: 350px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    background-color: var(--primary-light);
    border-radius: 50%;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0; /* remove bottom margin to prevent pushing on hover */
    transition: color 0.4s ease;
}

.feature-card:hover .feature-title {
    color: var(--primary);
}

.feature-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px); /* slide up effect */
    margin: 15px 0 0 0 !important;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-desc {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.stats-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-top: 15px;
}

.stats-boxes {
    display: flex;
    gap: 30px;
}

.stat-box {
    background-color: var(--light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    border-bottom: 4px solid var(--primary);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-title {
    color: var(--white);
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.lightbox-title {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--white);
    font-size: 1.2rem;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-wrap {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-info-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo {
    height: 40px;
}

.footer-brand span {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-about-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: var(--white);
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 4px;
}

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

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

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding-right: 60px; /* Make room for the absolute theme toggle */
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .social-toggle {
        display: block !important;
    }
    
    .nav-links {
        display: none;
    }
    
    .social-icons {
        display: none !important;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        align-items: flex-start;
    }
    
    .social-icons.active {
        display: flex !important;
        flex-direction: row;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        padding: 15px;
        box-shadow: var(--shadow-md);
        border-radius: 0 0 0 8px;
        gap: 15px;
        z-index: 1000;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-wrap {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        column-count: 2;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
    
    .stats-boxes {
        flex-direction: column;
    }
}

/* ==========================================================================
   Dark Mode Styles
   ========================================================================== */
[data-theme="dark"] {
    --text: #e0e0e0;
    --text-light: #aaaaaa;
    --white: #121212;
    --cream: #1a1a1a;
    --light: #2d2d2d;
    --dark: #f8f9fa;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.5);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.6);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.7);
}

[data-theme="dark"] body {
    background-color: var(--white);
    color: var(--text);
}

[data-theme="dark"] .footer,
[data-theme="dark"] .hero, 
[data-theme="dark"] .page-hero,
[data-theme="dark"] .stats-section {
    background-color: #0a0a0a;
    color: #e0e0e0;
}

[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-about-text,
[data-theme="dark"] .footer-contact li {
    color: #aaaaaa;
}

[data-theme="dark"] .navbar {
    background-color: var(--white);
}

[data-theme="dark"] .nav-links a {
    color: var(--text);
}

[data-theme="dark"] .nav-links a.active,
[data-theme="dark"] .nav-links a:hover {
    color: var(--primary);
}

[data-theme="dark"] .project-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .stat-box,
[data-theme="dark"] .nav-links.active {
    background: var(--light);
}

[data-theme="dark"] .form-control {
    color: var(--text);
}
[data-theme="dark"] .form-control:focus {
    color: var(--dark);
}
