/* ==========================================================================
   QBRAIN CREATIVE AGENCY - REFINED PREMIUM DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;700;900&family=Space+Grotesk:wght@400;500;700&family=Syne:wght@700;800&display=swap');

:root {
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-darker: #000000;
    --text-primary: #FFFFFF;
    --text-muted: #8E8E93;
    
    --accent-cyan: #00D2FF;
    --accent-violet: #9B22B7;
    --accent-pink: #FF007F;
    --brand-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-cyan) 60%, var(--accent-violet) 90%, var(--accent-pink) 100%);
    
    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-luxury: 'Syne', sans-serif;
    
    /* Spacing & Borders */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 210, 255, 0.3);
    --transition-premium: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue), var(--accent-violet));
}

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

button {
    cursor: none;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
}

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

/* ==========================================================================
   CINEMATIC GRAIN & CUSTOM CURSOR GLOW
   ========================================================================== */

/* Custom Interactive Cursor */
.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-glow {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, rgba(108, 120, 255, 0.06) 50%, rgba(196, 61, 230, 0) 70%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s, border-color 0.4s;
}

/* Cursor States */
.custom-cursor-glow.hovered {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.28) 0%, rgba(108, 120, 255, 0.14) 45%, rgba(196, 61, 230, 0.05) 70%);
    border-color: rgba(0, 210, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}

.custom-cursor-dot.hovered {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
}

/* Hide custom cursor on mobile viewports */
@media (max-width: 1024px) {
    .custom-cursor-dot, .custom-cursor-glow {
        display: none !important;
    }
    body, a, button, .social-icon, .nav-toggle, .work-card, .btn-premium {
        cursor: auto !important;
    }
}

/* ==========================================================================
   FIXED SOCIAL SIDEBAR WITH VERTICAL BACKDROP LINE
   ========================================================================== */

.social-sidebar {
    position: fixed;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 100;
}

.social-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 20%, var(--accent-cyan) 40%, var(--accent-violet) 60%, rgba(255,255,255,0.05) 80%, rgba(255,255,255,0) 100%);
    z-index: -1;
    pointer-events: none;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: var(--transition-premium);
    color: var(--text-muted);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: linear-gradient(#000, #000) padding-box,
                linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 80%, var(--accent-violet) 100%) border-box;
    border: 1px solid transparent;
    transform: scale(1.1);
    color: #ffffff;
}

