/* --- ROOT & BASE STYLES --- */
:root {
    --dark-blue: #011638;
    --mid-blue: #364156;
    --light-gray: #CDCDCD;
    --bg-color: var(--dark-blue);
    --text-color: var(--light-gray);
    --accent-color: #a3b1c6; /* A lighter shade for accents */
    
    --font-primary: 'Helvetica Neue', 'Arial', sans-serif;
    --font-secondary: 'Georgia', serif;

    --transition-speed: 0.4s;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- UTILITIES & SHARED COMPONENTS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.full-width-section {
    padding: 8rem 0;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.text-center {
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--mid-blue);
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
}

.cta-button:hover {
    background-color: var(--mid-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-button.large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.link-arrow {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.link-arrow::after {
    content: '→';
    position: absolute;
    left: 105%;
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.link-arrow:hover::after {
    left: 110%;
    opacity: 1;
}


/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.main-header.scrolled {
    background-color: rgba(1, 22, 56, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
}

/* --- HERO (#hero) --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.webp') no-repeat center center/cover;
    filter: brightness(0.4);
    animation: zoom-in 20s ease-in-out infinite alternate;
}

@keyframes zoom-in {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--light-gray);
}

/* --- ABOUT (#about) --- */
#about {
    background-color: #021a42; /* Slightly different from main BG */
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-stack {
    position: relative;
    height: 500px;
}

.about-img-1, .about-img-2 {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.about-img-1 {
    width: 70%;
    height: 400px;
    top: 0;
    left: 0;
    z-index: 2;
}

.about-img-2 {
    width: 50%;
    height: 400px;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.about-image-stack:hover .about-img-1 {
    transform: scale(1.03) translate(-5px, -5px);
}
.about-image-stack:hover .about-img-2 {
    transform: scale(1.03) translate(5px, 5px);
}

.about-content p {
    max-width: 60ch;
}

/* --- SERVICES (#services) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(145deg, var(--mid-blue), #2c3547);
    padding: 2rem;
    border-radius: 8px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-secondary);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- FEATURED WORK (#featured-work) --- */
#featured-work {
    background-color: #021a42;
}
.featured-header {
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 1rem;
}
.masonry-item {
    overflow: hidden;
    border-radius: 8px;
}
.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}
.masonry-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}
.masonry-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.masonry-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.masonry-item:nth-child(3) { grid-column: span 1; grid-row: span 2; }
.masonry-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }

/* --- WHY CHOOSE US (#why-us) --- */
.why-us-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.why-us-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-us-image svg {
    position: absolute;
    width: 100%;
    height: auto;
    opacity: 0.5;
    z-index: 1;
}
.why-us-photo {
    position: relative;
    z-index: 2;
    width: 80%;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* --- PROCESS (#process) --- */
/* ---
--- PROCESS SECTION (REDESIGNED) ---
--- */

#process-redesigned {
    background-color: #021a42;
    position: relative;
}

.process-flow {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
}

/* The vertical dashed connecting line */
.process-flow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    transform: translateX(-50%);
    /* Creates a dashed line effect */
    background-image: linear-gradient(
        var(--mid-blue) 60%, 
        transparent 40%
    );
    background-size: 2px 15px;
    background-repeat: repeat-y;
    z-index: 1;
}

.flow-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 4rem;
}

/* The circular node on the timeline */
.flow-step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    z-index: 10;
    transition: transform 0.3s ease;
}

.flow-step:hover::after {
    transform: translate(-50%, -50%) scale(1.2);
}

.flow-number {
    font-family: var(--font-secondary);
    font-size: 6rem;
    font-weight: bold;
    color: var(--mid-blue);
    line-height: 1;
    transition: color 0.4s ease;
}

.flow-content {
    /* Re-using the glass effect from the portfolio page */
    z-index: 5; /* Ensure content is above the timeline line */
}

.flow-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Alternating Layout Logic --- */

/* ODD steps (1, 3) */
.flow-step:nth-child(odd) .flow-number {
    grid-column: 1;
    text-align: right;
}
.flow-step:nth-child(odd) .flow-content {
    grid-column: 2;
}

/* EVEN steps (2, 4) */
.flow-step:nth-child(even) .flow-number {
    grid-column: 2;
    text-align: left;
}
.flow-step:nth-child(even) .flow-content {
    grid-column: 1;
    text-align: right;
}

.flow-step:hover .flow-number {
    color: var(--accent-color);
}


/* --- Redesigned Process Responsive Styles --- */

@media (max-width: 768px) {
    .process-flow::before {
        left: 40px; /* Move line to the left */
        transform: translateX(0);
    }

    .flow-step {
        grid-template-columns: 80px 1fr; /* First column for number, second for content */
        gap: 1.5rem;
    }

    .flow-step::after {
        left: 40px; /* Align node with the new line position */
    }

    .flow-number {
        font-size: 3.5rem;
        text-align: center !important;
    }

    /* Reset alternating layout for mobile */
    .flow-step:nth-child(odd) .flow-number,
    .flow-step:nth-child(even) .flow-number {
        grid-column: 1;
    }

    .flow-step:nth-child(odd) .flow-content,
    .flow-step:nth-child(even) .flow-content {
        grid-column: 2;
        text-align: left !important;
    }
}
/* --- CALL TO ACTION (#cta) --- */
#cta {
    background: linear-gradient(rgba(1, 22, 56, 0.8), rgba(1, 22, 56, 0.8)),  no-repeat center center/cover;
    background-attachment: fixed;
}
.cta-title {
    font-size: 3rem;
    font-family: var(--font-secondary);
    color: white;
    margin-bottom: 1rem;
}
.cta-text {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

/* ---
--- PORTFOLIO PAGE STYLES ---
--- */

/* --- PORTFOLIO HERO (#portfolio-hero) --- */
.portfolio-bg {
    background-image: url('images/portfolio-bg.jpg');
    filter: brightness(0.5);
    animation-name: pan-effect; /* Use a different animation */
    animation-duration: 25s;
}

@keyframes pan-effect {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

/* --- GALLERY (#gallery) --- */
#gallery {
    background-color: #021a42;
}
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.filter-btn {
    background: none;
    border: 2px solid var(--mid-blue);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-weight: bold;
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--mid-blue);
    color: white;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.gallery-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute; /* Remove from flow */
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(1, 22, 56, 0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}
.gallery-overlay h3 {
    font-size: 1.3rem;
    font-family: var(--font-secondary);
}

/* --- PROJECT SPOTLIGHT (#project-spotlight) --- */
.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.spotlight-text blockquote {
    font-family: var(--font-secondary);
    font-style: italic;
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-top: 2rem;
}
.spotlight-images {
    position: relative;
    height: 600px;
}
.spotlight-images img {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}
.spotlight-img-1 {
    width: 70%;
    height: 400px;
    top: 0;
    left: 0;
    z-index: 2;
}
.spotlight-img-2 {
    width: 60%;
    height: 400px;
    bottom: 0;
    right: 0;
    z-index: 1;
}
.spotlight-images:hover .spotlight-img-1 { transform: rotate(-3deg) scale(1.02); }
.spotlight-images:hover .spotlight-img-2 { transform: rotate(3deg) scale(1.02); }


/* --- THEMATIC SHOWCASE (#thematic-showcase) --- */
#thematic-showcase {
    background-color: #021a42;
    padding-top: 6rem;
    padding-bottom: 0;
}
.thematic-header {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}
.horizontal-scroll-wrapper {
    overflow-x: auto;
    padding-bottom: 6rem; /* Match section padding */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}
.horizontal-scroll {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 0  calc((100vw - 1200px) / 2 + 2rem); /* Center align content */
    scroll-snap-type: x mandatory;
}
.scroll-item {
    flex: 0 0 400px;
    height: 550px;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: center;
}
.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.scroll-item-cta {
    flex: 0 0 400px;
    height: 550px;
    border-radius: 8px;
    background-color: var(--mid-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-snap-align: center;
}
.scroll-item-cta h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

/* --- BEHIND THE LENS (#behind-the-lens) --- */
/* ---
--- BEHIND THE LENS SECTION (REDESIGNED) ---
--- */

#behind-the-lens-redesigned {
    /* Uses the default dark background */
}

.lens-story-wrapper {
    max-width: 1000px;
    margin: 4rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 6rem; /* Creates space between the two story blocks */
}

.lens-story-item {
    position: relative;
    display: flex;
    align-items: center;
}

.lens-story-image {
    position: relative;
    flex-basis: 70%; /* Image takes up 70% of the container width */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.lens-story-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient to enhance text readability on the card */
    background: linear-gradient(to right, rgba(1, 22, 56, 0.3), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.lens-story-item.align-right .lens-story-image::after {
    background: linear-gradient(to left, rgba(1, 22, 56, 0.3), transparent 50%);
}

.lens-story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lens-story-content {
    position: absolute;
    width: 50%; /* Card is 50% of the parent's width */
    z-index: 10;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

/* --- Layout Logic for Alternating Sides --- */

/* Default (Left Aligned Image) */
.lens-story-item {
    justify-content: flex-start;
}
.lens-story-content {
    right: 0; /* Align card to the right edge of the item */
    transform: translateX(40px); /* Offset the card to the right */
    background-color: #fff;
    color: #021a42;
    padding: 15px;
    border-radius: 12px;
}


/* Right Aligned Image Modifier */
.lens-story-item.align-right {
    justify-content: flex-end;
}
.lens-story-item.align-right .lens-story-content {
    left: 0; /* Align card to the left edge */
    right: auto; /* Reset right property */
    transform: translateX(-40px); /* Offset the card to the left */
}

/* --- Sophisticated Hover Effects --- */
.lens-story-item:hover .lens-story-image img {
    transform: scale(1.05);
}

.lens-story-item:hover .lens-story-image::after {
    opacity: 1;
}

.lens-story-item:hover .lens-story-content {
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

.lens-story-item:not(.align-right):hover .lens-story-content {
    transform: translateX(50px) scale(1.02);
}

.lens-story-item.align-right:hover .lens-story-content {
    transform: translateX(-50px) scale(1.02);
}

/* --- Redesigned Section Responsive Styles --- */

@media (max-width: 992px) {
    .lens-story-item,
    .lens-story-item.align-right {
        display: block; /* Stack elements vertically */
    }

    .lens-story-image {
        flex-basis: auto;
        width: 100%;
    }

    .lens-story-content {
        position: relative;
        width: 90%;
        margin: -4rem auto 0; /* Overlap the image from the bottom */
        transform: none !important; /* Reset all transforms */
        left: auto !important;
        right: auto !important;
    }

    .lens-story-wrapper {
        gap: 5rem;
    }
}
/* --- CLIENT IMPACT (#client-impact) --- */
#client-impact {
    background-color: var(--dark-blue);
}
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}
.impact-card {
    padding: 2rem;
    border: 1px solid var(--mid-blue);
    border-radius: 8px;
}
.impact-number {
    font-size: 4rem;
    font-weight: bold;
    font-family: var(--font-secondary);
    color: white;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}
.impact-number::after {
    content: '+';
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: -1.5rem;
    color: var(--accent-color);
}
.impact-card h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.5rem;
}

/* --- PORTFOLIO CTA (#portfolio-cta) --- */
#portfolio-cta {
    background: linear-gradient(rgba(1, 22, 56, 0.8), rgba(1, 22, 56, 0.8)),  no-repeat center center/cover;
    background-attachment: fixed;
}


/* --- PORTFOLIO RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .spotlight-grid { grid-template-columns: 1fr; }
    .spotlight-images { height: 500px; margin-top: 2rem; }
    .behind-lens-grid { grid-template-columns: 1fr; }
    /* Reorder for better mobile flow */
    .behind-lens-grid .behind-lens-text:nth-of-type(3) { grid-row: 3; }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .scroll-item, .scroll-item-cta { flex-basis: 300px; height: 450px; }
    .horizontal-scroll { padding: 0 1rem; }
}

