/* --- RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Candara, Calibri, "Segoe UI", sans-serif;
    background-color: #0b111e;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- VARIABLES --- */
:root {
    --brand-red: #d32f2f;
    --dark-bg: #0b111e;
    --card-bg: #111827;
    --text-light: #ffffff;
    --text-muted: #9ca3af;
    --max-width: 1200px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

header.header-scrolled {
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo-box {
    background: transparent;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    padding: 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.35);
}

.logo-box img {
    height: 75px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-size: 1.1rem;
    font-weight: 400;
    color: #cccccc;
    position: relative;
    padding-bottom: 4px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

/* --- HOME (HERO) SECTION --- */
#home {
    background-color: var(--brand-red);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero-logo-large {
    max-width: 280px;
    width: 100%;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    max-width: 700px;
    margin-bottom: 40px;
}

.btn-black {
    background-color: #000000;
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-block;
    border: 2px solid #000000;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-black:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    background-color: transparent;
    color: #ffffff;
}

#home .btn-black:hover {
    color: #000000;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

#reach-us .btn-black:hover {
    color: #ffffff;
}

/* --- SECTION BASE --- */
section {
    padding: 100px 20px;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

/* --- STORY --- */
#story {
    background-color: var(--dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-block {
    margin-bottom: 50px;
}

.story-block h3 {
    font-size: 1.8rem;
    text-transform: none;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 10px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.story-block p {
    font-size: 1.28rem;
    color: var(--text-muted);
    text-align: justify;
    margin-bottom: 1.2em;
    line-height: 1.75;
}

.story-block p:last-child {
    margin-bottom: 0;
}

/* --- SOLUTIONS --- */
#solutions {
    background-color: #080c14;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    display: block;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(211, 47, 47, 0.15);
}

.solution-card:hover .solution-icon-wrapper {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.solution-card:hover h3 {
    color: var(--brand-red);
}

.solution-icon-wrapper {
    width: 120px;
    height: 120px;
    background-color: #ffffff;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.solution-icon-wrapper.yellow {
    background-color: #ffd400;
}

.solution-icon-wrapper.black {
    background-color: #000000;
}

.solution-icon-wrapper.avya {
    background: linear-gradient(135deg, #1a0a2e 0%, #0d1b2a 100%);
    padding: 8px;
}

.solution-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.solution-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* --- CASE STUDIES --- */
#case-studies {
    background-color: #000000;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.case-study-card {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 80px 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: all 0.3s ease;
}

.case-study-card:hover {
    border-color: var(--brand-red);
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(211, 47, 47, 0.12);
    background: rgba(211, 47, 47, 0.04);
}

.case-study-card:hover h3 {
    letter-spacing: 0.02em;
}

.case-study-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--brand-red);
    transition: letter-spacing 0.3s ease, transform 0.3s ease;
}

/* --- THE FORCE --- */
#the-force {
    background-color: var(--dark-bg);
}

.force-intro {
    text-align: center;
    margin-bottom: 50px;
}

.force-intro .section-title {
    margin-bottom: 15px;
    font-size: 2.85rem;
}

.force-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.28rem;
    line-height: 1.85;
}

.force-category {
    margin-bottom: 55px;
}

.category-title {
    font-size: 2rem;
    color: var(--brand-red);
    text-align: center;
    margin-bottom: 35px;
    font-weight: 600;
}

.force-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.force-grid-three {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.force-grid-five {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1100px;
    margin: 0 auto;
}

.force-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.force-card:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 47, 47, 0.5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.force-card-photo {
    height: 280px;
    background: linear-gradient(135deg, #444, #777);
    overflow: hidden;
}

.force-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.force-card:hover .force-card-photo img {
    transform: scale(1.08);
}

.force-card-name {
    color: var(--brand-red);
    font-weight: bold;
    padding-top: 16px;
    font-size: 0.95rem;
}

.force-card-role {
    padding: 8px 12px 16px;
    color: #ddd;
    font-size: 0.85rem;
}

.force-card-line {
    width: 40px;
    height: 2px;
    background: var(--brand-red);
    margin: 0 auto 14px;
}

.associates-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 8px 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-red) transparent;
}

.force-grid-associates {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    width: max-content;
    max-width: none;
    margin: 0 auto;
    justify-content: center;
    padding: 0 4px;
}

.associates-strip .force-card {
    flex: 0 0 112px;
    min-width: 112px;
}

.associates-strip .force-card-photo {
    height: 110px;
}

.associates-strip .force-card-name {
    font-size: 0.72rem;
    padding: 10px 6px 0;
    line-height: 1.3;
}

.associates-strip .force-card-role {
    font-size: 0.68rem;
    padding: 6px 6px 10px;
}

