/* ==========================================================================
   1. COLOR PALETTE, GLOBAL RESET & VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #0b0a0f;
    --bg-card: #110e17;
    --bg-card-hover: #171322;
    --bg-light: #f4f3f7;
    --accent-purple: #703be3;
    --accent-purple-light: #c084fc;
    --accent-purple-hover: #5d2ec7;
    --glow-purple: rgba(192, 132, 252, 0.45);
    --glow-purple-strong: rgba(112, 59, 227, 0.65);
    --text-white: #ffffff;
    --text-muted: #8f8b9d;
    --text-dark: #1a1824;
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-purple: rgba(112, 59, 227, 0.4);
    --font-main: 'Syne', system-ui, -apple-system, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 106.25%; /* 17px base scale */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 960px;
}

/* ==========================================================================
   2. TYPOGRAPHY & COMMON UTILITIES
   ========================================================================== */
.section-tag {
    color: var(--accent-purple-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    display: block;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.5px;
}

.section-lead {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1.75rem;
}

.purple-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(192, 132, 252, 0.35);
    border: none;
    margin: 1rem 0 3.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3. HEADER / NAVBAR & MOBILE MENU
   ========================================================================== */
.site-header {
    background-color: var(--bg-light);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-fast);
}

.site-logo:hover {
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 6px;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.main-nav a:not(.btn-nav-outline):hover,
.main-nav a.active {
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--glow-purple);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-purple);
}

.main-nav a.btn-nav-outline.active::after {
    display: none;
}

.btn-nav-outline {
    border: 1px solid rgba(0, 0, 0, 0.25);
    padding: 0.6rem 1.25rem;
    border-radius: 3px;
    color: var(--text-dark) !important;
    transition: all 0.3s ease !important;
}

.btn-nav-outline:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple) !important;
    box-shadow: 0 0 14px var(--glow-purple);
}

/* Mobile Nav Hamburger Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   4. BUTTONS & CALL-TO-ACTIONS
   ========================================================================== */
.btn-primary {
    background-color: var(--accent-purple);
    color: #ffffff;
    padding: 1rem 2.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: inline-block;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-purple-hover);
    box-shadow: 0 0 22px var(--glow-purple-strong);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--border-purple);
    background: rgba(112, 59, 227, 0.08);
    color: #ffffff;
    padding: 1rem 2.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: inline-block;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    border-color: var(--accent-purple-light);
    background: rgba(112, 59, 227, 0.22);
    box-shadow: 0 0 16px var(--glow-purple);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border-purple);
    background: transparent;
    color: #ffffff;
    padding: 0.9rem 1.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-outline:hover {
    border-color: var(--accent-purple-light);
    background: rgba(112, 59, 227, 0.15);
    box-shadow: 0 0 15px var(--glow-purple);
}

