/* ===================================
   Basera Constructions & Tubewells
   Custom Styles
   =================================== */

/* Root Variables */
/* :root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa; 
} */
 :root {
    --primary-color:#1f4371;
    --secondary-color: #6c757d;
    --accent-color: #417c2e;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden ;
}

/* Add padding to body to account for fixed navbar */
body {
    padding-top: 76px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ===================================
   Navigation Styles
   =================================== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-brand {
    font-size: 19px;
    font-weight: 700;
}

.navbar-brand i {
    color: var(--accent-color);
}

.navbar-brand img {
    margin-left: -3.8rem !important; 
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    transform: scale(1.25); 
}
@media (max-width: 647px) {
    .navbar-brand img {
        margin-left: 0 !important;
    }
}

.nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link.active {
    color: var(--accent-color) !important;
}

/* ===================================
   Hero Section
   =================================== */
   /* Hero Section fix */

.hero-section {
    position: relative;
    height: 88vh;
    background: url('/images/banner.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .btn {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


    /* Page Header  */
 
.page-header {
    background: linear-gradient(135deg, rgba(51, 55, 61, 0.9), rgba(33, 37, 41, 0.9)), 
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920') center/cover;
    padding: 128px 0 64px;
    /* margin-top: -76px; */
    margin-top: -30px;
    text-align: center;
}

/*  Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 40px;
    color: white;
}

/* ===================================
   Feature Boxes
   =================================== */
.feature-box {
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 32px;
    color: white;
}

/* ===================================
   Project Cards
   ================================ */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 110, 253, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

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

.project-card:hover .project-overlay {
    opacity: 1;
}

/* ================================
   Testimonial Styles
   =================================== */
.testimonial-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* ===================================
   Timeline Styles
   ============================== */
.timeline {
    position: relative;
    padding: 32px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 48px;
}

.timeline-marker {
    position: absolute;
    left: 10px;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* ===================================
   Service Detail Cards
   =================================== */
.service-detail-card {
    padding: 32px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-detail-icon i {
    font-size: 28.8px;
    color: white;
}

/* ===================================
   Process Steps
   =================================== */
.process-step {
    padding: 32px 16px;
}

.process-number {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* ===================================
   Portfolio Filter & Grid
   =================================== */
.filter-btn {
    margin: 4px;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(  to top,   rgba(31, 67, 113, 0.95),   rgba(31, 67, 113, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-info {
    text-align: center;
    padding: 32px;
}

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

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

/* ===================================
   Contact Page Styles
   =================================== */
.contact-info-box {
    padding: 24px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: white;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3.2px rgba(13, 110, 253, 0.25);
}

/* ===================================
   Footer Styles
   =================================== */
footer {
    background: var(--dark-color);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

footer .social-icons a {
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    transform: translateY(-3px);
}

/* Facebook */
.facebook-icon i {
    color: #1877F2 !important;
}

/* LinkedIn */
.linkedin-icon i {
    color: #0A66C2 !important;
}

/* Instagram (Official Gradient) */
.instagram-icon i {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    -webkit-background-clip: text;
     background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Twitter (X – old Twitter blue) */
.twitter-icon i {
    color: #1DA1F2 !important;
}



/* ===================================
   Utility Classes
   =================================== */
.btn {
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-warning {
    background: yellow;
    border-color:#157347;
    color: #000;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .page-header {
        padding: 96px 0 48px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 5px;
    }

    .service-detail-card {
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .hero-section .btn {
        padding: 8px 24px;
        font-size: 14.4px;
    }

    .service-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i,
    .feature-icon i {
        font-size: 32px;
    }

    .project-card,
    .portfolio-card {
        height: 250px;
    }

     
}

@media(max-width: 402px){
    .navbar-brand {
        font-size:12px;
    }

    .navbar-brand img{
        width: 2.5em !important;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   Loading States
   =================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}



/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}