/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Fonts */
    --font-primary: 'Onest', sans-serif;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Common Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme (Referensi Pixblok: Cream Warm) */
[data-theme="light"] {
    --bg-primary: #f2efe9;
    --bg-secondary: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f5f3ee 0%, #ebe7de 60%, #e0dcd2 100%);
    --border-color: rgba(0, 0, 0, 0.08);
    
    --text-main: #000000;
    --text-muted: #555555;
    
    --primary: #e67e22;      /* Orange */
    --secondary: #f1c40f;    /* Warm Yellow */
    --accent: #2ecc71;       /* Green Accent */
    
    /* Blob Gradient */
    --blob-gradient: radial-gradient(circle, rgba(230,126,34,0.3) 0%, rgba(241,196,15,0.15) 45%, rgba(255,255,255,0) 70%);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #121110;
    --bg-secondary: #1a1918;
    --bg-gradient: linear-gradient(135deg, #181716 0%, #11100f 60%, #080807 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-main: #ffffff;
    --text-muted: #8c8b88;
    
    --primary: #f39c12;      /* Light Orange */
    --secondary: #e67e22;    /* Orange */
    --accent: #1abc9c;       /* Teal */
    
    /* Blob Gradient */
    --blob-gradient: radial-gradient(circle, rgba(230,126,34,0.2) 0%, rgba(155,89,182,0.12) 45%, rgba(0,0,0,0) 70%);
}

/* ==========================================================================
   GLOBAL STYLES & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.6s ease, color 0.4s ease;
}

/* ==========================================================================
   SVG GRAIN / NOISE BACKGROUND
   ========================================================================== */
.noise-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.18; /* Sangat tipis untuk memberikan tekstur kertas */
}

/* ==========================================================================
   GLOWING BLOB (RIGHT SIDE)
   ========================================================================== */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    top: 5%;
    right: -15%;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: var(--blob-gradient);
    filter: blur(70px);
    opacity: 0.9;
    animation: float-blob-minimal 20s infinite alternate ease-in-out;
}

@keyframes float-blob-minimal {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.08); }
    100% { transform: translate(20px, -20px) scale(0.95); }
}

/* ==========================================================================
   THEME TOGGLER (SUBTLE)
   ========================================================================== */
.theme-btn-minimal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0.4;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.theme-btn-minimal:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Theme Icon Toggle */
[data-theme="dark"] .icon-light { display: block; }
[data-theme="dark"] .icon-dark { display: none; }
[data-theme="light"] .icon-light { display: none; }
[data-theme="light"] .icon-dark { display: block; }

/* ==========================================================================
   MAIN LAYOUT (CENTERED)
   ========================================================================== */
.minimal-wrapper {
    position: relative;
    z-index: 1;
    max-width: 680px;
    width: 100%;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ==========================================================================
   HEADER (LOGO)
   ========================================================================== */
.minimal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: baseline;
}

.logo-text {
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: -2.2px;
    color: var(--text-main);
    line-height: 1;
}

.logo-bold {
    font-weight: 800;
    letter-spacing: -1.8px;
}

.logo-dot {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 800;
    margin-left: -1px;
}

.logo-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--text-muted);
    margin-top: 0.15rem;
    margin-right: -5px; /* Offset the letter-spacing */
    opacity: 0.8;
}

/* ==========================================================================
   ILLUSTRATION (MINIMAL SVG)
   ========================================================================== */
.illustration-box {
    width: 100%;
    max-width: 320px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.minimal-svg {
    width: 100%;
    height: auto;
}

/* SVG KEYFRAME ANIMATIONS */
/* Gears Rotation (Centered at local 0,0, extremely robust) */
.spin-gear {
    transform-origin: 0 0;
    animation: rotate-clockwise 20s linear infinite;
}

@keyframes rotate-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Heartbeat Pulsing (Centered at local 0,0, extremely robust) */
.pulse-heart {
    transform-origin: 0 0;
    animation: pulse-animation 2.2s ease-in-out infinite;
}

@keyframes pulse-animation {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.12); }
    45% { transform: scale(1.05); }
    60% { transform: scale(1.16); }
}

/* Sparkles Flashing (Simple opacity animation, no transforms, 100% robust) */
.sparkle-1 {
    animation: sparkle-fade 3s ease-in-out infinite;
}

.sparkle-2 {
    animation: sparkle-fade 4s ease-in-out infinite 1.5s;
}

@keyframes sparkle-fade {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* ==========================================================================
   CONTENT SECTION (MAIN)
   ========================================================================== */
.minimal-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--text-main);
    max-width: 600px;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 580px;
    font-weight: 400;
}

/* ==========================================================================
   SLEEK COUNTDOWN WIDGET
   ========================================================================== */
.countdown-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.countdown-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: transform 0.15s ease-out;
}

.countdown-number.tick {
    transform: scale(1.15);
}

.countdown-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.4rem;
    opacity: 0.75;
}

.cd-colon {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    align-self: flex-start;
    margin-top: -0.2rem;
    opacity: 0.45;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.minimal-footer {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.follow-text {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--text-main);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.social-btn:hover {
    transform: scale(1.12);
    opacity: 0.85;
}

.email-contact {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 2px;
    margin-bottom: 2rem;
    transition: opacity var(--transition-fast);
}

.email-contact:hover {
    opacity: 0.6;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.75;
    line-height: 1.6;
    max-width: 440px;
}

.footer-link {
    color: inherit;
    text-decoration: underline;
    transition: opacity var(--transition-fast);
}

.footer-link:hover {
    opacity: 0.6;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Mobile Devices */
@media (max-width: 600px) {
    .minimal-wrapper {
        padding: 2rem 1.2rem;
    }
    
    .theme-btn-minimal {
        top: 1.2rem;
        right: 1.2rem;
    }
    
    .logo-text {
        font-size: 2.2rem;
    }
    
    .heading {
        font-size: 1.95rem;
        letter-spacing: -0.8px;
    }
    
    .subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .countdown-minimal {
        gap: 0.5rem;
    }
    
    .cd-item {
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 2.1rem;
    }
    
    .countdown-label {
        font-size: 0.68rem;
    }
    
    .cd-colon {
        font-size: 1.8rem;
    }
    
    .email-contact {
        font-size: 0.95rem;
    }
}
