/*
   LATEST UPDATED STYLE.CSS
   Focus: Full-screen width, landscape aspect ratio, 100% responsive.
*/

:root {
    --bg-color: #ffffff;
    --footer-bg: #f7f7f7;
    --text-main: #000000;
    --text-muted: #555555;
    --accent: #000000;
    --radius: 12px;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

/* 1. FULL SCREEN CONTAINER */
.container {
    width: 95%;            /* Spans almost full screen */
    max-width: 1800px;     /* Limits width only on ultra-wide monitors */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
/* --- UPDATED BRANDING HEADER --- */

header {
    padding: 20px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between; /* Pushes Logo to left and Button to right */
    align-items: center;
}

/* Specific Pill-Shaped Branding Button */
.contact-pill-btn {
    background-color: #E61C51; /* Brand pink-red color from logo */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 30px;
    border-radius: 100px; /* Perfect pill shape */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
}

.contact-pill-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px); /* Subtle lift on hover */
    box-shadow: 0 4px 15px rgba(230, 28, 81, 0.2);
}

.contact-pill-btn i {
    width: 18px;
    height: 18px;
}

/* Responsive Scaling for Mobile */
@media (max-width: 600px) {
    header {
        padding: 10px 0;
    }
    .contact-pill-btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}


.logo {
    display: flex;
    align-items: center;
    text-decoration: none; /* Removes underline if it's a link */
}

.logo img {
    height: 94px;      /* Adjust this value until it looks perfect in your header */
    width: auto;       /* Maintains the logo's aspect ratio */
    display: block;
}

/* Adjust logo size for mobile if needed */
@media (max-width: 600px) {
    .logo img {
        height: 26px;
    }
}

/* MOBILE FIX */
@media (max-width: 768px) {
    header {
        padding: 10px 0; /* Give the header a bit more breathing room */
    }

    .logo img {
        height: 62px;    /* INCREASED SIZE: Makes it much more readable on phones */
    }

    .contact-pill-btn {
        padding: 6px 18px; /* Keep button size balanced with the bigger logo */
        font-size: 14px;
    }
}


/* Hero Section */
.hero {
    text-align: center;
    padding: 30px 0 25px 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* 2. PROJECT GRID - Two side-by-side columns */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* Minimal gap for full-screen feel */
    margin-bottom: 100px;
}

/* 3. PROJECT CARDS - Fixed Height for Landscape Effect */
.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 580px; /* FIXED HEIGHT to ensure Landscape ratio on wide screens */
    cursor: pointer;
    background-color: #f0f0f0;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps image looking good while filling the wide width */
    display: block;
    transition: transform 0.6s ease;
}

/* This class will be added by JS once the image is ready */
.project-card img.loaded {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.03);
}

/* Overlays (Title, Arrow, Tags) */
.card-overlay-top {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: white;
    z-index: 2;
}

.card-overlay-top h3 {
    font-size: 1.6rem;
    font-weight: 600;
}