.social-icon:hover svg {
    fill: #ffffff;
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .social-sidebar {
        display: none;
    }
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */

.header {
    width: 100%;
    padding: 35px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 500;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(5px);
    transition: var(--transition-premium);
}

.header.scrolled {
    padding: 20px 60px;
    background: #000000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
}

/* Logo Design */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-q {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-subtitle {
    font-family: var(--font-primary);
    font-size: 7.5px;
    font-weight: 400;
    letter-spacing: 0.58em;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 2px;
    text-transform: uppercase;
}

/* Desktop Horizontal Navigation in Header */
.header-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.header-link {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: capitalize;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.header-link:hover {
    color: #ffffff;
}

.header-link.active {
    color: #ffffff;
}

/* Elegant expanding brand-gradient underline on hover and active state */
.header-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-link:hover::after,
.header-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hamburger toggle */
.nav-toggle {
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    z-index: 600;
    position: relative;
}

.nav-toggle span {
    display: block;
    height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

.nav-toggle .line-1 {
    width: 28px;
}

.nav-toggle .line-2 {
    width: 18px;
}

.nav-toggle:hover .line-2 {
    width: 28px;
    background-color: var(--accent-cyan);
}

.nav-toggle.active .line-1 {
    transform: rotate(45deg) translate(5px, 5px);
    width: 28px;
}

.nav-toggle.active .line-2 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 28px;
}

@media (max-width: 991px) {
    .header-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 25px 30px;
    }
    .header.scrolled {
        padding: 15px 30px;
    }
}

/* ==========================================================================
   FULLSCREEN MENU OVERLAY
   ========================================================================== */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-darker);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.menu-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-info {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-right: 1px solid var(--border-light);
    padding-right: 80px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.menu-overlay.open .menu-info {
    opacity: 1;
    transform: translateX(0);
}

.menu-info-default {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-info-team {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
}

/* Custom Scrollbar for Team List */
.team-list::-webkit-scrollbar {
    width: 3px;
}
.team-list::-webkit-scrollbar-track {
    background: transparent;
}
.team-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.team-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.team-list-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    transition: var(--transition-fast);
}

.team-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.team-list-img-frame {
    width: 70px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-list-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    transition: var(--transition-fast);
}

.team-list-item:hover .team-list-img {
    filter: grayscale(0) contrast(1.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.team-list-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.team-list-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.team-list-role {
    font-family: var(--font-primary);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-violet);
    font-weight: 600;
}

.team-list-bio {
    font-family: var(--font-primary);
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 4px;
}

.menu-tagline {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1.2;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.menu-details {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

.menu-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-light);
    margin-top: 10px;
}

.menu-nav {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 10px 0;
}

.menu-overlay.open .menu-item:nth-child(1) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.menu-overlay.open .menu-item:nth-child(2) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.menu-overlay.open .menu-item:nth-child(3) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.menu-overlay.open .menu-item:nth-child(4) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.menu-overlay.open .menu-item:nth-child(5) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.menu-overlay.open .menu-item:nth-child(6) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.menu-overlay.open .menu-item:nth-child(7) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }

.menu-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: var(--transition-fast);
}

.menu-link-main {
    font-family: var(--font-heading);
    font-size: calc(1.25rem + 1vw);
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
    display: block;
}

.menu-link-sub {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 5px;
    transition: var(--transition-fast);
    opacity: 0.85;
    display: block;
}

.menu-link:hover {
    transform: translateX(15px);
}

.menu-link:hover .menu-link-main {
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

.menu-link:hover .menu-link-sub {
    opacity: 1;
    filter: brightness(1.2);
    text-shadow: 0 0 8px rgba(108, 120, 255, 0.4);
}

@media (max-width: 991px) {
    .menu-overlay {
        overflow-y: auto;
        align-items: flex-start;
        padding: 90px 0 50px 0;
    }
    .menu-container {
        flex-direction: column-reverse;
        justify-content: flex-start;
        padding: 0 30px;
        gap: 35px;
    }
    .menu-info {
        width: 100%;
        border-right: none;
        padding-right: 0;
        border-top: 1px solid var(--border-light);
        padding-top: 25px;
        gap: 15px;
    }
    .menu-nav {
        width: 100%;
        gap: 8px;
    }
    .menu-item {
        padding: 4px 0;
    }
    .menu-link-main {
        font-size: 20px;
    }
    .menu-link-sub {
        font-size: 11px;
        margin-top: 2px;
    }
}

/* ==========================================================================
   GLOBAL LAYOUT MODULES (PREMIUM BUTTONS & SPACERS)
   ========================================================================== */

section {
    padding: 50px 10%;
    position: relative;
}

/* Divider Lines */
.divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-light);
}

/* Scroll reveal helper classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Sub-Tag Styling */
.tag-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.tag-line {
    width: 25px;
    height: 2px;
    background: var(--brand-gradient);
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    font-weight: 500;
}

/* Signature neon dots at header ends */
.dot-accent {
    color: var(--accent-violet);
    text-shadow: 0 0 10px rgba(155, 34, 183, 0.6);
    margin-left: 1px;
}

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 60px;
}

.hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 25px;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: calc(2.1rem + 2.2vw);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 35px;
    text-transform: none; /* Matches Title Case We Start With Questions */
}

.hero-desc {
    font-size: calc(15px + 0.15vw);
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 10px;
}

/* Double Outlined buttons styled exactly like mockup */
.btn-container {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

.btn-premium {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 36px;
    border-radius: 0px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-premium);
    overflow: hidden;
    background: transparent;
    position: relative;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: var(--brand-gradient);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-premium);
}

.btn-arrow {
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium:hover {
    border-image: linear-gradient(to right, var(--accent-blue), var(--accent-violet)) 1;
    box-shadow: 0 0 25px rgba(108, 120, 255, 0.2), 0 0 25px rgba(196, 61, 230, 0.2);
    transform: translateY(-3px);
}

.btn-premium:hover::before {
    opacity: 0.12;
}

.btn-premium:hover .btn-arrow {
    transform: translateX(6px);
}

/* Cinematic visual frame on right side */
.hero-visual {
    position: relative;
    width: 100%;
    height: 680px;
    overflow: hidden;
    border-radius: 2px;
}

.hero-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.05);
    transition: var(--transition-premium);
    transform: scale(1.05);
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    transition: var(--transition-premium);
}