/* ---
--- STUDIO PAGE STYLES ---
--- */

/* --- STUDIO HERO (#studio-hero) --- */
.studio-bg {
    background-image: url('images/studio-bg.jpg');
    filter: brightness(0.5) contrast(1.1);
}

/* --- STUDIO INTRO (#studio-intro) --- */
/* ---
--- STUDIO INTRO SECTION (REDESIGNED) ---
--- */

#studio-intro-redesigned {
    background-color: #021a42;
    overflow: hidden; /* Prevent horizontal scrollbars from transforms */
}

/* A full-width container for a more immersive feel */
.container-fluid {
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
}

.intro-layout {
    display: grid;
    /* Asymmetrical columns: flexible | slightly larger & flexible | flexible */
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.intro-image-left,
.intro-image-right {
    position: relative;
    z-index: 1; /* Images are behind the text */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.intro-image-left img,
.intro-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.intro-image-left {
    height: 110%; /* Makes the left image taller */
    /* Pushes the image towards the center, creating the overlap */
    transform: translateX(20%);
}

.intro-image-right {
    height: 80%; /* Makes the right image shorter and wider */
    /* Pushes the image towards the center */
    transform: translateX(-20%);
}

.intro-text-center {
    position: relative;
    z-index: 10; /* Ensures text is on top of the images */
    text-align: center;
    padding: 3rem 1rem;
}

.intro-text-center p {
    max-width: 45ch;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
    color: var(--light-gray);
}


/* --- Sophisticated Hover State for the whole section --- */
.intro-layout:hover .intro-image-left img,
.intro-layout:hover .intro-image-right img {
    transform: scale(1.05);
}

/* Create a subtle parallax effect on hover */
.intro-layout:hover .intro-image-left {
    transform: translateX(18%) translateY(-2%);
}
.intro-layout:hover .intro-image-right {
    transform: translateX(-18%) translateY(2%);
}


/* --- Redesigned Section Responsive Styles --- */

@media (max-width: 992px) {
    .intro-layout {
        grid-template-columns: 1fr; /* Stack elements */
        gap: 0;
    }

    .intro-image-left,
    .intro-image-right {
        transform: none !important; /* IMPORTANT: Reset transforms */
        width: 90%;
        margin: 0 auto;
        height: 400px;
    }

    .intro-image-left {
        order: 1; /* image */
    }

    .intro-text-center {
        order: 2; /* text */
        padding: 4rem 1rem;
    }
    
    .intro-image-right {
        order: 3; /* image */
    }
}

/* --- TECHNOLOGY & EQUIPMENT (#studio-tech) --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.tech-card {
    background-color: var(--mid-blue);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
.tech-card:hover {
    transform: translateY(-8px);
    background-color: #404b61;
}
.tech-card h3 {
    color: white;
    margin-bottom: 0.75rem;
}

/* --- AMENITIES (#studio-amenities) --- */
#studio-amenities { padding: 0; }
.amenities-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}
.amenities-image {
    background: url('images/amenities-bg.webp') no-repeat center center/cover;
}
.amenities-text {
    display: flex;
    align-items: center;
    padding: 4rem;
}
.amenities-text .glass-effect {
    max-width: 500px;
}

/* --- STUDIO SPACES (#studio-spaces) --- */
#studio-spaces { background-color: #021a42; }
.tabs-nav {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--mid-blue);
    margin-bottom: 3rem;
}
.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-speed) ease;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}
.tab-btn:hover { color: white; }
.tab-btn.active { color: white; }
.tab-btn.active::after { width: 100%; }
.tab-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    animation: fadeIn 0.6s ease;
}
.tab-content.active { display: grid; }
.tab-content img { width: 100%; height: 400px; object-fit: cover; hborder-radius: 8px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- FLOOR PLAN (#floor-plan) --- */
/* ---
--- FLOOR PLAN SECTION (REDESIGNED & SUBTLE) ---
--- */

#floor-plan-redesigned {
    /* Uses the default dark background */
}

.floor-plan-wrapper-subtle {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    border-radius: 8px;
    overflow: hidden;
    /* Adds a subtle frame and depth */
    border: 1px solid var(--mid-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.floor-plan-wrapper-subtle img {
    width: 100%;
    display: block;
    /* Desaturate the image slightly to make hotspots stand out gently */
    filter: grayscale(40%) brightness(0.9);
    transition: filter var(--transition-speed) ease;
}

/* On hover, bring the floor plan into full focus */
.floor-plan-wrapper-subtle:hover img {
    filter: none;
}

.hotspot-subtle {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The outer ring */
.hotspot-subtle::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 50%;
    background-color: rgba(1, 22, 56, 0.5); /* Semi-transparent center */
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* The inner dot that appears on hover */
.hotspot-subtle::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hotspot-label {
    position: absolute;
    left: 100%;
    margin-left: 15px; /* Spacing between ring and text */
    background-color: var(--dark-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.9rem;
    /* Initial state: hidden and slightly moved */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Subtle Hover Interactions --- */

.hotspot-subtle:hover::before {
    transform: scale(1.3);
    background-color: rgba(1, 22, 56, 0); /* Center becomes transparent */
}

.hotspot-subtle:hover::after {
    transform: scale(1);
    opacity: 1;
}

.hotspot-subtle:hover .hotspot-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Adjust label position for hotspots on the right side */
.hotspot-subtle[style*="left: 75%"] .hotspot-label,
.hotspot-subtle[style*="left: 60%"] .hotspot-label {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 15px;
    transform: translateX(10px); /* Initial move from the other direction */
}

.hotspot-subtle[style*="left: 75%"]:hover .hotspot-label,
.hotspot-subtle[style*="left: 60%"]:hover .hotspot-label {
    transform: translateX(0);
}
/* --- BOOKING CTA (#booking-cta) --- */
#booking-cta {
    background: linear-gradient(rgba(1, 22, 56, 0.8), rgba(1, 22, 56, 0.8)),  no-repeat center center/cover;
    background-attachment: fixed;
}


/* --- STUDIO RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .amenities-layout { grid-template-columns: 1fr; }
    .amenities-image { display: none; } /* Hide image, text becomes full width */
    .amenities-text { padding: 6rem 2rem; justify-content: center; text-align: center; }
    .tab-content { grid-template-columns: 1fr; }
    .tab-content img { margin-bottom: 2rem; }
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "text"
            "image1"
            "image2";
        text-align: center;
    }
    .tabs-nav { flex-wrap: wrap; }
    .tab-btn { font-size: 0.9rem; padding: 0.8rem 1.2rem; }
    .hotspot-dot { width: 15px; height: 15px; }
    @keyframes pulse { 70% { box-shadow: 0 0 0 15px rgba(163, 177, 198, 0); } }
}

/* ---
--- PRICING PAGE STYLES ---
--- */

/* --- PRICING HERO (#pricing-hero) --- */
.no-padding { padding: 0; }
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}
.split-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background-color: #021a42;
}
.split-image {
    background-color: var(--dark-blue);
    overflow: hidden;
}
.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 1.5s ease-out;
}
.split-image:hover img {
    transform: scale(1.05);
}

