/* ============================================
   AUTHOR ZUKY N. A. REAL - ULTRA MODERN CSS
   Version: 3.0 | Premium Design
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #d9893b;
    --primary-dark: #b96f2e;
    --primary-light: #f5a65b;
    --primary-glow: rgba(217, 137, 59, 0.4);
    --secondary: #2d2a24;
    --accent: #8b5a2b;
    --bg-light: #fefaf5;
    --bg-white: #ffffff;
    --text-dark: #2d2a24;
    --text-gray: #6b6a66;
    --text-light: #9b9a95;
    --border-color: #e8e2d9;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #d9893b, #b96f2e);
    --gradient-dark: linear-gradient(135deg, #2d2a24, #1f1a16);
    --gradient-gold: linear-gradient(135deg, #f5a65b, #d9893b);
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(217, 137, 59, 0.3);
    
    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --transition-normal: 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --transition-slow: 0.8s cubic-bezier(0.2, 0.95, 0.4, 1.1);
    --transition-extra-slow: 1.2s cubic-bezier(0.2, 0.95, 0.4, 1.1);
    
    /* Animations */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quint: cubic-bezier(0.83, 0, 0.17, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s, width 0.2s, height 0.2s;
    backdrop-filter: blur(2px);
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s var(--ease-out-expo);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-ring {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 248, 240, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-fast);
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

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

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

.nav-auth {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-login {
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all var(--transition-fast);
}

.btn-login:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-register {
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-register:hover::before {
    width: 300px;
    height: 300px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 80%;
    height: 120%;
    background: radial-gradient(circle, rgba(217, 137, 59, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: slowDrift 25s ease-in-out infinite;
}

@keyframes slowDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(3%, 2%) rotate(2deg); }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 137, 59, 0.12);
    backdrop-filter: blur(4px);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 28px;
    border: 1px solid rgba(217, 137, 59, 0.2);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(217, 137, 59, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-primary {
    padding: 14px 36px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    background: var(--gradient-primary);
    color: white;
    border: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary {
    padding: 14px 36px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.hero-stats {
    display: flex;
    gap: 56px;
}

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

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 4px;
}

.hero-visual {
    flex: 1;
    position: relative;
    z-index: 2;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(217, 137, 59, 0.2);
    transition: all var(--transition-normal);
    animation: floatSlow 4s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(217, 137, 59, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 35%;
    right: -15%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 15%;
    left: 5%;
    animation-delay: 2s;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title span {
    color: var(--primary);
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 20px auto;
    border-radius: 3px;
}

/* Novels Grid */
.novels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.novel-card {
    background: var(--bg-white);
    border-radius: 32px;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.novel-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.novel-cover {
    height: 220px;
    background: linear-gradient(135deg, #fef5e8, #fff0e2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cover-icon {
    font-size: 4rem;
    transition: transform var(--transition-normal);
}

.novel-card:hover .cover-icon {
    transform: scale(1.1);
}

.novel-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 500;
}

.novel-info {
    padding: 24px;
}

.novel-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.novel-author {
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.novel-description {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novel-stats {
    display: flex;
    gap: 20px;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.novel-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-read {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
}

.btn-read:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-glow);
}

/* Genres Grid */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.genre-card {
    background: var(--bg-white);
    padding: 32px 20px;
    text-align: center;
    border-radius: 32px;
    transition: all var(--transition-normal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.genre-card:hover {
    transform: translateY(-8px);
    background: var(--gradient-primary);
    color: white;
}

.genre-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary);
    transition: color var(--transition-fast);
}

.genre-card:hover .genre-icon {
    color: white;
}

.genre-card h3 {
    margin-bottom: 8px;
}

.genre-card span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Steps Section */
.how-it-works {
    background: var(--gradient-dark);
    color: white;
    margin: 40px 0;
    border-radius: 60px;
}

.how-it-works .section-subtitle,
.how-it-works .section-title span {
    color: var(--primary-light);
}

.how-it-works .section-line {
    background: var(--primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.step-card {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 32px;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--primary);
}

.testimonial-rating {
    color: #ffc107;
    margin: 12px 0;
}

.testimonial-card p {
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    border-radius: 60px;
    margin: 40px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatSlow 8s infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: floatSlow 12s infinite reverse;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-btn {
    background: white;
    color: var(--primary);
    box-shadow: none;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #cfc3b6;
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.footer-about p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfc3b6;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: #cfc3b6;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    width: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(207, 195, 182, 0.2);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        min-height: 300px;
    }
    .floating-card {
        position: relative;
        display: inline-flex;
        margin: 10px;
    }
    .card-1, .card-2, .card-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-menu.active .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 40px;
        gap: 24px;
        align-items: center;
        box-shadow: var(--shadow-lg);
        animation: fadeInDown 0.4s ease;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .container {
        padding: 0 24px;
    }
    .cta-section {
        margin: 20px;
        padding: 40px 24px;
        border-radius: 32px;
    }
    .cta-section h2 {
        font-size: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-contact li {
        justify-content: center;
    }
    .cursor, .cursor-follower {
        display: none;
    }
    body {
        cursor: auto;
    }
}

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