/* style.css */

:root {
    --color-orange: #FF6600;
    /* Bright Figma orange */
    --color-blue: #03329E;
    /* Deep text blue */
    --color-blue-bright: #000CEB;
    /* Vibrant electric blue for backgrounds */
    --color-gray-bg: #F5F5F5;
    --color-text-dark: #000000;
    --color-text-light: #ffffff;
    --color-text-grey: #2F2F2F;

    --font-main: 'Mozilla Text', 'Inter', sans-serif;
    --font-heading: 'Bilmond', 'Outfit', sans-serif;

    --spacing-section: 60px;
    --spacing-container: 1100px;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--spacing-section) 0;
}

.text-orange {
    color: var(--color-orange);
}

.text-grey {
    color: var(--color-text-grey);
}

.text-blue {
    color: var(--color-blue) !important;
}

.text-white {
    color: var(--color-text-light);
}

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

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

.bg-blue {
    background-color: var(--color-blue-bright);
    color: var(--color-text-light);
}

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

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

.font-bold {
    font-weight: 700;
}

.font-outfit {
    font-family: var(--font-heading);
}

.section-title {
    font-size: 3.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1717173b;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    transition: all 0.5s ease;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #eee;
}

.header.hidden {
    transform: translateY(-100%);
}

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

.logo img {
    height: 45px;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* CSS filter equivalent for #FF6600 (var(--color-orange)) */
}

.header.scrolled .logo img {
    filter: none;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-orange);
    text-transform: uppercase;
    position: relative;
    letter-spacing: 0.5px;
}

.header.scrolled .nav a {
    color: var(--color-text-dark);
}

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

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

.nav a:hover {
    color: var(--color-orange);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1005;
    /* Above nav */
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-orange);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header.scrolled .hamburger span {
    background-color: var(--color-text-dark);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background-color: var(--color-text-dark);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background-color: var(--color-text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    margin-top: 5.8rem;
}

@media (orientation: landscape) {
    .hero {
        height: auto;
        min-height: auto;
        aspect-ratio: 16 / 9;
    }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient on the left to make text pop, fading out to the right */
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.85) 0%, rgba(20, 20, 20, 0.4) 50%, rgba(20, 20, 20, 0.1) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-left: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.intro {
    padding-top: 100px;
}

.intro-header {
    margin-bottom: 20px;
}

.intro-title {
    margin-bottom: 10px;
    font-size: 3.5rem;
}

.intro-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 60px;
    text-align: justify;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.intro-image:hover img {
    transform: translateY(-5px);
}

.blue-banner {
    background-color: var(--color-blue-bright);
    color: white;
    padding: 30px 40px;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 12, 235, 0.3);
    line-height: 1.5;
}

/* Divider */
.divider {
    width: 100%;
    text-align: center;
    overflow: hidden;
    /* margin: 20px 0; */
}

.svg-divider {
    width: 100%;
    height: 240px;
    display: block;
    overflow: visible;
}

.divider img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Solve For */
.solve-box {
    padding: 80px 0;
}

.solve-box h3 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    font-weight: 500;
    color: var(--color-text-light);
}

.solve-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 30px 40px;
    margin: 0 auto;
}

.solve-table td {
    vertical-align: top;
    text-align: left;
    width: 25%;
}

.solve-table ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solve-table li {
    position: relative;
    padding-left: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-orange);
    line-height: 1.3;
}

.solve-table li::before {
    content: '•';
    color: var(--color-orange);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
}

/* Partner Us */
.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.partner-image {
    margin: 1rem auto;
}

.partner-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.custom-bullets {
    list-style: none;
    margin: 10px 0 20px 0;
}

.custom-bullets li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--color-text-dark);
}