/* --- PHILOSOPHY (#philosophy) --- */
.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}
.philosophy-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--light-gray);
}

/* --- PACKAGES (#packages) --- */
#packages { background-color: #021a42; }
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch; /* Make cards same height */
}
.package-card {
    background: var(--mid-blue);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid transparent;
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}
.package-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}
.package-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}
.package-card.popular:hover {
    transform: scale(1.08);
}
.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: -45px;
    background-color: var(--accent-color);
    color: var(--dark-blue);
    padding: 0.3rem 3rem;
    font-weight: bold;
    font-size: 0.9rem;
    transform: rotate(45deg);
}
.package-header h3 {
    font-size: 1.8rem;
    color: white;
    font-family: var(--font-secondary);
}
.package-header .price {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin: 1rem 0;
}
.price span {
    font-size: 1.5rem;
    color: var(--accent-color);
    vertical-align: super;
    margin-right: 0.2rem;
}
.package-header .description {
    min-height: 40px;
}
.package-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}
.package-features li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}
.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}
.package-card .cta-button {
    width: 100%;
}

/* --- A LA CARTE (#a-la-carte) --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    border-bottom: 1px solid var(--mid-blue);
}
.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1rem;
}
.accordion-content p {
    padding-bottom: 1.5rem;
}
.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}
.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

/* --- ROI CASE STUDY (#case-study) --- */
#case-study { background-color: #021a42; }
.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(145deg, var(--mid-blue), #2c3547);
    border-radius: 8px;
    overflow: hidden;
}
.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.case-study-content {
    padding: 3rem;
}
.case-study-content h3 {
    color: white;
    margin-bottom: 1rem;
}
.case-study-content strong {
    color: var(--accent-color);
}

