/*
Theme Name: Marala Consultancy
Theme URI: https://maralaconsultancy.co.uk
Author: Abdullah Choudhary
Author URI: https://varpec.app
Description: A premium custom WordPress website for Marala Consultancy.
Version: 2.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
Text Domain: marala
*/

/* =========================================================
   BASE
   ========================================================= */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #000000;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #52525b, #27272a);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #71717a; }

::selection { background: #52525b; color: #fff; }

/* =========================================================
   GLASSMORPHISM (lighter blur for speed)
   ========================================================= */
.glass-nav {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   PLANE — single global plane flying the journey
   ========================================================= */
#plane-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

#the-plane {
    position: absolute;
    width: 280px;
    height: auto;
    top: 22%;
    left: -20%;
    opacity: 0;
    will-change: transform, left, top, opacity;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55));
    transform-origin: center center;
}

@media (max-width: 1024px) {
    #the-plane { width: 200px; }
}
@media (max-width: 640px) {
    #the-plane { width: 140px; top: 14%; }
}

/* =========================================================
   COUNTRY SECTION BG (parallax)
   ========================================================= */
.section-bg {
    will-change: transform;
    transform: scale(1.08);
}

/* =========================================================
   HERO — masked text reveal
   ========================================================= */
.mask-line { overflow: hidden; display: block; line-height: 1.08; }
.mask-line > span { display: inline-block; transform: translateY(110%); }

/* =========================================================
   MAGNETIC BUTTONS (subtle micro-motion)
   ========================================================= */
.magnetic { display: inline-block; will-change: transform; }

/* =========================================================
   MOBILE MENU DRAWER
   ========================================================= */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.8, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mobile-drawer.open { 
    transform: translateY(0); 
    pointer-events: auto; 
}
.mobile-drawer a {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: #fff;
    margin: .5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease;
}
.mobile-drawer.open a { opacity: 1; transform: translateY(0); }
.mobile-drawer.open a:nth-child(1) { transition-delay: .1s; }
.mobile-drawer.open a:nth-child(2) { transition-delay: .16s; }
.mobile-drawer.open a:nth-child(3) { transition-delay: .22s; }
.mobile-drawer.open a:nth-child(4) { transition-delay: .28s; }
.mobile-drawer.open a:nth-child(5) { transition-delay: .34s; }
.mobile-drawer.open a:nth-child(6) { transition-delay: .40s; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    #the-plane { display: none; }
}

/* =========================================================
   PARTNER MARQUEE
   ========================================================= */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    padding-left: 4rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2rem)); }
}

.partner-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.6);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover {
    filter: brightness(0) invert(1) opacity(1);
}

/* =========================================================
   ANIMATED HAMBURGER
   ========================================================= */
.hamburger.open span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}
