/* =========================================
   1. BASE, RESET & TYPOGRAPHY
   ========================================= */
:root {
    --primary-color: #FACC15;
    --primary-hover: #EAB308;
    --dark-bg: #111827;
    --light-bg: #F9FAFB;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --font-stack: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    /* Adds the smooth scroll effect to all anchor links (#) */
    scroll-behavior: smooth; 
    /* This is the magic offset! It stops the scroll 90px early so your fixed header doesn't cover the section title */
    scroll-padding-top: 90px; 
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    padding-top: 70px;
    background-color: var(--light-bg);
    background-image: 
        linear-gradient(rgba(17, 24, 39, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
    background-size: 40px 40px; /* Adjust this to make the grid larger or smaller */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* =========================================
   PAGE TRANSITION ANIMATIONS
   ========================================= */
main {
    opacity: 0;
    transform: translateY(20px);
    /* The forwards property ensures it stays fully visible after animating in */
    animation: pageFadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* We will trigger this class with JavaScript when a link is clicked */
main.page-exit {
    animation: pageFadeOut 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}
/* =========================================
   2. HEADER & NAVIGATION (TITLEBAR)
   ========================================= */

/* =========================================
   SPLASH SCREEN & IMAGE ANIMATION
   ========================================= */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    /* Matched to the black background of your logo */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out, visibility 0.8s;
}

.splash-logo-container {
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    transform: scale(1.5);
}

/* 
  When the 'loaded' class is added via JS, 
  the logo shrinks and flies to the top left 
*/
.splash-screen.loaded .splash-logo-container {
    transform: translate(-40vw, -40vh) scale(0.3);
}

.splash-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =========================================
   TRUST METRICS SECTION
   ========================================= */
.metrics-section {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.metric-card {
    padding: 20px;
}

.metric-card h3 {
    display: inline-block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.metric-card span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.metric-card p {
    font-size: 1.1rem;
    color: #D1D5DB;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Adjustments for Metrics */
@media (max-width: 992px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .metric-card h3 { font-size: 3.5rem; }
}

@media (max-width: 576px) {
    .metrics-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================
   THE FLOATING ANIMATION
   ========================================= */
.splash-img-logo {
    max-width: 400px;
    width: 100%; /* Ensures it scales down on mobile */
    height: auto;
    /* This gives the whole logo a smooth, breathing hover effect */
    mix-blend-mode: multiply;
    animation: smoothFloat 1.5s ease-in-out infinite alternate;
}

@keyframes smoothFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-15px);
    }
}

/* Ensure the header logo is sized correctly */
.header-logo-img {
    height: 50px;
    /* Adjust to fit your navbar perfectly */
    width: auto;
}

.site-header {
    background-color: rgba(13, 16, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
    will-change: transform;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

/* =========================================
   DESKTOP DROPDOWN MENUS
   ========================================= */

/* Ensure the parent li is the reference point for the dropdown */
.main-nav li {
    position: relative;
}

/* The Dropdown Menu Base Styling - Overrides the inherited main-nav styles */
.main-nav ul.dropdown-menu {
    position: absolute;
    /* CHANGED: Pushes the menu 20px below the bottom of the parent link */
    top: calc(100% + 20px); 
    left: 0;
    min-width: 220px;
    background-color: rgba(13, 16, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 10px 0; 
    
    display: flex;
    flex-direction: column;
    gap: 0 !important; 
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Strip any hidden margins pushing the list items apart */
.main-nav ul.dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Invisible bridge so the menu doesn't disappear when moving mouse down */
.dropdown-menu::before {
    content: '';
    position: absolute;
    /* CHANGED: Extended the bridge to cover the new 20px gap */
    top: -25px; 
    left: 0;
    width: 100%;
    /* CHANGED: Made the height taller to match */
    height: 25px; 
}

/* Reveal Dropdown on Hover */
.main-nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Link Styling */
.main-nav ul.dropdown-menu a {
    display: block;
    padding: 20px 24px; /* Change the 8px here if you want the text even tighter or looser */
    line-height: 1.2;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    transition: all 0.2s ease;
}

/* Remove your existing underline animation for dropdown links */
.main-nav ul.dropdown-menu a::after {
    display: none; 
}

/* Dropdown Hover Effect (Slight nudge right and highlight) */
.main-nav ul.dropdown-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 30px; /* Nice visual nudge */
}

/* Header Mobile Responsiveness */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
    }

    .header-container {
        flex-direction: row;
        gap: 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .main-nav {
        display: none;
    }

    .site-header .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* =========================================
   3. HERO SECTION (SLIDER, FORM & RIBBON)
   ========================================= */
.hero-slider-container {
    position: relative;
    height: 80vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s linear;
}

.slide.active .slide-image {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.2) 100%);
}

/* --- Hero Static Form (Disoriented Fog) --- */
@keyframes morphingFog {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    33% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    66% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.hero-static-form-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    display: flex;
    align-items: center;
}

.form-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.hero-form {
    pointer-events: auto;
    width: 500px;
    height: 500px;
    animation: morphingFog 12s ease-in-out infinite alternate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(17, 24, 39, 0.95) 20%, rgba(17, 24, 39, 0.4) 80%, transparent 100%);
    border: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 120px 80px rgba(17, 24, 39, 0.6), inset 0 0 60px rgba(17, 24, 39, 0.7);
    color: var(--white);
}

.hero-form form {
    width: 65%;
}

.hero-form h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.hero-form p {
    font-size: 0.95rem;
    color: #D1D5DB;
    margin-bottom: 25px;
}

.hero-form .input-group {
    margin-bottom: 15px;
    width: 100%;
}

.hero-form input {
    width: 100%;
    padding: 14px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-stack);
    text-align: center;
    transition: var(--transition);
}

.hero-form input::placeholder {
    color: #9CA3AF;
}

.hero-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.hero-form .form-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
    border: none;
    border-radius: 25px;
}

/* --- Wavy Ribbon Elements --- */
.slide-content {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.ribbon {
    position: relative;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    font-size: 2rem;
    font-weight: 800;
    padding: 30px 40px 30px 75px;
    clip-path: url(#wavy-ribbon);
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
    transition-delay: 0.3s;
}

.ribbon::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: 0;
    border-top: 15px solid #B45309;
    border-right: 15px solid transparent;
    z-index: -1;
}

.slide.active .ribbon {
    opacity: 1;
    transform: translateX(0);
    animation: waveEffect 3s ease-in-out infinite 1.1s;
}

@keyframes waveEffect {
    0% {
        transform: translateX(0) skewY(0deg) translateY(0);
    }

    25% {
        transform: translateX(0) skewY(1deg) translateY(-2px);
    }

    50% {
        transform: translateX(0) skewY(-1deg) translateY(2px);
    }

    75% {
        transform: translateX(0) skewY(1deg) translateY(-1px);
    }

    100% {
        transform: translateX(0) skewY(0deg) translateY(0);
    }
}

/* Hero Mobile Responsiveness */
@media (max-width: 900px) {
    .form-wrapper {
        justify-content: center;
    }

    .hero-form {
        width: 380px;
        height: 380px;
    }

    .hero-form form {
        width: 75%;
    }
}

@media (max-width: 768px) {
    .ribbon {
        font-size: 1.25rem;
        padding: 20px 20px 20px 45px;
    }
}

/* =========================================
   4. TOP SERVICES (FLASHCARDS & SCROLL)
   ========================================= */
.top-services {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)),
        url('img/Gemini_Generated_Image_bbioojbbioojbbio.png') center/cover no-repeat;
}

#services .container {
    max-width: 2000px;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Horizontal Grid & Cards --- */
.services-flashcard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 25px 0;
}

