/* 
 * AAP Infratech Limited - Main Stylesheet
 * Minimalist Design - Blue, Grey, Black & White Theme
 * Font: Montserrat
 */

/* ===================================
   1. VARIABLES & BASE STYLES
   =================================== */

:root {
    /* Brand Colors - Minimalist Blue/Grey Theme */
    --primary-blue: #1E3A8A;
    --dark-blue: #0F172A;
    --medium-blue: #3B82F6;
    --light-blue: #DBEAFE;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --gray: #64748B;
    --dark-gray: #1E293B;
    --black: #0A0F1E;
    
    /* Gradients */
    --gradient-blue: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    --gradient-light: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    
    /* Shadows - Minimalist */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.16);
    
    /* Transitions */
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Font Sizes */
    --fs-hero: clamp(2.5rem, 5vw, 4rem);
    --fs-h1: clamp(2rem, 4vw, 3rem);
    --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
    --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-body);
    color: var(--dark-gray);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white);
    font-weight: 400;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

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

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

section {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.container {
    max-width: 1320px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile-friendly images */
.project-image,
.hero-slide-image {
    width: 100%;
    object-fit: cover;
}

/* Ensure buttons don't overflow */
.btn {
    max-width: 100%;
    word-wrap: break-word;
}

/* ===================================
   2. ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.animate-fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.animate-fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

.animate-fade-in-up.delay-3 {
    animation-delay: 0.6s;
}

.animate-fade-in-up.delay-4 {
    animation-delay: 0.8s;
}

/* ===================================
   3. NAVIGATION - Minimalist
   =================================== */

.navbar {
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-weight: 700;
}

.brand-text {
    font-size: 1.5rem;
    color: var(--black);
    letter-spacing: -0.5px;
    font-weight: 800;
}

.brand-subtext {
    font-size: 0.65rem;
    color: var(--gray);
    letter-spacing: 2px;
    font-weight: 500;
}

.navbar-nav .nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
    background: var(--light-gray);
}

.navbar-nav .nav-link.btn-contact {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    margin-left: 1rem;
    border-radius: 6px;
}

.navbar-nav .nav-link.btn-contact:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.navbar-toggler {
    border-color: var(--gray);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 58, 138, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================
   4. HERO SECTION - FULL SLIDER (REBUILT FOR STABILITY)
   =================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: 70px;
}

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

.hero-slider .carousel,
.hero-slider .carousel-inner {
    height: 100%;
    width: 100%;
}

.hero-slider .carousel-item {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.5);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 58, 138, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem 0;
}

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

.hero-text-wrapper {
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: var(--fs-hero);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.title-highlight {
    display: block;
    color: var(--medium-blue);
    font-size: 0.4em;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hero-buttons .btn-primary {
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--primary-blue);
}

.hero-buttons .btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Carousel Controls - Minimalist */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition-fast);
    z-index: 5;
}

.hero-slider .carousel-control-prev {
    left: 40px;
}

.hero-slider .carousel-control-next {
    right: 40px;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Carousel Indicators - Minimalist */
.hero-slider .carousel-indicators {
    bottom: 40px;
    z-index: 5;
    margin-bottom: 0;
}

.hero-slider .carousel-indicators button {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 6px;
    transition: var(--transition-fast);
}

.hero-slider .carousel-indicators button.active {
    background: var(--white);
    width: 50px;
}

/* ===================================
   5. SERVICES SECTION - Minimalist
   =================================== */

.services-section {
    padding: 6rem 0;
    background: var(--white);
}

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

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

.section-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Image-background service cards --- */
.service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 360px;
    transition: var(--transition-fast);
    cursor: default;
}

.service-card-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark gradient overlay */
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 30, 0.45) 0%,
        rgba(15, 23, 42, 0.82) 60%,
        rgba(15, 23, 42, 0.97) 100%
    );
    transition: var(--transition-fast);
    z-index: 1;
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(30, 58, 138, 0.55) 0%,
        rgba(15, 23, 42, 0.88) 60%,
        rgba(15, 23, 42, 1) 100%
    );
}

/* Content sits above overlay */
.service-card-body {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Icon box */
.service-icon {
    width: 72px;
    height: 72px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}

.service-card:hover .service-icon {
    background: var(--medium-blue);
    border-color: var(--medium-blue);
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--white);
    transition: var(--transition-fast);
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Lift on hover */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
}

/* ===================================
   6. PROJECTS SECTION
   =================================== */

.projects-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

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

.filter-btn {
    padding: 0.75rem 1.75rem;
    border: 1px solid var(--gray);
    background: var(--white);
    color: var(--dark-gray);
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
}

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

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

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

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

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

