:root {
    --electric-blue: #0008ff;
    --black: #000000;
    --text-grey: #a0a0a0;
}

body, html {
    margin: 0; padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    color: #fff;
    overflow-x: hidden;
}

.services-hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Kinetic Container */
.services-shutter-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual Shutter Panels */
.service-shutter {
    position: relative;
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: flex 1s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    cursor: pointer;
}

.service-shutter.active, .service-shutter:hover {
    flex: 4;
}

/* Gradient Overlay (Always Visible) */
.shutter-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(21, 0, 176, 0.2) 0%, rgba(5, 0, 62, 0.7) 100%);
    z-index: 1;
    transition: 0.8s ease;
}

.service-shutter:hover .shutter-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(9, 0, 37, 0.9) 80%);
}

/* Content Container Logic */
.shutter-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    padding: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical Center when closed */
    align-items: center;
    text-align: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-shutter:hover .shutter-content,
.service-shutter.active .shutter-content {
    justify-content: flex-end; /* Move to bottom on hover */
    align-items: flex-start;
    text-align: left;
}

/* Title Styling */
.shutter-title {
    font-size: clamp(1.2rem, 3vw, 3.5rem);
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Details Reveal Logic */
.shutter-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s ease;
}

.service-shutter:hover .shutter-details,
.service-shutter.active .shutter-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
}

.shutter-desc {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 450px;
    margin-bottom: 30px;
}

/* Button Styling */
.btn-shutter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: #fff;
    color: #000;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-shutter:hover {
    background: var(--electric-blue);
    color: #fff;
}

/* Background Number */
.shutter-id {
    font-size: 10vw;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.05);
    position: absolute;
    top: 20px; left: 30px;
    z-index: 0;
    opacity: 0.2;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .services-shutter-container { flex-direction: column; }
    .service-shutter { width: 100%; min-height: 20vh; }
    .service-shutter.active, .service-shutter:hover { flex: 6; }
    .shutter-content { padding: 30px; justify-content: center; align-items: center; text-align: center; }
    .service-shutter:hover .shutter-content { justify-content: center; align-items: center; }
}

/* Ensure the parent shutter container is relative for correct overlay positioning */
.service-shutter {
    position: relative;
    /* Other existing styles like background-size, transition, etc. */
}

/* Style the overlay to cover the entire shutter area with a gradient */
.shutter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Transparent at the very top, transitioning to 80% black at the bottom */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    /* Ensure content sits on top of this overlay */
    z-index: 1;
}

/* Ensure shutter-content sits above the overlay */
.shutter-content {
    position: relative;
    z-index: 2;
    /* Other existing styles for padding, alignment, etc. */
}
/* Optimized Mobile Responsiveness (Max 769px) */
@media (max-width: 769px) {
    .services-hero{height: auto;}
    .services-shutter-container {
        flex-direction: column; /* Stack shutters vertically */
        height: 140vh; /* Keep the full screen height */
        padding-top: 80px;
    }

    .service-shutter {
        width: 100%;
        flex: 1; /* All shutters take equal height initially */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* When a shutter is expanded on mobile */
    .service-shutter.active, 
    .service-shutter:hover {
        flex: 5; /* Expands to show text content */
    }

    .shutter-content {
        padding: 20px;
        justify-content: center !important; /* Keep text centered on mobile */
        align-items: center !important;
        text-align: center !important;
    }

    .shutter-title {
        font-size: 1.8rem; /* Scaled down for mobile */
        text-align: center;
    }

    .shutter-details {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .shutter-desc {
        font-size: 0.9rem;
        margin: 15px 0 20px;
        max-width: 90%; /* Ensure text doesn't hit screen edges */
    }

    .btn-shutter {
        padding: 12px 25px;
        font-size: 0.85rem;
        width: fit-content;
    }

    /* Adjust Background ID for mobile */
    .shutter-id {
        font-size: 20vw;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Center the big number behind text */
        opacity: 0.03;
    }
}

/* Fix for very small devices or landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .services-shutter-container {
        height: auto; /* Allow scrolling if the screen is too short */
    }
    .service-shutter {
        min-height: 300px;
    }
}
/*Hero Section Ends*/

/*Section 1 Starts*/
/* --- Scroll Reveal Core --- */

