/* ==========================================================================
   Template CSS — Burhan Vision Company Website
   Table of Contents:
   1.  CSS Custom Properties (Design System)
   2.  Accessibility
   3.  Spinner / Loader
   4.  Utility Classes
   5.  Headings & Font Weights
   6.  Buttons
   7.  Navbar
   8.  Hero Header (Legacy Pages)
   9.  Hero Modern (Homepage)
   10. Section Title
   11. About
   12. Service
   13. Feature
   14. Newsletter
   15. Case Study
   16. Project Filter
   17. FAQs / Accordion
   18. Testimonial
   19. Team
   20. Footer
   21. Tech Badges
   22. Image Lazy Loading
   23. Logo
   24. Project Detail Pages
   ========================================================================== */


/* ==========================================================================
   1. CSS Custom Properties (Design System)
   ========================================================================== */
:root {
    /* Colors */
    --primary: #1363C6;
    --primary-light: #e8f0fb;
    --primary-dark: #0d4a96;
    --secondary: #15ACE1;
    --secondary-light: #e6f7fc;
    --light: #F4F7FE;
    --dark: #14183E;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Category Colors */
    --cat-cv: #1363C6;
    --cat-ai: #7c3aed;
    --cat-health: #22c55e;
    --cat-sports: #f59e0b;
    --cat-edu: #ec4899;
    --cat-industrial: #f97316;

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Type Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.85rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 3.2rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows — subtle, neutral */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.1);

    /* Borders */
    --border-color: rgba(0, 0, 0, 0.08);
    --border: 1px solid var(--border-color);

    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 1000;
    --z-modal: 10000;
    --z-spinner: 99999;
    --z-skip: 100000;
}


/* ==========================================================================
   2. Accessibility
   ========================================================================== */

/* Skip-to-content link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #FFFFFF;
    padding: var(--space-md) var(--space-lg);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    z-index: var(--z-skip);
    transition: top var(--transition-fast);
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
    color: #FFFFFF;
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Global focus-visible styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(19, 99, 198, 0.2);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-gradient-bg {
        animation: none;
    }

    .hero-canvas {
        display: none;
    }
}


/* ==========================================================================
   3. Spinner / Loader
   ========================================================================== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility 0s linear 0.5s;
    z-index: var(--z-spinner);
}

#spinner.show {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--transition-slow), visibility 0s linear 0s;
    animation: spinnerMinDisplay 0.3s linear;
}

@keyframes spinnerMinDisplay {
    0%   { opacity: 1; visibility: visible; }
    100% { opacity: 1; visibility: visible; }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: var(--z-dropdown);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.back-to-top:hover {
    transform: translateY(-3px);
}


/* ==========================================================================
   4. Utility Classes
   ========================================================================== */

.form-input-height {
    height: 48px;
}

.search-input-max {
    max-width: 600px;
}

.bg-white-10 {
    background: rgba(255, 255, 255, 0.1);
}

.section-header-max {
    max-width: 500px;
}

.section-header-max-lg {
    max-width: 600px;
}

.section-header-sm {
    max-width: 500px;
}

.section-header-md {
    max-width: 600px;
}

.search-modal-bg {
    background: rgba(20, 24, 62, 0.85);
    backdrop-filter: blur(12px);
}

.spinner-size {
    width: 3rem;
    height: 3rem;
}

.brand-text {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.2;
    display: inline-block;
}

.brand-text-footer {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.2;
    display: inline-block;
}

.lang-toggle-btn {
    font-size: var(--text-xs);
    font-weight: 600;
    transition: var(--transition-base);
}

.lang-toggle-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

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

.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
}


/* ==========================================================================
   5. Headings & Font Weights
   ========================================================================== */
body h1,
body h2,
body h3,
body .fw-bold {
    font-weight: 700;
}

body h4,
body h5,
body h6,
body .fw-medium {
    font-weight: 500;
}


/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
    font-weight: 500;
    transition: var(--transition-base);
    border-radius: var(--radius-sm);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: var(--radius-full);
}


/* ==========================================================================
   7. Navbar
   ========================================================================== */
.sticky-top {
    top: -150px;
    transition: var(--transition-slow);
}

.container-fluid .navbar {
    padding: 11px 0;
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 0;
    color: rgba(255, 255, 255, .7);
    transition: color var(--transition-base);
    position: relative;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width var(--transition-base);
}

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

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1);
}