.btn-purple {
    background-color: var(--accent-purple);
    color: var(--text-white);
    padding: 0.9rem 1.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: inline-block;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-purple:hover {
    background-color: var(--accent-purple-hover);
    box-shadow: 0 0 18px var(--glow-purple-strong);
}

.btn-dark-outline {
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    padding: 0.9rem 1.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-dark-outline:hover {
    border-color: var(--accent-purple-light);
    color: var(--accent-purple-light);
    box-shadow: 0 0 12px var(--glow-purple);
}

.learn-more, 
.advisory-card .learn-more,
.grid-card a.learn-more,
.link-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
    transition: all 0.3s ease;
}

.learn-more::after,
.link-learn-more::after {
    content: "→";
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.learn-more:hover,
.advisory-card .learn-more:hover,
.grid-card a.learn-more:hover,
.link-learn-more:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
}

.learn-more:hover::after,
.link-learn-more:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   5. HERO SECTION & REEL FRAME
   ========================================================================== */
.hero-section {
    padding: 4rem 0 5rem;
    background: radial-gradient(circle at 50% 20%, #0f0d16 0%, var(--bg-dark) 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 50px;
    align-items: center;
}

.hero-text .section-tag {
    margin-bottom: 1.25rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 500;
    line-height: 1.18;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-video-container {
    width: 100%;
    max-width: 310px;
    aspect-ratio: 9 / 16;
    background: #0b0b0f;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 
                0 0 35px rgba(139, 92, 246, 0.18);
    overflow: hidden;
    position: relative;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   6. STATS & CAPABILITIES ("WHAT WE DO")
   ========================================================================== */
.stats-bar {
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 2.75rem 0;
    background: rgba(255, 255, 255, 0.015);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item:not(:first-child) {
    border-left: 1px solid var(--border-dark);
    padding-left: 2rem;
}

.stat-label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-value {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 400;
    color: var(--text-white);
}

.what-we-do-section {
    padding: 6rem 0;
    background: #0e0e12;
}

.section-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border-dark);
}

.service-card {
    padding: 3.2rem 2.5rem 3.2rem 0;
    border-bottom: 1px solid var(--border-dark);
    transition: background var(--transition-normal);
}

.service-card:nth-child(odd) {
    border-right: 1px solid var(--border-dark);
}

.service-card:nth-child(even) {
    padding-left: 2.5rem;
    padding-right: 0;
}

.service-num {
    color: var(--accent-purple-light);
    font-size: 0.82rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   7. WORK SHOWCASE & MEDIA CARDS (work.php & homepage)
   ========================================================================== */
.work-section {
    padding: 6rem 0;
}

.work-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.work-card {
    display: flex;
    flex-direction: column;
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.work-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.16);
    transform: translateY(-4px);
}

.work-media {
    width: 100%;
    height: 270px;
    overflow: hidden;
    position: relative;
    background: #100e17;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.work-media img,
.work-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.work-card:hover .work-media img {
    transform: scale(1.04);
}

.work-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.work-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent-purple-light);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.work-title {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.work-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ==========================================================================
   8. EXPANDABLE CLIENT GALLERY DRAWERS
   ========================================================================== */
.client-grid-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2.5rem;
    width: 100%;
}

.client-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.client-card {
    background-color: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 220px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.client-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.client-logo-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.client-logo {
    max-height: 100%;
    max-width: 80%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.client-card:hover .client-logo {
    opacity: 1;
}

.btn-expand {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.25rem;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    text-transform: uppercase;
}

.btn-expand:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-expand .arrow {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.gallery-drawer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    background: #0b0b0f;
    border-radius: 6px;
    border: 0px solid transparent;
    margin-top: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: grid-template-rows 0.35s ease-in-out, 
                opacity 0.25s ease-in-out, 
                visibility 0.35s ease,
                margin-top 0.35s ease,
                border-color 0.35s ease;
}

.gallery-drawer.active {
    grid-template-rows: 1fr;
    margin-top: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    visibility: visible;
    opacity: 1;
}

.gallery-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 30px;
    overflow: hidden;
    transition: padding 0.35s ease-in-out;
}

.gallery-drawer.active .gallery-grid {
    padding: 30px;
}

.post-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.post-img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.post-item:hover .post-img {
    transform: scale(1.05);
}

/* ==========================================================================
   9. HOW WE WORK & PROCESS SECTION
   ========================================================================== */
.how-we-work-section {
    padding: 5rem 0 6rem;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.work-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.phase-list {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-dark);
}

.phase-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border-dark);
}

.phase-num {
    color: var(--accent-purple-light);
    font-size: 0.85rem;
    font-weight: 600;
    padding-top: 0.2rem;
}

.phase-details h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.phase-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================================================
   10. CONSULTING & ADVISORY GRID (consulting.php)
   ========================================================================== */
.consulting-hero,
.work-hero {
    padding: 6.5rem 0 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 55%);
}

.consulting-hero .hero-title,
.work-hero .hero-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.18;
    margin-bottom: 1.25rem;
}

.consulting-hero .hero-description,
.work-hero .hero-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 1200px;
}

.advisory-grid-section {
    padding: 5rem 0 6rem;
    background-color: var(--bg-dark);
}

.advisory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.advisory-card {
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.advisory-card:nth-child(1),
.advisory-card:nth-child(2) {
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 3.5rem;
}

.advisory-card:nth-child(3),
.advisory-card:nth-child(4) {
    padding-top: 3.5rem;
}

.advisory-card:nth-child(odd) {
    border-right: 1px solid var(--border-dark);
    padding-right: 3.5rem;
}

.advisory-card:nth-child(even) {
    padding-left: 3.5rem;
}

.advisory-card h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.advisory-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.8rem;
}

.advisory-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advisory-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.55rem;
    color: #a19dae;
    font-size: 0.88rem;
}

.advisory-card li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--accent-purple-light);
}

/* ==========================================================================
   11. CONSULTING PACKAGES GRID (4-COLUMN COMPARISON)
   ========================================================================== */
.packages-section {
    padding: 5.5rem 0;
    background-color: #0b0a0f;
    border-top: 1px solid var(--border-dark);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}

.package-card {
    background: #100e17;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.6rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.package-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-purple-light);
    background: linear-gradient(180deg, #1a112e 0%, #100e17 100%);
    box-shadow: 0 20px 45px -8px rgba(112, 59, 227, 0.65), 0 0 20px rgba(192, 132, 252, 0.25);
}

.package-code {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--accent-purple-light);
    display: block;
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.6rem;
    line-height: 1;
}

