:root {
    --primary-color: #004aad;
    --secondary-color: #007bff;
    --accent-color: #ffc107;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --glass-bg: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 74, 173, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.95) 15%, rgba(0,74,173,0.9) 50%, rgba(0,74,173,0.9) 100%);
}

.navbar-scrolled {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 15%, var(--primary-color) 50%, var(--primary-color) 100%);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin-left: 20px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

.btn-contact {
    background-color: var(--accent-color);
    color: var(--dark-color) !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-contact:hover {
    background-color: #e0a800;
    color: #fff !important;
}

.navbar-toggler {
    border: none;
    outline: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-modern {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-modern {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.4);
}

.btn-primary-modern:hover {
    background-color: #003380;
    transform: translateY(-3px);
    color: #fff;
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.service-gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Services */
.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border-bottom: 5px solid transparent;
}

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

.service-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Projects Timeline (simplified for now) */
.timeline-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.timeline-year {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    right: 30px;
    top: 20px;
}

/* Footer */
.footer-section {
    background: #151414;
    position: relative;
    color: #fff;
}

.footer-widget-heading h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
}

.footer-widget-heading h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    height: 2px;
    width: 50px;
    background: var(--accent-color);
}

.footer-widget ul li {
    display: inline-block;
    width: 100%;
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #878787;
    text-transform: capitalize;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-widget ul li a:hover {
    color: var(--accent-color);
}

.single-cta {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.single-cta i {
    color: var(--accent-color);
    font-size: 20px;
    margin-right: 15px;
    margin-top: 5px;
}

.cta-text h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cta-text span {
    color: #757575;
    font-size: 14px;
}

.copyright-area {
    background: #202020;
    padding: 25px 0;
}

.copyright-text p {
    margin: 0;
    font-size: 14px;
    color: #878787;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 0px; /* Adjust if needed */
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-link {
        color: var(--text-color) !important;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .navbar-scrolled .nav-link {
        color: var(--text-color) !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-brand img {
        height: 60px; /* Smaller logo on mobile */
    }
    
    .service-gallery-img {
        height: 150px; /* Smaller images on mobile */
    }
    
    /* Ensure cards have padding but fit screen */
    .card-body {
        padding: 1.5rem !important;
    }
    
    /* WhatsApp button smaller on mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