.custom-bullets li::before {
    content: '■';
    color: #000000;
    position: absolute;
    left: 0;
    font-size: 0.6em;
    /* Slightly smaller to match text size nicely */
    top: 0.5em;
    /* Align with text */
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-blue {
    background-color: var(--color-blue-bright);
    color: white;
    box-shadow: -5px 5px 1px #A9B6E3;
}

.btn-center {
    margin: 0px 9.5rem;
}

.btn-blue:hover {
    background-color: #0009B8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 12, 235, 0.3);
}

.btn-orange {
    background-color: var(--color-orange);
    color: white;
}

.btn-orange:hover {
    background-color: #E55A00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
}

/* Not Consultants */
.not-consultants .text-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-dark);
}

.not-consultants p {
    margin-bottom: 25px;
}

/* Deep Thinkers */
.deep-thinkers {
    background-image: url('assets/blue-bulb-image.jpeg');
    background-size: cover;
    background-position: center bottom;
    color: white;
    position: relative;
}

.deep-thinkers .container {
    position: relative;
    z-index: 1;
    padding: 2rem 0rem 34vw 0rem;

}

.deep-thinkers .section-title {
    color: var(--color-orange);
    font-size: 2.8rem;
    line-height: 1.1;
}

.deep-thinkers-text {
    max-width: 600px;
}

.deep-thinkers-text p {
    font-size: 1.2rem;
    font-weight: 400;
    width: 85%;
    line-height: 1.5;
}

/* Core Team */
.core-team .subtitle {
    color: var(--color-text-grey);
    font-weight: 300;
    font-size: 1.5rem;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    flex: 1;
    max-width: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    background: #000;
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member:hover img {
    opacity: 0.9;
}

/* Footer */
.footer {
    position: relative;
    background-color: #ffffff;
    /* Set to match page background */
    color: white;
    overflow: hidden;
    /* padding-bottom: 120px; */
    /* Extra padding for watermark */
}

.footer-layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-top-row {
    display: flex;
    width: 100%;
    align-items: stretch;
    /* Makes both children share the same height */
    position: relative;
    padding-bottom: 50px;
    /* Space for the overlapping glass box */
}

.footer-text-box {
    background-color: #1a1a1a;
    border-radius: 0 20px 20px 0;
    /* Flat on the left edge */
    padding: 50px 50px 160px max(20px, calc((100vw - 1100px) / 2 + 20px));
    /* Align text with container and increase bottom padding */
    width: 40%;
    min-width: 400px;
    position: relative;
    z-index: 2;
    border-left: none;
    /* No border on the screen edge */
}

.footer-bg-image {
    width: calc(60% + 80px);
    background-image: url('assets/footer-image.jpeg');
    background-size: cover;
    background-position: center;
    /* border-radius: 20px 0 0 20px; */
    /* Flat on the right edge */
    margin-left: -20px;
    /* Pull it slightly under the black box */
    position: relative;
    z-index: 1;
}

.footer-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 28, 106, 0.4), rgba(0, 0, 255, 0.3));
    border-radius: inherit;
    pointer-events: none;
}

.footer-text-box h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.footer-glass-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 80px;
    /* Overlaps the bottom part */
    width: 75%;
    max-width: 1000px;
    /* Centered nicely */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.form-label {
    font-size: 1.5rem;
    color: #ffffff;
    margin-right: 25px;
    white-space: nowrap;
}

.enquiry-form {
    flex: 1;
}

.input-group {
    display: flex;
    background: #f4f3ed;
    border-radius: 12px;
    overflow: hidden;
    padding: 5px;
    align-items: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input-group input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-family: var(--font-main);
    background: transparent;
    outline: none;
    color: var(--color-text-dark);
}

.input-group .btn-orange {
    border-radius: 8px;
    padding: 12px 25px;
    margin-right: 5px;
    box-shadow: none;
    /* remove default shadow to sit flat inside */
}

