/* =========================================
   UCHU - Medical & Astro Healing Styles
   ========================================= */

/* --- CSS Variables --- */
:root {
    --primary-color: #dbb754;
    --primary-grad: linear-gradient(135deg, #ecd37c 0%, #cf9d3e 100%);
    --text-main: #111111;
    --text-light: #4b5563;
    --bg-main: #ffffff;
    --bg-light: #fafafa;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(255, 255, 255, 0.6);
    
    --med-color: #38bdf8;
    --astro-color: #a78bfa;
    --danger: #ef4444;
    --success: #10b981;

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -15px rgba(246, 211, 101, 0.4);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

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

.section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 100%;
    margin-bottom: 40px;
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary {
    background: var(--primary-grad);
    color: white;
    box-shadow: 0 4px 15px rgba(246, 211, 101, 0.4);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: white;
}

.btn-full {
    width: 100%;
}

.border-white {
    border-color: white !important;
}

.text-white {
    color: white !important;
}

/* Glass Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 32px;
}

/* --- Navbar --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    font-size: 1.8rem;
    color: #fda085;
    -webkit-text-fill-color: #fda085;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(246, 211, 101, 0.2);
    color: #d97706;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.image-card {
    padding: 12px;
    transform: rotate(2deg);
    transition: var(--transition);
}

.image-card:hover {
    transform: rotate(0deg) translateY(-10px);
}

.image-card img {
    border-radius: var(--radius-md);
    width: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    padding: 12px 20px;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
}

.badge-med {
    top: 10%;
    left: -20px;
    color: var(--med-color);
}

.badge-astro {
    bottom: 20%;
    right: -20px;
    color: var(--astro-color);
    animation-delay: 2s;
}

/* Anim blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
    animation: pulseBlob 10s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: #ecd37c;
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #cf9d3e;
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--primary-grad);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
}

/* --- How It Works --- */
.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: dashed 2px var(--border-glass);
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.step h4 {
    margin-bottom: 12px;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Experts --- */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.expert-card {
    padding: 20px;
}

.expert-img {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 1/1;
}

.expert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.expert-card:hover .expert-img img {
    transform: scale(1.05);
}

.status {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.status.online { background: var(--success); }
.status.offline { background: var(--text-light); }

.expert-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.1);
    color: var(--med-color);
    margin-bottom: 12px;
}

.expert-badge.astro {
    background: rgba(167, 139, 250, 0.1);
    color: var(--astro-color);
}

.expert-info h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.meta {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating {
    color: #f59e0b;
    font-weight: 600;
}

.price {
    font-weight: 600;
    margin-bottom: 20px;
}

.price span {
    font-size: 1.5rem;
    color: var(--text-main);
}

/* --- Split Section (About) --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image {
    position: relative;
}

.split-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
}

.abstract-shape {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.highlight-list {
    margin-top: 32px;
}

.highlight-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.highlight-list i {
    font-size: 1.5rem;
    color: var(--success);
    margin-top: 2px;
}

.highlight-list strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.highlight-list span {
    color: var(--text-light);
}

/* --- Wallet Section --- */
.wallet-showcase {
    max-width: 500px;
    margin: 0 auto;
}

.wallet-visual {
    margin-top: 40px;
    text-align: left;
}

.wallet-header {
    background: var(--primary-grad);
    padding: 24px;
    border-radius: var(--radius-md);
    color: white;
    margin-bottom: 24px;
}

.wallet-header span {
    opacity: 0.9;
    font-size: 0.9rem;
}

.wallet-header h3 {
    font-size: 2.5rem;
    margin: 8px 0 0;
}

.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.wallet-history {
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.history-left h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.history-left span {
    color: var(--text-light);
    font-size: 0.85rem;
}

.text-danger { color: var(--danger); font-weight: 600; }

/* --- CTA Section --- */
.cta-box {
    background: var(--primary-grad);
    color: white;
    padding: 80px 40px;
}

.cta-box h2 {
    font-size: 3rem;
}

.cta-box p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-box .btn-primary {
    background: white;
    color: var(--text-main);
}
.cta-box .btn-primary:hover {
    background: var(--bg-light);
}
.join-expert:hover {
    color: var(--primary-color) !important;
}

/* --- Footer --- */
footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 20px;
}

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

.footer-brand h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 24px;
}

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

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

.social-links a:hover {
    background: var(--primary-color);
    color: #0f172a;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* --- Auth Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    width: 100%;
    max-width: 450px;
    background: white;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    padding: 40px;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.modal-tabs {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 32px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.tab-btn.active {
    background: white;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.auth-form.active-form {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(246, 211, 101, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.forgot-pwd {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulseBlob {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-auth {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .nav-auth.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 20px 20px;
        background: white;
        position: absolute;
        top: calc(100% + 200px);
        left: 0;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .steps-container::before {
        display: none;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .hidden-mobile {
        display: none;
    }

    .cta-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