/* --- BOOKING PROCESS (#booking-process) --- */
/* ---
--- BOOKING PROCESS SLIDER (REDESIGNED) ---
--- */

#booking-process-redesigned {
    /* Uses the default dark background */
}

.process-slider-container {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 0 4rem; /* Space for the navigation arrows */
}

.slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden; /* This is the magic! Hides the other slides */
    border-radius: 8px;
}

.slider-track {
    display: flex;
    /* This transition is the heart of the smooth sliding effect */
    transition: transform 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.process-slide {
    flex: 0 0 100%; /* Each slide takes up the full width of the viewport */
    width: 100%;
    min-height: 250px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    background: var(--mid-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-background-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: bold;
    font-family: var(--font-secondary);
    color: rgba(1, 22, 56, 0.3);
    z-index: 1;
    user-select: none;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 50ch;
}

.slide-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* --- Slider Navigation --- */

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Allows clicks to pass through */
}

.slider-btn {
    pointer-events: all; /* Makes buttons clickable */
    background: rgba(205, 205, 205, 0.1);
    border: 1px solid var(--mid-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
}

.slider-btn:hover {
    background: var(--mid-blue);
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

/* --- Slider Pagination --- */

.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--mid-blue);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.pagination-dot:hover {
    background-color: var(--accent-color);
}

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

/* --- Responsive Styles for Slider --- */

@media (max-width: 768px) {
    .process-slider-container {
        padding: 0; /* Remove side padding, arrows will sit on top */
    }
    
    .slider-nav {
        left: 10px;
        right: 10px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .process-slide {
        padding: 2rem;
        min-height: 300px;
    }
}
/* --- CUSTOM QUOTE CTA (#custom-quote-cta) --- */
#custom-quote-cta {
    background: linear-gradient(rgba(1, 22, 56, 0.8), rgba(1, 22, 56, 0.8)),  no-repeat center center/cover;
    background-attachment: fixed;
}

/* --- PRICING RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .split-layout { grid-template-columns: 1fr; }
    .split-image { min-height: 300px; grid-row: 1; }
    .package-card.popular { transform: scale(1); }
    .package-card.popular:hover { transform: translateY(-10px) scale(1.02); }
    .case-study-card { grid-template-columns: 1fr; }
    .case-study-image img { max-height: 400px; }
}

@media (max-width: 768px) {
    .split-content { padding: 3rem 1.5rem; text-align: center; }
}

/* ---
--- TESTIMONIALS PAGE STYLES ---
--- */

/* --- TESTIMONIAL HERO (#testimonial-hero) --- */
.testimonial-bg {
    background-image: url('images/testi-bg.jpg');
    filter: brightness(0.6);
}

/* --- STAR REVIEWS (#star-reviews) --- */
/* ---
--- TESTIMONIAL TABS (REDESIGNED) ---
--- */
#star-reviews-redesigned {
    background-color: #021a42;
}

.testimonial-tabs-wrapper {
    display: grid;
    /* Asymmetrical layout: narrow column for tabs, wide for content */
    grid-template-columns: 1fr 3fr; 
    gap: 3rem;
    max-width: 900px;
    margin: 4rem auto 0;
    align-items: start;
}

/* --- Tab Navigation (Avatars) --- */
.testimonial-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.testimonial-tab-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    /* Inactive state */
    opacity: 0.5;
    transform: scale(0.9);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.testimonial-tab-btn img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid transparent;
    transition: border-color var(--transition-speed) ease;
}

