/* Font & Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #222222;
    --header-bg: rgba(255, 255, 255, 0.95);
    --accent-color: #ff9800;
    --secondary-blue: #0d47a1;
    --footer-bg: #1a1a1a;
    --transition: all 0.3s ease-in-out;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f1f1f1;
    --header-bg: rgba(30, 30, 30, 0.95);
    --footer-bg: #000000;
}

/* Global Reset - Error Fixed Here */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    overflow-x: hidden;
}

/* NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: var(--header-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-blue);
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-icon {
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-color);
}

.contact-btn {
    background: var(--accent-color);
    color: white !important;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

/* HAMBURGER STYLING */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.4s;
}

/* RESPONSIVE DRAWER MENU */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden initially */
        width: 75%;
        height: 100vh;
        background: var(--header-bg);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .contact-btn {
        display: none;
    }

    /* Navbar button hide */

    /* Hamburger to X Animation */
    .hamburger.toggle-anim .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.toggle-anim .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle-anim .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* FOOTER */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 50px 8% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}




/* HERO SECTION */
/* =========================
   HERO SECTION (FIXED)
   ========================= */
.hero-section {
    /* Mobile par height thodi kam rakhenge taki user jaldi scroll kare */
    height: 85vh;
    min-height: 500px;
    /* Isse chhota nahi hoga */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    /* Text hamesha WHITE rahega, chahe dark mode ho ya light */

    /* IMPORTANT: Fallback color agar image load na ho */
    background-color: #2c3e50;

    /* High Quality Image Construction Image */
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Mobile par fixed attachment kabhi kabhi glitch karta hai, isliye scroll rakhenge */
    background-attachment: scroll;
}

/* Dark Overlay - Taki text padha ja sake */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Thoda aur dark kiya hai taki contrast achha bane */
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Overlay ke upar */
    padding: 0 20px;
    max-width: 900px;
}

/* Main Heading */
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Text ko ubharne ke liye shadow */
}

.hero-content h1 span {
    color: var(--accent-color);
    /* Orange color */
}

/* Subheading Paragraph */
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons Container */
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Agar screen bahut chhoti ho to wrap ho jaye */
}

/* General Button Styles */
.btn-primary,
.btn-secondary {
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    /* Rounded buttons jyada modern lagte hain */
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Primary Button (Orange) */
.btn-primary {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.btn-primary:hover {
    background: #e68a00;
    border-color: #e68a00;
    transform: translateY(-3px);
}

/* Secondary Button (Transparent/White) */
.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--secondary-blue);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* =========================
   MOBILE RESPONSIVENESS (The Important Part)
   ========================= */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        /* Height auto kar di */
        padding: 150px 0 100px 0;
        /* Upar niche padding de di taki content beech me lage */
    }

    .hero-content h1 {
        font-size: 2.4rem;
        /* Heading chhoti ki */
    }

    .hero-content p {
        font-size: 1rem;
        /* Paragraph chhota kiya */
        margin-bottom: 25px;
    }

    /* BUTTONS FIX FOR MOBILE */
    .hero-btns {
        gap: 15px;
        /* Gap kam kiya */
        flex-direction: row;
        /* Wapis row mein laye taki ek ke niche ek na aaye */
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        /* Padding kam ki taki button chhota dikhe */
        font-size: 0.9rem;
        /* Font size kam kiya */
        flex: 1 1 auto;
        /* Dono button barabar jagah lenge */
        max-width: 200px;
        /* Isse zyada bade nahi honge */
    }
}

/* Extra Small Devices (e.g., purane phones) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    /* Agar screen bahut hi chhoti hai to buttons upar niche ho jayenge */
    .hero-btns {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    /* Full width */
}

/* SERVICES PREVIEW */
.services-preview {
    padding: 80px 8%;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.s-card {
    background: var(--card-bg, #f9f9f9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.s-card:hover {
    transform: translateY(-10px);
}

.s-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
    }
}



