/* ==========================================================================
   CSS Variables & Tokens (Premium Dark Theme)
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #0a0a0c;
    --bg-darker: #050506;
    --bg-card: rgba(255, 255, 255, 0.03);
    
    --text-main: #f5f5f7;
    --text-muted: #a1a1aa;
    
    /* Gold / Lighting Accents */
    --accent-gold: #d4af37;
    --accent-gold-light: #facc15;
    --accent-gold-dark: #997a00;
    
    --wa-green: #25D366;
    --wa-green-hover: #1ebd5a;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Glow Effects */
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
    --glow-gold-strong: 0 0 30px rgba(250, 204, 21, 0.5);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent-gold);
}

.accent-gradient {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: #000;
    box-shadow: var(--glow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold-strong);
    background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: var(--glow-gold);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 28px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.15) 0%, rgba(10, 10, 12, 1) 60%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeUp 1s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeUp 1s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */
.section {
    padding: 100px 0;
}

.grid {
    display: grid;
    gap: 32px;
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ==========================================================================
   Cards (Projects)
   ========================================================================== */
.card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 50%);
    opacity: 0;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-text {
    color: var(--text-muted);
}

/* ==========================================================================
   Products
   ========================================================================== */
.product-item {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.product-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.product-img-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 4/3;
    background-color: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.product-link {
    color: var(--accent-gold);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.product-link:hover {
    color: var(--accent-gold-light);
    transform: translateX(5px);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(10, 10, 12, 1));
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-text {
    color: var(--text-muted);
    max-width: 300px;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #fff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition-normal);
    animation: float 3s ease-in-out infinite;
}

.floating-wa:hover {
    background-color: var(--wa-green-hover);
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   Animations (Scroll Reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-darker);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .header .btn-outline {
        display: none; /* Hide header btn on mobile to simplify */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
