*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #24163d;
    background: #ffffff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
}

a {
    color: #68489b;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* =========================
   NAVBAR - DEFAULT HEIGHT RESET
========================= */

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to right,
            #ffffff 0%,
            #ffffff 12%,
            rgba(0, 0, 0, 0.22) 45%,
            rgba(0, 0, 0, 0.46) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar * {
    font-family: 'Roboto', sans-serif;
}

.nav-container {
    width: 100%;
}

.navbar-brand {
    margin-right: 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-collapse {
    justify-content: flex-end;
}

.navbar.nav-scrolled {
    position: fixed;
    background: linear-gradient(to right,
            #ffffff 0%,
            #ffffff 18%,
            rgba(20, 20, 20, 0.9) 45%,
            rgba(20, 20, 20, 0.98) 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* =========================
   MENU
========================= */

.navbar .nav-link, .navbar .nav-link.active,
.navbar .nav-link.show {
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.navbar .nav-link.active,
.navbar .nav-link.show {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

/* =========================
   SPACING
========================= */

.navbar-nav .nav-item {
    margin-right: clamp(8px, 1vw, 18px);
}

.navbar-nav .nav-item:last-child {
    margin-right: 0;
}

/* =========================
   DROPDOWN
========================= */

.dropdown-menu {
    background: #ffffff;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: #222222;
    position: relative;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #68489b;
}

.dropdown-item::before {
    display: none !important;
}

/* =========================
   SEARCH
========================= */

.search-form {
    margin-left: clamp(12px, 1.5vw, 28px);
    gap: 6px;
}

.search-form .form-control {
    min-width: 150px;
}

.search-form .btn {
    white-space: nowrap;
}

/* =========================
   BUTTONS
========================= */

.btn:not([class*="btn-outline"]) {
    color: #ffffff;
}

.btn-info {
    background-color: #68489b;
    border-color: #68489b;
}

.btn-info:hover {
    background-color: #ffffff;
    color: #68489b;
    border-color: #68489b;
}

/* =========================
   HERO
========================= */

.video-banner {
    position: relative;
    min-height: 720px;
    height: 100vh;
    overflow: hidden;
    background: #160d27 url("https://trainosys.com/assets/homepage-banner-poster.jpg") center / cover no-repeat;
}

.video-banner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: relative;
    z-index: 2;
    color: #ffffff;
    min-height: 720px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 120px 20px 70px;
}

.hero-text {
    width: min(100%, 980px);
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 16px !important;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.8rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4.6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
}

.hero-text h2 {
    max-width: 920px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-text p {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.55;
    max-width: 920px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 200px;
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 8px;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-trust span {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.85rem;
    font-weight: 700;
}

#soundToggle {
    position: absolute;
    top: 100px;
    right: 30px;
    z-index: 3;
    backdrop-filter: blur(6px);
}

/* =========================
   MAIN CONTENT
========================= */

.home-section,
.home-intro {
    padding: 90px 0;
}

.home-intro {
    background: #f8f7fb;
}

.intro-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

.section-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(104, 72, 155, 0.1);
    color: #68489b;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.intro-content h2,
.section-heading h2,
.delivery-content h2,
.cta-box h2 {
    color: #24163d;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.intro-content p,
.section-heading p,
.delivery-content p,
.cta-box p {
    color: #5f5f6f;
    font-size: 1.05rem;
    line-height: 1.8;
}

.intro-stats {
    display: grid;
    gap: 18px;
}

.stat-box {
    background: #ffffff;
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(36, 22, 61, 0.08);
    border: 1px solid rgba(104, 72, 155, 0.08);
}

.stat-box strong {
    display: block;
    color: #68489b;
    font-size: 2rem;
    font-weight: 800;
}

.stat-box span {
    color: #555555;
    font-weight: 600;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 50px;
}

/* =========================
   TRUST / EEAT
========================= */

.trust-section {
    background:
        radial-gradient(circle at top right, rgba(36, 198, 220, 0.12), transparent 30%),
        linear-gradient(135deg, #ffffff, #f8f7fb);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.trust-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(104, 72, 155, 0.08);
    box-shadow: 0 18px 45px rgba(36, 22, 61, 0.07);
}

.trust-card h3 {
    color: #24163d;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.trust-card p {
    color: #626273;
    line-height: 1.7;
    margin: 0;
}

/* =========================
   CARDS
========================= */

.course-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-category-card,
.delivery-card,
.why-card,
.testimonial-card,
.faq-card {
    background: #ffffff;
    padding: 34px;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(36, 22, 61, 0.07);
    border: 1px solid rgba(104, 72, 155, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-category-card:hover,
.delivery-card:hover,
.why-card:hover,
.testimonial-card:hover,
.faq-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(36, 22, 61, 0.12);
}

.card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #68489b, #24c6dc);
    font-size: 1.6rem;
}

.course-category-card h3,
.delivery-card h3,
.why-card h3,
.testimonial-card h3,
.faq-card h3 {
    color: #24163d;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.course-category-card p,
.delivery-card p,
.why-card p,
.testimonial-card p,
.faq-card p {
    color: #626273;
    line-height: 1.7;
    margin-bottom: 18px;
}

.course-category-card a {
    color: #68489b;
    font-weight: 800;
    text-decoration: none;
}

.course-category-card a:hover {
    color: #24c6dc;
}

/* =========================
   TRAINING IMAGE SECTIONS
========================= */

.training-gallery-section {
    background:
        radial-gradient(circle at top left, rgba(104, 72, 155, 0.12), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8f7fb);
}

.training-gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: repeat(2, 260px);
    gap: 24px;
}

.training-photo-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #f2f2f7;
    box-shadow: 0 20px 55px rgba(36, 22, 61, 0.12);
}

.training-photo-large {
    grid-row: span 2;
}

.training-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
    transition: transform 0.35s ease;
}

.training-photo-card:hover img {
    transform: scale(1.05);
}

.training-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 11, 25, 0.82), rgba(15, 11, 25, 0.08));
}

.training-photo-card figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
}

.training-photo-card figcaption strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

/* =========================
   TRAINER IMAGE LAYOUT
========================= */

.trainer-image-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 42px;
}

.trainer-image-card {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 24px 65px rgba(36, 22, 61, 0.14);
}

.trainer-image-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.trainer-image-content {
    padding: 36px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(104, 72, 155, 0.08);
    box-shadow: 0 18px 45px rgba(36, 22, 61, 0.07);
}

.trainer-image-content h3 {
    color: #24163d;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.trainer-image-content p {
    color: #626273;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* =========================
   DELIVERY
========================= */

.delivery-section {
    background:
        radial-gradient(circle at top left, rgba(104, 72, 155, 0.13), transparent 35%),
        linear-gradient(135deg, #f8f7fb, #ffffff);
}

.delivery-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* =========================
   WHY
========================= */

.why-section {
    background: #ffffff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* =========================
   TESTIMONIALS
========================= */

.testimonial-section {
    background: #f8f7fb;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card p {
    font-style: italic;
}

.testimonial-card strong {
    display: block;
    color: #68489b;
    font-weight: 800;
}

/* =========================
   FAQ
========================= */

.faq-section {
    background: #ffffff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* =========================
   CTA
========================= */

.home-cta {
    padding: 90px 0;
    background: #f8f7fb;
}

.cta-box {
    display: grid;
    grid-template-columns: 1.3fr auto;
    gap: 30px;
    align-items: center;
    padding: 55px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(36, 22, 61, 0.95), rgba(104, 72, 155, 0.95)),
        url("https://trainosys.com/assets/homepage-banner-poster.jpg") center / cover no-repeat;
    box-shadow: 0 30px 80px rgba(36, 22, 61, 0.25);
}

.cta-box h2,
.cta-box p {
    color: #ffffff;
}

.cta-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background:
        radial-gradient(circle at top left, rgba(104, 72, 155, 0.35), transparent 30%),
        linear-gradient(135deg, #160d27 0%, #24163d 45%, #0f0b19 100%);
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Roboto', sans-serif;
}

.footer-main {
    padding: 80px 0 55px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr;
    gap: 42px;
}

.footer-logo {
    width: 185px;
    height: auto;
    max-width: 100%;
    padding: 10px 14px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: #ffffff;
}

.footer-brand p,
.footer-contact p,
.footer-contact address,
.footer-training-strip p,
.footer-bottom p {
    margin: 0;
    line-height: 1.8;
}

.footer-brand p {
    max-width: 360px;
}

.footer-column h2 {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 14px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
}

.footer-column h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 99px;
    background: #24c6dc;
}

.footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a,
.footer-socials a,
.footer-contact a,
.footer-training-strip a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.footer-links a:hover,
.footer-socials a:hover,
.footer-contact a:hover,
.footer-training-strip a:hover,
.footer-legal a:hover {
    color: #24c6dc;
}

.footer-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

.footer-socials a:hover {
    border-color: #24c6dc;
    background: rgba(36, 198, 220, 0.12);
}

.footer-contact {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
}

.footer-contact address {
    font-style: normal;
}

.footer-contact strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-weight: 800;
}

.footer-contact p {
    margin-top: 18px;
}

.footer-contact span {
    display: block;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #68489b;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
}

.footer-cta:hover {
    background: #ffffff;
    color: #68489b !important;
}

.footer-training-strip {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.16);
}

.footer-training-strip p {
    font-size: 0.95rem;
}

.footer-training-strip a {
    font-weight: 700;
}

.footer-bottom {
    padding: 22px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {
    .navbar {
        position: fixed;
        background: rgba(0, 0, 0, 0.92);
    }

    .navbar.nav-scrolled {
        background: rgba(0, 0, 0, 0.96);
    }

    .navbar-brand {
        background: #ffffff;
        padding: 4px 7px;
        border-radius: 8px;
    }

    .navbar-brand img {
        height: 34px;
        width: auto;
    }

    .navbar-toggler-icon {
        filter: invert(1);
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 14px;
        background: rgba(0, 0, 0, 0.94);
        border-radius: 14px;
    }

    .navbar-nav .nav-item {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .search-form {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        gap: 8px;
    }

    .search-form .form-control {
        width: 100%;
    }

    .video-banner,
    .video-overlay {
        min-height: 680px;
    }

    .video-overlay {
        padding: 120px 28px 60px;
    }

    .hero-text {
        max-width: 760px;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 5.5vw, 2.8rem);
    }

    .hero-buttons {
        gap: 18px;
    }

    .intro-wrapper,
    .delivery-layout,
    .cta-box,
    .trainer-image-layout {
        grid-template-columns: 1fr;
    }

    .course-category-grid,
    .why-grid,
    .testimonial-grid,
    .faq-grid,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .training-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .training-photo-large {
        grid-row: auto;
    }

    .training-photo-card {
        height: 320px;
    }

    .trainer-image-card img {
        height: 360px;
    }

    .cta-actions {
        justify-content: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-contact {
        grid-column: span 2;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
    .home-section,
    .home-intro,
    .home-cta {
        padding: 65px 0;
    }

    .course-category-grid,
    .delivery-grid,
    .why-grid,
    .testimonial-grid,
    .faq-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .course-category-card,
    .delivery-card,
    .why-card,
    .testimonial-card,
    .faq-card,
    .trust-card {
        padding: 28px;
    }

    .cta-box {
        padding: 35px 25px;
        border-radius: 26px;
    }

    .footer-main {
        padding: 60px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-contact {
        grid-column: auto;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .navbar-brand img {
        height: 30px;
        width: auto;
    }

    #soundToggle {
        top: 76px;
        right: 16px;
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    .video-banner,
    .video-overlay {
        min-height: 620px;
        height: auto;
    }

    .video-overlay {
        padding: 115px 16px 45px;
        align-items: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-eyebrow {
        font-size: 0.68rem !important;
        padding: 7px 13px;
    }

    .hero-text h1 {
        font-size: clamp(1.65rem, 7vw, 2.15rem);
    }

    .hero-text h2 {
        font-size: 0.92rem !important;
        line-height: 1.55;
    }

    .hero-text p {
        font-size: clamp(0.82rem, 3.6vw, 0.95rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 18px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-trust {
        gap: 8px;
    }

    .hero-trust span {
        font-size: 0.78rem;
        padding: 7px 12px;
    }

    .training-photo-card {
        height: 260px;
        border-radius: 22px;
    }

    .training-photo-card figcaption {
        padding: 22px;
        font-size: 0.88rem;
    }

    .training-photo-card figcaption strong {
        font-size: 1.05rem;
    }

    .trainer-image-card img {
        height: 280px;
    }

    .trainer-image-content {
        padding: 26px;
    }

    .footer-logo {
        width: 165px;
    }

    .footer-contact {
        padding: 24px;
    }

    .footer-training-strip p {
        font-size: 0.9rem;
    }
}

/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 360px) {
    .video-banner,
    .video-overlay {
        min-height: 590px;
    }

    .video-overlay {
        padding: 105px 12px 35px;
    }

    .hero-text h1 {
        font-size: 1.45rem;
    }

    .hero-text h2,
    .hero-text p {
        font-size: 0.76rem !important;
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}