.hero-visual:hover .hero-img {
    transform: scale(1.0);
}

@media (max-width: 991px) {
    .hero {
        height: auto;
        min-height: auto;
        padding-top: 120px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-visual {
        height: 570px;
    }
}

/* ==========================================================================
   INTRO SECTION (WHO WE ARE 2-COLUMN GRID WITH VERTICAL DIVISION)
   ========================================================================== */

.intro {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.intro-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1.2fr;
    gap: 60px;
    align-items: center;
}

.intro-left {
    display: flex;
    flex-direction: column;
}

.intro-quote {
    font-family: var(--font-heading);
    font-size: calc(2.2rem + 1vw);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    text-transform: none;
}

.intro-vertical-divider {
    width: 1px;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), var(--accent-violet), rgba(255,255,255,0.02));
}

.intro-right {
    display: flex;
    flex-direction: column;
}

.intro-desc {
    font-size: calc(16px + 0.15vw);
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .intro-vertical-divider {
        display: none;
    }
}

/* ==========================================================================
   SELECTED WORKS (HORIZONTAL 4-COLUMN DECK)
   ========================================================================== */

.work {
    background-color: var(--bg-primary);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 70px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all-link {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.view-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-all-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.view-all-link:hover .view-arrow {
    transform: translateX(6px);
}

/* ==========================================================================
   QBRAINS - MEET THE BRAINS BEHIND QBRAIN
   ========================================================================== */
.team-section {
    background-color: #000000;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.team-header-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.team-subtitle-text {
    font-family: 'Outfit', sans-serif;
    font-size: calc(14px + 0.2vw);
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    align-items: start;
}

.team-card {
    position: relative;
    background-color: #e6e6e6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.team-card-inner {
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.team-img-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1.3/1;
    overflow: hidden;
    background-color: #000;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(1) contrast(1.1) brightness(0.85);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.team-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.6;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.team-expand-icon-indicator {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-expand-icon-indicator svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s ease;
}

.team-summary {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    background-color: #e6e6e6;
    z-index: 3;
    transition: all 0.5s ease;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    display: inline-block;
    transition: all 0.3s ease;
}

.team-designation {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000000;
    transition: color 0.3s ease;
}

/* Expanded details block */
.team-details-expanded {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    background-color: #e6e6e6;
    z-index: 3;
}

.team-expanded-divider {
    width: calc(100% - 48px);
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.02));
    margin: 0 auto;
}

.team-expanded-body {
    padding: 0 24px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.team-intro {
    font-family: var(--font-primary);
    font-size: 13.5px;
    line-height: 1.6;
    color: #000000;
    font-weight: 300;
    margin-top: 15px;
}

.team-info-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-info-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000000;
    opacity: 0.9;
}

.team-expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-expertise-list li {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #000000;
    font-weight: 300;
    position: relative;
    padding-left: 15px;
}

/* Bullet list style matching the design colors */
.team-expertise-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000000;
    text-shadow: none;
}

.team-philosophy-box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 15px;
    margin-top: 5px;
}

.team-philosophy-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

.team-philosophy-quote {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 13.5px;
    line-height: 1.6;
    color: #000000;
    font-weight: 300;
    opacity: 0.95;
}

/* Glowing background highlight */
.team-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(108, 120, 255, 0);
    transition: box-shadow 0.6s ease;
    z-index: 4;
}

/* HOVER EFFECTS */
.team-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.team-card:hover .team-img {
    transform: scale(1.05);
    filter: grayscale(0.2) contrast(1.05) brightness(0.95);
}

.team-card:hover .team-img-overlay {
    opacity: 0.8;
}

.team-card:hover .team-expand-icon-indicator {
    opacity: 1;
    transform: scale(1);
}

.team-card:hover .team-expand-icon-indicator svg {
    color: #ffffff;
}