.navbar .navbar-nav .nav-link:focus-visible {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 4px;
    border-radius: 2px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: var(--space-sm);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        padding: 0 15px;
        background: var(--primary);
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav .nav-link::after {
        display: none;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: var(--transition-base);
        opacity: 1;
    }
}


/* ==========================================================================
   8. Hero Header (Inner pages — clean minimal)
   ========================================================================== */
.hero-header {
    margin-top: -75px;
    padding-top: 75px;
    padding-bottom: 0;
    background: var(--primary);
    position: relative;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.hero-header.page-header {
    margin-top: -75px;
    padding-top: 130px;
    padding-bottom: 64px;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

/* Wave bottom edge */
.hero-header.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* Subtle floating circles decoration */
.hero-header.page-header::before {
    content: '';
    position: absolute;
    top: 30%;
    right: 8%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.08);
    pointer-events: none;
}

.hero-header.page-header .breadcrumb {
    font-size: var(--text-sm);
    opacity: 0.8;
}

/* Second decorative circle */
.hero-header.page-header .container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 5%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-header.page-header {
        padding-top: 110px;
        padding-bottom: 48px;
    }
    .hero-header.page-header::after {
        height: 25px;
    }
    .hero-header.page-header::before,
    .hero-header.page-header .container::after {
        display: none;
    }
}

.hero-header.page-header h1,
.hero-header.page-header h2,
.hero-header.page-header .display-4 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.hero-header.page-header .breadcrumb {
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.hero-header.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-base);
}

.hero-header.page-header .breadcrumb-item a:hover {
    color: #fff;
}

.hero-header.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.35);
}

.hero-header.page-header .container.py-5 {
    padding-top: 0;
    padding-bottom: 0;
}

.hero-header.page-header .row.g-5 {
    padding-top: 0;
}

.hero-header.page-header .col-lg-6.mb-5 {
    margin-bottom: 0;
    padding-bottom: 0;
    text-align: center;
}

.hero-header.page-header nav .breadcrumb {
    justify-content: center;
}


/* ==========================================================================
   9. Hero Modern (Homepage)
   ========================================================================== */
.hero-modern {
    position: relative;
    margin-top: -75px;
    padding: 140px 0 100px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-modern::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 3;
}

.hero-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0f2c 0%, #1a1a5e 25%, #1363C6 50%, #15ACE1 75%, #0a0f2c 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.9);
    font-size: var(--text-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.05);
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlight {
    background: linear-gradient(90deg, #15ACE1, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-md) var(--space-xl);
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-stat { text-align: center; }

.hero-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.hero-stat-label {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.2);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-actions .btn-light {
    font-weight: 600;
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .hero-modern { padding: 120px 0 60px; min-height: auto; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: var(--text-base); }
    .hero-stats { gap: var(--space-md); padding: var(--space-md); }
    .hero-stat-number { font-size: 1.4rem; }
}


/* ==========================================================================
   10. Section Title
   ========================================================================== */
.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -25px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: 25px;
}

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(33, 66, 177, .5);
}

.section-title h6::after {
    top: 5px;
    left: 3px;
}


/* ==========================================================================
   11. About
   ========================================================================== */
.about-img {
    position: relative;
    overflow: visible;
}

.about-img img {
    border-radius: var(--radius-lg);
    transition: transform var(--transition-slow);
}

.about-img:hover img {
    transform: scale(1.02);
}