.testimonial-tab-btn:hover {
    opacity: 0.8;
    transform: scale(0.95);
}

.testimonial-tab-btn.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-tab-btn.active img {
    border-color: var(--accent-color);
}

/* --- Tab Content Area --- */
.testimonial-content-area {
    position: relative;
    min-height: 300px; /* Prevents layout jump during content swap */
    background: var(--mid-blue);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.testimonial-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Initial state for inactive tabs */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.testimonial-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.content-inner {
    padding: 2.5rem;
    position: relative;
}

.content-inner::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: rgba(1, 22, 56, 0.5);
    font-family: var(--font-secondary);
    line-height: 1;
    z-index: 1;
}

.content-inner blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.content-inner cite {
    font-weight: bold;
    color: white;
    font-style: normal;
}

/* --- Responsive Styles for Tabs --- */
@media (max-width: 768px) {
    .testimonial-tabs-wrapper {
        grid-template-columns: 1fr; /* Stack layout */
        gap: 2rem;
    }

    .testimonial-tabs-nav {
        flex-direction: row; /* Avatars in a row */
        justify-content: center;
        order: -1; /* Move avatars to the top */
    }

    .testimonial-tab-btn img {
        width: 60px;
        height: 60px;
    }
    
}
@media (max-width: 450px)
{
    .testimonial-content-area
    {
        min-height: 450px;
    }
}
/* --- VIDEO STORY (#video-story) --- */
.video-feature {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.video-feature img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
.video-feature:hover img {
    transform: scale(1.05);
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--dark-blue);
    transition: border-left-color 0.3s ease;
}
.video-feature:hover .play-button {
    background-color: white;
    transform: translate(-50%, -50%) scale(1.1);
}
.video-feature:hover .play-button::after {
    border-left-color: var(--mid-blue);
}