.arrow-btn {
    background: white;
    color: black;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-overlay-bottom {
    position: absolute;
    bottom: 25px;
    left: 25px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.tag {
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

/* CTA Section */
.cta-section {
    background-color: var(--footer-bg);
    padding: 100px 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-content h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 450px;
}

.btn-quote {
    background: black;
    color: white;
    text-decoration: none;
    padding: 16px 35px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
}

.cta-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.link-group a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Footer Bottom */
footer {
    background: var(--footer-bg);
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#backToTop {
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

/* --- RESPONSIVENESS --- */

@media (max-width: 1100px) {
    .project-card {
        height: 450px; /* Slightly shorter for tablets */
    }
}

@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr; /* Mobile View: 1 Column */
    }

    .project-card {
        height: 400px; /* Maintaining Landscape ratio on small screens */
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 3rem;
    }

    .project-card {
        height: 300px; /* Still landscape on phones */
    }
}

/* --- PORTFOLIO CATEGORY TOGGLE --- */

/* --- UPDATED TOGGLE SECTION (CENTERED) --- */

.portfolio-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    width: 100%; /* Forces the wrapper to stay within the screen width */
    padding: 0 20px;
    box-sizing: border-box;
}

.toggle-pill {
    background-color: #000;
    padding: 6px;
    border-radius: 100px;
    display: flex;
    align-items: center;

    /* THE INTERNAL SCROLL FIX: */
    max-width: 100%;           /* Limits the pill to the screen width */
    overflow-x: auto;          /* Allows scrolling inside the black area */
    white-space: nowrap;       /* Keeps all buttons in a single line */

    /* Hide scrollbar for a premium look */
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iPhone */
}

/* Hide scrollbar for Chrome/Safari/Brave */
.toggle-pill::-webkit-scrollbar {
    display: none;
}

.toggle-pill a {
    text-decoration: none;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 100px;
    text-transform: uppercase;
    display: inline-block;

    /* CRITICAL: Prevents the text from squashing */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.toggle-pill a.active {
    background-color: #fff;
    color: #000;
}

/* MOBILE VIEW TWEAKS */
@media (max-width: 768px) {
    .portfolio-controls {
        /* On small screens, align to left so users see it's scrollable */
        justify-content: flex-start;
    }

    .toggle-pill {
        border-radius: 40px; /* Slightly less round on mobile if scrolling */
    }

    .toggle-pill a {
        padding: 10px 22px; /* Slightly smaller for touch targets */
    }
}

/* Ensure the grid fits well under the toggle */
.project-grid {
    margin-top: 10px;
}

/* --- UPDATED FOOTER SOCIAL ICONS --- */

.social-icons-footer {
    display: flex;
    gap: 25px; /* Spacing between icons */
    align-items: center;
    margin-bottom: 20px; /* Space above mobile break */
}

.social-icons-footer a {
    color: #8E9196; /* Grayish color from your screenshot */
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons-footer a:hover {
    color: #000000; /* Darker on hover */
    transform: translateY(-2px);
}

/* Adjust icon size to match your screenshot */
.social-icons-footer i {
    width: 22px;
    height: 22px;
    stroke-width: 1.5px; /* Keeps the lines thin and elegant */
}

/* Ensure mobile layout stays clean */
@media (max-width: 900px) {
    .cta-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .social-icons-footer {
        justify-content: center; /* Center icons on mobile */
        margin-bottom: 40px;
    }

    .cta-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


/* --- CONTACT PAGE STYLES --- */

.contact-page {
    padding: 100px 0;
    min-height: 70vh;
}

.contact-subtitle {
    font-size: 1.4rem;     /* Large enough to be readable but smaller than H1 */
    color: #555555;        /* Muted gray color */
    max-width: 480px;      /* Keeps the text in a nice block */
    margin-top: 30px;      /* Space below the 'SAY HELLO' title */
    line-height: 1.6;      /* Good breathing room between lines */
    font-weight: 400;      /* Standard weight to contrast with the bold H1 */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Matches the screenshot's spacing */
    gap: 100px;
    align-items: start;
}

.contact-title h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -2px;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc; /* Matches the thin light border in screenshot */
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #000;
}

/* Black Pill Submit Button */
.submit-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px; /* Pill shape */
    cursor: pointer;
    width: fit-content;
    transition: transform 0.2s ease, opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Responsive Fix for Mobile */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-title {
        text-align: center;
    }

    .submit-btn {
        width: 100%; /* Full width button on mobile */
    }
}


/* --- PAGINATION / LOAD MORE STYLING --- */

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 100px;
    width: 100%;
}

.load-more-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 16px 45px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    background-color: #333;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.load-more-btn i {
    width: 18px;
    height: 18px;
}

