/**
 * Lushanth Design System — Main Stylesheet
 * Ultra-Modern Creative Agency Experience
 */

:root {
    /* Color Palette */
    --primary: #2B4DFF;
    --primary-hover: #1a3de6;
    --primary-glow: rgba(43, 77, 255, 0.35);
    --primary-light: #eff3ff;
    
    --accent-cyan: #00F0FF;
    --accent-cyan-glow: rgba(0, 240, 255, 0.3);
    --accent-purple: #7928CA;
    
    --navy-950: #03081E;
    --navy-900: #040D43;
    --navy-850: #071356;
    --navy-800: #0A165E;
    --navy-700: #14237d;
    --navy-600: #1e329c;
    
    --dark-surface: #0a1548;
    --dark-surface-card: #0d1b5a;
    --dark-border: rgba(255, 255, 255, 0.1);
    --dark-border-hover: rgba(43, 77, 255, 0.4);
    
    --text-main: #1E2238;
    --text-muted: #585B6F;
    --text-light: #9499B3;
    --text-white: #FFFFFF;
    
    --bg-light: #F7F9FC;
    --bg-card: #FFFFFF;
    --border-light: #E4E7F0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 22, 94, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 22, 94, 0.08);
    --shadow-lg: 0 16px 40px rgba(10, 22, 94, 0.12);
    --shadow-xl: 0 24px 60px rgba(10, 22, 94, 0.16);
    --shadow-glow: 0 0 30px rgba(43, 77, 255, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-pill: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #FFFFFF;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVBAR ARCHITECTURE
   ========================================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

/* 1. Top Contact Bar */
.top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.top-link i {
    color: var(--accent-cyan);
    font-size: 15px;
}

.top-link:hover {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* 2. Main Navigation Bar (Floating Card) */
.main-navbar {
    padding: 16px 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1380px;
}

.nav-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 8px 22px;
    box-shadow: 0 12px 35px rgba(3, 8, 30, 0.12);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo img {
    height: 36px;
    width: auto;
    display: block;
}

/* Desktop Menu Items */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 1;
    min-width: 0;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    font-size: 13.8px;
    font-weight: 600;
    color: var(--navy-800);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap !important;
    line-height: 1.2;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--primary);
    background: var(--primary-light);
}

/* Products Dropdown Menu */
.has-dropdown {
    position: relative;
}

.has-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 370px;
    max-height: 520px;
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(3, 8, 30, 0.18);
    padding: 10px;
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1100;
}

.has-dropdown .dropdown-menu::-webkit-scrollbar {
    width: 5px;
}

.has-dropdown .dropdown-menu::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-item:hover {
    background: #F8FAFC;
    transform: translateX(3px);
}

.dropdown-logo {
    width: 52px;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dropdown-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.dropdown-item:hover .dropdown-logo {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(43, 77, 255, 0.15);
    background: #FFFFFF;
    transform: scale(1.05);
}

.dropdown-text {
    flex: 1;
    min-width: 0;
}

.dropdown-text strong {
    display: block;
    font-size: 13.8px;
    color: var(--navy-800);
    font-weight: 700;
    line-height: 1.25;
}

.dropdown-text span {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu-footer {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.dropdown-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(43, 77, 255, 0.05);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-all-link:hover {
    background: var(--primary);
    color: #FFFFFF;
}

/* Mobile Drawer Product Links with Logos */
.drawer-prod-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 12px !important;
}

.drawer-prod-logo {
    width: 36px;
    height: 26px;
    background: #FFFFFF;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    flex-shrink: 0;
}

.drawer-prod-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-search-trigger {
    background: transparent;
    border: none;
    color: var(--navy-800);
    font-size: 19px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-search-trigger:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), #1e3bd9);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 13.8px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: var(--transition);
    white-space: nowrap !important;
    flex-shrink: 0;
}

/* Medium Desktop Responsive Tuning (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .nav-container {
        padding: 0 16px;
    }
    .nav-card {
        padding: 6px 14px;
        gap: 6px;
    }
    .brand-logo img {
        height: 32px;
    }
    .nav-menu {
        gap: 1px;
    }
    .nav-link {
        padding: 6px 7px;
        font-size: 12.8px;
    }
    .nav-actions {
        gap: 8px;
    }
    .btn-primary-glow {
        padding: 7px 13px;
        font-size: 12.5px;
    }
}

.btn-primary-glow .btn-label-full {
    display: inline-block;
    white-space: nowrap !important;
}

.btn-primary-glow .btn-label-short {
    display: none;
    white-space: nowrap !important;
}

.btn-primary-glow:hover {
    background: linear-gradient(135deg, #3b5cff, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(43, 77, 255, 0.45);
    color: #FFFFFF;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 26px;
    color: var(--navy-800);
    cursor: pointer;
    padding: 4px;
}

/* 3. Sticky Navigation on Scroll (Picture 3) */
.site-header.is-sticky .main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(3, 8, 30, 0.08);
    border-bottom: 1px solid rgba(228, 231, 240, 0.8);
    animation: stickySlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.site-header.is-sticky .nav-card {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

@keyframes stickySlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ==========================================================================
   MOBILE DRAWER & SEARCH MODAL
   ========================================================================== */

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 30, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--navy-950);
    color: #FFFFFF;
    z-index: 1999;
    padding: 24px;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease, box-shadow 0.35s ease;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
}

