/* ==========================================================================
   Colour Fusion - Custom CSS
   ========================================================================== */

/* --- Variables & Reset --- */
:root {
    --primary-red: #c72027;
    /* The main dark red used throughout */
    --hover-red: #a41920;
    --dark-bg: #111111;
    /* Used in services, portfolio, testimonials */
    --darker-bg: #0a0a0a;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-gray: #666666;
    --border-color: #dddddd;
    --bg-light: #f9f9f9;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light);
    overflow-x: hidden;
    /* Prevent horizontal scroll from background text */
}

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-red);
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

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

.text-blue {
    color: #4285f4;
    /* Approximate Google blue for footer icons */
}

/* --- Layout Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.bg-dark-texture {
    background-color: var(--dark-bg);
    color: var(--text-light);
    /* In a real project, might add a subtle noise/texture image here */
}

/* Large Background Text (For Services, Our Works, Testimonials) */
.background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    /* Very large */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    /* Subtle watermark effect */
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    line-height: 0.8;
    text-align: center;
}

/* Base Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--hover-red);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(199, 32, 39, 0.3);
}

.btn-outline-red {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-red);
    background-color: var(--primary-red);
    /* Actually filled in the design */
    border-radius: 5px;
    /* Less rounded for pricing */
}

.btn-outline-red:hover {
    background-color: var(--hover-red);
    border-color: var(--hover-red);
}

.btn-dark-red {
    background-color: rgba(139, 0, 0, 0.9);
    /* Darker red overlay button */
    color: #fff;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

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

/* ==========================================================================
   Components
   ========================================================================== */

/* --- Header / Navbar --- */
.header {
    background-color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    /* display: flex;
    flex-direction: column;
    align-items: flex-start; */

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 130px;
    height: 56px;

}

/* height: 100px;
    width: auto;
    display: block; */
/* Use the provided logo asset */


.logo-img {
    height: 130px;
    width: auto;
    display: block;
    top: -30px;
    position: relative;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.fusion-text {
    color: var(--primary-red);
}

.tagline {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-top: -5px;
}

.slogan-micro {
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: 2px;
}

.red-text {
    color: var(--primary-red);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red);
}

/* Underline effect on hover/active */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    /* Let aspect-ratio on the slider drive height; keep a safety minimum */
    min-height: 500px;
    background-color: var(--primary-red);
    /* Fallback */
    /* If there's an image, line background, add it here */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    position: relative;
    margin: 0 auto;
    /* Default to landscape hero for desktop */
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 80px);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
    /* Cover the frame to avoid side gaps while keeping center focus */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-1 {
    background-image: url('images/banner 1.jpg');
}

.hero-slide-2 {
    background-image: url('images/banner 3.jpg');
}

.hero-slide-3 {
    background-image: url('images/banner 4.jpg');
}

@media (max-width: 768px) {

    /* Portrait framing for mobile to keep full artwork visible */
    .hero-slider {
        aspect-ratio: 9 / 16;
        max-height: calc(100vh - 80px);
    }

    .hero-slide-1 {
        background-image: url('images/mob 1.jpg');
    }

    .hero-slide-2 {
        background-image: url('images/mob 2.jpg');
    }

    .hero-slide-3 {
        background-image: url('images/mob 3.jpg');
    }
}

.hero-logo-large {
    text-align: center;
    color: white;
}

.hero-logo-large img {
    max-width: 300px;
    /* Adjust */
    margin: 0 auto;
}

