@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

/* 
 * Bishwokarma Construction - Style Sheet
 * Version: 3.0 (Cache-Busting Update)
 */

:root {
    --primary: #FF6B00; /* Vibrant Construction Orange */
    --primary-rgb: 255, 107, 0;
    --primary-dark: #E65100;
    --secondary: #2A2A2A; /* Industrial Dark Gray */
    --accent: #333333;
    --text-light: #F5F5F5;
    --text-dark: #1A1A1A;
    --white: #FFFFFF;
    --gray: #666666;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --glass: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg-light: #f8f9fa;
    --card-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a365d; /* Opaque Navy Blue */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    top: 0;
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 50px;
    border-radius: 5px;
}

.logo-text {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800;
    white-space: nowrap;
}

header.scrolled .logo-text {
    color: var(--white);
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

@media (max-width: 1440px) {
    nav ul {
        gap: 1.2rem;
    }
    header {
        padding: 1.5rem 2%;
    }
    .logo-text {
        font-size: 1rem;
    }
    .top-contact {
        gap: 1rem;
    }
    .top-right {
        gap: 1rem;
    }
    .top-social {
        padding-right: 0.8rem;
        gap: 0.8rem;
    }
    nav ul li a {
        letter-spacing: 0;
    }
}

nav ul li a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    white-space: nowrap;
}

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

nav ul li a:hover::after {
    width: 100%;
}

.nav-btn {
    background: var(--primary);
    color: var(--secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--primary);
}

.nav-btn:hover {
    background: transparent;
    color: var(--primary);
}

.nav-admin-link {
    display: none; /* Hidden on desktop */
}

@media (max-width: 1300px) {
    .nav-admin-link {
        display: block;
        color: var(--primary) !important;
        font-weight: 700;
    }
}

/* Header Scrolled */
header.scrolled {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

header.scrolled .logo-text {
    color: var(--primary);
}

header.scrolled nav ul li a {
    color: var(--white);
}

header.scrolled .menu-toggle {
    color: var(--white);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}

/* Section Common Styling */
.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 1300px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(42, 42, 42, 0.98);
        backdrop-filter: blur(10px);
        display: flex !important; /* Force flex for layout */
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

    nav.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    .nav-btn {
        margin-top: 1rem;
    }
}


/* Hero Section */
.hero {
    height: 120vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 80px 5% 80px 5%; /* Reduced top padding as headers now take up space */
}

.hero-container {
    display: block;
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 10;
}


.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 20s linear infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}


/* Clean Hero Typography Layout */
.hero-content {
    text-align: left;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInLeft 1s ease forwards;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    animation: fadeInLeft 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    animation: fadeInLeft 1s ease 0.4s forwards;
    opacity: 0;
}





@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}



/* Stats Section */
.stats {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: -100px;
    z-index: 20;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border-radius: 20px;
    margin-left: 5%;
    margin-right: 5%;
    transition: var(--transition);
}

.stats:hover {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    transform: translateY(-5px);
}



.stat-item {
    text-align: center;
    color: var(--white);
    transition: var(--transition);
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}


.stat-item p {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
}

/* Sections General */
section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-info {
    padding: 2.5rem 2rem;
    text-align: center;
}

.service-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--secondary);
    letter-spacing: 1px;
}

.service-info p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* About Section */
.about {
    background: #f9f9f9;
    display: flex;
    align-items: center;
    gap: 5%;
    flex-wrap: wrap;
}

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

.about-img {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    padding: 2rem;
    color: var(--secondary);
    border-radius: 10px;
    text-align: center;
}

.about-experience span {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    position: relative;
    aspect-ratio: 16 / 10;
    height: auto; /* Remove fixed height */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Move text to bottom */
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    transform: translateY(10px);
    padding: 2.5rem;
    text-align: center;
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* House Maps Section */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.map-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.map-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid var(--border);
}

.map-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.map-info h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.map-info p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.download-btn {
    display: inline-block;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

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

.project-overlay h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    text-transform: uppercase;
}

.project-overlay p {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #eee;
    background: transparent;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--secondary);
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-3px);
}

/* Our Clients Section */
.clients {
    background: var(--bg-light);
    padding: 80px 5%;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.client-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.client-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary);
}

.client-card img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.client-card:hover img {
    transform: scale(1.05);
}