.about-experience-badge {
    position: absolute;
    bottom: -12px;
    right: -6px;
    background: var(--primary);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.about-experience-badge h2 {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.about-experience-badge span {
    font-size: 0.7rem;
}


/* ==========================================================================
   12. Service
   ========================================================================== */
.service-item {
    position: relative;
    padding: var(--space-2xl) var(--space-xl);
    background: #FFFFFF;
    transition: var(--transition-base);
    border-radius: var(--radius-md);
    border: var(--border);
}

.service-item:hover {
    border-color: rgba(0,0,0,0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-item .service-icon {
    margin: 0 auto var(--space-lg) auto;
    width: 72px;
    height: 72px;
    color: var(--primary);
    background: var(--light);
    transition: var(--transition-base);
    border-radius: var(--radius-md);
}

.service-item:hover .service-icon {
    color: #FFFFFF;
    background: var(--primary);
}

.service-item h5,
.service-item h2,
.service-item p {
    transition: color var(--transition-base);
}

.service-item a.btn {
    position: relative;
    display: flex;
    color: var(--primary);
    transition: var(--transition-base);
    z-index: 1;
}

.service-item a.btn::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    top: 0;
    left: 0;
    border-radius: var(--radius-full);
    background: var(--light);
    transition: var(--transition-base);
    z-index: -1;
}

.service-item:hover a.btn::before {
    width: 100%;
    background: var(--light);
}


/* ==========================================================================
   13. Feature
   ========================================================================== */
.feature {
    background: url(../img/bg-hero.png) center center no-repeat;
    background-size: cover;
}


/* ==========================================================================
   14. Newsletter
   ========================================================================== */
.newsletter {
    background: url(../img/bg-hero.png) center center no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    section.newsletter .container {
        max-width: 100%;
    }

    .newsletter .newsletter-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/* Form input focus styles */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 99, 198, 0.15);
}


/* ==========================================================================
   15. Case Study (Homepage featured projects)
   ========================================================================== */
.case-item {
    height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.case-item img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
}

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

.case-overlay {
    position: absolute;
    padding: var(--space-xl);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(20, 24, 62, 0) 30%, rgba(20, 24, 62, 0.85) 100%);
    z-index: 1;
    transition: background var(--transition-base);
}

.case-item:hover .case-overlay {
    background: linear-gradient(180deg, rgba(20, 24, 62, 0) 10%, rgba(20, 24, 62, 0.95) 100%);
}

.case-overlay h5 {
    font-size: var(--text-lg);
    line-height: 1.4;
    transition: transform var(--transition-base);
}

.case-item:hover .case-overlay h5 {
    transform: translateY(-4px);
}

.case-overlay p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,.85);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-overlay small {
    display: inline-block;
    padding: 4px var(--space-md);
    color: #FFFFFF;
    background: rgba(19, 99, 198, 0.7);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.case-overlay span.btn {
    transition: var(--transition-base);
}

.case-overlay span.btn:hover {
    color: var(--primary);
    background: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateX(4px);
}


/* ==========================================================================
   15b. Project Cards (Projects listing page — modern card design)
   ========================================================================== */
.project-card-inner {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: var(--border);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
}

.project-card-inner:hover {
    transform: translateY(-4px);
    border-color: rgba(0,0,0,0.15);
    box-shadow: var(--shadow-md);
}

.project-card-inner .card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-card-inner .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.project-card-inner:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.project-card-inner .card-body-content {
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card-inner .cat-badge {
    display: inline-block;
    width: fit-content;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    color: var(--primary);
    background: var(--primary-light);
}

.project-card-inner .card-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    transition: color var(--transition-base);
}

.project-card-inner:hover .card-title {
    color: var(--primary);
}

.project-card-inner .card-desc {
    font-size: var(--text-sm);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-sm);
    flex: 1;
}

.project-card-inner .card-link-text {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    transition: var(--transition-base);
}

.project-card-inner:hover .card-link-text {
    gap: 4px;
}

.project-card-inner .card-link-text i {
    transition: transform var(--transition-base);
}

.project-card-inner:hover .card-link-text i {
    transform: translateX(4px);
}

/* Category badge colors on project cards */
.project-card[data-category="Computer Vision"] .cat-badge {
    color: var(--cat-cv);
    background: #e8f0fb;
}

.project-card[data-category="AI Applications"] .cat-badge {
    color: var(--cat-ai);
    background: #f3e8ff;
}

.project-card[data-category="Healthcare"] .cat-badge {
    color: var(--cat-health);
    background: #ecfdf5;
}

.project-card[data-category="Sports & Fitness"] .cat-badge {
    color: var(--cat-sports);
    background: #fffbeb;
}

.project-card[data-category="Education"] .cat-badge {
    color: var(--cat-edu);
    background: #fdf2f8;
}

.project-card[data-category="Industrial"] .cat-badge {
    color: var(--cat-industrial);
    background: #fff7ed;
}