/* --- QUOTE CAROUSEL (#quote-carousel-section) --- */
#quote-carousel-section {
    background-color: #021a42;
    padding: 4rem 0;
}
.quote-carousel-wrapper {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.quote-carousel-track {
    display: flex;
    width: calc(2 * (400px * 5)); /* (width of slide * number of original slides) * 2 */
    animation: scroll 30s linear infinite;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.quote-carousel-track:hover {
    animation-play-state: paused;
}
.quote-slide {
    flex-shrink: 0;
    width: 400px;
    padding: 2rem;
    text-align: center;
}
.quote-slide p {
    font-size: 1.2rem;
    font-style: italic;
    color: white;
}
.quote-slide span {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-style: normal;
    color: var(--accent-color);
}

/* --- TESTIMONIAL CASE STUDY (#testimonial-case-study) --- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.story-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.story-images img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.story-images img:nth-child(1) {
    grid-row: span 2;
    height: 100%;
}
.story-images img:nth-child(2) {
    align-self: start;
}
.story-images img:nth-child(3) {
    align-self: end;
}
.story-text p {
    margin-bottom: 1rem;
}
.story-text strong {
    color: var(--accent-color);
}

/* --- 'AS SEEN ON' LOGO WALL (#as-seen-on) --- */
#as-seen-on { background-color: #021a42; }
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
}
.logo-grid img {
    max-height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}
.logo-grid img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

/* --- TESTIMONIAL CTA (#testimonial-cta) --- */
#testimonial-cta {
    background: linear-gradient(rgba(1, 22, 56, 0.8), rgba(1, 22, 56, 0.8)),  no-repeat center center/cover;
    background-attachment: fixed;
}

/* --- TESTIMONIALS RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .story-grid { grid-template-columns: 1fr; }
    .story-images { grid-row: 1; margin-bottom: 2rem; grid-template-columns: repeat(3, 1fr); }
    .story-images img:nth-child(1) { grid-row: span 1; }
}

@media (max-width: 768px) {
    .testimonial-card blockquote { font-size: 1rem; }
    .play-button { width: 60px; height: 60px; }
    .play-button::after { border-top-width: 12px; border-bottom-width: 12px; border-left-width: 20px; }
    .quote-slide { width: 300px; }
    .quote-carousel-track { width: calc(2 * (300px * 5)); }
}

/* ---
--- VISION PAGE STYLES ---
--- */

/* --- VISION HERO (#vision-hero) --- */
#vision-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vision-bg {
    background-image: url('images/vision-bg.jpg');
    filter: brightness(0.4) blur(3px); /* Add blur for effect */
    animation: zoom-in 30s ease-in-out infinite alternate;
}
.vision-quote-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid rgba(205, 205, 205, 0.5);
    padding: 3rem;
}
.vision-quote {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.5;
    color: white;
    font-style: italic;
}

/* --- MANIFESTO (#manifesto) --- */
#manifesto { background-color: #021a42; }
.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}
.manifesto-item h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
}
.manifesto-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

/* --- FOUNDER'S NOTE (#founder-note) --- */
.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}
.founder-image img {
    width: 100%;
    border-radius: 8px;
}
.founder-signature {
    max-width: 200px;
    margin: 1.5rem 0 0.5rem;
    filter: invert(1) brightness(1.5); /* Make dark signature white */
}
.founder-name {
    font-weight: bold;
    color: white;
}

/* --- CORE VALUES (#core-values) --- */
#core-values { background-color: #021a42; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.value-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: white;
}
.value-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    transition: transform 0.6s ease, filter 0.6s ease;
}
.value-card:hover .value-bg {
    transform: scale(1.1);
    filter: brightness(0.4);
}
.value-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(1, 22, 56, 0.9) 30%, transparent);
    width: 100%;
}
.value-content h3 {
    font-size: 2.5rem;
    font-family: var(--font-secondary);
    margin-bottom: 0.5rem;
}

/* --- SUSTAINABILITY & ETHICS (#sustainability) --- */
.sustainability-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.sustainability-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- FUTURE OF AURALENS (#future-vision) --- */
/* ---
--- FUTURE VISION SECTION (REDESIGNED & SOPHISTICATED) ---
--- */

#future-vision-redesigned {
    position: relative;
    padding: 8rem 0;
    min-height: 90vh; /* Ensures the section has enough height to showcase the parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;

    /* The core of the parallax effect */
    background-image: 
        /* Dark overlay for text readability */
        linear-gradient(rgba(1, 22, 56, 0.7), rgba(1, 22, 56, 0.7)),
        /* The background image */
        url('images/future.webp');
    background-position: center;
    background-size: cover;
    background-attachment: fixed; /* This magical property creates the parallax scroll effect */
}

