:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --dark: #0f172a;
    --light: #f8fafc;
    --accent: #f43f5e;
    --glass: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    cursor: none;
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9997;
}

/* Custom Cursor */
#cursor {
    width: 14px;
    height: 24px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 4px;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: normal;
    /* Better visibility for icon style */
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 5px var(--primary);
}

#cursor::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
}

#cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s ease-out;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 10000;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Nav */
header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: 0.3s;
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Dropdown Menu */
nav ul li {
    position: relative;
    padding: 10px 0;
    /* Increase touch target */
}

nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    display: none;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

nav ul li:hover ul {
    display: flex;
}

nav ul li ul li {
    margin: 0;
    text-align: left;
}

nav ul li ul li a {
    font-size: 0.9rem;
    display: block;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

nav ul li ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 900;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    /* Essential for button shape */
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* Sections & Grids */
.section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: 0.5s;
    backdrop-filter: blur(5px);
}

/* Forms */
input,
select,
textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    outline: none;
}

/* ADMIN LAYOUT BASE */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    min-width: 280px;
    background: #020617;
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar .logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 0 10px;
}

.admin-sidebar .logo-area img {
    width: 35px;
    border-radius: 8px;
}

.admin-sidebar .admin-portal-text {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    color: white;
    opacity: 0.6;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 8px;
    transition: 0.3s;
    border-radius: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary);
}

.nav-link.active {
    opacity: 1;
    color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    font-weight: 700;
}

.admin-main {
    flex: 1;
    padding: 50px;
}

.menu-toggle,
.mobile-bottom-nav,
.mobile-app-grid {
    display: none;
}

/* RESPONSIVE QUERIES */
@media (max-width: 1024px) {
    .hero-content {
        padding: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {

    #cursor,
    #cursor-follower {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    header {
        padding: 0 20px;
        height: 70px;
    }

    header nav {
        position: fixed;
        right: -100%;
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark);
        backdrop-filter: blur(20px);
        transition: 0.4s;
        border-top: 1px solid var(--glass-border);
    }

    header nav.active {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
    }

    nav ul li {
        margin: 20px 0;
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .section {
        padding: 60px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    /* Admin Shared Responsive Classes */
    .admin-container {
        flex-direction: column !important;
    }

    /* Admin Mobile App Transition */
    .admin-sidebar {
        display: none !important;
        /* Hide sidebar on mobile in favor of bottom nav */
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #0f172a;
        border-top: 1px solid var(--glass-border);
        justify-content: space-around;
        padding: 10px 0;
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

    .mobile-nav-item {
        color: white;
        opacity: 0.6;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.65rem;
        gap: 5px;
    }

    .mobile-nav-item i {
        font-size: 1.2rem;
    }

    .mobile-nav-item.active {
        color: var(--primary);
        opacity: 1;
    }

    .admin-main {
        padding: 20px 20px 80px 20px !important;
        /* Extra bottom padding for nav */
    }

    /* Mobile App Grid for Dashboard */
    .mobile-app-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: 30px;
    }

    .app-icon-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        transition: transform 0.2s, background 0.2s;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .app-icon-card:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.08);
    }

    .app-icon-card i {
        font-size: 1.5rem;
        color: var(--primary);
        background: rgba(0, 242, 254, 0.1);
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }

    .app-icon-card:nth-child(1) i {
        color: #00f2fe;
        background: rgba(0, 242, 254, 0.1);
    }

    .app-icon-card:nth-child(2) i {
        color: #a855f7;
        background: rgba(168, 85, 247, 0.1);
    }

    .app-icon-card:nth-child(3) i {
        color: #f59e0b;
        background: rgba(245, 158, 11, 0.1);
    }

    .app-icon-card:nth-child(4) i {
        color: #f97316;
        background: rgba(249, 115, 22, 0.1);
    }

    .app-icon-card:nth-child(5) i {
        color: #ef4444;
        background: rgba(239, 68, 68, 0.1);
    }

    .app-icon-card:nth-child(6) i {
        color: #10b981;
        background: rgba(16, 185, 129, 0.1);
    }

    .app-icon-card:nth-child(7) i {
        color: #3b82f6;
        background: rgba(59, 130, 246, 0.1);
    }

    .app-icon-card:nth-child(8) i {
        color: #ec4899;
        background: rgba(236, 72, 153, 0.1);
    }

    .app-icon-card:nth-child(9) i {
        color: #8b5cf6;
        background: rgba(139, 92, 246, 0.1);
    }

    .app-icon-card span {
        color: white;
        font-size: 0.7rem;
        font-weight: 600;
        text-align: center;
    }

    .admin-header-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .admin-header-flex h1 {
        font-size: 1.8rem !important;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 30px;
        border-radius: 15px;
    }

    .table-responsive table {
        min-width: 800px;
    }
}

@media (max-width: 480px) {
    .admin-nav ul li {
        flex: 1 1 100%;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* Floating Social Icons Sidebar */
.floating-social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px 0 0 12px;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    padding-right: 10px;
    width: 55px;
    background: var(--primary);
    color: var(--dark);
}

/* WhatsApp Special highlighting */
.social-icon.whatsapp {
    background: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

.social-icon.whatsapp:hover {
    background: #128C7E;
    width: 60px;
}

.social-icon.facebook:hover {
    background: #1877F2;
    color: white;
}

.social-icon.instagram:hover {
    background: #d62976;
    color: white;
}

.social-icon.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-icon.google:hover {
    background: #4285F4;
    color: white;
}

/* Hide on mobile if preferred, or adjust */
@media (max-width: 480px) {
    .floating-social-sidebar {
        /* Keep it vertical on the right for mobile too, just adjust size slightly */
        top: 50%;
        transform: translateY(-50%);
        right: 0;
        flex-direction: column;
        gap: 8px;
        bottom: auto;
        padding-right: 0;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 8px 0 0 8px;
        /* Maintain drawer style */
    }

    .social-icon:hover {
        padding-right: 5px;
        width: 45px;
    }

    .social-icon.whatsapp {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .social-icon.whatsapp:hover {
        width: 50px;
    }
}

/* Brand Marquee Section */
.brand-marquee-section {
    padding: 30px 0;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    margin-top: -30px;
    /* Slight overlap or pull up if needed */
    z-index: 10;
}

.brand-marquee-section::before,
.brand-marquee-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brand-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--dark), transparent);
}

.brand-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--dark), transparent);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Adjust animation calculation dynamically or assume sufficient duplication */
    /* We will use a simpler technique: Translate -50% if we duplicate content X2 */
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
    padding: 0 30px;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.brand-logo-item {
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
    opacity: 0.95;
    transition: all 0.4s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    /* subtle pill background */
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid transparent;
}

.brand-logo-item:hover {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.brand-logo-item img {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .marquee-track {
        gap: 40px;
        animation-duration: 20s;
    }

    .brand-logo-item {
        height: 40px;
        padding: 8px 15px;
    }
}