.flashcard {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(60px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.5s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.flashcard.animate-slide-up {
    opacity: 1;
    transform: translateY(0);
}

.flashcard.animate-slide-up:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.3);
}

.flashcard-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.flashcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flashcard:hover .flashcard-img img {
    transform: scale(1.05);
}

.flashcard-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.flashcard-info h3 {
    font-size: 1.25rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.flashcard-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.flashcard-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.more-services-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #E5E7EB;
}

/* --- Scrolling Window & Arrows --- */
.services-scroll-window {
    max-height: 550px;
    overflow-y: auto;
    padding: 30px 40px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-scroll-window::-webkit-scrollbar {
    display: none;
}

.services-wrapper {
    position: relative;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

.scroll-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.25) 0%, transparent 65%);
    border: none;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-bottom: 4px solid var(--dark-bg);
    border-right: 4px solid var(--dark-bg);
    transition: transform 0.3s ease;
}

.scroll-down {
    bottom: -20px;
}

.scroll-down::before {
    transform: translateY(-5px) rotate(45deg);
}

.scroll-up {
    top: -20px;
}

.scroll-up::before {
    transform: translateY(5px) rotate(-135deg);
}

@keyframes bounceArrow {

    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: 8px;
    }
}

.scroll-down:hover::before {
    animation: bounceArrow 1s infinite;
}

