/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #0a2647;
    /* Deep Navy */
    --secondary-color: #37474f;
    /* Steel Grey */
    --accent-color: #ff6b00;
    /* Safety Orange */
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --white: #ffffff;
    --light-bg: #f4f7f6;
    --dark-bg: #0f172a;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease-in-out;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);

    --section-padding: 3rem 0;
    /* Reduced Mobile padding */
}

@media (min-width: 992px) {
    :root {
        --section-padding: 6rem 0;
        /* Desktop padding */
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 14px;
    /* Base font size reduction for small screens */
}

@media (min-width: 480px) {
    html {
        font-size: 16px;
    }
}

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

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

ul {
    list-style: none;
}

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

/* =========================================
   2. UTILITIES & TYPOGRAPHY
   ========================================= */
.container {
    width: 92%;
    /* Slightly wider on mobile to use space */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    /* Reduced padding for 320px devices */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.2rem;
}

/* Smaller base calculation */
h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

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

.text-white p,
.bg-dark p,
.bg-darker p {
    color: rgba(255, 255, 255, 0.9);
}

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

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--primary-color);
}

.bg-darker {
    background-color: #05162b;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2.5rem;
}

.section-padding {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 2.5rem;
}

.subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 1rem;
    border-radius: 2px;
}

/* =========================================
   3. COMPONENTS
   ========================================= */
/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    /* Slightly compact */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

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

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

.btn-dark:hover {
    background-color: var(--secondary-color);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

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

.btn-block {
    width: 100%;
    text-align: center;
    display: block;
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
#header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

#header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    /* Reduced height back down */
}

.logo {
    display: flex;
    align-items: center;
}

.text-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ce0000;
    /* Professional Red */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .text-logo {
        font-size: 1.3rem;
        /* Responsive sizing */
    }
}

.logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .logo-img {
        height: 20px;
    }
}

.nav-logo:hover {
    transform: scale(1.05);
    /* Interactive hover */
}

/* Mobile Menu */
.nav-links {
    position: fixed;
    top: 70px;
    /* Match Navbar Height */
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    /* Better for landscape short screens */
    padding-top: 3rem;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    display: flex;
    overflow-y: auto;
    /* Allow scrolling in menu if height is small */
}

.nav-links.active {
    left: 0;
}

.nav-links li a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
}

.cta-link {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 4px;
}

/* Hamburger */
.hamburger {
    cursor: pointer;
    display: block;
    padding: 10px;
    /* Hit area increase */
    margin-right: -10px;
    /* Align to edge */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hamburger Animation */
.hamburger.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
#hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 60px 0;
    /* Extra top padding for header */
    background: url('images/hero-collage.jpg') no-repeat center center/100% 100%;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

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

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

#hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    word-wrap: break-word;
    /* Prevent overflow on long words */
}

#hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    padding: 0 10px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    /* CRITICAL for 320px */
    margin-bottom: 3rem;
    width: 100%;
}

.hero-btns .btn {
    width: 100%;
    max-width: 200px;
    /* Nice buttons on mobile */
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* CRITICAL for 320px */
    gap: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item {
    min-width: 80px;
    /* Ensure they don't squash too small */
}

.stat-item .counter {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.stat-item p {
    font-size: 0.8rem;
    margin: 0;
    color: #ccc;
    text-transform: uppercase;
}

/* =========================================
   6. ABOUT & MISSION
   ========================================= */
.check-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    /* Align checkmark to top lines */
    text-align: left;
    gap: 10px;
    font-weight: 500;
}

.check-list i {
    color: var(--accent-color);
    margin-top: 4px;
    /* Optical alignment */
    flex-shrink: 0;
    /* Prevent icon shrinking */
}

.about-image-wrapper {
    position: relative;
    margin-top: 2rem;
    border-radius: 4px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 250px;
    /* Reduced height for mobile */
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.about-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .about-img {
        height: 250px;
    }
}

.experience-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 15px;
    text-align: center;
    border-radius: 4px;
}

.experience-badge .years {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Vision Mission Cards */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

#vision .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#vision .card h3 {
    color: var(--white);
}

#vision .card p {
    color: rgba(255, 255, 255, 0.8);
}

#vision .card-icon {
    color: var(--accent-color);
}

.card:hover {
    transform: translateY(-5px);
    /* Reduced movement on mobile */
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--accent-color);
}

#vision .card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

/* =========================================
   7. SERVICES GRID
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--primary-color);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
}

.service-card .learn-more {
    color: var(--accent-color);
}

.service-card:hover {
    background-color: #0d3b66;
    /* Slightly lighter navy for feedback */
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .icon-box i,
.service-card:hover .learn-more {
    color: var(--white) !important;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: var(--transition);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .service-list li {
    color: var(--white);
}

.service-card:hover .service-list li::before {
    background-color: var(--white);
}

.icon-box {
    margin-bottom: 1rem;
}

.icon-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

/* =========================================
   8. PROJECTS & TABLE
   ========================================= */
/* Projects Grid (Default for Portfolio Page) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Projects Slider Tracking (For Home Page) */
.projects-slider-wrapper {
    position: relative;
    padding: 2.5rem 0;
    /* Vertical padding to prevent clipping */
}

.projects-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Internal padding for shadows/transforms */
}

.slider-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    width: 100%;
    margin-top: 0 !important;
    /* Slider manages its own spacing */
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Fix flex overflow */
}

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

.project-card-img {
    width: 100%;
    height: 350px;
    /* Adjusted to fit 3 per row gracefully */
    flex-shrink: 0;
    /* Prevent collapsing in flex containers */
    overflow: hidden;
}

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

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

