/* ============================================
   SUPPLE360 - SHARED STYLES
   Mobile-First Responsive Design System
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --lime: #c9ff00;
    --lime-dark: #a8d900;
    --text: #ffffff;
    --text-muted: #888888;
    --text-dim: #555555;
    --border: #222222;
    --header-height: 72px;
    --mobile-header-height: 64px;
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg); display: flex;
    align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-ring {
    width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--lime);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 24px;
    display: flex;
    align-items: center; justify-content: space-between;
    transition: all 0.3s ease;
    height: var(--mobile-header-height);
}
.header.scrolled {
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

/* Logo */
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
    z-index: 1001;
}
.logo-icon {
    width: 32px; height: 32px; background: var(--lime);
    border-radius: 8px; display: flex;
    align-items: center; justify-content: center;
}
.logo-icon svg { width: 18px; height: 18px; }
.logo-text { font-size: 18px; font-weight: 700; }
.logo-text span { color: var(--lime); }

/* Desktop Navigation */
.nav { display: none; align-items: center; gap: 28px; }
.nav a {
    color: var(--text); text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: color 0.3s; position: relative;
}
.nav a:hover { color: var(--lime); }
.nav .has-dropdown { display: flex; align-items: center; gap: 6px; }
.nav .has-dropdown::after {
    content: '▼'; font-size: 8px; color: var(--text-muted);
    transition: transform 0.3s;
}
.nav-item-wrap:hover .has-dropdown::after { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: var(--lime); border-radius: 12px;
    padding: 10px 0; min-width: 260px;
    opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.3s ease;
    list-style: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.dropdown li a {
    display: block; padding: 10px 20px;
    color: var(--bg) !important; font-size: 13px;
    font-weight: 600;
}
.dropdown li a:hover { background: rgba(0,0,0,0.08); }
.nav-item-wrap { position: relative; }
.nav-item-wrap:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Header Social & Menu Toggle */
.header-social { display: flex; align-items: center; gap: 12px; }
.header-social a {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border); display: flex;
    align-items: center; justify-content: center;
    color: var(--text); text-decoration: none;
    font-size: 13px; transition: all 0.3s;
}
.header-social a:hover { border-color: var(--lime); color: var(--lime); }

/* Mobile Menu Toggle */
.menu-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border); background: transparent;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s;
    gap: 5px; padding: 0; z-index: 1001;
}
.menu-toggle:hover { border-color: var(--lime); }
.menu-toggle span {
    display: block; width: 18px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed; inset: 0; z-index: 999;
    background: var(--bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
    padding: 80px 24px 40px;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-nav {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    width: 100%; max-width: 320px;
}
.mobile-menu-nav a {
    font-size: 24px; font-weight: 700;
    color: var(--text); padding: 12px 0;
    transition: color 0.3s; width: 100%; text-align: center;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-nav a:hover { color: var(--lime); }
.mobile-menu-nav .mobile-dropdown-toggle {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; cursor: pointer; width: 100%;
}
.mobile-menu-nav .mobile-dropdown-toggle::after {
    content: '▼'; font-size: 10px; color: var(--text-muted);
    transition: transform 0.3s;
}
.mobile-menu-nav .mobile-dropdown-toggle.open::after { transform: rotate(180deg); }

.mobile-dropdown {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
    width: 100%;
}
.mobile-dropdown.open { max-height: 400px; }
.mobile-dropdown a {
    font-size: 16px; font-weight: 500;
    color: var(--text-muted); padding: 10px 0;
    border-bottom: none;
}
.mobile-dropdown a:hover { color: var(--lime); }

.mobile-menu-social {
    display: flex; gap: 16px; margin-top: 40px;
}
.mobile-menu-social a {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); display: flex;
    align-items: center; justify-content: center;
    color: var(--text); font-size: 16px;
    transition: all 0.3s;
}
.mobile-menu-social a:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Common Components ---------- */
.section-label {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 3px; color: var(--lime);
    margin-bottom: 16px; display: flex;
    align-items: center; gap: 8px; font-weight: 600;
}
.section-label::before { content: '*'; font-size: 14px; }
.section-title {
    font-size: 32px; font-weight: 700;
    line-height: 1.15; margin-bottom: 20px;
}
.section-title .lime { color: var(--lime); }

.btn-lime {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bg-card); color: var(--text);
    padding: 14px 28px; border-radius: 50px;
    text-decoration: none; font-size: 14px; font-weight: 600;
    border: 1px solid var(--border); transition: all 0.3s;
    cursor: pointer; white-space: nowrap;
}
.btn-lime:hover { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.btn-lime svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Fade Up Animation */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Background Shapes */
.shape-3d {
    position: absolute; pointer-events: none;
    opacity: 0.5; z-index: 0;
}
.shape-1 {
    top: 10%; right: -10%; width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(201,255,0,0.1) 0%, transparent 70%);
    border-radius: 50%; filter: blur(60px);
}
.shape-2 {
    bottom: 10%; left: -10%; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(201,255,0,0.08) 0%, transparent 70%);
    border-radius: 50%; filter: blur(80px);
}