.future-content-frame {
    position: relative;
    max-width: 700px;
    padding: 4rem;
    text-align: center;
    border-radius: 8px;
    
    /* A more refined glass effect for this specific section */
    background: rgba(1, 22, 56, 0.6); /* Slightly more opaque for readability */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--mid-blue);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden; /* Important for the ::before pseudo-element */
}

/* Re-purposing the radial gradient as a subtle internal lighting effect */
.future-content-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(54, 65, 86, 0.3), transparent 40%);
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
    opacity: 0;
}

.future-content-frame:hover::before {
    opacity: 1;
}

.future-content-frame .section-title {
    color: white;
}

.future-content-frame p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 1.5rem;
    color: var(--light-gray);
}


/* --- Redesigned Section Responsive Styles --- */

@media (max-width: 768px) {
    #future-vision-redesigned {
        padding: 6rem 0;
        /* Parallax can be jittery on some mobile devices, so we switch to a normal scroll */
        background-attachment: scroll;
    }

    .future-content-frame {
        padding: 2.5rem;
        max-width: 90%;
    }

    .future-content-frame p {
        font-size: 1rem;
    }
}

/* --- VISION CTA (#vision-cta) --- */
#vision-cta {
    background: linear-gradient(rgba(1, 22, 56, 0.8), rgba(1, 22, 56, 0.8)),  no-repeat center center/cover;
    background-attachment: fixed;
}

/* --- VISION RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .vision-quote { font-size: 2rem; }
    .vision-quote-wrapper { padding: 2rem; }
    .founder-grid { grid-template-columns: 1fr; text-align: center; }
    .founder-image { max-width: 350px; margin: 0 auto 2rem; }
    .founder-signature { margin: 1.5rem auto 0.5rem; }
    .sustainability-grid { grid-template-columns: 1fr; }
    .sustainability-image { grid-row: 1; margin-bottom: 2rem; }
}

@media (max-width: 768px) {
    .manifesto-grid { grid-template-columns: 1fr; }
    .future-grid { grid-template-columns: 1fr; }
    .future-image { max-height: 400px; object-fit: cover; }
}

/* ---
--- CLIENTS PAGE STYLES ---
--- */

/* --- CLIENTS HERO (#clients-hero) --- */
.clients-bg {
    background-image: url('images/clients-bg.webp');
    filter: brightness(0.5);
}

/* --- LOGO WALL (#logo-wall) --- */
/* ---
--- PURE CSS INFINITE LOGO SLIDER ---
--- */

#logo-wall-redesigned {
    background-color: #021a42;
}

.logo-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Creates the soft, faded edges for a seamless appearance */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-slider-track {
    display: flex;
    align-items: center;
    /* Calculate the width: (item width) * (total number of items) */
    /* In our HTML, we have 8 original + 8 duplicated = 16 total items */
    width: calc(220px * 16);
    
    /* The core infinite animation */
    animation: scrollLogos 40s linear infinite;
}

@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }
    to {
        /* This value is -50% of the track's width. */
        /* It moves the track exactly the length of the original set of logos, */
        /* creating a perfect loop when the animation restarts. */
        transform: translateX(-50%);
    }
}

.client-logo-item {
    flex-shrink: 0;
    width: 220px; /* This width includes padding */
    padding: 0 35px; /* Provides spacing between logos */
    
    /* Default "unfocused" state */
    filter: grayscale(100%);
    opacity: 0.6;
    transform: scale(0.9);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.client-logo-item img {
    max-width: 100%;
    height: auto;
}

/* --- Sophisticated Hover Interactions --- */

/* 1. When hovering the entire wrapper, pause the animation */
.logo-slider-wrapper:hover .logo-slider-track {
    animation-play-state: paused;
}

/* 2. On wrapper hover, all logos become slightly more visible */
.logo-slider-wrapper:hover .client-logo-item {
    opacity: 0.7;
}

/* 3. On specific logo hover, it comes into full, sharp focus */
.logo-slider-wrapper .client-logo-item:hover {
    filter: none; /* Removes grayscale */
    opacity: 1;
    transform: scale(1.1); /* Scales up to pop */
}

/* --- Responsive Styles for the Slider --- */
@media (max-width: 768px) {
    .logo-slider-track {
        /* Speed up animation for smaller screens as there's less to see */
        animation-duration: 30s;
        /* Recalculate width for smaller items */
        width: calc(180px * 16);
    }
    .client-logo-item {
        width: 180px;
        padding: 0 20px;
    }
}

/* --- CLIENT SPOTLIGHTS (#client-spotlights) --- */
.spotlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.spotlight-card {
    background: var(--mid-blue);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow var(--transition-speed) ease;
}
.spotlight-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.spotlight-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.spotlight-card:hover .spotlight-image {
    transform: scale(1.05);
}
.spotlight-content {
    padding: 2rem;
}
.spotlight-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.spotlight-content blockquote {
    font-style: italic;
    color: var(--accent-color);
    margin-top: 1rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
}

/* --- INDUSTRY VERTICALS (#industry-verticals) --- */
#industry-verticals { background-color: #021a42; }
.industry-tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}
.industry-tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--mid-blue);
    border-radius: 50px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}