/* Category-colored left accent line */
.project-card[data-category="Computer Vision"] .project-card-inner { border-left: 3px solid var(--cat-cv); }
.project-card[data-category="AI Applications"] .project-card-inner { border-left: 3px solid var(--cat-ai); }
.project-card[data-category="Healthcare"] .project-card-inner { border-left: 3px solid var(--cat-health); }
.project-card[data-category="Sports & Fitness"] .project-card-inner { border-left: 3px solid var(--cat-sports); }
.project-card[data-category="Education"] .project-card-inner { border-left: 3px solid var(--cat-edu); }
.project-card[data-category="Industrial"] .project-card-inner { border-left: 3px solid var(--cat-industrial); }


/* ==========================================================================
   16. Project Filter
   ========================================================================== */
.filter-btn {
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--dark);
    color: var(--dark);
}

.btn.filter-btn:hover,
.btn.filter-btn.active {
    background-color: var(--dark);
    color: #FFFFFF;
    border-color: var(--dark);
}

.project-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card.project-card.hidden {
    display: none;
}

/* (category overlay colors removed — cards now use body-content layout) */

/* All filter buttons use same dark style when active */


/* ==========================================================================
   17. FAQs / Accordion
   ========================================================================== */
.accordion .accordion-item {
    border: none;
    margin-bottom: var(--space-md);
}

.accordion .accordion-button {
    background: var(--light);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(19, 99, 198, 0.2);
}

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

.accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%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 .accordion-body {
    padding: var(--space-md) 0 0 0;
}


/* ==========================================================================
   18. Testimonial
   ========================================================================== */
.testimonial-carousel {
    position: relative;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 40px;
    height: 100%;
    top: calc(50% - 50px);
    left: -21px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 5px 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    font-size: 18px;
    transition: var(--transition-base);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    margin-left: 3rem;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}


/* ==========================================================================
   19. Team
   ========================================================================== */
.team-item {
    border: 1px solid transparent;
    transition: var(--transition-base);
    border-radius: var(--radius-lg);
}

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


/* ==========================================================================
   20. Footer
   ========================================================================== */
.footer {
    background: url(../img/footer.png) center center no-repeat;
    background-size: contain;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.footer .btn.btn-social:hover {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.4);
}

.footer .btn.btn-social:focus-visible {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 2px;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: var(--space-sm);
    padding: 4px 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: var(--transition-base);
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
}

.footer .btn.btn-link:focus-visible {
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: var(--space-sm);
    transition: margin-right var(--transition-base);
}

.footer .btn.btn-link:hover::before {
    margin-right: var(--space-sm);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
    transition: color var(--transition-base);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    transition: color var(--transition-base);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/* ==========================================================================
   21. Tech Badges
   ========================================================================== */
.tech-badge {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px 4px 3px 0;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--dark);
    background: var(--light);
    border: var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.tech-badge:hover {
    border-color: var(--dark);
}


/* ==========================================================================
   22. Image Lazy Loading
   ========================================================================== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-base);
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
    opacity: 1;
}


/* ==========================================================================
   23. Logo
   ========================================================================== */
.logo-svg {
    display: inline-block;
    width: auto;
    height: 40px;
    vertical-align: middle;
    transition: opacity var(--transition-base);
}

.logo-svg:hover {
    opacity: 0.85;
}


/* ==========================================================================
   24. Project Detail Pages
   ========================================================================== */

/* Project detail sidebar */
/* Sticky sidebar */
.project-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.project-sidebar .bg-light {
    border-radius: var(--radius-md);
    border: var(--border);
}

.project-sidebar .bg-primary {
    border-radius: var(--radius-md);
}

.cta-box {
    background: linear-gradient(135deg, #4a90d9 0%, #5ba3ec 100%);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-lg);
}

/* Project detail video (GIF-style autoplay) */
.project-video {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: var(--border);
    background: #000;
    margin-bottom: var(--space-md);
}

.project-video video {
    width: 100%;
    max-height: 420px;
    display: block;
    object-fit: contain;
}

/* Gallery images */
.project-gallery img {
    border-radius: var(--radius-md);
    border: var(--border);
    cursor: pointer;
    transition: var(--transition-base);
    object-fit: cover;
    height: 220px;
    width: 100%;
}

.project-gallery img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Project feature list */
.project-features li {
    padding: var(--space-sm) 0;
    transition: transform var(--transition-fast);
}

.project-features li:hover {
    transform: translateX(4px);
}

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.status-completed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.status-in-progress {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Minimal section separator line */
.section-separator {
    width: 40px;
    height: 2px;
    background: var(--dark);
    margin: 0 auto var(--space-lg);
}
