/* =====================================================
   LAYOUT.CSS - MODERN HEADER & FOOTER INTEGRATED
   Add this to your existing layout.css file
===================================================== */

/* =====================================================
   CSS VARIABLES
===================================================== */

:root {
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-orange: #ff6b35;
    --color-orange-light: #ff8c61;
    --color-border: #e5e7eb;
    --color-muted: #6b7280;
    --color-text: #374151;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   PRELOADER — CSS-only, no image dependency
   Uses brand colours, renders instantly, fully responsive
===================================================== */

#preloader {
    position: fixed;
    inset: 0;
    background: var(--color-primary);          /* brand dark navy */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ---- Brand wordmark (pure CSS, no image) ---- */
.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.preloader-brand {
    font-size: clamp(1.1rem, 4vw, 1.5rem);   /* responsive font */
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.2;
    text-align: center;
    padding: 0 16px;
    margin: 0 auto;
    width: 100%;
}

.preloader-brand span {
    color: var(--color-orange);               /* "GLOBAL" in orange */
}

/* ---- Animated spinner rings (dual concentric) ---- */
.preloader-spinner {
    position: relative;
    width: clamp(52px, 14vw, 72px);
    height: clamp(52px, 14vw, 72px);
    flex-shrink: 0;
}

/* Outer ring */
.preloader-spinner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-orange);
    border-right-color: var(--color-orange-light);
    animation: preloader-spin 0.85s linear infinite;
}

/* Inner ring — counter-spins, slightly smaller */
.preloader-spinner::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.07);
    border-bottom-color: var(--color-orange-light);
    border-left-color: var(--color-orange);
    animation: preloader-spin 1.2s linear infinite reverse;
}

/* ---- Progress bar at bottom ---- */
.preloader-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-orange), var(--color-orange-light));
    animation: preloader-progress 1.8s ease-in-out forwards;
}

@keyframes preloader-spin {
    to { transform: rotate(360deg); }
}

@keyframes preloader-progress {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Mobile preloader fixes ---- */
@media (max-width: 992px) {
    #preloader {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 24px !important;
        padding: 0 32px !important;
        margin: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .preloader-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .preloader-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        font-size: 1.15rem !important;
        letter-spacing: 0.1em !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        line-height: 1.3 !important;
    }

    .preloader-brand span {
        display: block !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.14em !important;
        color: var(--color-orange) !important;
        line-height: 1.4 !important;
    }

    .preloader-spinner {
        margin: 0 auto !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 480px) {
    .preloader-brand {
        font-size: 1rem !important;
    }

    .preloader-brand span {
        font-size: 0.65rem !important;
    }

    .preloader-spinner {
        width: 52px !important;
        height: 52px !important;
    }
}

/* =====================================================
   HEADER – MODERN GLASS MORPHISM
===================================================== */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: all 0.4s var(--transition-smooth);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.custom-logo {
    width: 130px;
    transition: all 0.4s var(--transition-smooth);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.site-header.scrolled .custom-logo {
    width: 100px;
}

.navbar-logo-div {
    display: flex;
    align-items: center;
}

.arjusthead {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 50px;
}

/* ======================
   DESKTOP NAVIGATION – MODERN
====================== */

.site-header nav ul {
    display: flex;
    gap: 42px;
    align-items: center;
}

.site-header nav a {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s var(--transition-smooth);
    color: var(--color-primary);
    text-transform: capitalize;
}

/* Modern underline animation */
.site-header nav a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-orange-light));
    transform: translateX(-50%);
    transition: width 0.3s var(--transition-smooth);
}

.site-header nav a:hover::before,
.site-header nav .current-menu-item > a::before {
    width: 100%;
}

.site-header nav a:hover,
.site-header nav .current-menu-item > a {
    color: var(--color-orange);
    transform: translateY(-2px);
}

/* ======================
   DESKTOP DROPDOWN – ELEGANT
====================== */

.site-header nav ul li {
    position: relative;
}

.site-header nav ul li.menu-item-has-children > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.site-header nav ul li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.site-header nav ul li > ul {
    position: absolute;
    top: 130%;
    left: -10px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 0;
    min-width: 260px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.35s var(--transition-smooth);
}

.site-header nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.site-header nav ul li > ul li {
    margin: 0;
    padding: 0;
}

.site-header nav ul li > ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 24px;
    display: block;
    color: var(--color-text);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.site-header nav ul li > ul li a:hover {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.08), transparent);
    border-left-color: var(--color-orange);
    color: var(--color-orange);
    padding-left: 28px;
}

.site-header nav ul li > ul li a::before {
    display: none;
}

/* Hide mobile controls on desktop */
#homemenu,
#closemenu {
    display: none;
}

/* =====================================================
   FOOTER – MODERN & PROFESSIONAL
===================================================== */

.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin-top: 3px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-orange-light), var(--color-orange));
}

/* Animated Background Pattern */
.site-footer::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-top {
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-right {
    text-align: end;
}

.footer-phone {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    display: block;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-phone::before {
    content: "✆";
    font-size: 1.3rem;
    color: var(--color-orange-light);
}

.footer-phone:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-tagline {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease;
}

.footer-email {
    font-size: 1.2rem;
    color: var(--color-orange-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.footer-email::before {
    content: "✉";
    font-size: 1.4rem;
}

.footer-email:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-middle {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.footer-heading {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-orange), transparent);
}

.usefullink {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
}

.usefullink li a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

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

.usefullink li a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.usefullink li a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding: 28px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.center {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 992px) {
    .footer-tagline {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }

    .footer-phone,
    .footer-email {
        font-size: 1.1rem;
        text-align:center;
    }

    .footer-top {
        padding: 60px 0 50px;
    }
}

@media (max-width: 768px) {
    .custom-logo {
        width: 130px;
    }

    .site-header.scrolled .custom-logo {
        width: 110px;
    }

    .usefullink {
        flex-direction: column;
        gap: 10px;
    }

    .footer-tagline {
        font-size: 1.4rem;
        text-align: center;
    }

    footer-phone,
    .footer-email {
        display: block;
        text-align: center;
        margin-top: 20px;
    }

    .footer-middle {
        padding: 50px 0;
        text-align: center;
    }

    .footer-heading {
        display: block;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .usefullink {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
        padding: 24px 0;
    }
}

@media (max-width: 480px) {
    .footer-tagline {
        font-size: 1.2rem;
    }

    .footer-email {
        font-size: 1rem;
    }
}

/* =====================================================
   UTILITY STYLES
===================================================== */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--color-orange);
    color: #ffffff;
}

::-moz-selection {
    background: var(--color-orange);
    color: #ffffff;
}