.client-card h4 {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    background: var(--secondary);
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.testimonial-card i.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 30px;
}

.testimonial-content {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    white-space: pre-wrap;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* Blogs Section */
.blogs {
    background: var(--white);
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blogs Section */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 450px));
    gap: 2.5rem;
    margin: 3rem auto 0;
    max-width: 1200px;
    justify-content: center;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.blog-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.blog-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-info h3, .blog-title-html {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    transition: var(--transition);
    line-height: 1.4;
    font-weight: 700;
}

.blog-info p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    text-align: justify;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin-top: 5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    color: var(--secondary);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.page-btn.next {
    min-width: auto;
    padding: 0 25px;
    gap: 10px;
}

.page-btn.next i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.page-btn.next:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem;
    }
    
    .page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 2rem;
    margin: 3rem auto 0;
    max-width: 1200px;
    justify-content: center;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.contact-details h4 {
    margin-bottom: 0.2rem;
}

.contact-form {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form .form-group {
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.contact-form label i {
    color: var(--primary);
    margin-right: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-main);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 100px 5% 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-about p {
    color: #999;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

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

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

.footer-links ul li {
    margin-bottom: 1.2rem;
}

.footer-links ul li a, .footer-contact li {
    color: #999;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

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

.footer-social a:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #666;
    font-size: 0.9rem;
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Top Header Styling - Premium Refinement */
.top-header {
    background: linear-gradient(to right, #1a1a1a, #262626);
    color: #fff;
    padding: 10px 5%;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.15);
    font-size: 0.85rem;
    position: relative;
    z-index: 1002;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.top-header-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 2.5rem;
}

.top-contact span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.top-contact span:hover {
    color: var(--white);
}

.top-contact i {
    color: var(--primary);
    font-size: 0.95rem;
    filter: drop-shadow(0 0 5px rgba(var(--primary-rgb), 0.3));
}

.top-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.top-social {
    display: flex;
    gap: 1.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.top-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: var(--transition);
}

.top-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.5));
}

.lang-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.lang-switch button {
    background: none;
    border: none;
    color: #fff;
    padding: 6px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-switch button img {
    width: 18px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.lang-switch button.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 1;
    color: #000;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.lang-switch button:hover:not(.active) {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}



.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Section */
.gallery {
    background: #fdfdfd;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 0.6;
}

.gallery-caption {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    bottom: 0;
}

/* Lightbox Styling */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

#lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#lightbox.active img {
    transform: scale(1);
}

.close-lb {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

/* Mobile Responsive */
/* Mobile Responsive Refinements */
@media (max-width: 1300px) {
    header {
        top: 0 !important;
        padding: 0.8rem 4%;
        background: #1a1a1a; /* Match the global solid background */
        backdrop-filter: blur(10px);
    }
    
    .top-header {
        display: none; 
    }

    .logo-container img {
        height: 40px;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.1;
        max-width: 180px;
    }
    
    .hero {
        height: auto;
        padding: 100px 5% 100px; /* Reduced top padding because top-header is hidden */
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: 1fr 1fr;
        padding: 3rem 1rem;
        margin-top: -30px;
        margin-left: 2%;
        margin-right: 2%;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about {
        text-align: center;
    }
    
    .about-img {
        margin-bottom: 3rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 0.8rem;
        white-space: normal;
        line-height: 1.2;
        max-width: 150px;
    }

    .logo-container {
        gap: 8px;
    }

    header {
        padding: 0.6rem 3%;
    }
}
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.3);
    color: var(--secondary);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(5px) rotate(-15deg);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #FFF;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float i {
    font-size: 2rem;
}

.whatsapp-float span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.5s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:hover span {
    max-width: 200px;
}

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

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px;
    }
    .whatsapp-float span {
        display: none;
    }
}

/* Form Status Messages */
#formStatus {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
    display: none; /* Hidden by default */
    animation: fadeInUp 0.4s ease;
}

#formStatus.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

#formStatus.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.footer-social a:hover .fa-youtube { color: #FF0000; }
.footer-social a:hover .fa-whatsapp { color: #25D366; }
.footer-social a:hover .fa-facebook-f { color: #1877F2; }
.footer-social a:hover .fa-instagram { color: #E4405F; }

/* Certificates Section */
.footer-certificates {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.cert-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2.5rem;
}

.cert-header i {
    color: #ff9100;
    font-size: 1.8rem;
}

.cert-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
}

.cert-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cert-card {
    text-align: center;
}

.cert-img-wrapper {
    background: var(--white);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,107,0,0.2);
    margin-bottom: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.cert-img-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255,107,0,0.3);
}