/* If no image, recreate logo with text for hero */
.hero-logo-large::before {
    content: 'CF';
    /* Rough representation of the logo mark */
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.hero-logo-large::after {
    content: 'Colour Fusion Designs into life';
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-top: 20px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-pagination .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-pagination .dot.active {
    background-color: white;
    transform: scale(1.2);
}

.hero-quote-btn-container {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    z-index: 1000;
}

.btn-quote-floating {
    background-color: #d9534f;
    /* Slightly lighter red for contrast */
    padding: 15px 35px;
    border-radius: 16px;
    /* Square edges */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-quote-floating:hover {
    background-color: var(--hover-red);
}

/* --- About Section --- */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #444;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* --- Testimonials Section --- */
.testimonials {
    padding-top: 100px;
    padding-bottom: 75px;
    background-color: transparent;
}

.testimonials-inner {
    background: linear-gradient(180deg, #181818 0%, #aa2323 100%);
    position: relative;
    display: flex;
    align-items: center;
    /* Center horizontally/vertically aligned content */
    padding: 0 60px;
    /* Sensible padding */
    height: 550px;
    /* Big enough box to comfortably fit cards entirely */
    margin-top: 50px;
    margin-bottom: 50px;
}

.testimonials-bg-text {
    position: absolute;
    top: 0px;
    left: -20px;
    font-size: 30rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    overflow: hidden;
    width: 200%;
}

.testimonials-left {
    flex: 0 0 250px;
    position: static;
    /* allow absolute children to position to .testimonials-inner */
    z-index: 2;
    color: white;
    padding: 0;
}

.quote-icon-main {
    width: 225px;
    height: 225px;
    background-color: #ff5252;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7.2rem;
    position: absolute;
    top: -112.5px;
    /* Overlap EXACTLY half on TOP edge */
    left: 40px;
    /* Align near the text */
}

/* --- Services Section --- */
.services {
    padding-top: 100px;
    background: linear-gradient(180deg, #181818 0%, #aa2323 100%);
    position: relative;
    overflow: visible;
}

.services .background-text {
    font-size: 18rem;
    line-height: 0.78;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    top: 48%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
    /* Above background text */
}

.service-card {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-text-overlay {
    position: absolute;
    font-size: 1.2rem;
    font-weight: 800;
    bottom: -10px;
    background: #fff;
    padding: 0 5px;
}

.service-title {
    font-size: 1.1rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    min-height: 40px;
    /* Align titles */
}

.service-subtitle {
    font-size: 0.7rem;
    color: var(--text-gray);
    font-weight: normal;
}

.service-list {
    text-align: left;
    font-size: 0.9rem;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #555;
}

.service-list li::before {
    content: '•';
    color: var(--primary-red);
    position: absolute;
    left: 5px;
    font-weight: bold;
}

/* --- Why Choose Us Section --- */
.why-choose-us {
    background-color: var(--text-light);
    /* White background per image */
    padding: 100px 0;
}

.radial-layout {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 510px;
    /* Give enough height for the layout */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Keep original geometry, move whole composition left as one piece */
    padding-left: 50px;
    transform: translateX(5%) scale(0.85);
    transform-origin: left center;
}

/* Base large light pink background circle */
.radial-layout::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background-color: #f7d5d5;
    /* Light pink/red background */
    z-index: 0;
}

.center-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    /* Gradient from almost black to deep red */
    background: linear-gradient(135deg, #221515 0%, #aa2525 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(170, 37, 37, 0.4);
}

.center-circle h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
}

/* The text next to the main circle but inside the light pink area */
.center-circle::after {
    content: 'Creative ideas, strategic\A marketing, and consistent\A execution to drive real results\A for your brand.';
    white-space: pre-wrap;
    position: absolute;
    top: 50%;
    left: 100%;
    /* Place it right of the main circle */
    transform: translate(30px, -50%);
    /* Move slightly right */
    width: 250px;
    /* Prevent text from spreading too wide */
    color: black;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
}

.features-list {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    /* Let clicks pass to center */
    z-index: 3;
}

.feature-item {
    position: absolute;
    display: flex;
    align-items: center;
    pointer-events: auto;
    /* Center the icon on the exact point on the circumference */
    transform: translate(-52px, -50%);
}

.feature-icon {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background-color: #c02128;
    /* The specific red used for icons */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.feature-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    color: black;
    width: 205px;
    /* Force text wrapping if needed */
    text-align: center;
    flex-shrink: 0;
}

.feature-line {
    width: 115px;
    height: 2px;
    background-color: #c02128;
    /* Line color */
    margin: 0 16px;
    /* Space around the line */
    flex-shrink: 0;
}

/* Precise positioning based on mathematical circle points */

/* 1. Creative & Modern Designs (Top) */
.feature-item:nth-child(1) {
    top: 8%;
    left: 75.5%;
}

/* 2. Result-Driven Approach (Middle Top) */
.feature-item:nth-child(2) {
    top: 36%;
    left: 98%;
}

/* 3. Affordable Pricing (Middle Bottom) */
.feature-item:nth-child(3) {
    top: 64%;
    left: 98%;
}

/* 4. Personalized Support (Bottom) */
.feature-item:nth-child(4) {
    top: 92%;
    left: 75.5%;
}

@media (max-width: 768px) {

    /* Mobile: replace radial layout with a single image */
    .why-choose-us {
        background: url('images/whychooseus.png') center center / contain no-repeat;
        background-color: #ffffff;
        padding: 0;
        width: 100%;
        max-width: 100vw;
        /* Match the source image ratio (1366x859 ≈ 1.59) to avoid huge vertical gaps */
        aspect-ratio: 1366 / 859;
        min-height: auto;
        margin-bottom: 0;
    }

    .why-choose-us.section {
        padding: 0;
    }

    .why-choose-us .container {
        display: none;
    }
}

/* --- Portfolio / Our Works Section --- */
.portfolio {
    padding: 0;
    overflow: hidden;
}

.portfolio-split {
    display: flex;
    flex-direction: column;
}

.portfolio-half {
    width: 100%;
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.portfolio-red {
    background-color: var(--primary-red);
}

.portfolio-pink {
    background-color: #f69595;
    /* Approximated light pink/red from image */
}

/* Hugh background text */
.portfolio-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 900;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.05);
    /* very faint white/transparent */
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    text-align: center;
}

.portfolio-red .portfolio-bg-text {
    color: rgba(255, 255, 255, 0.08);
    /* slightly more visible on dark red */
}

.portfolio-pink .portfolio-bg-text {
    color: rgba(255, 255, 255, 0.2);
    /* faint pink/white on light red */
}

.portfolio-container-half {
    position: relative;
    z-index: 2;
    padding-left: 100px;
    /* Space for the side text */
}

.portfolio-side-text {
    position: absolute;
    left: 0;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Position "OUR" at the bottom of the red section */
.portfolio-red .portfolio-side-text {
    bottom: -60px;
    /* Align to the middle divider between red and pink halves */
}

/* Position "WORKS" at the top of the pink section */
.portfolio-pink .portfolio-side-text {
    top: -60px;
    /* Align to the same middle divider line */
}

.portfolio-item {
    width: 100%;
    max-width: 900px;
    /* limit card width inside container */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-img-wrapper {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img-wrapper {
    transform: scale(1.02);
}

/* Background patterns based on design */
.portfolio-red .portfolio-img-wrapper {
    background-color: #f4c2c2;
    /* Fallback if no img */
}

.portfolio-pink .portfolio-img-wrapper {
    background-color: #e6e6e6;
    /* Add a placeholder image pattern later or just leave */
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    /* This vertically centers children in the flex container */
    justify-content: center;
    /* Center horizontally now, per the reference */
}

/* Force correct shape per reference image (pill-shape, dead center) */
.portfolio-overlay .btn-dark-red {
    border-radius: 30px;
    /* Fully rounded pill */
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.9) 0%, rgba(139, 0, 0, 0.9) 100%);
    /* Match the darker shaded look */
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    align-self: center;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Slight highlight edge evident in reference */
}

/* --- Portfolio Modal --- */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
}

.portfolio-modal.active {
    display: block;
}

.portfolio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.72);
    backdrop-filter: blur(6px);
}

.portfolio-modal-dialog {
    position: relative;
    width: min(980px, calc(100% - 32px));
    margin: 40px auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, #191414 0%, #8f1e22 100%);
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.portfolio-modal-header {
    position: relative;
    padding: 24px 28px 16px;
}

.portfolio-modal-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

.portfolio-modal-title {
    margin: 4px 0 0;
    font-size: 1.6rem;
    text-transform: uppercase;
    font-weight: 800;
}

.portfolio-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(90deg);
}

.portfolio-modal-body {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 14px;
    padding: 0 16px 10px;
}

.portfolio-slide-stage {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    overflow: hidden;
    padding: 10px;
}

.portfolio-slide-stage img {
    width: 100%;
    max-height: 70vh;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background-color: #0f0f0f;
    border-radius: 10px;
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: opacity 0.28s ease, transform 0.38s ease;
}

.portfolio-slide-meta {
    margin: 12px 6px 4px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-website-link {
    display: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 18px rgba(199, 32, 39, 0.35);
}

.portfolio-website-link:hover {
    transform: translateY(-2px);
}

.portfolio-slide-meta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.portfolio-slide-stage.changing img {
    opacity: 0;
    transform: translateX(24px) scale(0.985);
}

.portfolio-slide-stage.changing .portfolio-slide-meta {
    opacity: 0;
    transform: translateY(6px);
}

.portfolio-slide-nav {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    justify-self: center;
    transition: var(--transition);
}

.portfolio-slide-nav:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.portfolio-slide-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 20px 24px;
}

.portfolio-slide-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: 0;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-slide-dots .dot.active {
    width: 28px;
    background: #ffffff;
}

body.modal-open {
    overflow: hidden;
}

.testimonials-title {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
    flex: 1;
    margin-top: 0;
    margin-bottom: 0;
    /* Fully inside box */
}

.testimonial-card {
    background-color: var(--text-light);
    color: var(--text-dark);
    padding: 50px 25px 30px;
    border-radius: 0;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote-icon-small {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #f64b4b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.client-img {
    font-size: 4.5rem;
    color: #cfcfcf;
    margin-bottom: 10px;
    line-height: 1;
}

.stars {
    color: #e63946;
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: normal;
    /* Normal font as shown in Target Image */
    font-size: 0.85rem;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

.client-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: #111;
}

/* --- Packages Section --- */
.packages {
    padding-top: 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    row-gap: 50px;
}

.package-card {
    background: linear-gradient(180deg, #2b2323 0%, #a42323 100%);
    border-radius: 20px 20px 0 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: none;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 288px;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.package-header {
    background: transparent;
    color: white;
    padding: 30px 20px 10px;
    border: none;
}

.starting-from {
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.8;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.price {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0;
    line-height: 1;
}

.package-body {
    background: transparent;
    color: white;
    padding: 10px 20px 60px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-title {
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
}

.package-subtitle {
    font-size: 0.7rem;
    font-weight: normal;
}

.package-footer {
    background: transparent;
    padding: 0;
    margin-top: auto;
}

/* Red solid button for the packages, not outline */
.package-footer .btn-solid-red {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    display: inline-block;
    width: 85%;
    max-width: 250px;
    border-radius: 12px;
    background-color: #c02128;
    color: white;
    border: 6px solid #ffffff;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.package-footer .btn-solid-red:hover {
    background-color: #a41c22;
    transform: translate(-50%, 45%);
}


/* --- Contact Forms & Footer Wrapper --- */
/* The design shows the quick inquiry form overlapping a white background, 
   while the footer has a light grey background */
.contact-footer-wrapper {
    background-color: #f5f5f5;
    /* Light grey base */
    position: relative;
}

/* --- Contact Section --- */
.contact {
    padding: 80px 0 40px;
    /* Reduced bottom padding */
    background: transparent;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    padding-right: 20px;
}

.contact-title {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-desc {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-label {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-item {
    font-weight: 500;
    margin-bottom: 5px;
}

.serving-text {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 30px;
}

.contact-actions {
    display: flex;
        gap: 15px;
}

.contact-actions .btn {
    border-radius: 30px;
    /* Rounded for these */
}

/* Quick Inquiry Form */
.contact-form-wrapper {
    flex: 1;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid #f2d7d8;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    position: relative;
    top: -40px;
    /* Overlap slightly if needed, or just float */
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(199, 32, 39, 0.1) 0%, rgba(199, 32, 39, 0) 55%);
    pointer-events: none;
}

.form-heading-wrap {
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.form-kicker {
    margin: 0 0 4px;
    color: #9d1a1f;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.form-title {
    color: var(--primary-red);
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.form-subtitle {
    margin: 0;
    color: #5d5d5d;
    font-size: 0.94rem;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.74rem;
    color: #7d2125;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #e5c6c8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fff;
    color: #272727;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(199, 32, 39, 0.12);
}

.native-select-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-select {
    position: relative;
}

.custom-select-trigger {
    width: 100%;
    border: 1px solid #e5c6c8;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
    color: #2b2b2b;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;
    padding: 12px 46px 12px 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-submit-btn {
    width: 100%;
    margin-top: 6px;
    background: linear-gradient(90deg, #b71920 0%, #d92f36 100%);
    color: #fff;
    border-radius: 12px;
    border: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 14px 20px;
    box-shadow: 0 10px 20px rgba(199, 32, 39, 0.28);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(199, 32, 39, 0.35);
}

.custom-select-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 100%;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(180deg, rgba(199, 32, 39, 0.2), rgba(199, 32, 39, 0.06));
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.2s ease;
}

.custom-select.open .custom-select-trigger {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(199, 32, 39, 0.14);
}

.custom-select.open .custom-select-trigger::after {
    transform: translateY(-35%) rotate(-135deg);
}

.custom-select-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(199, 32, 39, 0.2);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
    z-index: 30;
    display: none;
}

.custom-select.open .custom-select-menu {
    display: block;
}

.custom-select-option {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #2f2f2f;
    cursor: pointer;
    transition: var(--transition);
}

.custom-select-option:hover {
    background-color: #fdecee;
    color: #7d1116;
}

.custom-select-option.selected {
    background: linear-gradient(90deg, rgba(199, 32, 39, 0.16), rgba(199, 32, 39, 0.06));
    color: #8b1319;
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    padding: 34px 0 24px;
    border-top: 1px solid #ddd;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
    row-gap: 14px;
}

/* .footer-logo {
    justify-self: start;
} */
 .footer-logo {
  justify-self: start;
  width: 130px;
  position: relative;
}

.footer-logo img {
    height: 130px;
    margin-bottom: 6px;
}

.slogan-micro-footer {
    font-size: 0.68rem;
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.footer-copyright {
    justify-self: center;
    text-align: center;
    font-size: 0.88rem;
    color: #666;
}

.footer-social-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-self: end;
    gap: 12px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 0.88rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {

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

    .background-text {
        font-size: 10rem;
    }

    .radial-layout {
        min-height: 476px;
        transform: translateX(5%) scale(0.85);
        transform-origin: left center;
    }

    .feature-item:nth-child(1) {
        top: 8%;
        left: 74%;
    }

    .feature-item:nth-child(2) {
        top: 36%;
        left: 95%;
    }

    .feature-item:nth-child(3) {
        top: 64%;
        left: 95%;
    }

    .feature-item:nth-child(4) {
        top: 92%;
        left: 74%;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    /* Guard against accidental horizontal overflow on mobile */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .section,
    .container,
    .hero,
    .hero-slider,
    .portfolio,
    .testimonials-inner {
        max-width: 100vw;
    }

    .testimonials-inner {
        flex-direction: column;
        padding: 0 20px;
        margin-top: 100px;
        height: auto;
        padding-bottom: 60px;
    }

    .testimonials-left {
        flex: none;
        padding-top: 80px;
        padding-bottom: 20px;
        text-align: left;
    }

    .quote-icon-main {
        width: 120px;
        height: 120px;
        font-size: 4rem;
        left: 20px;
        top: -60px;
        transform: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        transform: none;
        margin-bottom: 0px;
    }

    .nav {
        display: none;
        /* Hide default nav */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form-wrapper {
        top: 0;
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
    }

    .footer-logo,
    .footer-copyright,
    .footer-social-contact {
        justify-self: center;
    }

    .footer-social-contact,
    .footer-contact-links {
        align-items: center;
    }

    .center-circle {
        width: 250px;
        height: 250px;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
    }

    .center-circle::after {
        position: static;
        transform: none;
        width: auto;
        margin-top: 16px;
        text-align: center;
        display: block;
        padding: 0 12px;
    }

    .feature-item {
        position: relative;
        top: auto !important;
        left: auto !important;
        flex-direction: row !important;
        margin-bottom: 20px;
        justify-content: flex-start;
    }

    .features-list {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
        width: 100%;
        height: auto;
        left: auto;
        top: auto;
        transform: none;
        pointer-events: auto;
    }

    .radial-layout {
        flex-direction: column;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: none;
        padding-left: 0;
        margin-bottom: 0;
    }

    .radial-layout::before {
        left: 50%;
        top: 34%;
        transform: translate(-50%, -50%);
        width: 380px;
        height: 380px;
    }

    .feature-icon {
        width: 82px;
        height: 82px;
        font-size: 2rem;
    }

    .feature-line {
        display: none;
        /* hide lines on mobile */
    }

    .portfolio-modal-dialog {
        margin: 20px auto;
        width: calc(100% - 20px);
    }

    .portfolio-modal-title {
        font-size: 1.2rem;
        padding-right: 40px;
    }

    .portfolio-modal-body {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        padding: 0 8px 10px;
        gap: 8px;
    }

    .portfolio-slide-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {

    .services-grid,
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .background-text {
        font-size: 5rem;
    }
}