.package-price span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.package-focus {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 1.25rem;
    min-height: 2.8rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    flex-grow: 1;
}

.package-features li {
    font-size: 0.78rem;
    color: #b3aec5;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    position: relative;
    padding-left: 0.9rem;
}

.package-features li::before {
    content: "•";
    color: var(--accent-purple-light);
    position: absolute;
    left: 0;
}

.btn-package {
    display: block;
    text-align: center;
    padding: 0.75rem 0.8rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    border-radius: 4px;
    border: 1px solid var(--border-purple);
    background: rgba(112, 59, 227, 0.08);
    color: var(--text-white);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.package-card:hover .btn-package {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(112, 59, 227, 0.6);
}

/* ==========================================================================
   12. FEATURE MEDIA & PDF VIEWER CANVAS ENGINE
   ========================================================================== */
.feature-media-card {
    width: 100%;
}

.feature-media-inner {
    width: 100%;
    height: 480px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #1a1a20;
}

.feature-media-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-viewer-wrapper {
    position: relative;
    width: 100%;
    height: 460px;
    background-color: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pdf-canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pdf-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(14, 14, 18, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.pdf-nav-btn:hover {
    background-color: #7c3aed;
    border-color: #7c3aed;
    box-shadow: 0 0 12px var(--glow-purple);
}

.pdf-nav-btn.prev { left: 16px; }
.pdf-nav-btn.next { right: 16px; }

.pdf-page-indicator {
    position: absolute;
    bottom: 14px;
    right: 18px;
    background: rgba(0, 0, 0, 0.75);
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 1px;
}

/* ==========================================================================
   13. ABOUT PAGE SPECIFIC STYLES (about.php)
   ========================================================================== */
.about-hero-section {
    padding: 6.5rem 0 5rem;
    background: radial-gradient(circle at 30% 20%, rgba(112, 59, 227, 0.08) 0%, var(--bg-dark) 60%);
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3.5rem;
    align-items: start;
}

.about-story-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-purple);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    object-fit: cover;
    border: 2px solid var(--accent-purple-light);
}

.team-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.75rem;
    color: var(--accent-purple-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ==========================================================================
   14. PRODUCTION CTA & BANNER
   ========================================================================== */
.production-cta-section,
.cta-section {
    padding: 6rem 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
}

.production-cta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 2rem;
}

.production-cta-grid h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.production-cta-grid p {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 540px;
    line-height: 1.65;
}

.cta-card {
    border: 1px solid var(--border-purple);
    background-color: var(--bg-card);
    padding: 4.5rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
}

.cta-card h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 400;
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.25;
}

/* ==========================================================================
   15. LEGAL & PRIVACY POLICY (privacy-policy.php)
   ========================================================================== */
.legal-page {
    padding: 6.5rem 0 8rem;
    background-color: var(--bg-dark);
}

.legal-container {
    max-width: 840px;
    margin: 0 auto;
}

.legal-body {
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-body h2 {
    color: var(--text-white);
    font-size: 1.35rem;
    font-weight: 500;
    margin: 2.5rem 0 1rem;
}

.legal-body p {
    margin-bottom: 1.25rem;
}

.legal-body ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.legal-body li {
    margin-bottom: 0.55rem;
}

/* ==========================================================================
   16. FOOTER & GOOGLE MAPS INTEGRATION
   ========================================================================== */
.site-footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-top: 5.5rem;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 0.8fr 1.2fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 4.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand p {
    color: #555263;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.4rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 0 12px var(--glow-purple);
    transform: translateY(-2px);
}

.footer-nav h5,
.footer-contact h5,
.footer-map-col h5 {
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: #6c6979;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-nav ul {
    list-style: none;
    display: block;
}

.footer-nav li {
    margin-bottom: 0.65rem;
}

.footer-nav a,
.footer-contact a {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--glow-purple);
}

.footer-contact p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.footer-map-box {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.footer-map-box iframe {
    width: 100%;
    height: 100%;
    filter: contrast(105%);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.6rem 0;
    text-align: center;
}

.footer-bottom-content p {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #716e7f;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.legal-link {
    color: #555263;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.legal-link:hover {
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--glow-purple);
}