.industry-tab-btn:hover {
    background-color: var(--mid-blue);
    color: white;
}
.industry-tab-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-blue);
}
.industry-tab-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--mid-blue);
    padding: 3rem;
    border-radius: 8px;
    animation: fadeIn 0.6s ease;
}
.industry-tab-content.active { display: grid; }
.industry-tab-content img { width: 100%; border-radius: 8px; }
.industry-text h3 { color: white; margin-bottom: 1rem; }
.industry-text strong { color: var(--accent-color); }

/* --- LONG-TERM PARTNERSHIPS (#partnerships) --- */
.partnership-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.partnership-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- GLOBAL REACH (#global-reach) --- */
#global-reach { background-color: #021a42; }
.map-container {
    max-width: 1000px;
    margin: 0 auto;
}
.map-image {
    width: 100%;
    filter: invert(0.9) hue-rotate(180deg) contrast(1.2);
}

/* --- CLIENTS CTA (#clients-cta) --- */
#clients-cta {
    background: linear-gradient(rgba(1, 22, 56, 0.8), rgba(1, 22, 56, 0.8)),  no-repeat center center/cover;
    background-attachment: fixed;
}

/* --- CLIENTS RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .industry-tab-content { grid-template-columns: 1fr; }
    .industry-tab-content img { margin-bottom: 2rem; }
    .partnership-grid { grid-template-columns: 1fr; text-align: center; }
    .partnership-image { grid-row: 1; margin-bottom: 2rem; }
}

/* --- FOOTER --- */
.main-footer {
    background-color: #000c24;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-column a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
.footer-column a:hover {
    color: white;
}
.footer-bottom {
    border-top: 1px solid var(--mid-blue);
    padding-top: 2rem;
    text-align: center;
    color: var(--mid-blue);
}


/* --- ANIMATIONS ON SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}
.fade-in-up { transform: translateY(30px); }
.slide-in-left { transform: translateX(-50px); }
.slide-in-right { transform: translateX(50px); }
.zoom-in { transform: scale(0.9); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .section-title { font-size: 2rem; }
    .about-grid, .why-us-content { grid-template-columns: 1fr; text-align: center; }
    .about-image-stack {  height: 400px; }
    .why-us-image { grid-row: 1; margin-bottom: 3rem; }
    .why-us-text { max-width: 60ch; margin: 0 auto; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .hero-title { font-size: 3.5rem; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--mid-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed) ease-in-out;
        gap: 3rem;
    }
    .nav-links.active { right: 0; }
    .menu-toggle { display: block; }
    .masonry-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .masonry-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .masonry-item:nth-child(3) { grid-row: span 1; }
    .process-timeline::before { left: 30px; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; left: 0; padding-left: 5rem; text-align: left; }
    .timeline-item:nth-child(odd) { padding-right: 1rem; text-align: left; }
    .timeline-item::after, .timeline-item:nth-child(even)::after { left: 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    section { padding: 4rem 0; }
    .services-grid { grid-template-columns: 1fr; }
    .masonry-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .masonry-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
}

/* ---
--- LEGAL PAGES STYLES (Privacy Policy, etc.) ---
--- */

#legal-hero-auralens {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(1, 22, 56, 0.7), rgba(1, 22, 56, 0.7)),  no-repeat center center/cover;
}

.legal-page-title {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 400;
    color: white;
}

.legal-page-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-top: 1rem;
}

#policy-content {
    background-color: #021a42;
    padding: 6rem 0;
}

.policy-container {
    max-width: 800px; /* Optimal width for readability */
    margin: 0 auto;
}

.last-updated {
    font-style: italic;
    color: var(--mid-blue);
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--mid-blue);
    padding-bottom: 1rem;
}

#policy-content article {
    margin-bottom: 3rem;
}

#policy-content h2 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--mid-blue);
    padding-bottom: 0.5rem;
}

#policy-content p, #policy-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

#policy-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

#policy-content li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

/* Re-using the checkmark style for consistency */
#policy-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

#policy-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color var(--transition-speed) ease;
}

#policy-content a:hover {
    color: white;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-legal-links a {
    color: var(--mid-blue);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-legal-links a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .legal-page-title { font-size: 2.5rem; }
    .policy-container { padding: 0 1rem; }
    .footer-bottom { 
        flex-direction: column;
        gap: 1rem;
    }
}

/* ---
--- UTILITY PAGES (Thank You, etc.) ---
--- */

.utility-page-body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.utility-main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.confirmation-box {
    max-width: 600px;
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    /* The glass-effect class is already defined, so it will be applied automatically */
}

.confirmation-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.confirmation-text {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.confirmation-box .cta-button {
    margin-top: 1rem;
}

/* --- Sophisticated Checkmark Animation --- */
.checkmark-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--accent-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke: var(--accent-color);
    fill: none;
    animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* --- Entrance Animation for the Box --- */
/* Simple fade-in and scale-up for when the page loads */
@keyframes fadeInScaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-load {
    animation: fadeInScaleUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}