.associates-strip .force-card-line {
    width: 28px;
    margin-bottom: 10px;
}

/* --- REACH US --- */
#reach-us {
    background-color: var(--brand-red);
    text-align: center;
    padding: 100px 20px;
}

.reach-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.reach-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icon:hover {
    transform: scale(1.15) translateY(-3px);
}

/* --- FOOTER --- */
footer {
    background-color: #000000;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-light);
}

/* --- SUBPAGE LAYOUTS --- */
.page-hero {
    background-color: var(--dark-bg);
    padding: 140px 20px 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.page-content {
    background-color: var(--dark-bg);
    padding: 40px 20px 100px;
}

.page-content-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-content-inner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--brand-red);
    font-weight: 600;
}

.back-link:hover {
    color: var(--text-light);
}

/* Brand two-column layout (dedicated advertising / branding pages) */
.brand-page {
    background: #ffffff;
    color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.brand-page-nav {
    padding: 24px 40px;
}

.brand-page-nav a {
    font-size: 0.9rem;
    color: #666666;
    letter-spacing: 0.02em;
}

.brand-page-nav a:hover {
    color: #000000;
}

.brand-layout {
    flex: 1;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 40px 80px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.brand-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-left img {
    max-width: 300px;
    width: 100%;
    margin-bottom: 48px;
}

.brand-cta {
    display: inline-block;
    padding: 16px 40px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #000000;
    border: none;
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.brand-cta:hover {
    background-color: #222222;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.brand-copy p {
    font-size: 1.08rem;
    line-height: 1.9;
    margin-bottom: 1.15em;
    text-align: left;
    color: #111111;
}

.brand-copy p strong {
    font-weight: 700;
}

.brand-copy .tagline {
    font-weight: 700;
    margin-top: 0.5em;
    margin-bottom: 0;
}

/* The Zero — serif body copy per design */
.brand-page--advertising .brand-copy {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.brand-page--advertising .brand-copy p {
    font-size: 1.12rem;
}

/* Bold and Bold — clean sans-serif per design */
.brand-page--branding .brand-copy {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.brand-page--avya {
    background: #0a0612;
    color: #ffffff;
}

.brand-page--avya .brand-left img {
    max-width: 320px;
    border-radius: 12px;
}

.brand-page--avya .brand-copy p {
    color: #e0e0e0;
}

.brand-page--avya .brand-cta {
    background: linear-gradient(135deg, #e91e8c, #2196f3);
    border: none;
    color: #ffffff;
}

.brand-page--avya .brand-cta:hover {
    background: linear-gradient(135deg, #ff2d9b, #42a5f5);
    color: #ffffff;
    transform: translateY(-2px);
}

.brand-page--avya .brand-page-nav a {
    color: #aaa;
}

.brand-page--avya .brand-page-nav a:hover {
    color: #fff;
}

/* Legacy header for other brand subpages */
.brand-header {
    background: #000000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
}

.brand-header a {
    color: #cccccc;
    margin-left: 20px;
    font-size: 0.95rem;
}

.brand-header a:hover {
    color: #ffffff;
}

.brand-header-logo img {
    height: 28px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .force-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .force-grid-five {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .reach-title {
        font-size: 2.3rem;
    }

    .brand-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 24px 24px 60px;
    }

    .brand-left img {
        max-width: 240px;
        margin-bottom: 32px;
    }

    .brand-page--branding .brand-left img {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .force-grid-three {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }

    .force-grid-five {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000000;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .force-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .associates-strip {
        padding: 4px 12px 16px;
    }

    .associates-strip .force-card {
        flex: 0 0 100px;
        min-width: 100px;
    }

    .associates-strip .force-card-photo {
        height: 95px;
    }

    .associates-strip .force-card-name {
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .force-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SCROLL REVEAL & HERO ENTRANCE --- */
.hero-entrance {
    opacity: 0;
    transform: translateY(28px);
    animation: heroEntrance 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-entrance-delay-1 { animation-delay: 0.15s; }
.hero-entrance-delay-2 { animation-delay: 0.3s; }
.hero-entrance-delay-3 { animation-delay: 0.45s; }

@keyframes heroEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-scale {
    transform: scale(0.94);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

.story-block h3 {
    transition: color 0.3s ease, border-color 0.3s ease;
}

.story-block:hover h3 {
    color: var(--brand-red);
}

.category-title {
    transition: letter-spacing 0.3s ease;
}

.force-category:hover .category-title {
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-entrance,
    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .btn-black:hover,
    .solution-card:hover,
    .case-study-card:hover,
    .force-card:hover,
    .logo-box:hover,
    .social-icon:hover {
        transform: none;
    }
}