.mobile-drawer.is-active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dark-border);
}

.drawer-logo img {
    height: 32px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 28px;
    cursor: pointer;
}

.drawer-menu {
    margin: 24px 0;
}

.drawer-menu li {
    margin-bottom: 10px;
}

.drawer-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    border-radius: var(--radius-sm);
}

.drawer-menu a:hover, .drawer-menu a.active {
    background: var(--primary);
    color: #FFFFFF;
}

.drawer-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-submenu {
    display: none;
    padding-left: 16px;
    margin-top: 8px;
}

.drawer-has-dropdown.is-open .drawer-submenu {
    display: block;
}

.drawer-submenu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    padding: 8px 12px;
}

.drawer-contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-border);
}

.drawer-contact-info h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.drawer-contact-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search Modal Overlay */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 30, 0.85);
    backdrop-filter: blur(12px);
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 650px;
    z-index: 2001;
    transform: translateY(20px);
    transition: var(--transition);
}

.search-modal.is-active .search-modal-content {
    transform: translateY(0);
}

.search-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 32px;
    cursor: pointer;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.search-icon {
    font-size: 24px;
    color: var(--accent-cyan);
    margin-right: 12px;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.search-hint {
    margin-top: 14px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.search-hint kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   GLOBAL FOOTER STYLING
   ========================================================================== */

.site-footer {
    position: relative;
    background-color: var(--navy-950);
    color: #FFFFFF;
    padding: 80px 0 30px;
    overflow: hidden;
    border-top: 1px solid rgba(43, 77, 255, 0.2);
}

.footer-glow-backdrop {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(43, 77, 255, 0.15) 0%, rgba(3, 8, 30, 0) 70%);
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 1;
}

/* 1. Top Highlight Cards */
.footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.contact-highlight-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.contact-highlight-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.contact-highlight-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #1a3de6);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.card-info .card-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.card-info .card-value {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
}

/* 2. 4-Column Footer Navigation */
.footer-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--dark-border);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 24px;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #CED0DF;
    font-size: 14.5px;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 12px;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-links a:hover i {
    transform: translateX(2px);
    color: var(--accent-cyan);
}

.footer-newsletter-text {
    color: #CED0DF;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.newsletter-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: #FFFFFF;
    outline: none;
    font-size: 14px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-btn {
    background: var(--primary);
    border: none;
    color: #FFFFFF;
    padding: 0 18px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--primary-hover);
}

/* 3. Bottom Bar */
.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.social-icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Floating Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 24px var(--primary-glow);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(43, 77, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .footer-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .footer-columns-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .section-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }
    
    .hero-title {
        font-size: 32px !important;
        line-height: 1.25 !important;
    }

    .breadcrumbs {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* Global Mobile Overflow Safeguard & Clean Border */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 991px) {
    ::-webkit-scrollbar {
        width: 0px !important;
        height: 0px !important;
        display: none !important;
    }
    html, body {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
}

.mobile-drawer {
    -webkit-overflow-scrolling: touch;
}