.scroll-up:hover::before {
    animation: bounceArrow 1s infinite reverse;
}

.services-wrapper.can-scroll-down:hover .scroll-down {
    opacity: 1;
    pointer-events: auto;
}

.services-wrapper.can-scroll-up:hover .scroll-up {
    opacity: 1;
    pointer-events: auto;
}

/* Services Mobile Responsiveness */
@media (max-width: 1024px) {
    .services-flashcard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .services-zigzag {
        gap: 30px;
    }

    .service-row+.service-row {
        margin-top: 0;
    }

    .service-row,
    .service-row:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 20px;
    }

    .service-img {
        max-width: 100%;
    }

    .service-img img {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .services-flashcard-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   5. TRUST BANNER
   ========================================= */
.trust-banner {
    background-color: var(--primary-color);
    padding: 60px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    color: var(--dark-bg);
}

.stat h3 {
    font-size: 3.5rem;
    margin-bottom: 5px;
}

.stat p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Trust Banner Mobile Responsiveness */
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   6. PORTFOLIO GALLERY (ACCORDION + ARROWS)
   ========================================= */
.portfolio {
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Forces wrapper to span the full screen so arrows sit on the far edges */
.accordion-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 40px;
}

.accordion-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.accordion-viewport::-webkit-scrollbar {
    display: none;
}

/* --- The Accordion Layout --- */
.accordion-track {
    display: flex;
    align-items: center;
    gap: 0;
    /* Zero gap kills the jitter */
    padding: 0 10vw;
    width: max-content;
}

/* The Invisible Hitbox */
.accordion-item {
    width: 250px;
    /* Default resting width */
    height: 320px;
    padding: 0 10px;
    /* 20px invisible bridge between images */
    cursor: pointer;
    /* This transition handles the smooth width stretching */
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The Visible Card */
.accordion-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    filter: grayscale(30%);
    transition: all 0.6s ease;
    position: relative;
}

.accordion-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accordion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    /* Extra padding on top for the gradient */
    background: linear-gradient(to top, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.6) 60%, transparent 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.4s ease;
}

.accordion-content h4 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 800;
    white-space: nowrap;
    /* Keeps title on one line */
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.4s ease, color 0.4s ease;
}

