/* --- LOCAL CUSTOM FONTS ONLY --- */
@font-face {
    font-family: 'Derivia';
    src: url('../fonts/Derivia_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* NOTE: I removed Figtree from here because we are using 
   the Google CDN link in the HTML for better performance. 
*/

/* --- GLOBAL STYLES --- */
body {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
}

html {
    scroll-behavior: smooth;
}

/* Optional: Offset for Fixed Header */
/* If you have a sticky top nav, use this so the header doesn't cover the section title */
section {
    scroll-margin-top: 90px;
}

:root {
    --pink: #dac1bf;
    --black: #000;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', sans-serif;
    background: #f8f8f8;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 10px 5%;
    background: #ffffff;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
}

/* LOGO - Exactly like your image: two lines */
.logo {
    font-family: 'Derivia', serif;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -1.2px;
}

.logo .line1 {
    display: block;
    font-weight: 400;
    color: black;
}

.logo .line2 {
    display: block;
    font-weight: 300;
    letter-spacing: -0.5px;
    color: black;
}

/* Desktop Nav */
nav ul {
    list-style: none;
    display: flex;
    gap: 48px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.6px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -7px;
    left: 0;
    background: var(--pink);
    transition: width 0.4s ease;
}

nav a:hover {
    color: var(--pink);
}

nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Button - Minimal 3 lines */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-btn span {
    width: 26px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Hamburger → X Animation */
.menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu - Slide from right */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 28px;
    /* Clean & elegant size */
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation */
.mobile-menu a:nth-child(1) {
    transition-delay: 0.15s;
}

.mobile-menu a:nth-child(2) {
    transition-delay: 0.25s;
}

.mobile-menu a:nth-child(3) {
    transition-delay: 0.35s;
}

.mobile-menu a:nth-child(4) {
    transition-delay: 0.45s;
}

.mobile-menu a:hover {
    color: var(--pink);
}

/* Responsive */
@media (max-width: 768px) {
    .line1 {
        display: inline !important;
    }

    .line2 {
        display: inline !important;
    }

    .menu-btn {
        display: flex;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 25px;
        margin-top: 10px;
    }

    .letter-cell {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .logo .line1 .line2 {
        display: inline !important;
    }

    .logo {
        font-size: 25px;
        margin-top: 10px;

    }

    header {
        padding: 6px 6%;
    }

    header.scrolled {
        padding: 6px 6%;
    }

    .letter-cell {
        font-size: 5rem;
    }
}


/* ==================================================== INTRO BAR ======================================== */

.intro-bar {
    background: #282620;
    color: #eae6dd;
    padding: 20px 5%;
    text-align: center;
}

.intro-text {
    font-family: 'Derivia', serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.8px;
    max-width: 1000px;
    margin: 0 auto;
    display: inline-block;
    position: relative;

}

.intro-text .accent {
    color: #dac1bf;
    font-weight: 600;
}

.intro-text .cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: #dac1bf;
    margin-left: 6px;
    animation: blink 0.9s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Responsive */
.design-text {
    font-family: 'Derivia', serif;
    font-size: 60px;
}

@media (max-width: 992px) {
    .intro-text {
        font-size: 16px;
    }

}

@media (max-width: 768px) {
    .design-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .design-text {
        font-size: 20px;
    }

}

/* Responsive */
@media (max-width: 992px) {
    .design-text {
        font-size: 20px;
    }

}

@media (max-width: 768px) {
    .design-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .design-text {
        font-size: 20px;
    }

}


/* ====================================================CLIENT ======================================== */
/* --- Clientele Section Container --- */
.clients-fullbleed {
    /* Add some vertical breathing room */
    background: #ffffff;
    /* CRITICAL: Prevents horizontal scroll during fly-in animations */
    width: 100%;
}

.clients-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* Maintain standard Bootstrap max-widths for larger screens */
@media (min-width: 576px) {
    .clients-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .clients-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .clients-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .clients-container {
        max-width: 1300px;
    }
}

/* Wider for 4 columns */

/* --- The Grid Logic --- */
.clients-grid {
    display: grid;
    /* WEB: 4 columns for 12 logos (4x3 grid) */
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    /* Balanced gap */
    background: #ffffff;
}

.client {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
    /* Lighter base for logos */
    border: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Keeps logo from touching borders */
    display: block;
    /* filter: grayscale(100%); */
    /* Keeps focus on design */
    /* opacity: 0.7; */
    transition: all 0.5s ease;
}

.client:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

/* --- MOBILE RESPONSIVE FIX --- */
@media (max-width: 767px) {
    .clients-container {
        padding-right: 0px;
        padding-left: 0px;
    }

    .clients-grid {
        /* MOBILE: 3 columns for 12 logos (3x4 grid) */
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }

}

/* --- Smooth Animation Tweaks --- */
[data-aos] {
    /* Custom cubic-bezier makes the 'coming together' feel more luxurious */
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* ====================================================purpose ======================================== */
.type-purpose-bar {
    background: #1e1e1e;
    color: #eae6dd;
    padding: 20px 5%;
    text-align: center;
}

.type-purpose-text {
    font-family: 'figtree', serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.6px;
    display: inline-block;
}

#changingWord {
    color: #dac1bf;
    /* font-style: italic; */
    font-weight: 500;
}

.cursor {
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: #dac1bf;
    margin-left: 6px;
    animation: blink 0.9s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .type-purpose-text {
        font-size: 40px;
    }

    .type-purpose-bar {
        padding: 8px 6%;
    }

    .intro-bar {
        padding: 8px 6%;
    }

    .intro-bar-text {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .type-purpose-text {
        font-size: 16px;
    }
}

/* ====================================================SERVICES ======================================== */
.things-section {
    background: #fff;
    width: 100%;
}

.things-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 7 columns for desktop */
    min-height: 70vh;
    /* Makes the strips tall like the image */
}

/* Base Card Styling */
.thing-card {
    position: relative;
    padding: 60px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Pushes number to top, text to bottom */
    transition: transform 0.4s ease, background 0.4s ease;
    overflow: hidden;
}

/* Specific Colors from Image */
.big-card {
    grid-column: span 2;
    background-color: #dac1bf;
    justify-content: center;
}

/* Mauve */
.color-light {
    background-color: #E6E2DE;
}

/* Warm Gray */
.color-white {
    background-color: #F7F4F0;
}

/* Off White */

/* Positioning "things" in the Big Card */
.big-card-content {
    text-align: left;
    padding-left: 10%;
}

.main-title {
    font-family: 'Derivia', serif;
    font-size: clamp(60px, 8vw, 110px);
    margin: 0;
    line-height: 0.5;
    color: #1a1a1a;
    font-size: 136px;
}

.sub-title {
    font-family: 'figtree', sans-serif;
    font-size: 24px;
    margin: 5px 0 0 5px;
    font-weight: 300;
}

.parentheses {
    font-family: 'figtree', sans-serif;
    font-size: 20px;
    margin: 0 0 0 5px;
    opacity: 0.7;
}

/* 1. Hide the mobile version by default */
.mobile-only {
    display: none;
}

/* 2. Desktop Styling (Your existing styles) */
.desktop-only .main-title {
    font-family: 'Derivia', serif;
    font-size: 136px;
    line-height: 0.5;
    margin: 0;
}

/* 3. SWITCHING LOGIC */
@media (max-width: 1024px) {

    /* Hide Desktop */
    .desktop-only {
        display: none !important;
    }

    /* Show Mobile */
    .mobile-only {
        display: block !important;
    }

    /* Simple Mobile Stack Styling */
    .mobile-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Aligns the main text to the left */
        width: fit-content;
        /* Keeps the container tight to the text */
        margin: 0 auto;
        /* Centers the whole block on the screen */
    }

    .m-title,
    .m-sub {
        margin: 0;
        text-align: left;
        white-space: nowrap;
    }

    .m-title {
        font-family: 'Derivia', serif;
        font-size: 30px;
        line-height: 1.1;
    }

    .m-paren {
        font-family: 'figtree', sans-serif;
        font-size: 16px;
        opacity: 0.7;
        margin: 5px 0 0 0;

        /* THE KEY LINE: This pushes the parentheses to the end of the text above */
        align-self: flex-end;
        text-align: end;
    }


    .big-card-content {
        padding: 0px;
    }

}


/* Service Card Typography */
.number {
    font-family: 'figtree', sans-serif;
    font-size: 70px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    /* White numbers like the image */
    line-height: 1;
    left: -46px;
    position: relative;
}

.number2 {
    color: #dac1bf !important;

}

.service-name {
    font-family: 'figtree', sans-serif;
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 400;
    line-height: 1.3;
    color: #333;
    margin-bottom: 20px;
    /* Aligned to the bottom */
}

/* ANIMATIONS */
.thing-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s forwards ease-out;
}

/* Stagger the delay for each strip */
.thing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.thing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.thing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.thing-card:nth-child(4) {
    animation-delay: 0.4s;
}

.thing-card:nth-child(5) {
    animation-delay: 0.5s;
}

.thing-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .things-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .big-card {
        grid-column: span 3;
        padding: 100px 40px;
    }
}

@media (max-width: 600px) {
    .things-container {
        grid-template-columns: 1fr;
    }

    .big-card {
        grid-column: span 1;
    }

    .thing-card {
        min-height: 300px;
    }
}

/* 1. The Container - Use Flex for the expansion effect */
.things-container {
    display: flex;
    min-height: 70vh;
}

/* 2. Base Card Styling */
.thing-card {
    flex: 1;
    /* Default width */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 25px;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease;
}

.big-card {
    flex: 2;
}

/* Keep the first card wide */

/* 3. The Details (Hidden by default) */
.card-details {
    position: absolute;
    inset: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}

/* Add this for the image inside */
.card-details img {
    width: 100%;
    height: 100%;
    /* This removes the gaps by zooming in slightly */
    object-fit: cover;
    /* Centers the focus of the image */
    object-position: center;
}

@media (max-width: 768px) {
    .card-details img {
        /* This forces the image to fill the gaps by cropping slightly */
        object-fit: cover !important;
        /* Ensures the middle of the image stays visible */
        object-position: center;
        width: 100%;
        height: 100%;
    }
}

/* 4. Match the Typography for the Details */
.card-details .det-number {
    font-family: 'figtree', sans-serif;
    font-size: 70px;
    font-weight: 700;
    line-height: 1;
}

.card-details .det-text {
    font-family: 'figtree', sans-serif;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.3;
    margin-bottom: 20px;
}

/* 5. Hover State - Extend and Slide */
.thing-card:not(.big-card):hover {
    flex: 2.5;
    /* This 'extends' the card */
}

.thing-card:hover .card-details {
    transform: translateY(0);
    /* This 'slides' the details in */
}

/* 4. Hide original content on hover */
.thing-card:hover .number,
.thing-card:hover .service-name {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Container and Card */
.project-container {
    /* padding: 50px 15px; */
    background-color: #f8f9fa;
}

.project-card {
    /* max-width: 900px; */
    margin: 0 auto;
    background: #fff;
    /* border-radius: 24px; */
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1024px) {

    /* 1. Change layout from side-by-side to top-to-bottom */
    .things-container {
        display: flex;
        flex-direction: column;
        /* This creates the 01 over 02 look */
        height: auto;
        min-height: unset;
    }

    /* 2. Adjust Card Height for vertical stacking */
    .thing-card {
        flex: none;
        width: 100%;
        min-height: 150px;
        /* Adjust height of each strip */
        padding: 0px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        /* Optional separator */
        transition: min-height 0.5s ease;
        /* Transition height instead of width */
    }

    .big-card {
        width: 100%;
        padding: 35px 20px;
    }

    /* 3. The "Extent" effect for Mobile (Vertical) */
    /* When clicked/tapped, the card gets taller to show data */
    .thing-card:not(.big-card):active,
    .thing-card:not(.big-card):hover {
        min-height: 300px;
        /* Card "extends" downwards */
    }

    /* 4. Ensure details still slide from the top */
    .card-details {
        padding: 30px 20px;
    }

    /* 5. Typography Scale down for Mobile */
    .main-title {
        font-size: 60px !important;
        line-height: 1;
    }

    .number,
    .det-number {
        font-size: 60px !important;
    }

    .number {
        left: -35px;
    }

    .service-name {
        text-align: end;
    }

    .card-details .det-text {
        text-align: end;

    }
}

/* Slider Controls */
.slider-wrapper {
    width: 100%;
    /* max-width: 1540px; */
    /* Limits the width */
    /* height: 500px; */
    /* Fixed height you prefer */
    margin: 0 auto;
    /* Centers the slider */
    overflow: hidden;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* This is the magic: it crops instead of stretching */
    object-position: center;
    /* Keeps the middle of your photo visible */
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Pushes the 'overlay-bottom-content' to the bottom */
    pointer-events: none;
}

.overlay-bottom-content {
    pointer-events: auto;
    /* Allows icons to be clickable */
}

/* Icon Styling */
.social-icons-group {
    display: flex;
    gap: 15px;
    padding-bottom: 10px;
    /* Adjust to align visually with text baseline */
}

.custom-icon {
    width: 40px;
    /* Scaled down slightly for better fit */
    height: auto;
    filter: brightness(0) invert(1);
    /* Makes icons white if they are black */
}

/* Passion Project Text */
.passion-title {
    font-family: 'Derivia', serif;
    color: white;
    font-size: clamp(2.5rem, 8vw, 5rem);
    /* Makes text responsive */
    line-height: 0.8;
    margin: 0;
    text-align: right;
    font-weight: 400;
}

/* Bottom Content Area */
.content-body {
    padding: 60px;
    /* Generous padding for a premium look */
    background-color: #fff;
}

.brand-logo {
    max-width: 300px;
    /* Prevents the logo from becoming too large */
    height: auto;
}

.description p {
    font-family: 'figtree', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    font-weight: 300;
    text-align: justify;
}

/* Make the first paragraph slightly more prominent if desired */
.description p:first-of-type {
    color: #333;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .content-body {
        padding: 30px 20px;
    }

    .brand-logo {
        max-width: 140px;
        margin-bottom: 10px;
    }

    .description p {
        font-size: 0.95rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    /* .slider-wrapper,
            .carousel-item img {
                height: 350px;
            } */

    .content-body {
        padding: 30px;
    }

    .passion-title {
        font-size: 1.9rem;
    }

    .custom-icon {
        width: 18px;
    }

    .slider-overlay {
        padding: 11px;
    }
}

/* Container Background to match the image context */
.form-container {
    background-color: #ffffff;
}

.custom-minimal-form {
    border-top: 2px solid #1a1a1a;
    /* Darker top bar as seen in image */
}

.form-field {
    border-bottom: 1px solid #d1d1d1;
    /* Thin grey separator lines */
}

.form-control-minimal {
    width: 100%;
    padding: 18px 20px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    /* Clean sans-serif font */
    font-size: 1.1rem;
    color: #333;
    outline: none;
    transition: background-color 0.2s ease;
}

/* Placeholder styling to match the image's grey tone */
.form-control-minimal::placeholder {
    color: #444;
    opacity: 1;
}

/* Subtle focus effect */
.form-control-minimal:focus {
    background-color: #fcfcfc;
    outline: none;
}

/* Specific styling for the textarea to keep it single-line like the others initially */
textarea.form-control-minimal {
    resize: none;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-control-minimal {
        font-size: 1rem;
        padding: 15px 15px;
    }
}

/* Section Layout */
/* Section Container */
.social-hero {
    padding: 50px 20px 20px 20px;
    background-color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Button Layout */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Base Button Style */
.float-btn {
    padding: 10px 53px;
    border-radius: 15px;
    font-family: 'figtree', sans-serif;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    /* Continuous floating idle animation */
    animation: floatingIdle 4s ease-in-out infinite;
}

/* Solid (Olive) Buttons */
.float-btn.solid {
    background-color: #282620;
    /* background-color: #9A9578; */
    /* Your brand olive */
    color: #ffffff;
}

/* Outline (Dark) Buttons */
.float-btn.outline {
    border: 1.5px solid #282822;
    color: #282822;
}

/* --- ANIMATIONS --- */

/* 1. Scroll Reveal (Initial Entrance) */
.reveal {
    opacity: 0;
    transform: translateY(40px) rotate(3deg);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: var(--delay);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* 2. Hover Effect (Interactive) */
.float-btn:hover {
    transform: scale(1.1) rotate(-2deg) translateY(-5px);
    box-shadow: 0 15px 30px rgba(154, 149, 120, 0.2);
    filter: brightness(0.9);
}

/* Sub-heading Specific Animation */
.sub-heading.reveal {
    transform: translateX(-20px);
    /* Slides in from the left */
    letter-spacing: 2px;
    /* Starts slightly wider */
}

.sub-heading.reveal.active {
    opacity: 1;
    transform: translateX(0);
    letter-spacing: normal;
    /* Settles into place */
}

/* 3. Idle Floating Keyframes */
@keyframes floatingIdle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.text-content {
    text-align: center;
}

.main-heading {
    font-family: 'figtree', sans-serif;
    font-weight: 1000;
    font-size: clamp(2.5rem, 9vw, 6rem);
    color: #dac1bf;
    margin: 0;
    display: inline-block;
    /* Required for accurate width/height */
}

.sub-heading {
    font-family: 'figtree', serif;
    font-size: 1.2rem;
    color: #333;
    display: block;
}

nav a:hover {
    color: #000000;
}

@media (max-width: 768px) {
    .main-heading {
        font-size: 35px;
    }

    .sub-heading {
        font-size: 16px;
    }

    .float-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* //============================Footer ======================= */
.site-footer {
    background-color: #282620;
    color: #ffffff;
    padding: 50px 40px;
    width: 100%;
    /* Ensure no clipping */
    overflow: visible !important;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    /* This pushes nav to the right */
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. Force visibility for the Nav part */
.footer-nav {
    display: block !important;
    text-align: right;
    min-width: 150px;
    /* Prevents squashing */
}

.nav-title {
    display: block;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ffffff;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 8px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: underline;
    /* Matches the image style */
    font-size: 16px;
}


/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        /* Stack vertically on mobile */
        gap: 40px;
        text-align: left;
    }

    .nav-links {
        display: flex;
        /* Ensure flex is active */
        flex-direction: column;
        /* Stacks items vertically */
        gap: 10px;
        /* Optional: Centers links horizontally */
        padding: 20px 0;
        /* Optional: Adds some breathing room */
    }

    .footer-nav {
        text-align: left;
        /* Align links to the left on mobile */
    }
}

/* //=========================================================== */
/* Main Container */
.portfolio-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
}

/* Responsive Update: Zero padding on smaller devices */
@media (max-width: 768px) {
    .portfolio-wrapper {
        padding: 0 !important;
    }

    .marquee-text {
        font-size: 8rem !important;
    }

    /* Image Positioning */
    .drag-1 {
        top: 90% !important;
        left: 10% !important;
        width: 40% !important;
    }

    .drag-2 {
        top: 132% !important;
        left: 37% !important;
        width: 40% !important;
    }

    .images-section {
        margin-top: 0px !important;
    }

    .main-image {
        width: 100% !important;
    }
}

/* Top Section: Images */
.images-section {
    display: flex;
    position: relative;
    margin-top: 50px;
    margin-bottom: 40px;
    min-height: 60vh;
    align-items: center;
}

/* Left Main Image - Layer 1 (Bottom) */
.left-column {
    width: 50%;
    position: relative;
    z-index: 1;
}

.main-image {
    width: 90%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    /* Matches the B&W aesthetic */
}

/* Right Draggable Images - Layer 3 (Top) */
.right-column {
    width: 50%;
    position: relative;
    aspect-ratio: 1 / 1;
    z-index: 10;
}

/* Custom Hand Cursor Added */
.drag-item {
    position: absolute;
    cursor: grab;
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.drag-item:active {
    cursor: grabbing;
}

/* Image Positioning */
.drag-1 {
    top: 50%;
    left: 40%;
    width: 60%;
    z-index: -2;
}

.drag-2 {
    top: 114%;
    left: 75%;
    width: 60%;
    z-index: -1;
    border: 2px solid #fff;
}

/* Horizontal Scrolling Text - Layer 2 (Middle) */
/* Add this to strictly kill horizontal scrolling at the root */
html,
body {
    overflow-x: hidden !important;
    max-width: 100%;
}

/* Updated Marquee Container */
.marquee-container {
    position: absolute;
    top: 35%;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    /* This forces full width without triggering the scrollbar */
    overflow: hidden;
    z-index: 15;
    /* Ensures it stays layered properly */
    pointer-events: none;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Derivia', serif;
    font-size: 13rem;
    color: rgba(214, 195, 195, 0.85);
    animation: scrollText 20s linear infinite;
    /* Adjusted speed */
    /* ADD THIS: Starts the animation 10 seconds in so it's already visible */
    animation-delay: -5s;
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Bottom Text Section */
.text-section {
    max-width: 800px;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 20px 40px 20px;
    z-index: 2;
    position: relative;
}

.text-section p {
    margin-bottom: 20px;
}

/* Button styling (hidden on desktop) */
.read-more-btn,
.read-more-btn-2 {
    display: none;
    background: none;
    border: none;
    color: #666;
    /* Gray color to match the aesthetic */
    font-size: 0.95rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    font-family: inherit;
    transition: color 0.3s ease;
}

.read-more-btn,
.read-more-btn-2 :hover {
    color: #000;
}

/* Mobile View Adjustments */
@media (max-width: 768px) {

    .more-text,
    .more-text-2 {
        /* Instead of display: none, we hide it by squishing the height to 0 */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        /* This tells the browser to smoothly animate the opening and fading */
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    }

    .read-more-btn,
    .read-more-btn-2 {
        display: inline-block;
        /* Show the button on mobile */
    }
}

/* //=============================CUSTOM NOTIFICATION============================== */
#snackbar {
    visibility: hidden;
    min-width: 280px;
    background-color: #2C2B26 !important;
    /* */
    color: #ffffff !important;
    /* */
    text-align: left;
    border-radius: 16px;
    /* Material 3 UI Geometry */
    padding: 16px 24px;
    position: fixed !important;
    z-index: 10000 !important;

    /* Top Right Positioning */
    top: 30px;
    right: 30px;
    left: auto;
    /* Clears previous left: 50% */
    transform: none;
    /* Clears previous translateX */

    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: -5px 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
}

/* Updated Animation State */
#snackbar.show {
    visibility: visible !important;
    opacity: 1 !important;
    animation: slideInRight 0.5s, slideOutRight 0.5s 2.5s;
}

#snackbar.error {
    background-color: #b00020 !important;
    color: #ffffff !important;
}

/* Keyframes for Top-Right "Toast" style */
@keyframes slideInRight {
    from {
        right: -300px;
        opacity: 0;
    }

    to {
        right: 30px;
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        right: 30px;
        opacity: 1;
    }

    to {
        right: -300px;
        opacity: 0;
    }
}