.project-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card-content h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    text-transform: none;
    /* Keep natural case for project names if desired, or uppercase if per brand */
}

.project-card-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.project-actions {
    margin-top: auto;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-nav {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--white);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-nav:hover {
    opacity: 1;
    transform: scale(1.1);
    background: var(--white);
    color: var(--accent-color);
}

/* Slider Item Sizing */
.slider-track .project-slide {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .slider-track .project-slide {
        flex: 0 0 calc((100% - 2rem) / 1);
        /* Show 1 big card on tablet slider */
    }
}

@media (min-width: 1024px) {
    .slider-track .project-slide {
        flex: 0 0 calc((100% - 4rem) / 3);
        /* Show 3 cards on desktop slider */
    }
}

/* Specialisations Grid */
.specialisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.spec-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spec-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background-color: var(--primary-color);
    color: var(--white);
}

.spec-card:hover h3 {
    color: var(--white);
}

.spec-card:hover .spec-icon i {
    color: var(--white);
}

.spec-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.spec-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    line-height: 1.4;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .specialisations-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   9. GALLERY & ACCREDITATIONS
   ========================================= */
.badges-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 column on mobile (Single image per row) */
    gap: 2rem;
    max-width: 500px;
    /* Limit width on mobile so images aren't huge */
    margin: 0 auto;
}

.badge-item {
    /* "Don't put in the box" - Removed bg, shadow, padding */
    background: transparent;
    box-shadow: none;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateY(-5px);
    /* No shadow on hover since box is gone */
}

.cert-img {
    width: 100%;
    height: auto;
    /* Allow natural height scaling */
    max-height: 250px;
    /* Cap height */
    object-fit: contain;
    /* Strictly raw image - no box */
    border: none;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
}

/* Gallery Slider */
.gallery-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 30px;
    /* Space for dots */
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.gallery-item {
    flex: 0 0 100%;
    /* Default Mobile: 1 item per slide */
    padding: 0 10px;
    /* Gutter */
    height: 450px;
    /* Increased to 450px for BIG images */
    position: relative;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.5s ease;
    /* Smooth zoom on hover */
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
    /* Slight zoom effect */
}

/* Dots Styling */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Slider Media Queries */
@media (min-width: 768px) {
    .gallery-item {
        flex: 0 0 50%;
        /* Tablet: 2 items */
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        flex: 0 0 33.333%;
        /* Desktop: 3 items */
    }
}

/* =========================================
   10. CONTACT FORM
   ========================================= */
.form-group {
    margin-bottom: 1rem;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    /* Prevent zoom on iOS input focus */
}

.contact-info .info-item {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.contact-info i {
    font-size: 1.2rem;
    padding-top: 5px;
    flex-shrink: 0;
}

.footer {
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* =========================================
   11. DESKTOP MEDIA QUERIES (>= 768px, >= 1024px)
   ========================================= */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .hero-stats {
        gap: 4rem;
        margin-top: 3rem;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    .hero-btns .btn {
        width: auto;
    }

    #hero {
        text-align: left;
    }

    #hero h1,
    #hero p {
        text-align: left;
    }

    .grid-2,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .badges-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: none;
    }

    .row {
        display: flex;
        align-items: flex-start;
        gap: 3rem;
    }

    .col-half {
        flex: 1;
    }

    .about-image-wrapper {
        margin-top: 0;
        height: 100%;
    }

    .placeholder-img {
        height: 100%;
        min-height: 400px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 250px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-links {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {

    /* Navbar Desktop */
    .mobile-only {
        display: none;
    }

    .hamburger {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        transform: none;
        gap: 2.5rem;
        padding-top: 0;
        overflow-y: visible;
    }

    .nav-links li a {
        font-size: 0.95rem;
        text-transform: uppercase;
        font-weight: 600;
    }

    .services-grid,
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #hero h1 {
        font-size: 4.5rem;
    }

    .hero-content {
        max-width: 800px;
        margin: 0;
    }
}


/* =========================================
   12. ANIMATION UTILITIES
   ========================================= */
/* =========================================
   12. ANIMATION UTILITIES
   ========================================= */
.fade-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* =========================================
   13. IMAGE MODAL
   ========================================= */
.image-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    /* Don't overflow vertically */
    object-fit: contain;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

/* Modal on smaller screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
}

/* =========================================
   14. FULL GALLERY PAGE
   ========================================= */
.category-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid var(--accent-color);
}

.sub-cat-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.g-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.g-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* =========================================
   15. KEY CLIENTS (Re-styled)
   ========================================= */
#clients {
    background-color: #020617;
    /* Very dark background */
    padding-top: 60px;
    padding-bottom: 60px;
}

#clients .section-header h2,
#clients .section-header .subtitle {
    color: var(--white);
}

.clients-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.slider-row {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.slide-track {
    display: inline-flex;
    gap: 30px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Card Style for Client Item */
.slide-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 100px;
    flex-shrink: 0;

    /* New Dark Card Styling */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);

    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.slide-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    /* Glow color on hover */
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
    /* Orange glow */
}

.slide-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    /* Removed white filter */
    background-color: rgba(255, 255, 255, 0.9);
    /* White background plate for logo */
    padding: 5px;
    border-radius: 6px;
    opacity: 0.9;
    transition: all 0.3s;
}

.slide-item:hover img {
    opacity: 1;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Animations */
.slide-left {
    animation-name: slide-left-anim;
    animation-duration: 40s;
}

.slide-right {
    animation-name: slide-right-anim;
    animation-duration: 40s;
}

@keyframes slide-left-anim {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes slide-right-anim {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .slide-item {
        width: 140px;
        height: 80px;
    }

    .slide-track {
        gap: 20px;
    }
}