.cert-img-wrapper img {
    width: 200px;
    height: 250px;
    object-fit: contain;
    border-radius: 8px;
}

.cert-card p {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   STRICT MOBILE RESPONSIVENESS OVERRIDES
   ========================================================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* General Padding */
    section {
        padding: 60px 5%;
    }

    /* Top Header - Compact Mobile Redesign */
    .top-header {
        display: block;
        padding: 8px 5%;
        background: #111;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .top-header-container {
        flex-direction: column;
        gap: 8px;
    }

    .top-contact {
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .top-contact span {
        font-size: 0.7rem;
    }

    .top-contact span i {
        color: var(--primary);
    }

    /* Hide text for location on small mobile to save space */
    @media (max-width: 400px) {
        .top-contact span:first-child { display: none; }
    }

    .top-right {
        justify-content: center;
        width: 100%;
        gap: 15px;
        padding-top: 5px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .top-social {
        gap: 12px;
    }

    .top-social a {
        font-size: 0.8rem;
    }

    .admin-link a {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }

    .lang-switch button {
        padding: 3px 6px !important;
        font-size: 0.7rem !important;
    }

    header {
        top: 0;
        padding: 1rem 5%;
        background: rgba(42, 42, 42, 0.98);
    }

    /* Hero */
    .hero {
        height: auto;
        padding: 120px 5% 60px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    /* Stats */
    .stats {
        margin-top: 0;
        grid-template-columns: 1fr 1fr;
        padding: 3rem 5%;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* About */
    .about {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-content {
        width: 100%;
    }

    .about-img {
        width: 100%;
        margin-top: 3rem;
    }

    .about-experience {
        right: 0;
        bottom: 0;
        padding: 1.5rem;
    }

    /* Grids */
    .services-grid, .projects-grid, .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li a {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Certificates */
    .cert-grid {
        gap: 2rem;
    }

    .cert-img-wrapper img {
        width: 100%;
        max-width: 250px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .footer-certificates h3 {
        font-size: 1.2rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}


/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.team-img {
    height: 300px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.team-info span {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .admin-link {
        display: none !important;
    }
}

/* Success Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 1.5rem;
}

.modal-content h2 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-content .btn {
    width: 100%;
    padding: 1rem;
}
/* Premium Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Specific image reveal */
.reveal-img {
    position: relative;
    overflow: hidden;
}

.reveal-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: 2;
}

.reveal-img.active::after {
    transform: translateX(101%);
}

.reveal-img img {
    opacity: 0;
    transform: scale(1.1);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.3s;
}

.reveal-img.active img {
    opacity: 1;
    transform: scale(1);
}
/* Share Buttons */
.service-img, .blog-img {
    position: relative;
}

/* Blog Sharing Overlay */
.blog-share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(2px);
}

.blog-card:hover .blog-share-overlay {
    opacity: 1;
    visibility: visible;
}

.share-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
}

.blog-card:hover .share-icon-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation for icons */
.blog-card:hover .share-icon-btn:nth-child(1) { transition-delay: 0.05s; }
.blog-card:hover .share-icon-btn:nth-child(2) { transition-delay: 0.1s; }
.blog-card:hover .share-icon-btn:nth-child(3) { transition-delay: 0.15s; }
.blog-card:hover .share-icon-btn:nth-child(4) { transition-delay: 0.2s; }
.blog-card:hover .share-icon-btn:nth-child(5) { transition-delay: 0.25s; }
.blog-card:hover .share-icon-btn:nth-child(6) { transition-delay: 0.3s; }

.share-icon-btn:hover {
    transform: translateY(-5px) scale(1.1) !important;
}

.share-generic { background: #7f8c8d; }
.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-twitter { background: #1a1a1a; } /* X / Twitter */
.share-linkedin { background: #0077B5; }
.share-copy { background: #e67e22; }

/* Toast Notification */
#share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10001;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    pointer-events: none;
    opacity: 0;
}

#share-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.share-btn-project {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn-project:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.share-btn-project i {
    font-size: 1rem;
}