.team-card:hover .team-name {
    background: linear-gradient(90deg, #00d2ff 0%, #0040ff 60%, #9b22b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* EXPANDED ACTIVE STATE */
.team-card.expanded {
    border-color: rgba(0, 0, 0, 0.15);
    background-color: #e6e6e6;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.team-card.expanded .team-img {
    filter: grayscale(0) contrast(1.05) brightness(0.9);
}

.team-card.expanded .team-img-overlay {
    opacity: 0.4;
}

.team-card.expanded .team-expand-icon-indicator {
    opacity: 1;
    transform: scale(1) rotate(45deg); /* plus changes to X */
    border-color: #ffffff;
    background-color: rgba(0, 0, 0, 0.7);
}

.team-card.expanded .team-expand-icon-indicator svg {
    color: #ffffff;
}

.team-card.expanded .team-name {
    background: linear-gradient(90deg, #00d2ff 0%, #0040ff 60%, #9b22b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-card.expanded .team-designation {
    color: #000000;
    opacity: 0.8;
}

.team-card.expanded .team-details-expanded {
    max-height: 1500px;
    opacity: 1;
}

.team-card.expanded .team-card-glow {
    box-shadow: inset 0 0 20px rgba(108, 120, 255, 0.1);
}

.read-more-toggle {
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    display: inline-block;
    text-decoration: underline;
    background: linear-gradient(90deg, #00d2ff 0%, #0040ff 60%, #9b22b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .team-card {
        width: 100%;
    }
}

/* ==========================================================================
   PORTFOLIO HUB CAROUSEL (INFINITE AUTO-SCROLLING TICKER)
   ========================================================================== */

/* ==========================================================================
   PORTFOLIO HUB REDESIGN (BEHANCE + INSTAGRAM MASONRY & CASE STUDIES)
   ========================================================================== */

/* 1. Behance-Style Filter Tabs */
/* 1. Behance-Style Category Explorer Split Layout */
.portfolio-explorer-container {
    display: flex;
    gap: 50px;
    margin-top: 20px;
    align-items: flex-start;
    width: 100%;
}

.portfolio-left-panel {
    width: 30%;
    position: sticky;
    top: 120px;
    z-index: 10;
}

.portfolio-right-panel {
    width: 70%;
}

.portfolio-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid var(--border-light);
    padding-left: 25px;
}

.category-btn {
    background: transparent;
    border: none;
    padding: 16px 0;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    width: 100%;
}

.category-btn-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.category-count {
    font-family: var(--font-primary);
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.45;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Vertical active/hover indicator line on left */
.category-btn::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--brand-gradient);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom;
}

.category-btn.active::before,
.category-btn:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.category-btn.active .category-btn-text,
.category-btn:hover .category-btn-text {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

.category-btn.active .category-count,
.category-btn:hover .category-count {
    opacity: 0.9;
    color: var(--accent-cyan);
}

/* 2. Responsive Masonry Grid System */
.portfolio-masonry {
    column-count: 4;
    column-gap: 30px;
    width: 100%;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive Explorer Layout Stacking */
@media (max-width: 991px) {
    .portfolio-explorer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .portfolio-left-panel {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .portfolio-right-panel {
        width: 100%;
    }
    
    .portfolio-category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 25px;
    }
    
    .category-btn {
        width: auto;
        padding: 8px 18px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: inline-flex;
    }
    
    .category-btn::before {
        display: none; /* remove line on mobile */
    }
    
    .category-btn.active {
        border: 1px solid transparent;
        border-image: var(--brand-gradient) 1;
        background: rgba(108, 120, 255, 0.05);
    }
    
    .category-btn-text {
        font-size: 15px;
    }
    
    .category-count {
        display: none; /* hide count on mobile filter tags for spacing */
    }
    
    .portfolio-masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .portfolio-masonry {
        column-count: 2;
        column-gap: 20px;
    }
}

/* 3. Portfolio Cards */
.portfolio-card {
    break-inside: avoid;
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
    background-color: #070707;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-img-frame {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.portfolio-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: brightness(0.9) contrast(1.05);
}

/* Aspect Ratios to enforce staggered heights */
.portfolio-card.ratio-standard .portfolio-img-frame { aspect-ratio: 6/4; }
.portfolio-card.ratio-tall .portfolio-img-frame { aspect-ratio: 4/5; }
.portfolio-card.ratio-square .portfolio-img-frame { aspect-ratio: 1/1; }
.portfolio-card.ratio-wide .portfolio-img-frame { aspect-ratio: 16/9; }

/* Overlays & CTA */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* Soft spot hover glow inside card overlay */
.portfolio-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.25) 0%, rgba(155, 34, 183, 0.05) 50%, transparent 70%);
    pointer-events: none;
    animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portfolio-cta-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8) translateY(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.portfolio-expand-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

/* Card Hover States */
.portfolio-card:hover {
    border-color: rgba(0, 210, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.08), 0 0 25px rgba(155, 34, 183, 0.03);
}

.portfolio-card:hover .portfolio-thumbnail {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.05);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-cta-circle {
    transform: scale(1) translateY(0);
}

.portfolio-cta-circle:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 210, 255, 0.12);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.portfolio-cta-circle:hover .portfolio-expand-icon {
    transform: scale(1.1);
}

