/* =========================
   ROOT THEME VARIABLES
========================= */
:root {
    --bg: #0f0f0f;
    --panel: #1a1a1a;
    --text: #ffffff;
    --muted: #b5b5b5;
    --border: #2a2a2a;
}

.section-anchor {
    scroll-margin-top: 100px;
}

/* =========================
   GLOBAL STYLES
========================= */
body {
    background-color: rgba(0, 0, 0);
    color: var(--text);
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

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

.section {
    padding: 100px 0;
}

/* Tablets */
@media (max-width: 991px) {
    .section {
        padding: 70px 0;
    }

    .section-anchor {
        scroll-margin-top: 140px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .section {
        padding: 50px 0;
    }
}

.container-narrow {
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(1px);
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.08);*/
    width: fit-content;
    margin: 10px auto;

    border-radius: 999px;
    padding: 6px 20px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    display: inline-flex;

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-logo {
    height: 150px;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.navbar-brand {
    font-weight: bold;
    color: var(--text) !important;
}

.nav-link {
    color: var(--text) !important;
    opacity: 0.85;
    transition: 0.2s ease;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
}

.nav-link:hover {
    opacity: 1;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/*Navbar on mobile*/
@media (max-width: 991px) {

    .navbar {
        width: calc(100% - 20px);
        margin: 10px;
        border-radius: 20px;
        padding: 20px 24px;
        min-height: 100px;
    }
}

@media (max-width: 991px) {

    .navbar-nav {
        gap: 0;
        text-align: center;
        margin-top: 1rem;
    }

    .nav-link {
        padding: 1.5rem;
        font-size: 3rem;
    }
}

@media (max-width: 991px) {

    .navbar-toggler {
        padding: 0.5rem;
        border: none;
    }

    .navbar-toggler-icon {
        width: 6rem;
        height: 6rem;
    }
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto;
}

.hero p {
    max-width: 700px;

    margin: 2rem auto;

    color: var(--muted);

    font-size: 1.25rem;
}

#vanta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.35;
}

.hero-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {

    /* =========================
       HERO HEIGHT (MOBILE FIX)
       - remove 80vh feeling
       - make it content-driven
    ========================= */
    .hero {
        height: auto;              /* KEY FIX: no fixed viewport height */
    }

    /* =========================
       HERO TEXT (MOBILE SCALE UP)
    ========================= */
    .hero h1 {
        font-size: 4.5rem;         /* bigger, readable on mobile */
        line-height: 1.3;
        text-align: center;
    }

    .hero p {
        font-size: 2rem;
        text-align: center;
        margin-top: 1rem;
    }

    /* =========================
       HERO CONTENT ALIGNMENT
    ========================= */
    .hero-content {
        text-align: center;        /* mobile UX standard */
    }

    /* =========================
       HERO BUTTON (TOUCH FRIENDLY)
    ========================= */
    .btn-custom {
        font-size: 2.5rem;
        padding: 14px 32px;
        width: 100%;               /* full-width button = better UX */
        max-width: 400px;
    }
}

/* =========================
   BUTTON SYSTEM (WHITE + GLOW)
========================= */
.btn-custom {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.30),
        0 0 30px rgba(255, 255, 255, 0.15);
}

/* =========================
   CARDS (SERVICES ETC)
========================= */
.card-dark {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s ease;
}

.card-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.05);
}

/* =========================
   FORMS (GLOW ON FOCUS)
========================= */
.form-control {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px;
}

.form-control:focus {
    background: var(--panel);
    color: var(--text);
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255,255,255,0.15);
}

/* Placeholder text */
.form-control::placeholder {
    color: #777;
}

/* =========================
   SECTIONS SPACING
========================= */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
}

/* =========================
   BACK TO TOP BUTTON
========================= */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: white;
    color: black;
    display: none;
    z-index: 999;
    cursor: pointer;
    transition: 0.3s ease;
}

#backToTop:hover {
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* =========================
   UTILITIES
========================= */
.text-muted-custom {
    color: var(--muted);
}

.center {
    text-align: center;
}

/* =========================
   LOGO BASE (NAVBAR SCALE)
========================= */

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    margin: 0;
    /* subtle size reduction for navbar */
    transform: scale(0.55);
    transform-origin: center;
}

/* =========================
   OL MARK (STATIC, CLEAN)
========================= */

.logo-mark {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 8px;

    /* subtle entrance only */
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

/* O behind */
.mark-o {
    position: absolute;
    font-size: 70px;
    left: 0;
    top: 0;
    z-index: 1;
}

/* L slightly lower, interlocked */
.mark-l {
    position: absolute;
    font-size: 70px;
    left: 25px;
    top: 18px;
    z-index: 2;
}

@media (max-width: 991px) {

    .logo {
        transform: scale(1);
    }

    .logo-mark {
        transform: scale(1.3);
    }

    .logo-text {
        font-size: 100rem;
    }
}

@media (max-width: 991px) {

    .navbar-inner {
        align-items: center;
    }
}

/* =========================
   WORDMARK (SUBTLE FADE ONLY)
========================= */

.logo-text {
    display: flex;
    gap: 6px;
    font-size: 32px;
    font-weight: bold;

    opacity: 0;
    animation: fadeIn 0.6s ease 0.1s forwards;
}

/* =========================
   ANIMATION (MINIMAL)
========================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE LAYOUT SYSTEM
   RESPONSIBILITY:
   - Forces multi-column Bootstrap layouts
     (col-md-6, col-md-5, col-md-7, etc.)
     into vertical stacking on mobile
========================= */

@media (max-width: 991px) {

    /* ANY Bootstrap column becomes full width */
    .col-md-6,
    .col-md-5,
    .col-md-7,
    .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* row spacing improvement for stacked layout */
    .row {
        row-gap: 20px;
    }
}

/* =========================
   MOBILE TYPOGRAPHY SYSTEM
   RESPONSIBILITY:
   - Reusable classes to control font sizes on mobile
   - Keeps CSS scalable and reusable across all sections
========================= */

@media (max-width: 991px) {

    /* SECTION TITLE (large headings like "Our Services") */
    .text-xl-mobile {
        font-size: 4rem !important;
    }

    /* SUB TEXT / DESCRIPTION UNDER TITLES */
    .text-lg-mobile {
        font-size: 2rem !important;
    }

    /* CARD HEADINGS */
    .text-md-mobile {
        font-size: 2.5rem !important;
    }

    /* BODY TEXT */
    .text-sm-mobile {
        font-size: 2rem !important;
    }
}


@media (max-width: 991px) {

    /* FORM INPUTS */
    #contact .form-control {
        font-size: 3rem;
        padding: 20px;
    }

    /* BUTTON SIZE (reuse system consistency) */
    #contact .btn-custom {
        font-size: 1.8rem;
        padding: 16px;
        width: 100%;
    }

    #contact .card-dark:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

