@import url(assets/css/satoshi.css);
@import url(assets/fonts/oceanic-text-font-family/);
@font-face {
    font-family: 'Ocean Text Regular';
    src: url(assets/fonts/oceanic-text-font-family/OceanicTextTRIAL-Regular-BF677ddb81788b7.otf);
}
@font-face {
    font-family: 'Ocean Text Book';
    src: url(assets/fonts/oceanic-text-font-family/OceanicTextTRIAL-Book-BF677ddb80f2546.otf);
}
@font-face {
    font-family: 'Ocean Text Book Italic';
    src: url(assets/fonts/oceanic-text-font-family/OceanicTextTRIAL-BookItalic-BF677ddb81b380e.otf);
}
:root {
    --bg-color: #f4f3f0;
    --card-bg: #eceae6;
    --text-primary: #2B2D2D;
    --text-secondary: #AFABA6;
    --white: #ffffff;
    --font-sans: 'Satoshi-Medium', 'Inter', system-ui, 'SF Pro Display', 'Inter UI', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif !important;
     --font-sans-regular: 'Satoshi-Regular', 'Inter', system-ui, 'SF Pro Display', 'Inter UI', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif !important;
    --font-serif: 'Ocean Text Regular', 'Cormorant Garamond','Playfair Display', serif !important;
    --font-italic: 'Ocean Text Book Italic', 'Cormorant Garamond Italic','Playfair Display Italic', serif !important;
    --gradient-accent: linear-gradient(90deg, #b28bff, #85b4ff);
    --gradient-badge-1: linear-gradient(90deg, #ffc2b3, #d9a8ff);
    --gradient-badge-2: linear-gradient(90deg, #ffccb3, #ffccb3); 
    --gradient-cta: linear-gradient(90deg, #fce0dc, #e1d3ff, #e1d3ff);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* This pushes the footer down to the bottom */
    
    /* OPTIONAL: If you also want to perfectly center the "Coming soon" text in the middle of the screen */
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

a {
    text-decoration: none;
    color: inherit;
}

p{
    font-family: var(--font-serif);
    
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);

    /* Animation settings */
    opacity: 0; /* Keeps it hidden before it loads */
    animation: fadeUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.subtitle {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    padding-top: 12px;
    letter-spacing: -2%;

    /* Animation settings */
    opacity: 0;
    animation: fadeUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s; /* This creates the staggered cascade effect */
}

h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin: 1rem 0;
    font-family: var(--font-serif);
}

/* .circle {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 10% 44%, #ff7448,#ff4848,#6248ff 90%);
  pointer-events: none;
  cursor: hand;
  z-index: 1;
  opacity: 0.3;
  transition: 100ms;
} */

.accent-serif {
    font-family: var(--font-italic);
    /* background: var(--gradient-accent); */
    /* 1. The 3-point seamless gradient (Purple -> Blue -> Purple) */
    background: linear-gradient(to right, #b28bff, #85b4ff, #b28bff);
    background-size: 200% auto;
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    
    /* 2. A continuous, linear loop instead of panning back and forth */
    animation: textFlow 3s linear infinite;
}

@keyframes textFlow {
    /* 3. Sweeps the background entirely across, looping seamlessly */
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: var(--card-bg);
    font-size: 1.25rem;
    font-weight: 500;
}

.badge-white {
    background-color: var(--white);
    padding: 8px 20px;
    border-radius: 6px;
    /* box-shadow: 0 2px 8px var(--card-bg); */
}

.badge-beige{
    background-color: var(--card-bg);
    padding: 8px 20px;
    border-radius: 6px;
    /* box-shadow: 0 2px 8px var(--card-bg); */
}


.badge-gradient{
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    background: linear-gradient(50deg, rgba(255, 116, 72, 0.17) 10%, rgba(255, 72, 72, 0.17) 44%, rgba(98, 72, 255, 0.17) 92%);
}

.badge-gradient-text{
    font-weight: 500;
    background: -webkit-linear-gradient(50deg,#ff7448 10%,#ff4848 44%, #6248ff 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Navbar */
.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem; /* Standardized side padding */
    max-width: 1440px; /* Matches your portfolio-grid */
    margin: 0 auto; /* Centers the header */
    width: 100%; /* Ensures it fills the space up to 1400px */
    z-index: 100;

    /* Animation settings */
    opacity: 0;
    animation: fadeDownReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-links a {
    margin-right: 2rem;
    font-size: 1.25rem;
    font-family: var(--font-serif);
    letter-spacing: -2%;
}

/* 1. We create a massive background that is half your dark text color, half gradient */
.nav-links a:not(.btn-dark),
.mobile-nav-overlay a:not(.btn-dark),
.footer-links a:not(.btn-dark) {
    background: linear-gradient(
        to right, 
        #ff7448 0%, 
        #ff4848 25%, 
        #6248ff 50%, 
        var(--text-primary) 50%, 
        var(--text-primary) 100%
    );
    background-size: 200% auto;
    
    /* 2. Start positioned on the right (showing ONLY the dark color) */
    background-position: 100% center;
    
    /* 3. Clip the background tightly to the text shape */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    
    /* 4. Smooth sweep timing */
    transition: background-position 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block; /* REQUIRED for scale to work */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

/* 5. On hover, sweep the background to the left, revealing the gradient */
.nav-links a:not(.btn-dark):hover,
.mobile-nav-overlay a:not(.btn-dark):hover,
.footer-links a:not(.btn-dark):hover {
    background-position: 0% center;
    opacity: 0.7;
    animation: shineSweep 0.7s ease-in-out;
    transform: scale(1.05);
}

.nav-links a:not(.btn-dark):active,
.mobile-nav-overlay a:not(.btn-dark):active,
.footer-links a:not(.btn-dark):active {
    transform: scale(0.98); 
    transition: transform 0.1s ease;
}

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

.logo img:hover{
    transform: scale(1.05); 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);    
}


@keyframes fadeUpReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDownReveal {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-dark {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1.25rem;
    transition: background-color 0.5s;
    font-family: var(--font-sans) !important;

/* Structural additions for the shine effect */
    position: relative; 
    overflow: hidden; /* Keeps the shine strictly inside the button bounds */
    display: inline-flex;
    
    /* Smooth scaling on hover */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    
}

/* 2. Create the hidden "Shine" using a pseudo-element */
.btn-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Start completely off-screen to the left */
    width: 60%; /* Width of the light beam */
    height: 100%;
    
    /* A transparent-to-white-to-transparent gradient creates the "glass" look */
    /* background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    ); */
    background: linear-gradient(50deg, rgba(255, 116, 72, 0.17) 10%, rgba(255, 72, 72, 0.17) 44%, rgba(98, 72, 255, 0.17) 92%);
    
    
    /* Angles the light beam for a sleeker, faster look */
    transform: skewX(-25deg);
}

/* 3. The Hover States */
.btn-dark:hover {
    background-color: #fff;
    color: var(--text-primary);
    transform: scale(1.03); /* Slight expansion */

}

/* Trigger the sweep animation when hovering */
.btn-dark:hover::after {
    animation: shineSweep 0.7s ease-in-out;

}

/* 4. The Click State */
.btn-dark:active {
    transform: scale(0.96); /* Satisfying "squish" on click */
    transition: transform 0.1s;
}

@keyframes shineSweep {
    0% { 
        left: -150%; 
    }
    100% { 
        left: 200%; /* Sweeps all the way out the right side */
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 8rem auto;
    line-height: 40px;
}

/* Work Section */
.work-section {
    padding: 3rem 2rem; /* Top/Bottom 4rem, Left/Right 2rem */
    text-align: center;
}

.section-header {
    max-width: 650px;
    margin: 0 auto 4rem auto;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.4rem;
    line-height: auto;
    /* max-width: 650px; */
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* 1. Hide the cards initially and attach the animation */
.card {
   opacity: 0;
   translate: 0 40px;
    
    /* forwards ensures the card stays visible after the animation finishes */
    animation: gridFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* 2. Define the exact movement */
@keyframes gridFadeUp {
    0% {
        opacity: 0;
        translate: 0 40px;
    }
    100% {
        opacity: 1;
        translate: 0 0; /* Returns to its natural resting place */
    }
}

/* 3. The Magic: Stagger the delays so they load one-by-one */
.portfolio-grid .card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-grid .card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-grid .card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-grid .card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-grid .card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-grid .card:nth-child(6) { animation-delay: 0.6s; }

/* The new invisible overlay that makes the card clickable */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    border-radius: inherit; /* Perfectly matches your card's 37px radius */
}

.card {
    background-color: var(--card-bg);
    border-radius: 37px;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    
    border: 0.5px solid transparent;
    /* Smooth transition for the card lifting */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;          
}

/* Lifts the card slightly and adds a soft shadow */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.05);
    border: 0.5px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.arrow-link {
    background-color: #D4D1CD;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1rem;
    position: relative;
    z-index: 1; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Creates the transparent gradient background */
.arrow-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit; /* Copies the 4px radius automatically */
    background: linear-gradient(50deg, rgba(255, 116, 72, 0.17) 10%, rgba(255, 72, 72, 0.17) 44%, rgba(98, 72, 255, 0.17) 92%);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
    z-index: -1; /* Puts it perfectly behind the text */
}

/* Creates an invisible clickable overlay over the whole card */
/* .arrow-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Ensures the link sits on top of the text and images 
} */


/* 1. Fades in the transparent background box */
.card:hover .arrow-link::before {
    opacity: 1;
}

/* 2. Turns the arrow icon into the bright text gradient */
/* Changes the arrow colors when the card is hovered */
.card:hover .arrow-link{
    /* background-color: var(--text-primary); */
    background: -webkit-linear-gradient(50deg,#ff7448 10%,#ff4848 44%, #6248ff 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

h3{
    font-family: var(--font-sans);
}

.card h3 {
    font-size: 1.75rem;
    line-height: 1.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.card p {
    font-size: 1.2rem;
    /* color: var(--text-secondary); */
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
    font-family: var(--font-serif);
}

/* 1. The new "Window Frame" */
.card-image-wrapper {
    width: 100%;
    height: 270px;
    border-radius: 12px;
    overflow: hidden; /* This is the magic that clips the image when it zooms */
    margin-bottom: 1.5rem;
}

/* 2. Your updated image container */
.card-image {
    width: 100%;
    height: 100%; /* Fills the wrapper perfectly */
    background-color: #ccc;
    background-size: cover;
    background-position: top;
    
    /* The same premium timing curve as your text animations */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. The Hover Trigger */
.card:hover .card-image {
    /* Zooms the image in by 8% when the user's mouse enters ANY part of the card */
    transform: scale(1.08); 
}

/* Image Placeholders (Simulating content) */
.img-placeholder-1 {
    background-image: url(./assets/img/case-study/case-study-1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.img-placeholder-2 {  background-image: url(./assets/img/case-study/case-study-2.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.img-placeholder-3 {  background-image: url(./assets/img/case-study/case-study-3.png);
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;    
}
.img-placeholder-4 {  background-image: url(./assets/img/case-study/case-study-4.png);
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}
.img-placeholder-5 {  background-image: url(./assets/img/case-study/case-study-5.png);
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}
.img-placeholder-6 {  background-image: url(./assets/img/case-study/case-study-6.png);
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;   
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--card-bg);
    box-shadow: 0 2px 8px var(--card-bg);
    font-family: var(--font-sans);
}

/* Scroll Reveal Utility Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    /* We use the same speed and easing curve as your other animations */
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
}

.cta-banner-container {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    background: var(--card-bg);
    border-radius: 100px;
    padding: 2rem 3rem;
    min-width: 600px;
    border: 0.5px solid transparent;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-banner{
    padding: 8px 20px;
    border-radius: 6px;
    background: linear-gradient(50deg, rgba(255, 116, 72, 0.17) 10%, rgba(255, 72, 72, 0.17) 44%, rgba(98, 72, 255, 0.17) 92%);
    
}

p.cta-banner-text{
    font-weight: 500;
    background: -webkit-linear-gradient(50deg,#ff7448 10%,#ff4848 44%, #6248ff 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-right: 2rem;
    font-family: var(--font-sans);
}


/* .cta-banner .arrow-link {
    background: rgba(0,0,0,0.05);
    padding: 0.4rem;
    border-radius: 50%;
    margin-left: 1rem;
} */

/* This is the arrow inside your CTA banner */
.cta-banner-container .arrow-link {
    background: transparent;
    padding: 0.4rem;
    border-radius: 4px;
    margin-left: 1rem;
    display: inline-flex;

    position: relative;
    z-index: 1;
    
    /* Smooth timing for the arrow movement and color change */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Creates the background circle independently */
.cta-banner-container .arrow-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: rgba(0,0,0,0.05); /* The default light grey circle */
    z-index: -1;
    opacity: 1;
    transition: background-color 0.1s ease; /* Smoothly crossfades the backgrounds */
}

/* 1. The Hover State: Lift the whole banner up slightly */
.cta-banner-container:hover {
    transform: translateY(-4px);
    border: 0.5px solid rgba(0,0,0,0.05);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06); /* Soft drop shadow */
}

/* 2. The Arrow Trick: Move the arrow up and right, and change its color */
.cta-banner-container:hover .arrow-link {
    /*transform: translate(15px, 0px);  Moves it diagonally */
    /* background-color: var(--text-primary);
    color: var(--white); */
    background: -webkit-linear-gradient(50deg, #ff7448 10%, #ff4848 44%, #6248ff 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 2. Applies the transparent gradient to the BACKGROUND circle */
.cta-banner-container:hover .arrow-link::before {
    background: linear-gradient(50deg, rgba(255, 116, 72, 0.17) 10%, rgba(255, 72, 72, 0.17) 44%, rgba(98, 72, 255, 0.17) 92%);
}

/* 3. The Active State: A satisfying "squish" when clicked */
.cta-banner-container:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease; /* Snappy response on click */
}

/* Footer */

footer {
    background-color: #efede9;
    padding: 4rem 2rem; /* Standardized side padding */
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    background-image: url(assets/img/a.png);
    background-position: 0;
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
    height: 100%;
}

.footer-top,
.footer-bottom,
.copyright {
    max-width: 1440px; /* Matches your navbar constraint */
    margin-left: auto;
    margin-right: auto;
}

.footer-top {
    margin-bottom: 4rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.footer-links a {
    margin-right: 2rem;
    font-size: 1.25rem;
    font-family: var(--font-serif);
}

.copyright {
    font-size: 1rem;
    color: var(--text-primary);
    margin-top: 1rem;
    max-width: 1440px;
}

span.back-to-top-span{
    margin-right: 1rem;
}

.back-to-top:hover{
    transform: translateY(-2px); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;          
}

.back-to-top{
    display: inline-flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;

    position: relative;
    z-index: 1;
    padding: 0.75rem 1rem 0.75rem 1rem; /* Gives it the exact same proportions as your CTA pill */
    border-radius: 100px;
}

/* Creates the pill-shaped background */
.back-to-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: var(--bg-color);
    border: var(--card-bg);
    z-index: -2; /* Keeps it behind your text and the arrow */
    
    /* The Left-to-Right setup */
    transform: scaleX(0); /* Squishes it to 0 width */
    transform-origin: left; /* Anchors it to the left side */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Your signature premium timing curve */
}

/* Stretches the background across the button */
.back-to-top:hover::after {
    transform: scaleX(1);
}

/* Sets up the transparent base for the Back to Top arrow */
.back-to-top .arrow-link {
    background: transparent;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Creates the independent background square */
.back-to-top .arrow-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: rgba(0,0,0,0.05); /* The default light grey */
    z-index: -1;
    opacity: 1; /* Overrides the hidden portfolio card background */
    transition: background-color 0.3s ease;
    
}

/* 1. Moves the arrow UP and applies the text gradient */
.back-to-top:hover .arrow-link {
    /* transform: translateY(-6px);  */
    
    background: -webkit-linear-gradient(50deg, #ff7448 10%, #ff4848 44%, #6248ff 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 2. Applies the transparent gradient to the background square */
.back-to-top:hover .arrow-link::before {
    background: linear-gradient(50deg, rgba(255, 116, 72, 0.17) 10%, rgba(255, 72, 72, 0.17) 44%, rgba(98, 72, 255, 0.17) 92%);
}

em{
    font-family: var(--font-italic) !important;
}

em:hover, span.ux:hover{
    background: linear-gradient(to right, #b28bff, #85b4ff, #b28bff);
    background-size: 200% auto;
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    
    /* 2. A continuous, linear loop instead of panning back and forth */
    animation: textFlow 3s linear infinite;
}



/* Mobile Responsive Adjustments */
/* Tablet / Small Desktop Responsive Adjustments */
@media (max-width: 1350px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Tablet */
@media (max-width: 992px) {
     .portfolio-grid {
        grid-template-columns: 1fr; /* This safely overrides the 1350px rule on mobile */
    }

    .card p {
    font-size: 1.5rem;
}

footer{
    width: 100%;
}
    /* .content-row {
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
    }
    
    .case-hero {
        padding: 3rem;
    } */
}





/* =============================================
   Case Study Page Specific Styles
============================================= 
*/
:root {
    --brand-orange: #f26f4f;
    --text-muted: #888888;
}

/* Base Adjustments */
body.case-study-page {
    background-color: var(--bg-color); /* Same off-white background */
}

/* Mobile Nav Toggle Button */
.mobile-only {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 100;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.4s ease;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    /* top: -30;
    left: 0;
    padding: 2rem;
    width: 100%;
    height: 100dvh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Fallback for older iOS */
    height: 100dvh; /* Modern iOS */
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 90;
    font-family: var(--font-serif);
    letter-spacing: -2%;
    overflow: scroll;
    overscroll-behavior: contain;
}

.mobile-nav-overlay.active {
    transform: translateY(0);
}

/* --- Hero Section --- */
.case-hero-section {
    padding: 6rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

.case-hero {
    /* background-color: var(--brand-orange); */
    background-color: #EDECEB;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5rem;
    color: var(--white);
    min-height: 600px;
    overflow: hidden;
    position: relative;
}

.case-hero-text {
    flex: 1;
    max-width: 500px;
    z-index: 2;
}

.case-hero-text h1 {
    font-size: 3rem;
    /* font-weight: 600; */
    font-weight: 500;
    line-height: 1.1;
    margin-top: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.badge-pill {
    color: var(--brand-orange);
    font-weight: 600;
    padding: 0.5rem 1.2rem;
}

.case-hero-images {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    position: relative;
    height: 500px;
}

/* Simulating the Phones */
.phone-mockup {
    background-color: #ffffff;
    /* background-image: url(assets/img/cd-1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 8px solid #1a1a1a;
    width: 260px;
    height: 550px;
    position: relative;
}

.phone-left {
    transform: translateY(-20px);
}

.phone-right {
    transform: translateY(40px);
}

/* --- Content Section --- */


.btn-cs{
margin-top: 1em;
color: #2B2D2D;
background: #D4D1CD;
font-size: 1rem;
}

.cs-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr; /* Makes the "Impact" column slightly wider to fit the longer text */
    gap: 3rem;
    margin-top: 4rem;
    /* padding: 0 2rem; */
}

.cs-detail-label {
    font-family: var(--font-serif);
    color: var(--text-muted);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.cs-detail-value {
    font-family: var(--font-sans-regular);
    color: var(--text-primary);
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0;
}

.case-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.content-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
}



.row-label h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0;
}

.row-details {
    max-width: 100%;
}

.row-details p {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    line-height: 1.6;
    font-family: var(--font-sans-regular);
}

.row-details .lead-text {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-family: var(--font-sans);
}

strong{
    font-family: var(--font-sans) !important;
}

.phase-block {
    margin-bottom: 2rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .content-row {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }
    
    .case-hero {
        padding: 3rem;
    }

    .cs-title {
        font-size: 3rem;
    }
    .cs-details-grid {
        grid-template-columns: repeat(2, 1fr); /* Snaps to a 2x2 grid */
        gap: 3rem 2rem;
    }
h3{
    font-family: var(--font-sans);
}
    .card h3 {
    font-family: var(--font-sans);
}

}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex; }
    
    .navbar {
        padding: 2rem;
        justify-content: space-between;
    }

    h1 { font-size: 3.5rem;
        line-height: auto;
        font-family: var(--font-sans);
    }
    .subtitle {
        font-size: 2.5rem;
        
     }
    h2 { font-size: 1.75rem;
    font-family: var(--font-serif); }

    .hero {
        padding: 6rem 2rem;
        margin: 2rem auto;
    }

    .work-section {
        padding: 2rem 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr; /* This safely overrides the 1350px rule on mobile */
    }

    h3{
    font-family: var(--font-sans);
}
      .card h3 {
    font-family: var(--font-sans);
}

    footer {
        padding: 3rem 1.5rem;
        width: 100%;
    }

    /* .cta-section{
        width: 100%;
    }

    .cta-banner-container{
        max-width: max-content;
    }
    .cta-banner {
        width: 100%;
        justify-content: space-between;
        margin-right: 1em;

    } */

    .cta-banner-container {
        min-width: auto; /* Overrides the 600px desktop rule */
        width: 100%;
        padding: 1rem;
        flex-direction: row; /* Stacks the text and button */
        gap: 0.75rem;
    }

   
    p.cta-banner-text {
        margin-right: 0; /* Removes the desktop spacing so it centers correctly */
        text-align: left;
        font-size: 16px;
    }

    .case-hero-section {
        padding: 0 1rem 2rem 1rem;
    }

    .case-hero {
        flex-direction: column-reverse; /* Put images on top for mobile */
        padding: 3rem 1.5rem;
        border-radius: 24px;
        min-height: auto;
        gap: 3rem;
        text-align: left;
    }

    .case-hero-images {
        height: 350px;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .phone-mockup {
        width: 180px;
        height: 380px;
        border-width: 6px;
        border-radius: 30px;
    }

    .phone-left { transform: translateY(0); }
    .phone-right { transform: translateY(20px); }

    .case-hero-text h1 {
        font-size: 2rem;
    }

    /* Stack content rows on mobile */
    .content-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .row-label h2 {
        font-size: 1.75rem;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .case-content {
        padding: 2rem 1.5rem;
        gap: 3rem;
    }

    .cs-title {
        font-size: 2.5rem;
    }

    .cs-details-grid {
        grid-template-columns: 1fr; /* Stacks all 4 columns vertically */
        padding: 0 1rem;
        gap: 0rem;
    }

    .tag{
        font-family: var(--font-sans);
    }
}

@media (max-width: 576px) {
.desktop-only { display: none !important; }
 .mobile-only { display: flex; }
    
    .navbar {
        padding: 2rem;
        justify-content: space-between;
    }

    h1 { font-size: 3rem;
        font-family: var(--font-sans);
      
        
    }
    .subtitle {
        font-size: 1.75rem;
        line-height: 2rem;
        
     }
    h2 { font-size: 1.75rem; 
    line-height: 2rem;
    font-family: var(--font-serif);}

    .hero {
        padding: 6rem 2rem;
        margin: 2rem auto;
    }

.section-header p {
    color: var(--text-secondary);
    font-size: 1.4rem;
    line-height: auto;
    /* max-width: 650px; */
}
h3{
    font-family: var(--font-sans);
}

  .card h3 {
    font-family: var(--font-sans);
}
.card p{
    font-size: 1.25rem;
}

.work-section {
        padding: 2rem 1.5rem;
    }

.portfolio-grid {
        grid-template-columns: 1fr; /* This safely overrides the 1350px rule on mobile */
    }

 .cta-banner-container {
        min-width: auto; /* Overrides the 600px desktop rule */
        width: 100%;
        padding: 1rem;
        flex-direction: row; /* Stacks the text and button */
        gap: 0.75rem;
    }

   
    p.cta-banner-text {
        margin-right: 0; /* Removes the desktop spacing so it centers correctly */
        text-align: left;
        font-size: 13px;
    }

.cta-banner{
    padding: 8px 10px;
}

footer {
        padding: 3rem 1.5rem;
        width: 100%;
    }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    flex-direction: column;
}

}

@media (max-width: 393px) {
.desktop-only { display: none !important; }
.mobile-only { display: flex; }
    
    .navbar {
        padding: 2rem;
        justify-content: space-between;
    }

    h1 { font-size: 3rem;
        font-family: var(--font-sans);
      
        
    }
    .subtitle {
        font-size: 1.75rem;
        line-height: 2rem;
        
     }
    h2 { font-size: 1.75rem; 
    line-height: 2rem;
font-family: var(--font-serif);}

    .hero {
        padding: 6rem 2rem;
        margin: 2rem auto;
    }

    h3{
    font-family: var(--font-sans);
}
      .card h3 {
    font-family: var(--font-sans);
}


    .cta-banner-container{
        min-width: auto;
        width: 100%;
        padding: 0.9rem;
        flex-direction: row;
    }

    p.cta-banner-text{
        text-align: left;
        font-size: 13px;
    }

    .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    flex-direction: column;
}



}

