/* 
    BenWeb Design System - Premium Tech Aesthetic
    Inspiration: Midnight Tech Excellence
*/

:root {
    /* Colors */
    --surface: #081425;
    --surface-dim: #050b14;
    --surface-bright: #152031;
    --primary: #bec6e0;
    --secondary: #4cd7f6; /* Electric Cyan */
    --secondary-glow: rgba(76, 215, 246, 0.4);
    --on-surface: #d8e3fb;
    --on-surface-variant: #94a3b8;
    --outline: rgba(255, 255, 255, 0.1);
    --error: #ffb4ab;
    
    /* Gradients */
    --grad-main: linear-gradient(135deg, var(--secondary) 0%, #2563eb 100%);
    --grad-surface: radial-gradient(circle at 50% 50%, rgba(76, 215, 246, 0.05) 0%, rgba(8, 20, 37, 0) 70%);
    
    /* Spacing */
    --unit: 8px;
    --container-max: 1280px;
    --section-padding: 100px;
    
    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism */
.glass {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--outline);
}

.glass-card {
    background: rgba(21, 32, 49, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--outline);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px -10px var(--secondary-glow);
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding) 0;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--grad-main);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--secondary-glow);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--on-surface);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(8, 20, 37, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--outline);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
    text-decoration: none;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
}

/* Utility */
.text-gradient {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(76, 215, 246, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(76, 215, 246, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* --- Responsive & Mobile Menu Styles --- */

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--on-surface);
}

.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: var(--on-surface);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.mobile-nav-actions {
    display: none;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .nav-actions .btn-primary {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
    }

    .lang-selector {
        margin-right: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .close-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        gap: 2rem;
        padding: 2rem;
    }

    .nav-links.active-menu {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .mobile-nav-actions {
        display: flex;
        justify-content: center;
    }

    /* Adjust layout for tablet and mobile */
    .hero .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem !important;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 3.5rem !important;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-content > div:first-child {
        justify-content: center;
    }

    .hero-content > div:last-child {
        justify-content: center;
    }

    .section .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .section .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    .section .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .section .container > div[style*="grid-template-columns: 0.8fr 1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .section .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .hero-content h1 {
        font-size: 2.8rem !important;
    }

    .hero-slider {
        height: 350px !important;
    }

    h2 {
        font-size: 2.2rem !important;
    }
}

/* Social Share Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.share-wa { background: #25D366; }
.share-wa:hover { background: #20bd5a; }

.share-fb { background: #1877F2; }
.share-fb:hover { background: #166fe5; }

.share-x { background: #1DA1F2; }
.share-x:hover { background: #0d8ddb; }

.share-li { background: #0A66C2; }
.share-li:hover { background: #0954a3; }