.load-more-pill:hover {
    background-color: #333 !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}


/* --- PRICING & LOGO PACKAGES STYLES --- */

/* --- LIVE CURRENCY TOGGLE STYLING --- */
.pricing-toggle {
    margin: 90px 0;

    display: flex;
    justify-content: center;
}

.currency-switch {
    position: relative;
    display: flex;
    background: #000;
    border-radius: 100px;
    padding: 4px;
    width: 300px;
    border: 1px solid #000;
}

/* Hide the actual radio dots */
.currency-switch input {
    display: none;
}

.currency-switch label {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.switch-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Move the white pill to the right when USD is selected */
#usd-btn:checked ~ .switch-bg {
    left: calc(50%);
}

/* Turn text black when it's behind the white pill */
#lkr-btn:checked ~ label[for="lkr-btn"],
#usd-btn:checked ~ label[for="usd-btn"] {
    color: #000;
}

/* Pricing Grid Layout */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 80px;
}

/* Ensure the amount text has a transition for the fade effect */
.amount {
    transition: opacity 0.2s ease-in-out;
}

.price-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.price-card.featured {
    border: 1px solid #e2e8f0 !important;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.price-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #E61C51 !important;
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.card-header h3 { font-size: 24px; margin-bottom: 10px; }
.card-header p { font-size: 14px; color: #666; margin-bottom: 30px; }

.card-price { margin-bottom: 40px; }
.card-price .currency { font-size: 18px; font-weight: 600; vertical-align: top; }
.card-price .amount { font-size: 48px; font-weight: 800; letter-spacing: -1px; }

.card-features { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.card-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-size: 15px; color: #333; }
.card-features li i { width: 18px; color: #10b981; }

.btn-outline {
    border: 2px solid #E61C51 !important; /* Brand Color Border */
    color: #E61C51 !important;           /* Brand Color Text */
    text-align: center;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: #000 !important;   /* Hover: Black Background */
    border-color: #000 !important;       /* Hover: Black Border */
    color: #fff !important;              /* Hover: White Text */
    transform: translateY(-2px);
}


.btn-solid {
    background-color: #E61C51 !important;
    color: #fff !important;
    text-align: center;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.btn-solid:hover {
    background-color: #000 !important;    /* Hover: Black Background */
    border-color: #000 !important;        /* Hover: Black Border */
    transform: translateY(-2px);
}

/* Table Styling */
.table-section { padding-bottom: 150px; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 40px; text-align: center; }

.table-wrapper { overflow-x: auto; background: #fff; border: 1px solid #eee; border-radius: 16px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 25px; border-bottom: 1px solid #eee; }
th { background: #f9f9f9; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.icon-active { color: #E61C51; width: 20px; }

/* Responsive */
/* --- FIXED PRICING GRID FOR MOBILE (ONE AT A TIME) --- */

@media (max-width: 1024px) {
    /* 1. Force the grid to a single vertical column */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 40px; /* Space between the stacked cards */
        padding: 40px 10px; /* Side padding so cards don't touch screen edges */
    }

    /* 2. Reset the "Featured" scale for mobile */
    /* On mobile, scaling can cause cards to overlap or cut off.
       We remove the scale(1.05) and use a border/shadow instead. */
    .price-card.featured {
        transform: scale(1) !important;
        margin: 0;
        border: 2px solid #E61C51 !important; /* Keep it distinct with brand color */
    }

    /* 3. Ensure cards take up full available width */
    .price-card {
        width: 100%;
        max-width: 450px; /* Optional: keeps cards from getting too wide on tablets */
        margin: 0 auto;   /* Centers the card */
        padding: 40px 25px; /* Adjust internal padding for smaller screens */
    }

    /* 4. Adjust typography for mobile readability */
    .card-price .amount {
        font-size: 42px; /* Slightly smaller than desktop */
    }

    .badge {
        top: -12px; /* Re-position the 'Most Popular' badge */
    }

    /* 5. Center the currency toggle on mobile */
    .pricing-toggle {
        margin-bottom: 40px;
    }
}



/* --- GET A QUOTE PAGE STYLES --- */

.quote-page {
    padding: 100px 0;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.quote-title-area h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.quote-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.quote-info-pills {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #E61C51; /* Using brand red */
    font-size: 14px;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.quote-form-container {
    background: #fff;
    padding: 20px;
}

/* Styling Dropdowns (Select tags) */
.quote-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fdfdfd;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    appearance: none; /* Removes default browser arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.submit-btn-large {
    background: #000;
    color: #fff;
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 100px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.submit-btn-large:hover {
    background: #333;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .quote-title-area {
        text-align: center;
        margin-bottom: 20px;
    }
    .quote-subtitle {
        margin: 0 auto 10px auto;
    }
    .quote-info-pills {
        align-items: center;
    }
}


/* --- FILE UPLOAD / ATTACHMENT STYLING --- */

.upload-container {
    width: 100%;
    border: 2px dashed #cbd5e0; /* Gray dashed border */
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.upload-container:hover, .upload-container.dragover {
    border-color: #E61C51; /* Turns brand red on hover/drag */
    background-color: #fff1f2;
}

/* Update icon color for documents */
.upload-icon {
    width: 48px;
    height: 48px;
    color: #4a5568; /* Slate gray */
    margin-bottom: 10px;
    stroke-width: 1.5px;
}

/* Red border if file is rejected (optional logic) */
.upload-container.error {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.upload-content p {
    font-size: 15px;
    color: #2d3748;
}

.upload-content strong {
    color: #000;
    text-decoration: underline;
}

/* Success state when files are added */
.upload-container.has-files {
    border-style: solid;
    border-color: #10b981; /* Green border when files are ready */
}

/* --- REMOVE ATTACHMENT LINK --- */

.remove-link {
    display: inline-block;
    margin-top: 5px;
    color: #e53e3e; /* Red color */
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s;
}

.remove-link:hover {
    opacity: 0.7;
}

/* Prevent the dropzone click event from triggering when clicking Remove */
.remove-link {
    position: relative;
    z-index: 10;
}


/* --- PHOTO UPLOAD GRID STYLING (5 ITEMS) --- */

.photo-upload-grid {
    display: flex;
    flex-wrap: wrap; /* Allows slots to wrap to a new line on small screens */
    gap: 12px;
    margin-top: 10px;
}

.photo-slot {
    width: 100px; /* Slightly smaller to fit 5 items better */
    height: 100px;
    background-color: #f1f1f1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative; /* Needed for positioning the X button */
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

/* Yellow focus for the first slot */
.photo-slot:first-child {
    border-color: #fcc419;
}

/* Hover effect */
.photo-slot:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.placeholder-icon {
    width: 28px;
    height: 28px;
    color: #adb5bd;
}

.preview-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-slot.has-image .placeholder-icon { display: none; }
.photo-slot.has-image .preview-img { display: block; }

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(230, 28, 81, 0.9); /* Brand Red */
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
    display: none; /* Hidden by default */
    z-index: 10;
    font-weight: bold;
    text-align: center;
}

/* Show remove button only when slot has an image */
.photo-slot.has-image .remove-photo {
    display: block;
}

.photo-slot.has-image:hover .remove-photo {
    transform: scale(1.1);
}



/* --- IMAGE PROTECTION STYLES --- */

/* Prevent the browser from showing the blue selection box or the save menu on long-press (mobile) */
.project-card img {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    pointer-events: none; /* This makes the image invisible to the mouse clicks */
}

/* We create an invisible "shield" over the card so people can't click the image itself */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits above the image but below the buttons/tags */
}

/* Ensure buttons and tags are still clickable above the shield */
.card-overlay-top,
.card-overlay-bottom,
.load-more-pill {
    z-index: 5 !important;
}


/* --- UNIVERSAL SQUARE GRID (UI/UX & SOCIAL MEDIA) --- */

.square-grid .project-card {
    height: auto;           /* Overrides the fixed landscape height */
    aspect-ratio: 1 / 1;    /* Forces a perfect 1080x1080 square ratio */
}

/* 3-Column Layout for Squares (Desktop) */
/* This looks better for square content than the large 2-column landscape style */
@media (min-width: 1200px) {
    .square-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }
}

.square-grid .project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures 1080x1080 images fill the box perfectly */
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .square-grid {
        grid-template-columns: 1fr !important; /* 1 column on mobile */
    }

    .square-grid .project-card {
        aspect-ratio: 1 / 1;
    }
}



/* --- SQUARE 3D FAN STACK --- */

.fan-stack-section {
    padding: 2px 0 20px;
    background: #fff;
    display: flex;
    justify-content: center;
    perspective: 1400px;
    overflow: visible;
}

@media (max-width: 768px) {
    .fan-stack-section {
        padding: 1px 0 30px 0;
    }
}

.fan-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    height: 420px;
    transform-style: preserve-3d;
    position: relative;
    isolation: isolate;
}

.fan-card {
    position: relative;
    width: 260px;
    aspect-ratio: 1 / 1;
    margin-left: -120px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
    transition:
            transform var(--speed, 0.45s) cubic-bezier(0.2, 0.8, 0.2, 1),
            box-shadow var(--speed, 0.45s) cubic-bezier(0.2, 0.8, 0.2, 1),
            z-index 0s linear;
    will-change: transform;
}

.fan-card:first-child {
    margin-left: 0;
}

.fan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* base stack */
.fan-card:nth-child(1) { transform: rotate(-8deg) translateY(12px); z-index: 1; }
.fan-card:nth-child(2) { transform: rotate(-6deg) translateY(-8px); z-index: 2; }
.fan-card:nth-child(3) { transform: rotate(-4deg) translateY(10px); z-index: 3; }
.fan-card:nth-child(4) { transform: rotate(-2deg) translateY(-6px); z-index: 4; }
.fan-card:nth-child(5) { transform: rotate(2deg) translateY(10px); z-index: 5; }
.fan-card:nth-child(6) { transform: rotate(4deg) translateY(-8px); z-index: 6; }
.fan-card:nth-child(7) { transform: rotate(6deg) translateY(8px); z-index: 7; }
.fan-card:nth-child(8) { transform: rotate(8deg) translateY(-4px); z-index: 8; }

/* hovered card */
.fan-card.active {
    transform: translateY(-30px) scale(1.06) rotate(0deg) !important;
    z-index: 999;
    box-shadow: 0 22px 50px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
    .fan-container {
        height: 160px;
    }

    .fan-card {
        width: 84px;
        margin-left: -35px;
        border-radius: 12px;
    }

    .fan-card.active {
        transform: translateY(-14px) scale(1.04) rotate(0deg) !important;
    }
}


/* --- FORM FEEDBACK STYLES --- */
.form-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: none; /* Hidden by default */
    line-height: 1.4;
}

/* Error / Warning Style */
.form-feedback.error {
    display: block;
    background-color: #fff5f5;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

/* Success Style */
.form-feedback.success {
    display: block;
    background-color: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

/* Style for both the hover state AND the active page link */
.cta-links a:hover,
.cta-links a.active {
    color: #e53e3e;
}

.cta-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}


/* --- CSS FIX FOR LAYERING --- */
.project-card img, .fan-card img {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1; /* Below shimmer while loading */
    position: relative;
}

/* Image becomes visible and jumps ABOVE the shimmer layer */
.project-card img.loaded, .fan-card img.loaded {
    opacity: 1;
    z-index: 6;
}

/* The Shimmer layer */
.project-card::before, .fan-card::before {
    z-index: 5;
}

/* Hide shimmer completely when loaded */
.project-card.img-loaded::before, .fan-card.img-loaded::before {
    display: none !important;
}

/* The Protection Shield layer (Always on top to block right click) */
.project-card::after {
    z-index: 10;
}

/* Buttons and Tags (Always clickable) */
.card-overlay-top, .card-overlay-bottom {
    z-index: 20 !important;
}