/* Rotating Circle */
.rotating-circle {
    width: 100px; height: 100px; position: relative;
    animation: rotate 20s linear infinite;
    flex-shrink: 0;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.rotating-circle svg { width: 100%; height: 100%; }
.rotating-circle .arrow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 36px; height: 36px; background: var(--lime);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    animation: rotate-reverse 20s linear infinite;
}
@keyframes rotate-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* ---------- Footer ---------- */
.footer-main {
    padding: 60px 20px 30px;
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr;
    gap: 40px;
}
.footer-brand p {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.8; margin-top: 16px;
}
.footer-col h4 {
    font-size: 16px; font-weight: 700;
    margin-bottom: 20px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--text-muted); text-decoration: none;
    font-size: 14px; transition: color 0.3s;
}
.footer-col a:hover { color: var(--lime); }
.footer-contact-item {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 16px;
}
.footer-contact-item .icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--lime); display: flex;
    align-items: center; justify-content: center;
    color: var(--bg); flex-shrink: 0;
}
.footer-contact-item .icon svg { width: 16px; height: 16px; }
.footer-contact-item p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.footer-contact-item a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-contact-item a:hover { color: var(--lime); }
.footer-bottom {
    max-width: 1400px; margin: 40px auto 0;
    padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column;
    align-items: center; gap: 16px; text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); margin: 0; }
.footer-social-bottom {
    display: flex; align-items: center; gap: 12px;
}
.footer-social-bottom span { font-size: 13px; color: var(--text-muted); }
.footer-social-bottom a {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border); display: flex;
    align-items: center; justify-content: center;
    color: var(--text-muted); text-decoration: none;
    font-size: 12px; transition: all 0.3s;
}
.footer-social-bottom a:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Page Hero (Shared) ---------- */
.page-hero {
    padding: 100px 20px 40px;
    min-height: auto;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.page-hero-inner { max-width: 1400px; margin: 0 auto; width: 100%; }
.page-hero h1 {
    font-size: 36px; font-weight: 700;
    line-height: 1.1; margin-bottom: 16px;
}
.page-hero h1 .lime { color: var(--lime); }
.page-hero p {
    font-size: 15px; color: var(--text-muted);
    max-width: 100%; line-height: 1.7;
}

/* ---------- CTA Section (Shared) ---------- */
.cta-section { padding: 60px 20px; }
.cta-inner {
    max-width: 1400px; margin: 0 auto;
    background: var(--bg-card); border-radius: 20px;
    padding: 40px 24px; border: 1px solid var(--border);
    display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 32px;
}
.cta-content h2 {
    font-size: 28px; font-weight: 700;
    line-height: 1.2; margin-bottom: 12px;
}
.cta-content h2 .lime { color: var(--lime); }
.cta-content p {
    font-size: 15px; color: var(--text-muted);
    max-width: 100%; line-height: 1.6;
}
.cta-btn-wrap {
    display: flex; flex-direction: column;
    align-items: center; gap: 12px; margin-top: 20px;
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
    .header { padding: 18px 32px; height: var(--header-height); }
    .logo-icon { width: 36px; height: 36px; }
    .logo-icon svg { width: 20px; height: 20px; }
    .logo-text { font-size: 20px; }

    .section-title { font-size: 40px; }
    .page-hero { padding: 140px 40px 60px; min-height: 40vh; }
    .page-hero h1 { font-size: 52px; }
    .page-hero p { max-width: 600px; }

    .cta-section { padding: 80px 40px; }
    .cta-inner { padding: 48px 40px; border-radius: 24px; }
    .cta-content h2 { font-size: 36px; }
    .cta-btn-wrap { flex-direction: row; gap: 16px; }

    .footer-main { padding: 80px 40px 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 50px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .nav { display: flex; }
    .menu-toggle { display: none; }
    .mobile-menu { display: none !important; }

    .section-title { font-size: 48px; }
    .page-hero h1 { font-size: 64px; }

    .cta-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left; padding: 60px;
    }
    .cta-content h2 { font-size: 42px; }
    .cta-btn-wrap { flex-direction: row; }

    .footer-inner { grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 60px; }
}

/* ============================================
   LARGE DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
    .page-hero h1 { font-size: 72px; }
}

/* ---------- Utility ---------- */
.no-scroll { overflow: hidden; }
