/* 
  WENX - Professional Design System
  Theme: Ultra-modern, AI/Tech Aesthetic
  Colors: Emerald Greens, Teals, Glassmorphism
*/

:root {
    /* Dark Mode (Default) */
    --bg-dark: #020617;
    --bg-header: rgba(5, 5, 10, 0.8);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-input: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);

    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #059669;
    --accent: #34d399;

    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --bg-dark: #f8fafc;
    --bg-header: rgba(255, 255, 255, 0.8);
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-input: rgba(0, 0, 0, 0.05);
    --text-main: #0f172a;
    --text-dim: #475569;
    --glass-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Mesh Gradients */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-dark);
    opacity: 0.6;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(5, 150, 105, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(52, 211, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    filter: blur(80px);
}

body.light-mode .mesh-bg {
    opacity: 0.3;
}

/* Utility Classes */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-main);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Button Glow Effect */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
}

.btn-glow:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Motion Graphics Container */
.motion-graphics-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Floating Business Icons */
.floating-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    color: var(--primary);
    opacity: 0;
    animation: floatIn 1s ease forwards, floatLoop 6s ease-in-out infinite;
}

.floating-icon .icon-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.icon-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0.1s, 0.5s;
}

.icon-2 {
    top: 25%;
    right: 10%;
    animation-delay: 0.3s, 0.8s;
}

.icon-3 {
    top: 60%;
    left: 5%;
    animation-delay: 0.5s, 1.1s;
}

.icon-4 {
    bottom: 25%;
    right: 8%;
    animation-delay: 0.7s, 1.4s;
}

.icon-5 {
    top: 45%;
    left: 12%;
    animation-delay: 0.9s, 1.7s;
}

.icon-6 {
    bottom: 35%;
    right: 12%;
    animation-delay: 1.1s, 2s;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatLoop {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(2deg);
    }

    50% {
        transform: translateY(-5px) rotate(-1deg);
    }

    75% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Connection Lines SVG */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.animated-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 4s ease-in-out infinite alternate;
}

.line-1 {
    animation-delay: 0s;
}

.line-2 {
    animation-delay: 1s;
}

.line-3 {
    animation-delay: 2s;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 1000;
    }

    50%,
    100% {
        stroke-dashoffset: 0;
    }
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-1 {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.particle-2 {
    right: 15%;
    top: 30%;
    animation-delay: 1s;
}

.particle-3 {
    left: 25%;
    bottom: 25%;
    animation-delay: 2s;
}

.particle-4 {
    right: 20%;
    bottom: 35%;
    animation-delay: 3s;
}

.particle-5 {
    left: 40%;
    top: 15%;
    animation-delay: 0.5s;
}

.particle-6 {
    right: 35%;
    top: 45%;
    animation-delay: 1.5s;
}

.particle-7 {
    left: 15%;
    top: 55%;
    animation-delay: 2.5s;
}

.particle-8 {
    right: 25%;
    bottom: 20%;
    animation-delay: 3.5s;
}

@keyframes particleFloat {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    10% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translateY(-80px) scale(0.8);
    }

    90%,
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(0.3);
    }
}

/* Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: orbPulse 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: 20%;
    right: -8%;
    animation-delay: 2s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes orbPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

/* Service Ticker */
.service-ticker {
    margin-top: 60px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    padding: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-content {
    display: flex;
    gap: 40px;
    animation: tickerScroll 20s linear infinite;
    width: max-content;
}

.ticker-content span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.ticker-content span i {
    color: var(--primary);
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    padding: 32px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
}

.text-center {
    text-align: center;
}

.admin-grid {
    gap: 24px;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Shop & Cart */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--glass-border);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 32px;
}

.cart-sidebar.open {
    right: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 1500;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

input,
textarea,
select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Social Share Bar */
.social-share-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.share-btn:hover {
    transform: translateX(5px);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* AI Chatbot */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--primary-glow);
    z-index: 2000;
    transition: var(--transition);
}

.chatbot-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    animation: fadeInScale 0.3s ease forwards;
}

.chat-window.open {
    display: flex;
}

.chat-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    padding: 10px 16px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.9rem;
}

.msg-ai {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
}

.msg-user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
}

.chat-nav-btn {
    display: inline-block;
    padding: 6px 12px;
    margin-top: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.chat-nav-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    width: fit-content;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--text-dim);
    border-radius: 50%;
    animation: typing 1s infinite alternate;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    from {
        opacity: 0.3;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(-4px);
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    section {
        padding: 60px 0;
    }

    .mobile-menu-btn {
        display: flex !important;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 8px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Motion Graphics Mobile Styles */
    .floating-icon {
        display: none;
    }

    .connection-lines {
        opacity: 0.2;
    }

    .glow-orb {
        filter: blur(40px);
        opacity: 0.15;
    }

    .orb-1,
    .orb-2 {
        width: 150px;
        height: 150px;
    }

    .orb-3 {
        width: 100px;
        height: 100px;
    }

    .service-ticker {
        margin-top: 40px;
    }

    .ticker-content {
        animation-duration: 15s;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 90px;
    }

    .social-share-bar {
        left: 10px;
    }

    /* Stack sections that use inline styles/grids */
    #home .grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero div[style*="display: flex"] {
        flex-direction: column;
    }

    .nav-actions {
        gap: 12px;
    }
}