/* ABOUT SECTION STYLING */
.about-section {
    padding: 100px 8%;
    background: var(--bg-color);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0 var(--accent-color);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text span {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
}

.about-text h2 {
    font-size: 2.8rem;
    margin: 15px 0;
    line-height: 1.2;
}

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

.stat-item h3 {
    font-size: 2rem;
    color: var(--secondary-blue);
}

/* PROJECTS GRID STYLING */
.projects-section {
    padding: 80px 8%;
    text-align: center;
    background: var(--header-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 350px;
    cursor: pointer;
}

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

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    text-align: left;
    transition: 0.4s;
}

.project-card:hover .project-info {
    bottom: 0;
}

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

/* Mobile View Fix */
@media (max-width: 768px) {
    .about-image img {
        box-shadow: 10px 10px 0 var(--accent-color);
    }

    .about-text h2 {
        font-size: 2rem;
    }
}




/* CONTACT PAGE STYLING */
.contact-page {
    padding: 80px 8%;
    background: var(--bg-color);
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-blue);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card i {
    font-size: 1.5rem;
    color: white;
    background: var(--accent-color);
    padding: 15px;
    border-radius: 10px;
}

/* Form Fields */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 152, 0, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

/* Responsive Contact */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-page {
        padding: 60px 5%;
    }
}


/* =========================================
   2. PROJECTS PAGE HEADER (BANNER)
   ========================================= */
.projects-header {
    background: linear-gradient(rgba(13, 71, 161, 0.9), rgba(13, 71, 161, 0.9)),
        url('https://images.unsplash.com/photo-1503387762-592dea58ef23?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 8% 80px;
    text-align: center;
    color: white;
}

.projects-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.projects-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   3. FILTER TABS
   ========================================= */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 50px 0;
    flex-wrap: wrap;
    padding: 0 5%;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

/* =========================================
   4. ADVANCED PROJECT CARDS GRID
   ========================================= */
.portfolio-section {
    padding: 0 8% 100px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card-advanced {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card-advanced:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Image Container & Badges */
.project-img-container {
    position: relative;
    height: 260px;
    overflow: hidden;
}

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

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

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    z-index: 5;
    letter-spacing: 1px;
}

.completed {
    background: #2ecc71;
}

.ongoing {
    background: var(--accent-color);
}

/* Details Area */
.project-details {
    padding: 30px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-blue);
    font-weight: 700;
}

[data-theme="dark"] .project-details h3 {
    color: #fff;
}

.project-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clam: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Icons & Statistics */
.project-stats {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Action Button */
.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

[data-theme="dark"] .view-project-btn {
    color: var(--accent-color);
}

.view-project-btn:hover {
    gap: 15px;
    opacity: 0.8;
}

/* =========================================
   5. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-header {
        padding: 100px 5% 60px;
    }

    .filter-tabs {
        gap: 8px;
        margin: 30px 0;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-img-container {
        height: 220px;
    }
}

/* ABOUT PAGE SPECIFIC STYLES */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.about-story {
    padding: 100px 8%;
}

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

.story-text .sub-title {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
}

.story-text h2 {
    font-size: 2.5rem;
    margin: 15px 0;
    color: var(--secondary-blue);
}

[data-theme="dark"] .story-text h2 {
    color: #fff;
}

.story-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 15px 15px 0 var(--accent-color);
}

/* CORE VALUES SECTION */
.core-values {
    padding: 80px 8%;
    background: var(--header-bg);
    text-align: center;
}

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 12px;
    transition: 0.3s;
    border-bottom: 4px solid var(--accent-color);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Mobile View for About Us */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-hero {
        height: 300px;
    }
}



/* SERVICES PAGE STYLES */
.services-hero {
    background: linear-gradient(rgba(13, 71, 161, 0.8), rgba(13, 71, 161, 0.8)), 
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 5%;
    text-align: center;
    color: white;
}

.services-detail { padding: 80px 8%; }

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.service-row.reverse { flex-direction: row-reverse; }

.service-info { flex: 1; }
.service-display-img { flex: 1; }
.service-display-img img { 
    width: 100%; 
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-info h2 {
    font-size: 2.2rem;
    color: var(--secondary-blue);
    margin-bottom: 15px;
}

[data-theme="dark"] .service-info h2 { color: #fff; }

.service-info p { margin-bottom: 25px; font-size: 1.1rem; opacity: 0.8; }

.service-list { list-style: none; }
.service-list li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i { color: var(--accent-color); font-size: 1.2rem; }

/* RESPONSIVE SERVICES */
@media (max-width: 992px) {
    .service-row, .service-row.reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        margin-bottom: 60px;
    }
    .service-list { display: inline-block; text-align: left; }
}