.accordion-content p {
    font-size: 0.9rem;
    color: #D1D5DB;
    /* Slightly muted white */
    margin-top: 0;
    /* The Magic: Hide the text by default using max-height */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- The Accordion Hover Logic --- */

/* 1. ONLY shrink items that are NOT hovered, when the track is in use */
.accordion-track:has(.accordion-item:hover) .accordion-item:not(:hover) {
    width: 200px;
}

.accordion-track:has(.accordion-item:hover) .accordion-item:not(:hover) .accordion-inner {
    filter: grayscale(60%);
}

/* 2. Expand the SPECIFIC image you are hovering over */
.accordion-track .accordion-item:hover {
    width: 480px;
}

.accordion-track .accordion-item:hover .accordion-inner {
    filter: grayscale(0%);
    box-shadow: 0 20px 40px rgba(250, 204, 21, 0.4);
}

/* 3. Text and Title logic inside the hovered item */
.accordion-track .accordion-item:hover .accordion-content p {
    max-height: 60px;
    opacity: 1;
    margin-top: 8px;
}

.accordion-track .accordion-item:hover .accordion-content h4 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Floating Click Arrows --- */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.nav-arrow:hover {
    background-color: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 30px;
}

.right-arrow {
    right: 30px;
}

/* Portfolio Mobile Adjustments */
@media (max-width: 768px) {
    .accordion-item {
        width: 200px;
        height: 300px;
    }

    .accordion-track:hover .accordion-item {
        width: 100px;
    }

    .accordion-track .accordion-item:hover {
        width: 320px;
    }

    .left-arrow {
        left: 10px;
        width: 44px;
        height: 44px;
    }

    .right-arrow {
        right: 10px;
        width: 44px;
        height: 44px;
    }
}

/* =========================================
   7. ABOUT US SECTION (HOME PAGE)
   ========================================= */
.about-us {
    background-color: #F3F4F6;
    position: relative;
    padding: 40px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: row;
}

.about-media {
    flex: 1;
    position: relative;
}

.about-content {
    flex: 1;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-content.animate-fly-in {
    opacity: 1;
    transform: translateX(0);
}

.about-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
}

.media-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.media-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.media-wrapper:hover img {
    transform: scale(1.05);
}

/* About Us Mobile Responsiveness */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-title {
        text-align: center;
    }
}

/* =========================================
   8. TESTIMONIALS & VIDEO MODAL
   ========================================= */
