/*
Theme Name: MyRepublic SEO Fast
Theme URI: https://myrepublic.co.id
Author: Google Agentic AI
Description: A lightweight, high-performance theme optimized for Core Web Vitals and SEO. Features a dark purple glassmorphism design.
Version: 2.2
Text Domain: myrepublic-seo
*/

/* =========================================
   RESET & VARIABLES
   ========================================= */
:root {
    /* Brand Colors Refined - MyRepublic Darker Purple Theme */
    --primary: #602580;
    /* Deep Purple */
    --primary-dark: #3a0e52;
    --secondary: #9d31bd;
    --accent: #ff9100;
    --text-dark: #1e1b4b;
    --text-gray: #475569;
    --text-light: #f8fafc;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(96, 37, 128, 0.15);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.7;
    /* Increased for better readability */
    font-size: 18px;
    /* Bigger base font size */
}

body {
    background-color: #f3e8ff;
    background-image:
        radial-gradient(at 0% 0%, rgba(96, 37, 128, 0.2) 0px, transparent 55%),
        radial-gradient(at 100% 0%, rgba(157, 49, 189, 0.2) 0px, transparent 55%),
        radial-gradient(at 100% 100%, rgba(255, 145, 0, 0.1) 0px, transparent 55%),
        radial-gradient(at 0% 50%, rgba(96, 37, 128, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Improved Typography Uniformity */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 800;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-nav-overlay.active {
    transform: translateY(0);
}

.mobile-nav-overlay a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-nav-overlay a:hover {
    color: var(--primary);
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   COMPONENTS
   ========================================= */
/* Glassmorphism Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(96, 37, 128, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(96, 37, 128, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -10px rgba(96, 37, 128, 0.5);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(96, 37, 128, 0.3);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(96, 37, 128, 0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Footer */
footer {
    background: #1e1b4b;
    color: #e2e8f0;
    padding: 5rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

/* =========================================
   HOME PAGE SPECIFIC
   ========================================= */
#hero {
    padding-top: calc(var(--header-height) + 6rem);
    padding-bottom: 8rem;
    text-align: center;
    position: relative;
    overflow: visible;
}

#hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, var(--text-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

#hero p {
    font-size: 1.35rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 37, 128, 0.25) 0%, rgba(96, 37, 128, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Package Cards */
.package-card {
    text-align: center;
    position: relative;
    padding: 3rem 2rem;
}

.package-card.featured {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(157, 49, 189, 0.25);
    z-index: 2;
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 1.5rem 0;
    letter-spacing: -0.02em;
}

.price span {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* =========================================
   BLOG STYLES (New)
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.post-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-thumbnail {
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid var(--glass-border);
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-title a {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: color 0.2s;
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.post-excerpt {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: calc(var(--header-height) + 4rem);
}

.single-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.entry-content {
    font-size: 1.15rem;
    color: #334155;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* "Full White & 11px" - User Request Update */

/* Make main container full width and white */
.single-post-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Remove inner card float effect to blend with full white page */
.single-post-container .card,
.entry-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    padding: 1rem 2rem !important;
    /* Generous padding: keeps paragraphs not too wide */
}

/* Precise 11px Font */
.entry-content p,
.entry-content li,
.post-meta {
    font-size: 11px !important;
    line-height: 1.7 !important;
    /* Little more breathing room for small text */
    color: #333;
    text-align: left;
    margin-bottom: 1.2rem;
}

/* Adjust headings for 11px body */
.single-title {
    font-size: 1.2rem !important;
    /* ~19px */
    line-height: 1.3 !important;
    padding: 0 2rem;
    /* Align with content */
    margin-top: 1rem;
    color: var(--primary);
}

/* Reset padding for H2 within content */
.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem !important;
    /* ~17px */
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Show hamburger */
    .mobile-menu-toggle {
        display: block;
        margin-left: 1rem;
    }

    /* Restore Header CTA on Mobile (Compact) */
    header .btn-primary {
        display: inline-block;
        padding: 0.5rem 1rem;
        /* Smaller padding */
        font-size: 0.8rem;
    }

    /* Fix Solution Section Layout on Mobile */
    #solution .container>div {
        grid-template-columns: 1fr !important;
        text-align: center;
        /* Center text for better mobile layout */
        gap: 2rem;
    }

    #solution .section-title {
        text-align: center !important;
        margin-bottom: 1.5rem;
    }

    #solution ul.features-list {
        display: inline-block;
        text-align: left;
    }

    #solution .container>div>div:nth-child(2) {
        order: -1;
        margin-bottom: 1rem;
    }

    .card-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .package-card.featured {
        transform: none;
        margin: 1rem 0;
    }

    .single-title {
        font-size: 2rem;
    }
}

/* Floating WhatsApp Button */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 25px;
    /* Increased safe margin */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2147483647;
    /* Max Z-index */
    display: flex;
    /* Ensure flex is default */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-green 2s infinite;
    /* Continuous pulse */
}

@media (max-width: 768px) {
    .whatsapp-float {
        display: flex !important;
        /* Force display on mobile */
        bottom: 30px;
        /* Higher up */
        right: 20px;
        /* Safe from edge */
        width: 60px;
        /* Big size like desktop */
        height: 60px;
        font-size: 28px;
        z-index: 9999999 !important;
    }
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}