.input-group .btn-orange:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.footer-watermark {
    font-size: 15vw;
    font-weight: 800;
    color: #ebeff8;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    font-family: var(--font-heading);
    line-height: 1;
    margin-top: -4vw;
    /* Pull up to remove empty space above lowercase letters */
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .footer-top-row {
        flex-direction: column;
    }

    .footer-bg-image {
        display: none;
    }

    .footer-text-box {
        width: 100%;
        min-width: 0;
        padding-bottom: 250px;
        border-radius: 0;
    }

    .footer-glass-box {
        left: 5%;
        width: 90%;
        flex-direction: column;
        top: auto;
        bottom: 50px;
        text-align: center;
    }

    .form-label {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .input-group {
        width: 100%;
    }
}

/* Animations */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 992px) {

    .intro-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .solve-table,
    .solve-table tbody,
    .solve-table tr,
    .solve-table td {
        display: block;
        width: 100%;
    }

    .solve-table td {
        margin-bottom: 30px;
        text-align: center;
    }

    .solve-table ul {
        display: inline-block;
        text-align: left;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .team-grid {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .svg-divider {
        height: 120px;
    }

    .hamburger {
        display: flex;
    }

    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1002;
        backdrop-filter: blur(10px);
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        color: var(--color-text-dark);
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .intro-title {
        font-size: 2.2rem;
    }

    .intro-subtitle {
        font-size: 1.2rem;
    }

    .intro-text p {
        font-size: 1.1rem;
    }

    .blue-banner {
        padding: 20px;
        font-size: 1rem;
    }

    .solve-box {
        padding: 40px 0;
    }

    .solve-box h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .solve-table li {
        font-size: 1rem;
    }

    .partner-text .section-title {
        text-align: center;
    }

    .big-sub-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .custom-bullets li {
        font-size: 1.1rem;
    }

    .btn-center {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    .not-consultants .text-content {
        font-size: 1.1rem;
    }

    .deep-thinkers {
        background-position: left bottom;
    }

    .deep-thinkers .container {
        padding: 2rem 0rem 90vw 0rem;
    }

    .deep-thinkers .section-title {
        font-size: 1.8rem;
    }

    .deep-thinkers-text p {
        width: 100%;
        font-size: 1.1rem;
    }

    .footer-text-box h2 {
        font-size: 1.2rem;
    }

    .footer-card {
        padding: 30px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
        background: transparent;
    }

    .input-group input {
        border-radius: 8px;
    }
}

/* Why Partner Us Sub-Title */
.big-sub-title {
    font-size: 1.4rem;
}

/* Team Member Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    height: 500px; /* Fixed height */
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.modal-left {
    width: 45%;
    flex-shrink: 0;
    background-color: #f5f5f5;
}

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

.modal-right {
    width: 55%;
    padding: 40px 40px 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

#modal-name {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    text-transform: uppercase;
    margin: 0 0 5px 0;
}

#modal-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.modal-socials {
    display: flex;
    gap: 10px;
}

.modal-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    color: #333;
    transition: all 0.2s ease;
}

.modal-socials a:hover {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    color: #fff;
}

#modal-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    max-height: 220px;
    overflow: hidden;
}

#modal-bio.scrollable {
    overflow-y: auto;
    padding-right: 10px;
}

#modal-bio.scrollable::-webkit-scrollbar {
    width: 6px;
}
#modal-bio.scrollable::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.know-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-orange);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.know-more:hover {
    color: var(--color-blue);
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-left {
        width: 100%;
        height: 250px;
        flex-shrink: 0;
    }
    .modal-right {
        width: 100%;
        padding: 25px;
        height: calc(100% - 250px);
        justify-content: flex-start;
    }
    .modal-content {
        height: 85vh; /* Fixed height on mobile */
        max-height: none;
        overflow: hidden;
    }
    #modal-bio {
        max-height: none;
        flex: 1;
        min-height: 0;
        margin-bottom: 15px;
    }
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 200px;
    background-color: var(--color-text-dark);
    color: #fff;
    text-align: center;
    border-radius: 30px;
    padding: 12px 24px;
    position: fixed;
    z-index: 3000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}