.testimonials {
    background-color: var(--light-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* --- Base Tile Styles --- */
.testimonial-tile {
    background-color: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 480px;
    transition: box-shadow 0.3s ease;
}

.testimonial-tile:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.testimonial-media {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: top left;
}

.testimonial-media img,
.testimonial-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-action {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-watch {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* --- Text Content --- */
.testimonial-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.testimonial-content h4 {
    font-size: 1.25rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.stars {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-container {
    max-height: 85px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.testimonial-tile:not(.is-expanded) .review-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--white));
}

.review-container.has-overflow:not(.is-expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--white));
}

.view-more-container {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
}

.quote {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    margin-top: 15px;
    padding: 0;
    display: none;
}

/* --- Expanded Tile States --- */
.testimonial-tile[data-type="image"].is-expanded .testimonial-media {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
}

.testimonial-tile[data-type="video"].is-expanded .tile-header {
    align-items: center;
}

.testimonial-tile[data-type="video"].is-expanded .testimonial-media {
    width: 120px;
    height: 75px;
    border-radius: 8px;
}

.testimonial-tile[data-type="video"].is-expanded .watch-action {
    display: block;
    opacity: 1;
}

.testimonial-tile.is-expanded .review-container {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.review-container::-webkit-scrollbar {
    width: 4px;
}

.review-container::-webkit-scrollbar-thumb {
    background-color: #D1D5DB;
    border-radius: 4px;
}

/* --- Video Modal (Lightbox) --- */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    background-color: #000;
}

.modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 45px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* =========================================
   9. FLOATING ELEMENTS & OVERLAYS
   ========================================= */

/* --- 1. Floating Dialog Form (Restored Fog Blob) --- */
.form-modal {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    backdrop-filter: none;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.form-modal.show {
    visibility: visible;
    opacity: 1;
}

.form-modal .hero-form {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    left: 40px;
    width: 500px;
    height: 500px;
    transform: translate(-150%, -50%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Reusing the morphingFog animation defined in Section 3 */
    animation: morphingFog 12s ease-in-out infinite alternate;
    background: radial-gradient(circle at center, rgba(17, 24, 39, 0.95) 20%, rgba(17, 24, 39, 0.4) 80%, transparent 100%);
    border: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 120px 80px rgba(17, 24, 39, 0.6), inset 0 0 60px rgba(17, 24, 39, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.form-modal.show .hero-form {
    transform: translate(0, -50%);
}

.form-modal .hero-form form {
    width: 65%;
}

/* --- 2. Floating Call Button (Expanding on Hover) --- */
.floating-cta-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 9998;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 60px;
    width: 60px;
    border-radius: 30px;
    padding: 0 18px;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.4s ease;
}

.cta-text {
    font-family: var(--font-stack);
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    margin-left: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.floating-cta-btn:hover,
.floating-cta-btn:focus-visible {
    width: 235px;
    background-color: var(--primary-hover);
    box-shadow: 0 15px 35px rgba(250, 204, 21, 0.6);
    transform: translateY(-3px);
    outline: none;
}

.floating-cta-btn:hover .cta-text,
.floating-cta-btn:focus-visible .cta-text {
    opacity: 1;
    max-width: 200px;
    margin-left: 12px;
}

.floating-cta-btn:hover .cta-icon,
.floating-cta-btn:focus-visible .cta-icon {
    transform: rotate(15deg) scale(1.1);
}

/* --- 3. Socials Sidebar --- */
.social-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translate(calc(100% - 35px), -50%);
    display: flex;
    align-items: center;
    z-index: 9997;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-sidebar.open {
    transform: translate(0, -50%);
}

.social-panel {
    background-color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px 20px;
    border-radius: 0 0 0 12px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
}

.social-toggle {
    width: 35px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.social-toggle:hover {
    background-color: var(--primary-hover);
}

.social-link {
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

/* Floating Elements Mobile Responsiveness */
@media (max-width: 900px) {
    .form-modal .hero-form {
        left: 50%;
        width: 380px;
        height: 380px;
        transform: translate(-150%, -50%);
    }

    .form-modal.show .hero-form {
        transform: translate(-50%, -50%);
    }

    .form-modal .hero-form form {
        width: 75%;
    }

    .close-form-modal {
        top: 20px;
        right: 25px;
    }
}

/* =========================================
   10. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #374151;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    margin-top: 15px;
    color: #9CA3AF;
}

.footer-contact h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-contact p {
    color: #9CA3AF;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    color: #6B7280;
    font-size: 0.9rem;
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* =========================================
   11. SERVICES DIRECTORY PAGE
   ========================================= */

/* The Dark Hero Banner at the top of internal pages */
.page-header {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.7)),
        url('watermarked_img_12628263104563236557.png') center/cover;
    padding: 160px 0 80px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: #D1D5DB;
    max-width: 600px;
    margin: 0 auto;
}

.services-hero {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 160px 0 80px;
}

.services-hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.services-hero-text {
    flex: 1;
}

.services-hero-text h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.services-hero-text p {
    font-size: 1.2rem;
    color: #D1D5DB;
    line-height: 1.6;
}

.services-hero-image {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.services-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Alternating Scroll Services --- */
.alternating-services-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.alternating-row {
    display: flex;
    align-items: center;
    gap: 60px;
    overflow-x: hidden;
}

.alternating-row:nth-child(even) {
    flex-direction: row-reverse;
}

.alt-image {
    flex: 0 0 40%;
    max-width: 500px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.alt-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.05);
}

.alt-content {
    flex: 1;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.alt-content h3 {
    font-size: 2rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.alt-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* --- Animation Starting Positions --- */
.alternating-row:nth-child(odd) .alt-image {
    transform: translateX(50%);
}

.alternating-row:nth-child(odd) .alt-content {
    transform: translateX(40px);
}

.alternating-row:nth-child(even) .alt-image {
    transform: translateX(-50%);
}

.alternating-row:nth-child(even) .alt-content {
    transform: translateX(-40px);
}

/* --- Animation Triggered State --- */
.alternating-row.in-view .alt-image {
    transform: translateX(0);
}

.alternating-row.in-view .alt-content {
    opacity: 1;
    transform: translateX(0);
}

/* Services Directory Mobile Responsiveness */
@media (max-width: 900px) {
    .services-hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .alternating-row,
    .alternating-row:nth-child(even) {
        flex-direction: column;
        gap: 40px;
    }

    .alternating-row:nth-child(odd) .alt-image,
    .alternating-row:nth-child(even) .alt-image {
        transform: translateY(40px);
    }

    .alternating-row:nth-child(odd) .alt-content,
    .alternating-row:nth-child(even) .alt-content {
        transform: translateY(20px);
    }

    .alternating-row.in-view .alt-image,
    .alternating-row.in-view .alt-content {
        transform: translateY(0);
    }
}

/* =========================================
   12. ABOUT US PAGE
   ========================================= */
.about-header {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.7)), url('https://images.unsplash.com/photo-1504307651254-35680f356f58?auto=format&fit=crop&w=1920&q=80') center/cover;
}

.story-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.story-content {
    flex: 1;
}

.story-content h2 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.story-image {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

.core-values {
    background-color: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: var(--light-bg);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-card h4 {
    font-size: 1.25rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-cta {
    background-color: var(--dark-bg);
    text-align: center;
    padding: 80px 0;
    color: var(--white);
}

.about-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* About Us Mobile Responsiveness */
@media (max-width: 900px) {
    .story-container {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   13. INDIVIDUAL SERVICE DETAILS PAGE
   ========================================= */

/* --- Hero Section --- */
.service-detail-hero {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
}

.service-detail-hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-detail-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: #F3F4F6;
}

/* --- Two-Column Grid for Content --- */
.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Left column is 2x wider than right */
    gap: 60px;
}

/* --- Main Text Content --- */
.service-main-text h2 {
    font-size: 2.2rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.service-main-text h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--dark-bg);
}

.service-main-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* --- Custom Checkmark List --- */
.service-feature-list {
    list-style: none;
    padding: 0;
}

.service-feature-list li {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.service-feature-list li::before {
    content: '✔️';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 800;
}

.service-feature-list li strong {
    color: var(--dark-bg);
}

/* --- Sidebar Styling --- */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--dark-bg);
    padding: 35px;
    border-radius: 12px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.sidebar-widget p {
    color: #D1D5DB;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.sidebar-btn {
    width: 100%;
    padding: 15px;
}

.sidebar-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Related Work Banner --- */
.related-banner {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.related-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.related-banner p {
    font-size: 1.2rem;
    font-weight: 600;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Service Details Mobile Responsiveness */
@media (max-width: 900px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   14. CONTACT PAGE
   ========================================= */

/* --- Contact Hero Banner --- */
.contact-header {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.7)), url('https://images.unsplash.com/photo-1516880711640-ef7daf815e96?auto=format&fit=crop&w=1920&q=80') center/cover;
}

/* --- Main Layout Wrapper --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

/* --- Left Side: Info --- */
.contact-info h2 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.contact-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    background-color: rgba(250, 204, 21, 0.15);
    color: var(--primary-hover);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Right Side: Form Container --- */
.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.page-contact-form .form-row {
    display: flex;
    gap: 20px;
}

.page-contact-form .input-group {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.page-contact-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

/* Standardizing the input fields */
.page-contact-form input,
.page-contact-form select,
.page-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background-color: var(--light-bg);
    font-family: var(--font-stack);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.page-contact-form input:focus,
.page-contact-form select:focus,
.page-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.page-contact-form select {
    appearance: none;
    cursor: pointer;
}

.page-contact-form textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    border: none;
    margin-top: 10px;
}

/* Contact Page Mobile Responsiveness */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .page-contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form-container {
        padding: 30px 20px;
    }
}

/* =========================================
   15. IMMERSIVE PROJECTS SHOWCASE
   ========================================= */

.projects-header {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.6)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1920&q=80') center/cover;
}

/* --- The Full-Screen Project Section --- */
.project-showcase {
    position: relative;
    padding: 70px 0;
    /* REDUCED from 120px to shrink the vertical height */
    overflow: hidden;
    background-color: #FFFFFF;
    /* CHANGED from dark blue to white */
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    /* Softened the divider line */
}

/* --- The Foggy Scattered Background --- */
.scattered-collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.scatter-img {
    position: absolute;
    width: 200px;
    height: 250px;
    object-fit: cover;
    /* THE PORTRAIT STYLE: */
    background-color: #fff;
    /* White base for the border */
    padding: 10px 10px 10px 10px;
    /* Thicker bottom padding for the 'polaroid' feel */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Very subtle border */
    opacity: 1;
    /* Bumped up slightly for more clarity */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    /* Softened the shadow for the white background */
}

.img-1 {
    top: 10%;
    left: 5%;
    transform: rotate(-10deg);
}

.img-2 {
    top: 40%;
    right: 10%;
    transform: rotate(5deg);
    width: 220px;
    height: 270px;
}

.img-3 {
    bottom: 5%;
    left: 35%;
    transform: rotate(-5deg);
}

.img-4 {
    top: 15%;
    right: 5%;
    transform: rotate(12deg);
}

.img-5 {
    bottom: 10%;
    left: 15%;
    transform: rotate(-8deg);
    width: 250px;
    height: 300px;
}

.img-6 {
    top: 5%;
    right: 40%;
    transform: rotate(2deg);
    width: 180px;
    height: 220px;
}

.img-7 {
    bottom: 10%;
    right: 15%;
    transform: rotate(-10deg);
}

.img-8 {
    top: 5%;
    left: 20%;
    transform: rotate(-5deg);
    width: 200px;
}

.img-9 {
    bottom: 5%;
    right: 45%;
    transform: rotate(8deg);
}

.img-10 {
    top: 50%;
    left: 2%;
    transform: rotate(4deg);
}

/* The Heavy Fog Effect overlay */
.fog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(3px);
}

/* --- The Foreground Content --- */
.project-content-wrapper {
    position: relative;
    z-index: 10;
    /* Pulled in front of the fog */
    display: flex;
    align-items: center;
    gap: 70px;
}

/* Alternating layout switch */
.project-content-wrapper.reverse-layout {
    flex-direction: row-reverse;
}

.project-main-image {
    flex: 0.7;
    /* REDUCED from 1.2 to make it significantly narrower */
    border-radius: 20px;
    overflow: hidden;

    /* I also softened the shadow here since the background is now white instead of black */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-main-image img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.project-main-image:hover img {
    transform: scale(1.03);
}

/* The base state of the images (no movement) */
.scatter-img {
    position: absolute;
    /* ... keep your existing polaroid styles here ... */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

/* The "Dispersed" state: Triggered by JS */
.project-showcase.dispersed .scatter-img {
    opacity: 0.2;
    /* Fade out slightly as they move */
}

/* Scattered images fly in different directions based on their position */
.project-showcase.dispersed .img-1 {
    transform: translate(-100px, -100px) rotate(-20deg);
}

.project-showcase.dispersed .img-2 {
    transform: translate(100px, -100px) rotate(20deg);
}

.project-showcase.dispersed .img-3 {
    transform: translate(-50px, 100px) rotate(-10deg);
}

.project-showcase.dispersed .img-4 {
    transform: translate(150px, 50px) rotate(30deg);
}

.project-showcase.dispersed .img-5 {
    transform: translate(-150px, 50px) rotate(-30deg);
}

.project-info {
    flex: 1.3;
    /* INCREASED from 1 to give the text much more horizontal room */
    color: #111827;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.project-status.completed-status {
    background-color: var(--green-color);
    color: var(--dark-bg);
    /* CHANGED to dark text */
    border: 2px solid rgba(0, 0, 0, 0.2);
    /* Darkened the border */
}

.project-info h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.1;
    color: #000000;
    /* Solid Black */
    font-weight: 900;
}

.project-address {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.project-description p {
    color: #000000;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.project-highlights {
    list-style: none;
    padding: 25px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.project-highlights li {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.project-highlights li strong {
    color: var(--dark-bg);
    /* CHANGED from white to dark */
    margin-right: 5px;
}

/* Projects Mobile Responsiveness */
@media (max-width: 900px) {

    .project-content-wrapper,
    .project-content-wrapper.reverse-layout {
        flex-direction: column;
        gap: 40px;
    }

    .project-info h2 {
        font-size: 2.2rem;
    }

    .scatter-img {
        width: 200px;
        height: 250px;
    }
}

/* =========================================
   16. COST CALCULATOR (CONT.)
   ========================================= */

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    max-width: 1100px;
    margin: 60px auto;
}

.calc-form {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calc-form h2 {
    font-size: 2rem;
    color: var(--dark-bg);
    margin-bottom: 30px;
}

/* Input Group styling */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

/* Inputs and Selects */
.calc-form input,
.calc-form select {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background-color: var(--light-bg);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.calc-form input:focus,
.calc-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.1);
}

/* Result Box styling */
.calc-result {
    background: var(--dark-bg);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
    text-align: center;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0;
}

/* Responsive adjustment for mobile */
@media (max-width: 900px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calc-result {
        position: relative;
        top: 0;
    }
}

/* =========================================
   18. MULTI-STEP ENQUIRY WIZARD
   ========================================= */
.enquiry-page {
    background: #F9FAFB;
    padding-bottom: 100px;
}

.enquiry-hero {
    padding: 120px 0 60px;
    background: var(--dark-bg);
    color: var(--white);
    margin-bottom: 60px;
}

.enquiry-hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.enquiry-hero p {
    font-size: 1.1rem;
    color: #D1D5DB;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 20px;
}

.step-indicator {
    color: #9CA3AF;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.step-indicator.active {
    color: var(--primary-color);
}

/* Wizard Panel & Steps */
.enquiry-panel {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-step {
    display: none;
    animation: slideInUp 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    font-size: 1.8rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.step-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Form Inputs */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.enquiry-panel .input-group {
    margin-bottom: 25px;
}

.enquiry-panel label {
    display: block;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.enquiry-panel input[type="text"],
.enquiry-panel input[type="tel"],
.enquiry-panel input[type="email"],
.enquiry-panel select,
.enquiry-panel textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background-color: var(--light-bg);
    font-family: var(--font-stack);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.enquiry-panel input:focus,
.enquiry-panel select:focus,
.enquiry-panel textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.1);
}

/* Custom File Upload Box */
.file-upload-box {
    margin-top: 10px;
}

.hidden-input {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    background-color: #F9FAFB;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(250, 204, 21, 0.05);
}

.file-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.file-text {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.file-hint {
    font-size: 0.85rem;
    color: #9CA3AF;
}

/* Navigation Buttons */
.btn-group-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Success Screen */
.success-step {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.success-step h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.success-step p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Custom Checkbox Grid for Services */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.checkbox-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-bg);
}

.checkbox-pill:hover {
    border-color: var(--primary-color);
    background: rgba(250, 204, 21, 0.05);
}

/* Style the actual checkbox input inside the pill */
.checkbox-pill input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-color);
    cursor: pointer;
    margin: 0;
}

.mb-2 {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-bg);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .enquiry-panel {
        padding: 30px 20px;
    }

    .btn-group-nav {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .btn-group-nav .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   19. IN-PROGRESS PROJECTS PAGE
   ========================================= */
.in-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.progress-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.progress-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.progress-img {
    position: relative;
    width: 100%;
    height: 240px;
}

.progress-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The Live Site Badge */
.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #EF4444; /* Alert Red */
    color: var(--white);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.status-badge.pulse {
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.progress-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.progress-info h3 {
    font-size: 1.4rem;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

.location {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* The Progress Bar Elements */
.progress-bar-container {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================
   20. COMPLETED PROJECTS PAGE
   ========================================= */

/* The Green Completed Badge */
.status-badge.completed {
    background-color: #10B981; /* Emerald Green */
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
    animation: none; /* Removes the pulse effect from the live sites */
}

/* The Data Footer */
.project-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric .label {
    font-size: 0.85rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.metric .value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark-bg);
}