/* ==========================================================================
   17. CONTACT MODAL OVERLAY
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-container {
    background-color: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    max-width: 540px;
    width: 100%;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-header h2 {
    font-size: 2rem;
    margin: 10px 0;
    color: #ffffff;
}

.modal-header p {
    color: #a1a1aa;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.modal-form .form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.modal-form label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #d4d4d8;
    margin-bottom: 6px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    background-color: #141419;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 12px 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: #8b5cf6;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.form-status-msg {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
}

/* ==========================================================================
   18. ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(112, 59, 227, 0.4); }
    50% { box-shadow: 0 0 30px rgba(192, 132, 252, 0.7); }
}

/* ==========================================================================
   19. COMPREHENSIVE MEDIA QUERIES & BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-video-container {
        max-width: 270px;
        justify-self: center;
        margin-top: 20px;
    }
    .section-intro-grid,
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .advisory-grid {
        grid-template-columns: 1fr;
    }
    .advisory-card:nth-child(odd) {
        border-right: none;
        padding-right: 0;
    }
    .advisory-card:nth-child(even) {
        padding-left: 0;
    }
    .advisory-card:nth-child(2) {
        padding-top: 3.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .production-cta-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .client-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.8rem 0;
    }

    .work-media-video, 
    .work-media-img {
        height: 190px !important; /* Scaled down from 380px so video cards fit on mobile screens */
    }

    .container {
        width: 90%;
    }

    section,
    .work-hero,
    .hero-section {
        padding: 40px 0 24px !important;    
    }

    .portfolio-section {
        padding: 24px 0 !important;
    }

    .section-header {
        margin-bottom: 16px !important;
        gap: 6px !important;
    }

    .section-tag {
        margin-bottom: 6px !important;
        font-size: 0.7rem !important;
        letter-spacing: 1.5px !important;
    }

    /* 2. Global Mobile Headings */
    h1, .hero-title {
        font-size: 1.75rem !important; /* Main hero titles */
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    h2, .section-header h2 {
        font-size: 1.35rem !important; /* Section titles */
        line-height: 1.3;
    }

    h3, .work-info h3 {
        font-size: 1.1rem !important; /* Card titles */
        margin-bottom: 6px;
    }

    /* 3. Global Mobile Paragraphs & Body Text */
    p,
    body,
    .hero-description,
    .work-info p,
    .footer-brand p {
        font-size: 0.875rem !important; /* Drops text from ~16px to 14px */
        line-height: 1.5;
    }

    /* 4. Grid & Card Spacing Tightening */
    .showcase-grid,
    .client-grid-container,
    .client-grid-row {
        gap: 12px !important;
    }

    .client-card {
        padding: 14px !important;
        min-height: auto !important;
    }

    .client-logo-wrapper {
        height: 45px !important;
    }

    .client-logo {
        max-width: 70% !important;
    }

    .work-info {
        padding: 14px !important;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .mobile-toggle {
        display: flex !important;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-light);
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
        
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.35s ease;
    }

    .main-nav.active {
        max-height: 480px;
        padding: 1.5rem 1.5rem 2rem;
        opacity: 1;
        visibility: visible;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
    }

    .btn-nav-outline {
        display: inline-block;
        width: 100%;
        max-width: 260px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card:nth-child(odd) {
        border-right: none;
    }

    .service-card:nth-child(even) {
        padding-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-item:not(:first-child) {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-dark);
        padding-top: 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .work-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .work-img {
        max-height: 350px;
    }

    .work-info {
        padding: 14px !important;
    }

    /* 4. Buttons & Interactive Elements */
    .btn-expand {
        margin-top: 10px !important;
        padding: 6px 12px !important;
        font-size: 0.68rem !important;
        letter-spacing: 1px !important;
        width: 100%; /* Spans card width for clean touch alignment */
        justify-content: center;
    }

    .btn-nav-outline,
    .btn-purple,
    .btn-submit {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
    }

    /* 5. Drawer & Gallery Spacing */
    .gallery-drawer.active {
        margin-top: 10px !important;
    }

    .gallery-grid,
    .gallery-drawer.active .gallery-grid {
        padding: 12px !important;
        gap: 10px !important;
    }

}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .packages-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .site-logo {
        height: 44px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary, 
    .btn-secondary,
    .btn-purple, 
    .btn-dark-outline {
        width: 100%;
    }
    .cta-card {
        padding: 2.5rem 1.25rem;
    }
    .modal-container {
        padding: 25px 20px;
    }
}

@media (max-width: 550px) {
    .client-grid-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Override embedded styles in consulting.php */
    .consulting-hero {
        padding-top: 40px !important;
        padding-bottom: 24px !important;
    }

    .advisory-grid-section {
        padding-top: 24px !important;
        padding-bottom: 32px !important;
    }

    /* Collapse excessive 3.5rem padding between stacked advisory cards */
    .advisory-card,
    .advisory-card:nth-child(1),
    .advisory-card:nth-child(2),
    .advisory-card:nth-child(3),
    .advisory-card:nth-child(4) {
        padding: 1.25rem 0 !important;
        border-right: none !important;
    }

    .advisory-card p {
        margin-bottom: 1rem !important;
    }

    /* Remove fixed height gaps in package pricing cards */
    .package-focus {
        min-height: auto !important;
    }
}