/* Card Metadata styling */
.portfolio-meta {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    background-color: #070707;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.portfolio-category {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.25;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-title {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.25);
}

.portfolio-desc {
    font-family: var(--font-primary);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 4px;
}

/* 4. Fullscreen Premium Image Lightbox Experience */
.case-study-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.case-study-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.case-study-container {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Lightbox has no scrolling */
    position: relative;
    background-color: #000000;
    padding-top: 0;
}

/* Centered Fullscreen Lightbox Layout */
.cs-close-floating-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-fast);
}

.cs-close-floating-btn svg {
    width: 20px;
    height: 20px;
}

.cs-close-floating-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.cs-lightbox-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 10%;
}

.cs-lightbox-image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cs-lightbox-img {
    max-width: 88vw;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid var(--border-light);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 210, 255, 0.08);
}

/* Lightbox Navigation Buttons at sides */
.cs-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.cs-lightbox-nav:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.cs-lightbox-nav.prev {
    left: 40px;
}

.cs-lightbox-nav.next {
    right: 40px;
}

@media (max-width: 768px) {
    .cs-lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .cs-lightbox-nav.prev {
        left: 15px;
    }
    
    .cs-lightbox-nav.next {
        right: 15px;
    }
    
    .cs-lightbox-img {
        max-width: 90vw;
        max-height: 70vh;
    }
}



/* ==========================================================================
   ABOUT SECTION (3-COLUMN LAYOUT)
   ========================================================================== */

.about {
    background-color: #e6e6e6;
}

.about .section-heading {
    color: #000000;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 80px;
    align-items: start;
    width: 100%;
}

.about-left {
    display: flex;
    flex-direction: column;
}

.about-header-text {
    font-family: var(--font-heading);
    font-size: calc(2.2rem + 1vw);
    font-weight: 700;
    line-height: 1.15;
    color: #000000;
    margin-bottom: 40px;
    white-space: nowrap;
}

.about-mid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-mid-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #000000;
    margin-bottom: 5px;
}

.about-body-text {
    font-size: 17px;
    line-height: 1.8;
    color: #000000;
    font-weight: 300;
}

.about-body-subtext {
    font-size: 14px;
    line-height: 1.8;
    color: #333333;
    font-weight: 300;
}

.highlight-brand {
    font-size: 16px;
    font-weight: 500 !important;
    color: #000000;
    display: inline-block;
}

/* Right Column corridor frame */
.about-right {
    display: flex;
    justify-content: center;
}

.about-visual-frame {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/5;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2px;
}

.about-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: var(--transition-premium);
}

.about-visual-frame:hover .about-visual-img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-visual-frame {
        max-width: 480px;
        aspect-ratio: 4/5;
    }
    .about-header-text {
        white-space: normal;
    }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact {
    background-color: var(--bg-primary);
    text-align: center;
    padding: 50px 10%;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: calc(1.6rem + 2.4vw);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.contact-links-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 45px;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-premium);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 40px;
    background: var(--brand-gradient);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-premium);
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.contact-btn:hover {
    background: linear-gradient(#000, #000) padding-box,
                linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 80%, var(--accent-violet) 100%) border-box;
    border: 1px solid transparent;
    transform: translateY(-5px);
}

.contact-btn:hover::before {
    opacity: 0.12;
}