.project-content {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-content h4 {
    font-size: 1.35rem;
    color: var(--black);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.project-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   7. ABOUT SECTION
   =================================== */

.about-section {
    padding: 6rem 0;
    background: var(--white);
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-item {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition-fast);
}

.feature-item:hover {
    transform: translateX(8px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--primary-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.feature-text h4 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-text p {
    color: var(--gray);
    margin: 0;
}

/* ===================================
   8. FAQ SECTION
   =================================== */

.faq-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

.accordion-item {
    background: var(--white);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--white);
    color: var(--black);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.5rem 2rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--light-blue);
    color: var(--primary-blue);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-blue);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231E3A8A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem 2rem;
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   9. CLIENTS & PARTNERS SECTION
   =================================== */

.clients-section {
    padding: 6rem 0;
    background: var(--white);
}

.clients-slider-wrapper {
    position: relative;
    padding: 0 3rem;
}

/* Each slide row — 5 logos in a flex row */
.clients-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0 2.5rem;
}

/* Individual logo box */
.client-logo-box {
    flex: 0 0 calc(20% - 1.5rem);
    max-width: 180px;
    min-width: 120px;
    background: var(--white);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.client-logo-box:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.client-logo {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: none;
    transition: var(--transition-fast);
}

.client-logo-box:hover .client-logo {
    filter: none;
    transform: scale(1.05);
}

/* Carousel prev/next arrows */
.clients-prev,
.clients-next {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 46px;
    height: 46px;
    background: var(--white);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1rem;
    opacity: 1;
    z-index: 10;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.clients-prev { left: 0; }
.clients-next { right: 0; }

.clients-prev:hover,
.clients-next:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.clients-prev i,
.clients-next i {
    color: inherit;
}

/* Dot indicators */
.clients-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.client-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.client-dot.active,
.client-dot:hover {
    background: var(--primary-blue);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 991px) {
    .client-logo-box {
        flex: 0 0 calc(33.33% - 1.5rem);
    }
}

@media (max-width: 575px) {
    .clients-slider-wrapper {
        padding: 0;
    }

    .clients-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 1rem 1rem 2rem;
        gap: 1rem;
        scrollbar-width: none;
    }

    .clients-row::-webkit-scrollbar {
        display: none;
    }

    .client-logo-box {
        flex: 0 0 140px;
        min-width: 140px;
        padding: 1rem;
    }

    .client-logo {
        max-height: 55px;
    }

    .clients-prev,
    .clients-next {
        display: none;
    }
}

/* ===================================
   10. CTA SECTION
   =================================== */

.cta-section {
    padding: 6rem 0;
    background: var(--gradient-blue);
    background-image: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.95) 100%),
        url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&h=600&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-title {
    color: var(--white);
    font-size: var(--fs-h1);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cta-buttons .btn {
    padding: 1.25rem 3rem;
    font-weight: 600;
    border-radius: 6px;
    font-size: 1rem;
}

.cta-buttons .btn-light {
    background: var(--white);
    color: var(--primary-blue);
}

.cta-buttons .btn-light:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.cta-buttons .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

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

/* ===================================
   10. FOOTER
   =================================== */

.footer {
    background: var(--dark-blue);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-logo {
    font-size: 1.75rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

.footer-logo span {
    display: block;
    font-size: 0.5em;
    letter-spacing: 3px;
    color: var(--medium-blue);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.social-links a i {
    color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--medium-blue);
    padding-left: 0.5rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.footer-contact span {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact a:hover {
    color: var(--medium-blue);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.seo-footer {
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
}

.seo-footer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    text-align: center;
}

/* ===================================
   11. SCROLL TO TOP BUTTON
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-fast);
}

.scroll-to-top:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
}

.scroll-to-top.show {
    display: flex;
}

/* ===================================
   12. BUTTON STYLES
   =================================== */

.btn-primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* ===================================
   13. RESPONSIVE DESIGN
   =================================== */

@media (max-width: 991px) {
    /* Navigation */
    .navbar-nav .nav-link.btn-contact {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        height: 100vh;
        margin-top: 60px;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
        line-height: 1.15;
    }
    
    .title-highlight {
        font-size: 0.42em;
        letter-spacing: 2px;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        gap: 0.85rem;
    }
    
    .hero-buttons .btn {
        padding: 0.95rem 2.25rem;
        font-size: 0.95rem;
    }
    
    /* Carousel Controls */
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .hero-slider .carousel-control-prev {
        left: 20px;
    }
    
    .hero-slider .carousel-control-next {
        right: 20px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    .hero-slider .carousel-indicators {
        bottom: 30px;
    }
    
    /* Sections */
    .services-section,
    .projects-section,
    .about-section,
    .faq-section {
        padding: 4rem 0;
    }
    
    .cta-section {
        padding: 4rem 0;
        background-attachment: scroll;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .service-icon i {
        font-size: 1.85rem;
    }
    
    .service-card h3 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    /* Project Section */
    .project-filters {
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }
    
    .filter-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .project-image {
        height: 240px;
    }
    
    .project-content {
        padding: 1.75rem;
    }
    
    .project-category {
        font-size: 0.8rem;
        padding: 0.35rem 0.9rem;
    }
    
    .project-content h4 {
        font-size: 1.25rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    /* About Section */
    .about-image {
        margin-bottom: 2rem;
    }
    
    .feature-item {
        padding: 1.75rem;
        gap: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-text h4 {
        font-size: 1.1rem;
    }
    
    .feature-text p {
        font-size: 0.9rem;
    }
    
    /* FAQ Section */
    .accordion-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.25rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        padding: 1rem 2.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 3.5rem 0 1.75rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-about,
    .footer-links,
    .footer-contact {
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        margin-top: 2.5rem;
        padding: 1.75rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    /* Container */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Navigation */
    .brand-text {
        font-size: 1.35rem;
    }
    
    .brand-subtext {
        font-size: 0.6rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        height: auto;
        margin-top: 70px;
    }
    
    .hero-content {
        padding: 4rem 0 3rem;
        position: relative;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-text-wrapper {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
        line-height: 1.2;
    }
    
    .title-highlight {
        font-size: 0.5em;
        letter-spacing: 1.5px;
        margin-bottom: 0.85rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.65;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.85rem;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        text-align: center;
        white-space: normal;
    }
    
    /* Carousel Controls */
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .hero-slider .carousel-control-prev {
        left: 15px;
    }
    
    .hero-slider .carousel-control-next {
        right: 15px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
    
    .hero-slider .carousel-indicators {
        bottom: 25px;
    }
    
    .hero-slider .carousel-indicators button {
        width: 30px;
        height: 3px;
        margin: 0 4px;
    }
    
    .hero-slider .carousel-indicators button.active {
        width: 40px;
    }
    
    /* Sections */
    .services-section,
    .projects-section,
    .about-section,
    .faq-section {
        padding: 3rem 0;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    /* Service Cards */
    .service-card {
        min-height: 300px;
    }
    
    .service-card-body {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.25rem;
    }
    
    .service-icon i {
        font-size: 1.75rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Project Section */
    .project-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.85rem;
    }
    
    .project-content h4 {
        font-size: 1.15rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    /* About Section */
    .feature-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .feature-icon i {
        font-size: 1.25rem;
    }
    
    .feature-text h4 {
        font-size: 1rem;
    }
    
    .feature-text p {
        font-size: 0.85rem;
    }
    
    /* FAQ Section */
    .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.25rem;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        height: auto;
        margin-top: 70px;
    }
    
    .hero-content {
        padding: 3rem 0 2rem;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 1.65rem;
        margin-bottom: 1rem;
    }
    
    .title-highlight {
        font-size: 0.5em;
        letter-spacing: 1.25px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
        line-height: 1.6;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn i {
        font-size: 0.85rem;
    }
    
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider .carousel-control-prev {
        left: 10px;
    }
    
    .hero-slider .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
    
    .hero-slider .carousel-indicators {
        bottom: 20px;
    }
    
    .hero-slider .carousel-indicators button {
        width: 25px;
        height: 2.5px;
        margin: 0 3px;
    }
    
    .hero-slider .carousel-indicators button.active {
        width: 35px;
    }
    
    /* Sections */
    .services-section,
    .projects-section,
    .about-section,
    .faq-section {
        padding: 2.5rem 0;
    }
    
    .cta-section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    /* Service Cards */
    .service-card {
        min-height: 280px;
    }
    
    .service-card-body {
        padding: 1.75rem 1.25rem;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.15rem;
    }
    
    .service-card p {
        font-size: 0.875rem;
    }
    
    /* Projects */
    .project-filters {
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-content h4 {
        font-size: 1.05rem;
    }
    
    /* About Section */
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
        font-size: 1.1rem;
    }
    
    .feature-text h4 {
        font-size: 0.95rem;
    }
    
    .feature-text p {
        font-size: 0.8rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.35rem;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
    }
    
    .cta-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-about p {
        font-size: 0.875rem;
    }
    
    .social-links a {
        width: 38px;
        height: 38px;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding: 1.25rem 0;
    }
    
    .footer-bottom .col-md-6:last-child {
        margin-top: 0.5rem;
    }
    
    .seo-footer {
        padding: 1rem 0;
        font-size: 0.8rem;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 400px) {
    .hero-section {
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    
    .title-highlight {
        font-size: 0.48em;
        letter-spacing: 1px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.55;
    }
    
    .hero-buttons .btn {
        padding: 0.85rem 1.15rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.05rem;
    }
    
    .project-image {
        height: 180px;
    }
}

/* ===================================
   15. UTILITY CLASSES
   =================================== */

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.rounded-custom {
    border-radius: 12px;
}
/* ===================================
   PROJECT IMAGE LIGHTBOX
   =================================== */

.project-image { position: relative; }

.view-full-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.45);
    color: #fff;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
    z-index: 3;
}

.view-full-btn:hover { background: rgba(255,255,255,0.32); }

.project-card:hover .view-full-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
#aapLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(8,12,24,0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#aapLightbox.open { display: flex; }

.aap-lb-backdrop {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
    z-index: 0;
}

.aap-lb-close {
    position: fixed;
    top: 18px;
    right: 20px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

.aap-lb-close:hover { background: rgba(255,255,255,0.25); }

.aap-lb-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 94vw;
    max-height: 94vh;
    animation: lbPop 0.28s ease;
}

@keyframes lbPop {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.aap-lb-img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    display: block;
}

.aap-lb-caption {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-top: 0.85rem;
    text-align: center;
    max-width: 80vw;
}