/* Base hidden state for any element with .animate-trigger */
.animate-trigger {
    opacity: 0;
    transform: translateY(40px); /* Elements start 40px lower */
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

/* Base hidden state for .reveal-left (if used) */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The Active "Visible" State */
.animate-trigger.reveal,
.reveal-left.reveal {
    opacity: 1;
    transform: translateY(0);
    transform: translateX(0);
}

/* --- Staggered Reveal for the Portfolio Grid --- */
/* This makes the cards pop up one after another instead of all at once */
.port-grid .port-card:nth-child(1) { transition-delay: 0.1s; }
.port-grid .port-card:nth-child(2) { transition-delay: 0.2s; }
.port-grid .port-card:nth-child(3) { transition-delay: 0.3s; }
.port-grid .port-card:nth-child(4) { transition-delay: 0.4s; }


.portfolio-explore-sec {
    padding: 120px 0;
    background-color: #000000;
    color: #ffffff;
}

.port-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.port-header {
    text-align: center;
    margin-bottom: 70px;
}

.port-title {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin: 15px 0;
    line-height: 1.2;
}

.port-title span { color: #0008ff; }

.port-subtitle {
    color: #a0a0a0;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Masonry Grid Logic */
.port-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 25px;
}

.port-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
}

/* Card Size Variants */
.port-card.tall { grid-row: span 2; }
.port-card.wide { grid-column: span 2; }

.port-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Hover Overlay */
.port-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 8, 255, 0.8) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.port-card:hover img {
    transform: scale(1.1) rotate(1deg);
    filter: blur(2px);
}

.port-card:hover .port-info {
    opacity: 1;
}

.port-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

.port-info p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    transform: translateY(20px);
    transition: transform 0.5s ease 0.2s;
}

.port-card:hover h3, 
.port-card:hover p {
    transform: translateY(0);
}

.port-link {
    margin-top: 15px;
    width: 45px;
    height: 45px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.port-link:hover {
    background: #000;
    color: #fff;
}

/* Mobile Fixes */
@media (max-width: 769px) {
    .port-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
    .port-card.wide { grid-column: span 1; }
    .port-title { font-size: 2.2rem; }
}

/*Section 1 Ends*/

/*Section 2 Starts*/
.work-gallery-sec {
    padding: 100px 0;
    background-color: #000;
    color: #fff;
}

.gallery-container { width: 90%; max-width: 1200px; margin: 0 auto; }

.gallery-header { text-align: center; margin-bottom: 60px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Image Stack Styling */
.gallery-card {
    background: #0a0a0a;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
}

.card-image-stack {
    position: relative;
    height: 250px;
    margin-bottom: 20px;
}

.card-image-stack img {
    position: absolute;
    width: 70%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #000;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Overlap Logic */
.img-1 { top: 0; left: 0; z-index: 3; }
.img-2 { top: 30px; left: 15%; z-index: 2; opacity: 0.6; }
.img-3 { top: 60px; left: 30%; z-index: 1; opacity: 0.3; }

.gallery-card:hover .img-1 { transform: translateY(-10px) rotate(-2deg); }
.gallery-card:hover .img-2 { transform: translate(20px, -20px) rotate(2deg); opacity: 0.8; }
.gallery-card:hover .img-3 { transform: translate(40px, -30px) rotate(5deg); opacity: 0.6; }

.btn-view-more {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #0008ff;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-view-more:hover { background: #0008ff; box-shadow: 0 0 20px rgba(0, 8, 255, 0.4); }

/* MODAL STYLING */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    padding: 50px;
    overflow-y: auto;
}

.modal-content { max-width: 1100px; margin: 0 auto; }

.modal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.modal-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }

.close-modal {
    position: fixed;
    top: 30px; right: 40px;
    font-size: 40px; color: #fff; cursor: pointer;
}

/* LIGHTBOX STYLING */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000; /* Higher than the gallery modal */
    justify-content: center;
    align-items: center;
}

.lb-content {
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
}

.lb-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    animation: zoomIn 0.3s ease-out;
}

/* Navigation Buttons */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 30px 20px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.lb-nav:hover { background: var(--electric-blue); }
.lb-prev { left: 20px; border-radius: 0 10px 10px 0; }
.lb-next { right: 20px; border-radius: 10px 0 0 10px; }

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    z-index: 10002;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
/*Section 2 Ends*/


/*Section 3 Starts*/
.client-gallery-sec{
    width: 90%;
    margin: 0 auto;
}
.client-grid {
    display: grid;
    /* This creates exactly 3 equal columns */
    grid-template-columns: repeat(3, 1fr); 
    width: 95%; /* Increased slightly to give cards more room */
    max-width: 1400px; /* Prevents cards from becoming too wide on huge monitors */
    margin: 0 auto;
    gap: 1.5rem; /* Increased gap for a cleaner architectural look */
    padding: 20px 0;
}

