/* Reset and Base Styles */
:root {
    --bg-dark: #07070a;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f7;
    --text-light: #f5f5f5;
    --text-dark: #121212;
    --text-muted: #6e6e73;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --nav-gradient: linear-gradient(90deg, #2a39cd, #a26bfe);
    --font-primary: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4rem;
}

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

/* Typography elements */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.mobile-only {
    display: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar .container {
    max-width: 1440px;
}

.navbar.scrolled {
    background: var(--nav-gradient);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
    margin-right: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: -0.04px;
    text-transform: uppercase;
    font-style: italic;
    line-height: 27px;
    text-decoration: none;
    position: relative;
    transition: color 0.2s, opacity 0.3s ease;
}

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

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

.nav-links a:hover {
    opacity: 0.8;
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
}

.contact-icon {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.contact-icon svg {
    transition: opacity 0.3s ease;
}

.contact-icon:hover svg {
    opacity: 0.8;
}

/* Dark Section Text Helpers */
.dark-section .section-title,
.dark-section .nav-links a,
.dark-section .logo a {
    color: var(--text-light);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-dark);
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(129, 0, 255, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    padding: 0 1rem;
    width: 100%;
    display: grid;
    place-items: start center;
    transform: translateY(86px);
}

.hero-text-set, .footer-text-set {
    grid-area: 1 / 1;
    visibility: hidden;
    text-align: center;
    width: 100%;
}

.hero-text-set.active, .footer-text-set.active {
    visibility: visible;
}

.hero-text-set > *, .footer-text-set > * {
    opacity: 0;
}

.text-fade-in > * {
    animation: textFadeIn 0.8s both ease-out;
}

.text-fade-out > * {
    animation: textFadeOut 0.6s both ease-in;
}

/* Stagger delay for each line */
.hero-text-set > *:nth-child(1), .footer-text-set > *:nth-child(1) { animation-delay: 0s; }
.hero-text-set > *:nth-child(2), .footer-text-set > *:nth-child(2) { animation-delay: 0.15s; }
.hero-text-set > *:nth-child(3), .footer-text-set > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text-set > *:nth-child(4), .footer-text-set > *:nth-child(4) { animation-delay: 0.45s; }

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

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

.hero-pre-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-light);
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.hero-btn-group {
    margin-top: 3rem;
}

.btn.btn-outline {
    border: 1px solid var(--text-light);
    color: var(--text-light);
    text-align: center;
    letter-spacing: -0.5px;
    background-color: transparent;
    border-radius: 25px;
    min-width: 160px;
    min-height: 46px;
    padding: 0 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
    transition: color .2s, background-color .2s;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
}

.btn-outline:hover {
    background: white !important;
    color: black !important;
}

.scroll-down {
    z-index: 5;
    background-image: url('https://cdn.prod.website-files.com/664bf57fef9aa1fb9b5f7e61/664bf57fef9aa1fb9b5f7ec8_Curve.png');
    background-position: 50% 100%;
    background-repeat: no-repeat;
    background-size: 300px;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 55px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    position: absolute;
    inset: auto 0% 0%;
    transition: opacity 0.3s;
}

.scroll-down:hover {
    opacity: 1;
}

.scroll-down-arrow {
    animation: scrollBounce 2s infinite ease-in-out;
    display: block;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Offerings Section */
.h3-big {
    font-size: 50px !important;
    line-height: normal !important;
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic !important;
    font-weight: 900 !important;
    letter-spacing: -1.5px !important;
    margin-top: 0 !important;
}

.h3-big.gradient {
    display: inline-block;
    background-image: linear-gradient(86deg, #2a39cd, #a26bfe);
    text-transform: capitalize;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    padding-right: 0.1em; /* Stops final italic character cutoff during webkit clip */
}

@media screen and (max-width: 991px) {
    .h3-big {
        font-size: 4.3vw;
        line-height: 4.3vw;
    }
}

.subtitle-center {
    margin-bottom: 3rem;
}

.subtitle-medium {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    max-width: 650px;
    margin: 1.5rem auto 0;
    line-height: 1.5;
}

h5.heading-4 {
    color: var(--text-dark);
    letter-spacing: -0.4px;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 900;
    line-height: normal;
}

.offerings {
    margin-top: 8rem;
    padding: 8rem 0; /* Anchor alignment restored to match Strategic Impact */
    background-color: var(--bg-light);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; /* Reduced gap */
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bento-item {
    background: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.bento-item img.bento-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.75rem; /* Reduced by 50% */
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem; /* Reduced font size */
    line-height: 1.4; /* More compact line height */
    height: calc(3 * 1.4 * 0.95rem); 
    overflow: hidden;
    margin-top: 5px;
}

/* Impact Section */
.impact {
    padding: 8rem 0; /* Consistent 8rem top padding restores consistent anchor alignment */
    background-color: var(--bg-light);
}

.impact-header-box {
    max-width: 800px;
    margin: 0 auto;
}

.impact-logo {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto 0.5rem auto;
}


.impact-text {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--text-muted);
}

.impact-text .highlight {
    color: var(--text-dark);
}

/* Impact Projects Section */
.impact-projects {
    max-width: 100%;
    margin: 4rem 0 0;
    padding: 0;
}

.impact-project-card {
    display: flex;
    flex-direction: row;
    border-radius: 0;
    overflow: hidden;
    color: white;
    min-height: 545px;
    gap: 0;
}

.project-left {
    flex: 0 0 33.333%; /* Reverted to 33.333% to maintain the strict original aspect ratio */
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .flex-33 { flex: 0 0 33.333% !important; }
    .flex-fluid { flex: 1 !important; }
}

.project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.view-case-study {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    margin-bottom: 10px; /* forces bottom alignment with project-name baseline */
}

.view-case-study .chevron {
    margin-left: 8px;
    margin-top: 2px; /* Optically nudges down the icon to fix top-aligned appearance */
    transition: transform 0.3s ease;
}

.view-case-study:hover .chevron {
    transform: translateX(4px);
}

.view-case-study:hover {
    opacity: 0.8;
}

.project-right {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    display: block;
    text-decoration: none;
    color: white;
    overflow: hidden;
}

.project-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    z-index: 0;
}

.project-right:hover .project-bg-layer,
.project-right:not(.no-zoom):hover video {
    transform: scale(1.02);
}

.project-right video {
    transition: transform 0.4s ease;
}

.project-image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.project-image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 3rem;
    z-index: 2;
}

.project-category {
    display: block;
    margin-top: 0px;
    transition-property: opacity;
    transition-duration: 200ms;
    transition-timing-function: ease;
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 18px;
    line-height: 24px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.project-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    line-height: 40px;
    font-weight: 800;
    margin-top: 10px;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
    text-transform: capitalize;
}

.mac-bg-img {
    background-size: 125%;
}

@media (max-width: 991px) {
    .impact-project-card {
        flex-direction: column;
    }
    .project-left {
        flex: auto;
        padding: 3rem;
    }
    .project-right {
        flex: auto;
        min-height: 350px;
    }
    .mac-bg-img {
        background-size: cover;
    }
}

/* About wrapper merged block */
.about-wrapper {
    padding: 0 0 8rem 0;
    background-color: #ffffff;
    scroll-margin-top: 6rem;
}
.why-i-design-block {
    padding-bottom: 45px;
}
.about-philosophy-block {
    padding-top: 45px;
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-image {
    width: 41%;
    margin-right: 5%;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.about-content {
    width: 54%;
}

.about-image img {
    width: 100%;
    margin-bottom: 0;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

.pre-title {
    font-family: 'Montserrat', sans-serif;
    color: #8390a2; /* Matching the muted grey shown in the spec */
    font-size: 19px;
    line-height: 23px;
    font-weight: 800;
    letter-spacing: -0.4px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.about-content .section-subtitle {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 2.66vw, 34px);
    line-height: clamp(32px, 3.5vw, 45px);
    font-weight: 700;
    color: #313131;
}

/* Footer */
.footer-hero {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: var(--text-light);
    font-size: 0.9rem;
    overflow: hidden;
    background-color: var(--bg-dark);
}
.footer-hero .hero-content {
    transform: none; /* Override standard hero vertical transform */
}
.footer-hero .hero-video-container {
    z-index: 1; /* Override hero's -1 so video renders above bg-dark */
}
.footer-hero .hero-overlay {
    z-index: 2;
}
.footer-hero .hero-content {
    z-index: 3;
}
.footer-hero .bg-video {
    transform: scale(1.15); /* Upscale to push black bars and Veo watermark out of view */
}

.footer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7,7,10,0.9), rgba(7,7,10,0.4));
    z-index: 2;
}

.footer-bottom {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 4;
    opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .navbar {
        padding: 1.5rem 0;
    }
    .navbar.scrolled {
        padding: 1rem 0;
    }
    .navbar .container {
        padding: 0 2rem;
    }
    
    .nav-right-actions {
        gap: 3rem;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px; /* Default square button padding */
        position: relative; /* For the ::before stretch */
        border-radius: 4px;
        transition: color 0.2s;
        z-index: 1;
    }
    
    .mobile-menu-btn::before {
        content: '';
        position: absolute;
        top: -1.5rem; /* Matches .navbar padding */
        bottom: -1.5rem;
        left: -1rem; /* Creates horizontal width */
        right: -1rem;
        background-color: transparent;
        z-index: -1;
        transition: background-color 0.2s, top 0.3s ease, bottom 0.3s ease;
    }
    
    .navbar.scrolled .mobile-menu-btn::before {
        top: -1rem; /* Matches scrolled .navbar padding */
        bottom: -1rem;
    }
    
    .mobile-menu-btn.open::before {
        background-color: #ebeff6;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ebeff6;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 0;
        gap: 0;
        margin: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links > li {
        width: 100%;
    }
    
    .nav-links.active {
        display: flex !important;
    }

    .nav-links.active a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        color: #000000 !important;
    }
    
    .nav-links.active a.current-section {
        color: #2472f3 !important;
    }
    
    .nav-links a::after {
        display: none !important;
    }
    
    .nav-links a:hover {
        opacity: 1 !important;
    }
    
    .mobile-menu-btn.open {
        color: #000000;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        gap: 0;
    }
    .about-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
    }
    .about-content {
        width: 100%;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* MORE WORKS */
.more-works {
    background-color: #ffffff;
    padding: 4rem 0 16rem 0;
}
.more-works-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4rem;
}
.more-works-header {
    font-family: 'Montserrat', sans-serif;
    color: #313131;
    font-weight: 900;
    font-style: italic;
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.4px;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 2.5rem;
}
.more-works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 2.5rem;
}
.more-work-card {
    display: block;
    text-decoration: none;
}
.more-work-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #f5f5f5;
}
.more-work-image {
    width: 100%;
    display: block;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.more-work-image-wrapper:hover .more-work-image {
    transform: scale(1.02);
}
.more-work-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    color: #4437ff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transition: opacity 300ms ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.more-work-button svg {
    transition: transform 0.3s ease;
}
.more-work-image-wrapper:hover .more-work-button {
    opacity: 1;
}
.more-work-button:hover svg {
    transform: translateX(4px);
}
.more-work-tag {
    display: inline-block;
    background-color: #f2f4f8;
    color: #8390a2;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    pointer-events: none;
}
.more-work-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #313131;
    margin: 0;
    line-height: 1.2;
    transition: all 0.3s ease;
    display: inline;
}
.more-work-title-link {
    display: block;
    text-decoration: none;
}
.more-work-title:hover {
    background-image: linear-gradient(86deg, #2a39cd, #a26bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (max-width: 991px) {
    .more-works-container { padding: 0 2rem; }
    .more-works-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* =========================================
   EXPERIENCE TABS SECTION
   ========================================= */
.tabs-section {
    padding: 4rem 0 8rem 0;
    background-color: var(--bg-light);
}

.tabs-container {
    max-width: 1045px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-image: linear-gradient(180deg, #ebeff6, #ffffff);
    padding-bottom: 60px;
}

/* Tab Navigation Menu */
.tabs-menu-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

.tabs-menu {
    display: flex;
    align-items: center;
    background-image: linear-gradient(86deg, #2a39cd, #a26bfe);
    border-radius: 34px;
    padding: 12px 23px;
    margin: -21px auto 40px;
    box-shadow: 0 10px 20px rgba(42, 57, 205, 0.15);
}

.tab-pill {
    background: transparent;
    color: #ffffff;
    border: none;
    border-radius: 22.5px;
    padding: 9px 30px;
    height: 47px;
    margin: 0 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    font-style: italic;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.tab-pill:hover {
    opacity: 1;
}

.tab-pill.active {
    background-color: #a26bfe; /* Matches --gradient-2 for the active pill */
    color: #ffffff;
    opacity: 1;
}

/* Tab Content Visibility */
.tab-content {
    display: none;
    padding-top: 10px;
}
.tab-content.active {
    display: block;
    animation: fadeInTab 0.4s ease forwards;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shared Tab Typography & Grids */
.tab-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 56px;
    line-height: 58px;
    background-image: linear-gradient(86deg, #2a39cd, #a26bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    margin-bottom: 1.4rem; /* Reduced 30% from 2rem */
    letter-spacing: -0.02em;
    padding-right: 0.1em; /* Stops final italic character cutoff during webkit clip */
}

.tab-heading.text-center {
    display: table;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.tab-heading.align-left {
    display: inline-block;
    text-align: left;
    margin-bottom: 1rem;
}

.tab-flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7%;
    margin-bottom: 4rem;
}

.enterprise-container .tab-flex-row,
.mentorship-container .tab-flex-row {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    display: flex;
    align-items: center; /* Vertical centralization */
}
.mentorship-container .tab-flex-row {
    margin-top: 6rem; /* Calibrated space from stats above */
    gap: 12%; /* Increased gap to balance the scaled avatar */
}
.mentorship-container .tab-heading.align-left {
    margin-bottom: 0.5rem;
}
.enterprise-container .tab-image-col, 
.enterprise-container .tab-text-col {
    flex: 0 0 46.5%; /* Balances inside 85% parent with 7% gap */
}
.mentorship-container .tab-image-col,
.mentorship-container .tab-text-col {
    flex: 0 0 44%; /* Balances inside 85% parent with 12% gap */
}
.enterprise-container .tab-text-col,
.mentorship-container .tab-text-col {
    padding-left: 12px;
}
.enterprise-container .tab-image-col img,
.mentorship-container .tab-image-col img {
    width: 100%;
    margin: 0;
}
.tab-flex-row.align-center {
    align-items: center;
}

.tab-image-col {
    flex: 1;
    min-width: 320px;
}
.tab-image-col img {
    width: 100%;
    height: auto;
    display: block;
}

.tab-text-col {
    flex: 1;
    min-width: 320px;
}

.tab-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    line-height: 45px;
    font-weight: 700;
    color: var(--font, #313131);
    margin-bottom: 1.25rem;
}

.resume-btn {
    display: inline-block;
    position: relative;
    min-height: 46px;
    min-width: 160px;
    padding: 17px 30px 10px;
    border-radius: 25px;
    background-color: transparent;
    background-image: linear-gradient(86deg, #2a39cd, #a26bfe);
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 16px;
    line-height: 12px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: color 200ms ease;
    border: none;
}

/* Stats Row */
.tab-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.stat-number {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 58px;
    line-height: 58px;
    margin-bottom: 0.5rem;
    background-image: linear-gradient(86deg, #2a39cd, #a26bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 16px;
    line-height: 23px;
    color: #888888;
    font-weight: 600;
}

/* Startup Carousel Constraints */
.carousel-container {
    position: relative;
    width: 114%;
    margin-left: -7%;
    margin-right: -7%;
    margin-top: 8px;
    /* No overflow:hidden — track handles its own scroll, buttons must not be clipped */
}
.carousel-track {
    display: flex;
    gap: 3%;
    overflow-x: auto;
    /* No scroll-snap — programmatic scrollToStep() controls positions; snap would override JS */
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 25px; /* Room for hover shadow above slides */
    padding-bottom: 80px; /* Extra space so buttons are fully inside the container */
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-spacer {
    flex: 0 0 5.5%; /* = peekW. Left pad = spacer(5.5)+gap(3)=8.5% = gap(3)+peek(5.5) = right pad */
    flex-shrink: 0;
}
.carousel-slide {
    flex: 0 0 40%; /* 2 full slides + 2 peeks + 3 gaps ≈ 100% of carousel width */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer; /* Clickable for future interactions */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carousel-slide:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.1); /* 50% reduced opacity */
}
.carousel-slide img {
    display: block; /* Removes inline baseline gap (the white bottom margin) */
    width: 100%;
    border-radius: 12px;
}

.carousel-controls {
    position: absolute;
    bottom: 10px; /* Positive offset so buttons stay inside the container bounds */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}
.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-image: linear-gradient(135deg, #2a39cd, #a26bfe);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(42, 57, 205, 0.4);
    transition: transform 0.2s;
}
.carousel-btn:hover {
    transform: scale(1.05);
}

/* What People Say – Testimonials */
.testimonials-section {
    background-image: linear-gradient(180deg, #ebeff6, #ffffff);
    padding: 90px 0;
}
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px;
    margin: 1.5rem auto 0; /* 50% extra spacing from subtitle */
    text-align: left;
}
.testimonial-card {
    width: 48%;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-top {
    object-position: top;
}
/* Zoomed avatar wrapper — used when a person's head is too small at default crop */
.avatar-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.avatar-wrapper .testimonial-avatar {
    width: 150%;
    height: 150%;
    margin-left: -25%; /* center horizontally after 1.5x zoom */
    margin-top: 0; /* top-aligned */
    border-radius: 0; /* wrapper handles the rounding */
}
.testimonial-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #313131;
    line-height: 1.3;
}
.testimonial-role {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #88919b;
    line-height: 1.3;
}
.testimonial-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 22px;
    color: #313131;
    margin: 0 0 10px;
}
.testimonial-quote {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #313131;
    margin: 0;
}
.testimonial-hidden {
    display: none;
}
.testimonial-hidden.visible {
    display: block;
}
.btn-load-more {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 36px;
    border-radius: 50px;
    border: 1px solid #393fd3;
    background: transparent;
    color: #2a39cd;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-load-more:hover {
    border-color: transparent;
    background-image: linear-gradient(86deg, #2a39cd, #a26bfe);
    background-origin: border-box; /* Gradient fills behind the transparent border */
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-load-more.hidden {
    display: none;
}

/* Mentorship Typography Customizations */
.mentorship-pre-title {
    font-size: 24px;
    line-height: 26px;
    font-style: italic;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -0.4px;
    text-transform: uppercase;
    color: #88919b;
    margin-bottom: 0.5rem;
}

.subtitle-medium,
.mentor-desc {
    color: #313131;
    font-size: 18px;
    line-height: 23px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    margin-bottom: 2rem;
}

/* Mentorship Tweaks */
/* Legacy hacks purged to allow 100% width scaling and consistent margins */
.mentorship-avatar {
    transform: scale(1.2);
    transform-origin: center;
}

@media (max-width: 1279px) {
    .tab-heading.text-center {
        width: 72%;
        margin-bottom: 40px;
    }
}
@media (max-width: 991px) {
    .tabs-container {
        margin: 0 2rem;
        padding: 0 2rem;
        border-radius: 20px;
    }
    .carousel-container {
        width: calc(100% + 4rem);
        margin-left: -2rem;
        margin-right: -2rem;
    }
    .carousel-slide {
        flex: 0 0 calc(50% - 10px);
    }
    .tab-heading {
        font-size: 48px;
        line-height: 50px;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .hero-pre-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    .container {
        padding: 0 1.5rem;
    }
    .tab-flex-row {
        flex-direction: column;
        gap: 40px;
    }
    .enterprise-container .tab-flex-row,
    .mentorship-container .tab-flex-row {
        width: 95%;
    }
    .enterprise-container .tab-image-col,
    .mentorship-container .tab-image-col,
    .enterprise-container .tab-text-col,
    .mentorship-container .tab-text-col {
        padding: 0 1.25rem;
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
    }
    .mentorship-avatar {
        transform: scale(1.12);
    }
    .mentorship-container .tab-flex-row {
        margin-top: 4.2rem;
    }
    .mentorship-container .tab-text-col {
        margin-top: 4.5rem;
    }
    .tab-stats-row {
        width: 95%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        padding: 0 1.25rem;
        box-sizing: border-box;
    }
    .stat-item {
        flex: 1 0 100%;
        width: 100%;
        text-align: center;
    }
    .carousel-track {
        gap: 3vw;
    }
    .carousel-slide {
        flex: 0 0 80%;
    }
    .carousel-spacer {
        flex: 0 0 calc(10% - 3vw);
    }
    .about-wrapper {
        padding-bottom: 45px;
    }
    .tabs-section {
        padding-top: 90px;
    }
    .tabs-menu {
        background-image: linear-gradient(180deg, #a26bfe, #2a39cd);
        flex-direction: column;
        border-radius: 44px;
        padding: 24px;
        margin-top: -50px;
        width: 100%;
        max-width: 250px;
    }
    .tab-pill {
        width: 100%;
        margin: 10px 0;
        padding: 14px 16px;
        font-size: 16px;
    }
    .tab-heading {
        font-size: 36px;
        line-height: 38px;
    }
    .subtitle-center {
        padding: 0 1.5rem;
    }
    .testimonial-card {
        width: 100%;
        margin-bottom: 24px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .mobile-only {
        display: block;
    }
}

@media screen and (max-width: 991px) {
    .stat-number {
        font-size: 7vw;
        line-height: 7vw;
    }
}
@media screen and (max-width: 767px) {
    .stat-number {
        font-size: 8.5vw;
        line-height: 8.5vw;
    }
}
@media screen and (max-width: 479px) {
    .stat-number {
        font-size: 9.5vw;
        line-height: 9.5vw;
    }
}

/* =========================================
   STARTUP LIGHTBOX MODAL
   ========================================= */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    /* 120ms open feels instant; GPU-composited via will-change */
    transition: opacity 0.12s ease, visibility 0.12s ease;
    overflow: hidden;
    pointer-events: none;
    will-change: opacity;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Close button — top-right corner */
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Prev / Next navigation buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.08);
}

/* Main image area — fills available vertical space above thumbnails */
.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* top padding clears the close button; sides are 0 since chevrons use absolute positioning */
    padding: 5rem 6rem 1.5rem;
    box-sizing: border-box;
    min-height: 0; /* Required for flex child shrinking in column flex */
    overflow: hidden; /* Prevent image from bleeding out of image area */
}

.lightbox-img {
    /* Fill the main area's available space without overflowing */
    max-width: calc(100% - 8rem); /* side clearance for nav buttons */
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer; /* Click to advance */
    display: block;
    transition: opacity 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    flex-shrink: 1;
    align-self: center;
}

.lightbox-img.fade-out {
    opacity: 0;
}

/* Thumbnail strip — pinned to bottom, full viewport width */
.lightbox-thumbnails-bar {
    width: 100%;
    /* Minimal horizontal padding so strip is edge-to-edge */
    padding: 1rem 0 1.5rem;
    box-sizing: border-box;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Center on desktop where all thumbnails fit; flex-start on mobile via media query */
    justify-content: center;
    flex-wrap: nowrap;
    /* Side padding so first/last thumbnails aren't flush against the edge */
    padding: 4px 8px;
}

.lightbox-thumbnails::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-thumb:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: #a26bfe;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-main {
        /* On mobile, no horizontal padding — chevrons are absolutely positioned at edges */
        padding: 5rem 0 1rem;
    }
    .lightbox-thumbnails-bar {
        padding: 0.75rem 0 1rem;
    }
    .lightbox-thumbnails {
        /* flex-start on mobile so first thumbnail is always visible when overflowing */
        justify-content: flex-start;
        padding: 4px 8px;
    }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    .lightbox-img {
        max-width: calc(100% - 6rem); /* clearance for chevron buttons */
    }
    .lightbox-thumb {
        width: 56px;
        height: 40px;
    }
}