.contact-btn:hover .btn-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.contact-btn:hover .btn-arrow {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .contact-links-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .contact-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* ==========================================================================
   FOOTER (BOTTOM DECK LAYOUT)
   ========================================================================== */

.footer {
    background-color: #e6e6e6;
    padding: 60px 10% 40px 10%;
}

.footer .divider {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

.footer-bottom-deck {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-copyright {
    font-size: 12px;
    color: #000000;
    font-family: var(--font-primary);
}

.footer-center-logo {
    width: 28px;
    height: 28px;
    filter: none;
}

.footer-center-logo svg {
    width: 100%;
    height: 100%;
}

.footer-center-logo svg path:first-child {
    stroke: #000000 !important;
    fill: none !important;
}

.footer-center-logo svg path:last-child {
    fill: #000000 !important;
}

.footer-tagline-text {
    font-size: 12px;
    font-family: var(--font-primary);
    color: #000000;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.footer .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    background-clip: text !important;
    color: #000000 !important;
}

.footer .dot-accent {
    color: #000000 !important;
    text-shadow: none !important;
}

@media (max-width: 768px) {
    .footer-bottom-deck {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}

/* ==========================================================================
   REDESIGNED QJOIN CAREERS EXPERIENCE
   ========================================================================== */

.vacancies {
    background-color: #000000 !important;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   REDESIGNED PREMIUM CENTERED MODAL OVERLAY (Frosted Glass & Dark Aesthetics)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-premium);
    padding: 30px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Centered Redesigned Modal Card */
.redesigned-modal {
    background-color: #000000 !important;
    border: 1px solid transparent;
    border-image: var(--brand-gradient) 1;
    border-radius: 0px !important; /* Pure clean agency styling, no rounds */
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 210, 255, 0.08);
    transform: scale(0.96) translateY(20px);
    transition: var(--transition-premium);
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Custom Scrollbar for Modal content */
.redesigned-modal::-webkit-scrollbar {
    width: 4px;
}
.redesigned-modal::-webkit-scrollbar-track {
    background: #000000;
}
.redesigned-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}
.redesigned-modal::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.modal-overlay.open .redesigned-modal {
    transform: scale(1) translateY(0);
}

/* Close button positioned cleanly */
.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* Modal Header styling */
.modal-header-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 30px;
}

.modal-logo-center {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.redesigned-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.redesigned-modal-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.redesigned-modal-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Form block sections */
.redesigned-form {
    display: flex;
    flex-direction: column;
    gap: 45px;
    width: 100%;
}

.form-section-block {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    border-left: 2px solid var(--accent-violet);
    padding-left: 12px;
    margin-bottom: 5px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 30px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Beautiful custom input fields style */
.redesigned-form input[type="text"],
.redesigned-form input[type="email"],
.redesigned-form input[type="tel"],
.redesigned-form input[type="url"],
.redesigned-form select,
.redesigned-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 5px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 300;
    transition: var(--transition-fast);
    border-radius: 0;
}

.redesigned-form textarea {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px;
    resize: none;
}

.redesigned-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='rgba%28255,255,255,0.4%29' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 16px;
    padding-right: 25px;
}

.redesigned-form select option {
    background-color: #000000;
    color: #ffffff;
    padding: 15px;
}

.redesigned-form input:focus,
.redesigned-form select:focus,
.redesigned-form textarea:focus {
    border-color: var(--accent-cyan);
    outline: none;
}

/* File Upload styling */
.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 0px;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

.file-upload-label:hover {
    border-color: var(--accent-cyan);
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.02);
}

/* Consent block & Checkbox */
.consent-submission-block {
    gap: 30px;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-cyan);
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

.redesigned-submit-btn {
    width: 100%;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
    padding: 20px;
    cursor: pointer;
    border-radius: 0;
    transition: var(--transition-premium);
}

.form-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: 5px;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */

@media (max-width: 991px) {
    .redesigned-modal {
        padding: 40px 30px;
        max-height: 95vh;
        gap: 30px;
    }
    
    .redesigned-modal-title {
        font-size: 28px;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 575px) {
    .modal-overlay {
        padding: 15px;
    }
    
    .redesigned-modal {
        padding: 35px 20px;
    }
    
    .redesigned-modal-title {
        font-size: 24px;
    }
}