/* Responsive Fix: 2 cards on tablets, 1 card on phones */
@media (max-width: 1024px) {
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .client-grid {
        grid-template-columns: 1fr;
        width: 90%;
    }
}
.client-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: 0.3s;
}

.client-card:hover { border-color: var(--electric-blue); transform: translateY(-5px); }

.biz-top { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.biz-img { width: 65px; height: 65px; border-radius: 12px; object-fit: cover; }

.work-tags { color: var(--electric-blue); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }

.biz-review { margin: 20px 0; border-top: 1px solid #222; padding-top: 20px; }
.stars { color: #ffb400; margin-bottom: 10px; font-size: 0.9rem; }
.review-comment { font-style: italic; color: #ccc; font-size: 0.95rem; margin-bottom: 10px; }
.client-name { font-weight: 700; color: #fff; font-size: 0.9rem; }

.btn-view-works {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-view-works:hover { background: var(--electric-blue); color: #fff; }

/* Modal Tab Styling */
.media-tabs { display: flex; gap: 20px; margin-bottom: 25px; border-bottom: 1px solid #333; }
.tab-btn { background: none; border: none; color: #777; padding: 10px 0; cursor: pointer; font-weight: 600; }
.tab-btn.active { color: var(--electric-blue); border-bottom: 2px solid var(--electric-blue); }


/* Update your existing Lightbox CSS */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000; /* High number to be on top of everything */
    justify-content: center;
    align-items: center;
}

/* Update your Gallery Modal CSS */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000; /* Lower than lightbox */
    overflow-y: auto;
    padding: 40px 20px;
}




/*section 3 Ends*/


/*Section 4 Starts*/
.highlights-v2 {
    background-color: #000;
    padding: 120px 0;
    color: #fff;
    overflow: hidden;
}

.h-frame-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: center;
}

/* Label & Tag */
.h-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.h-line {
    width: 40px;
    height: 1px;
    background: #0008ff;
}

.h-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 700;
    color: #888;
}

/* Typography */
.h-main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: 40px;
}

.h-accent {
    color: transparent;
    -webkit-text-stroke: 1px #fff; /* Outlined look */
    background: linear-gradient(to right, #0008ff, #fff);
    -webkit-background-clip: text;
    background-clip: text;
}

.h-description p {
    color: #a0a0a0;
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 50px;
}

/* Modern Pills */
.h-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.h-pill {
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255,255,255,0.02);
    transition: 0.3s;
}

.h-pill span { color: #0008ff; margin-right: 10px; }

.h-pill:hover {
    border-color: #0008ff;
    background: rgba(0, 8, 255, 0.05);
}

/* Image Side Logic */
.image-box-wrapper {
    position: relative;
    padding: 20px;
}

.h-main-img {
    width: 100%;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    filter: grayscale(0.5);
    transition: 0.5s;
}

.image-box-wrapper:hover .h-main-img {
    filter: grayscale(0);
}

.h-image-border {
    position: absolute;
    top: 50px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid #0008ff;
    z-index: 1;
    border-radius: 4px;
}

.h-floating-stat {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: #0008ff;
    padding: 25px;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 15px 30px rgba(0, 8, 255, 0.3);
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 992px) {
    .h-frame-container { grid-template-columns: 1fr; gap: 80px; text-align: center; }
    .h-label, .h-feature-pills { justify-content: center; }
    .image-box-wrapper { max-width: 500px; margin: 0 auto; }
}

/* Directional Reveal States */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px); /* Start further left */
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px); /* Start further right */
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

/* The Triggered State (Existing JS adds .reveal) */
.animate-trigger.reveal-left.reveal,
.animate-trigger.reveal-right.reveal {
    opacity: 1;
    transform: translateX(0);
}

/* Micro-staggering for the pills inside the content side */
.reveal-left.reveal .h-pill:nth-child(1) { transition: 0.5s 0.4s; }
.reveal-left.reveal .h-pill:nth-child(2) { transition: 0.5s 0.6s; }
.reveal-left.reveal .h-pill:nth-child(3) { transition: 0.5s 0.8s; }

/* The Floating Stat Card delay */
.reveal-right.reveal .h-floating-stat {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
/*Section 4 Ends*/


/* Force 5 images in a horizontal row */
.media-grid {
    display: grid;
    /* This creates exactly 5 equal columns regardless of width */
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.media-grid img {
    width: 200px;
    /* Set a uniform height so the row looks clean */
    object-fit: cover;
    border-radius: 10px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.media-grid img:hover {
    transform: scale(1.03);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1100px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 per row on tablets */
    }
}

@media (max-width: 600px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on phones */
    }
}