/* ============================================
   GulGul.id — Global Design System
   Fun & Bright Egg-Themed 🥚🌞
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Custom Properties (Design Tokens) --- */
:root {
    /* Colors — VIVID Egg Theme */
    --bg-primary: #FFFBEB;
    --bg-secondary: #FFF3C4;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFF7D6;
    --bg-glass: rgba(255, 251, 235, 0.85);
    --bg-glass-hover: rgba(255, 243, 196, 0.95);
    --bg-warm: #FFE68A;

    --yolk: #FFA600;
    --yolk-bright: #FFC233;
    --yolk-deep: #E08600;
    --orange: #FF6B1A;
    --coral: #FF4757;
    --brown-warm: #7A4B20;
    --cream: #FFF5CC;
    --gradient-yolk: linear-gradient(135deg, #FFC233, #FFA600);
    --gradient-egg: linear-gradient(135deg, #FFA600, #FF6B1A);
    --gradient-fun: linear-gradient(135deg, #FFC233, #FF6B1A, #FF4757);
    --gradient-warm: linear-gradient(180deg, #FFFBEB 0%, #FFF3C4 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 166, 0, 0.1), rgba(255, 107, 26, 0.06));
    --gradient-hero: linear-gradient(160deg, #FFFBEB 0%, #FFE68A 40%, #FFD54F 100%);

    --text-primary: #1A0F00;
    --text-secondary: #5C3D10;
    --text-muted: #8B6914;

    --green: #10B981;
    --green-soft: #D1FAE5;
    --green-glow: rgba(16, 185, 129, 0.25);
    --red: #EF4444;
    --red-soft: #FEE2E2;

    --border-subtle: rgba(139, 94, 52, 0.15);
    --border-yolk: rgba(255, 166, 0, 0.5);
    --border-card: rgba(139, 94, 52, 0.12);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Shadows — vivid, warm */
    --shadow-card: 0 4px 20px rgba(139, 94, 52, 0.1);
    --shadow-card-hover: 0 8px 32px rgba(255, 166, 0, 0.18);
    --shadow-yolk: 0 4px 24px rgba(255, 166, 0, 0.3);
    --shadow-yolk-strong: 0 8px 40px rgba(255, 166, 0, 0.35);
    --shadow-lift: 0 12px 40px rgba(139, 94, 52, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --max-width: 1200px;
    --navbar-height: 72px;
}

/* --- Base Styles --- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.text-gold {
    background: var(--gradient-egg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-warm);
    border: 1px solid var(--border-yolk);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brown-warm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 253, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-sm) 0;
    box-shadow: 0 2px 20px rgba(139, 94, 52, 0.06);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    transition: all var(--transition-base);
}

.navbar.scrolled .nav-logo-img {
    height: 38px;
}

/* Footer logo */
.footer-logo-link {
    display: inline-block;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-egg);
    border-radius: 3px;
    transition: width var(--transition-base);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 24px;
    background: var(--gradient-egg);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-yolk);
}

.nav-cta svg {
    flex-shrink: 0;
    fill: #fff;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-yolk-strong);
}

.nav-cta::after {
    display: none !important;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-egg);
    color: #fff;
    box-shadow: var(--shadow-yolk);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-yolk-strong);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-yolk);
}

.btn-secondary:hover {
    background: var(--bg-warm);
    border-color: var(--yolk);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.btn-outline {
    background: #fff;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--border-yolk);
    color: var(--yolk-deep);
    background: var(--bg-warm);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.3);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn svg {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: scale(1.1);
}

/* SVG icons in section badges */
.section-badge svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* --- Cards --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-card);
}

.glass-card:hover {
    border-color: var(--border-yolk);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* --- Badge --- */
.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--green-soft);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #16A34A;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.badge-live .dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; transform: scale(1.3); box-shadow: 0 0 12px 4px rgba(34, 197, 94, 0.2); }
}

/* --- Footer --- */
.footer {
    background: var(--text-primary);
    border-top: 4px solid var(--yolk);
    padding: var(--space-3xl) 0 var(--space-xl);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .footer-logo-link {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    color: rgba(255,255,255,0.6);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: rgba(255, 184, 0, 0.2);
    border-color: var(--yolk);
    color: var(--yolk-bright);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--yolk-bright);
    padding-left: 4px;
}

.footer-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Utility Classes --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

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

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* --- Divider / Separator --- */
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-egg);
    border-radius: 4px;
    margin: var(--space-lg) auto;
}

/* --- Background Decorations --- */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-gold {
    background: rgba(255, 210, 51, 0.12);
}

.bg-glow-orange {
    background: rgba(255, 122, 47, 0.08);
}

/* Wavy section separator */
.section-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
    }

    .container {
        padding: 0 var(--space-lg);
    }

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

    /* Mobile nav */
    .nav-hamburger {
        display: flex;
    }

    .nav-logo-img {
        height: 36px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #FFF8E1 0%, #FFE8A3 50%, #FFD54F 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        padding: var(--space-3xl) var(--space-2xl);
        gap: 0;
        transition: right var(--transition-base);
        border-left: 4px solid var(--yolk);
        box-shadow: -10px 0 50px rgba(139, 94, 52, 0.15);
        z-index: 1000;
        overflow: hidden;
    }

    /* Decorative glow inside menu */
    .nav-links::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255, 166, 0, 0.2) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--text-primary);
        font-weight: 600;
        padding: var(--space-md) var(--space-lg);
        border-bottom: 1px solid rgba(139, 94, 52, 0.1);
        transition: all var(--transition-fast);
        position: relative;
    }

    .nav-links a:hover {
        background: rgba(255, 166, 0, 0.12);
        padding-left: var(--space-xl);
    }

    .nav-links a.active {
        background: rgba(255, 166, 0, 0.15);
        border-left: 3px solid var(--yolk);
        color: var(--yolk-deep);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-top: var(--space-xl);
        align-self: flex-start;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(26, 15, 0, 0.4);
        z-index: 999;
    }

    .nav-overlay.open {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-logo-img {
        height: 44px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .btn {
        justify-content: center;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .section-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .footer-grid {
        gap: var(--space-lg);
    }
}

