/* ===== Google Font Import ===== */
/* ===== Google Font Import - Josefin Sans ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200&display=swap');

/* ===== CSS Variables ===== */
:root {
    --navbar-height: 90px;
    --main: #2F1441;
    --main-light: #3d1a57;
    --main-dark: #1f0d2b;
    --main-darker: #150a1d;
    --accent: #EEB500;
    --accent-glow: rgba(238, 181, 0, 0.25);
    --accent-soft: rgba(238, 181, 0, 0.1);
    --white: #FFFFFF;
    --white-muted: rgba(255, 255, 255, 0.7);
    --white-subtle: rgba(255, 255, 255, 0.1);
    --white-ghost: rgba(255, 255, 255, 0.03);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevents horizontal scrolling */
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background: var(--main-darker);
    letter-spacing: 0.05em;
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 200;
    /* This sets the "Light" look you want */
    font-style: normal;
}

.section {
    width: 100%;
    max-width: 1400px;
    /* Optional: prevents content from getting too wide on huge monitors */
    margin: 0 auto;
}

h1,
h2,
h3 {
    margin: 0 0 1rem;
    line-height: 1.2;
    font-weight: 700;
}

/* ===== Particle Canvas Background ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: rgba(21, 10, 29, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--white-subtle);
    transition: all 0.3s ease;
}

.logo {
    height: 30px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 3rem;
}

nav a {
    color: var(--white-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--white);
}

nav a:hover::before {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centers vertically */
    align-items: center;
    /* Centers horizontally */
    text-align: center;
    width: 100%;
    /* Ensure it takes full width */
    margin: 0 auto;
    /* Centers the container itself */
    padding: calc(var(--navbar-height) + 2rem) 5% 5rem;
    /* Balanced padding */
    min-height: 100vh;
    /* Uses full viewport height */
    box-sizing: border-box;
    /* Includes padding in the height calculation */
    position: relative;
    z-index: 1;
}

/* Update the mobile media query section */
@media (max-width: 768px) {
    :root {
        --navbar-height: 80px;
        /* Reduced from 120px for a tighter mobile header */
    }

    .hero {
        /* Ensure mobile also has enough breathing room */
        padding-top: calc(var(--navbar-height) + 4rem);
    }
}

.hero h1 {
    font-size: clamp(2.0rem, 4.5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--white);
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--white) 0%, var(--white-muted) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--white-muted);
    font-size: 1.35rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* ===== Flying Bat ===== */
.bat {
    position: fixed;
    width: 80px;
    height: 48px;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.bat-svg {
    width: 100%;
    height: 100%;
}

.bat.flying .wing-left {
    animation: flapLeft 0.15s ease-in-out infinite;
    transform-origin: 42px 35px;
}

.bat.flying .wing-right {
    animation: flapRight 0.15s ease-in-out infinite;
    transform-origin: 58px 35px;
}

.bat.sitting {
    transform: rotate(180deg) !important;
}

.bat.sitting .wing-left,
.bat.sitting .wing-right {
    animation: none;
}

.bat.sitting .wing-left {
    transform: rotate(60deg);
}

.bat.sitting .wing-right {
    transform: rotate(-60deg);
}

@keyframes flapLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-40deg); }
}

@keyframes flapRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(40deg); }
}

/* Bat scared animation - faster flapping */
.bat.scared .wing-left {
    animation: flapLeft 0.08s ease-in-out infinite;
}

.bat.scared .wing-right {
    animation: flapRight 0.08s ease-in-out infinite;
}

/* ===== Hero Buttons ===== */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, #d4a000 100%);
    color: var(--main-darker);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--main-darker);
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
    padding: 7rem 8%;
    text-align: center;
    position: relative;
    background: rgba(21, 10, 29, 0.85);
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    /* Optional: prevents content from getting too wide on huge monitors */
    margin: 0 auto;
}

.section.alt {
    background: rgba(31, 13, 43, 0.9);
}

/* Decorative section divider */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section h2::before,
.section h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.section h2::before {
    right: calc(100% + 20px);
    background: linear-gradient(90deg, transparent, var(--accent));
}

.section h2::after {
    left: calc(100% + 20px);
}

.section>p:first-of-type {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== Service Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.card {
    background: linear-gradient(145deg, var(--main) 0%, var(--main-dark) 100%);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--white-subtle);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: left;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--main-light), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    opacity: 1;
}

.card h3 {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card:hover h3 {
    color: var(--accent);
}

.card p {
    color: var(--white-muted);
    margin: 0;
    line-height: 1.8;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Card icon styling */
.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    padding: 12px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    background: var(--accent-soft);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    color: var(--accent);
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    background: var(--accent);
    transform: scale(1.1) rotate(-5deg);
}

.card:hover .card-icon svg {
    color: var(--main-darker);
}

/* ===== Partners Marquee ===== */
.partners-section {
    overflow: hidden;
    padding: 7rem 0;
    background: rgba(31, 13, 43, 0.9);
    position: relative;
    z-index: 1;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.partners-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.partners-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 8%;
}

.partners-marquee {
    display: flex;
    overflow: hidden;
    position: relative;
}

.partners-marquee::before,
.partners-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(31, 13, 43, 1) 0%, transparent 100%);
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(31, 13, 43, 1) 100%);
}

.partners-track {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    padding: 1rem 0;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 80px;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--white-subtle);
    border-radius: 12px;
    background: rgba(47, 20, 65, 0.5);
    transition: all 0.3s ease;
}

.partner-logo img {
    max-width: 140px;
    max-height: 50px;
    filter: grayscale(100%) brightness(2);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    border-color: var(--accent);
    background: rgba(47, 20, 65, 0.8);
}

.partner-logo:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Placeholder text for partners without logos */
.partner-logo span {
    color: var(--white-muted);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.partner-logo:hover span {
    color: var(--accent);
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 550px;
    margin: 4rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input,
textarea {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--white-subtle);
    background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--white-muted);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    margin-top: 1rem;
    align-self: center;
    min-width: 250px;
}

#form-status {
    margin-top: 1.5rem;
    color: var(--accent);
    font-weight: 500;
    text-align: center;
}

/* ===== Footer ===== */
footer {
    padding: 4rem 8%;
    text-align: center;
    background: rgba(10, 5, 16, 0.95);
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-logo {
    height: 60px;
}

footer p {
    color: var(--white-muted);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        /* Keep logo and toggle button on the same line */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
        height: auto;
        flex-wrap: wrap;
        /* Allows the menu links to drop to a new line when active */
    }

    .nav-toggle {
        display: block;
        order: 2;
        /* Ensures button stays on the right */
    }

    .logo {
        height: 40px;
        /* Slightly smaller logo for mobile breathing room */
        order: 1;
        /* Ensures logo stays on the left */
    }

    .nav-links {
        display: none;
        /* Force the links to take up 100% width so they sit UNDER the logo/button */
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        padding: 1.5rem 0;
        order: 3;
        /* Places the expanded menu below the header row */
    }

    .nav-links.active {
        display: flex;
    }
}

/* ===== Selection ===== */
::selection {
    background: var(--accent);
    color: var(--main-darker);
}

/* ===== Scroll Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.g-recaptcha {
    margin: 1.5rem auto;
    transform: scale(0.95);
    transform-origin: center;
}

/* ===== Mobile Nav ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .navbar {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .cards {
        gap: 1.5rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .partners-track {
        animation-duration: 45s;
    }

    .partners-track:hover {
        animation-play-state: running;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}