/* ============================================
   KMERLIONS - Main Stylesheet
   Colors: White (#fff), Black (#000), Yellow (#FFD700)
   ============================================ */

:root {
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --yellow: #FFD700;
    --yellow-hover: #FFC107;
    --yellow-dark: #E6B800;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Clash Display', 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--black) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.navbar-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: var(--yellow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--black);
}

.navbar-brand .brand-dot {
    color: var(--yellow);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 8px 16px !important;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--black) !important;
    background: var(--gray-100);
}

.nav-link.lang-toggle {
    background: var(--gray-100);
    margin-left: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-nav {
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-nav:hover {
    background: var(--yellow-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    color: var(--black);
}

/* Mobile menu toggle */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    position: relative;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--black);
    display: block;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--black);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.navbar-toggler[aria-expanded="true"] .hamburger {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-bg-dots {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, var(--yellow) 2px, transparent 2px);
    background-size: 24px 24px;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--yellow);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 215, 0, 0.3);
    z-index: -1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    color: var(--black);
}

.btn-outline-custom {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--gray-300);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    position: relative;
}

.hero-card-accent {
    position: absolute;
    top: -2px;
    left: 32px;
    right: 32px;
    height: 4px;
    background: var(--yellow);
    border-radius: 0 0 8px 8px;
}

.hero-stat {
    text-align: center;
    margin-bottom: 20px;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ============================================
   FEATURES / ABOUT SECTION
   ============================================ */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--black);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--yellow);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}

.feature-text {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-section {
    background: var(--gray-50);
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
    font-family: var(--font-display);
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-text {
    font-size: 15px;
    color: var(--gray-500);
}

.step-connector {
    position: absolute;
    top: 50px;
    right: -30px;
    color: var(--yellow);
    font-size: 20px;
}

/* ============================================
   TARGET COUNTER
   ============================================ */
.counter-section {
    background: var(--black);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.counter-value {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
}

.counter-label {
    font-size: 18px;
    color: var(--gray-400);
    margin-top: 8px;
}

.counter-progress {
    max-width: 500px;
    margin: 24px auto 0;
    height: 6px;
    background: var(--gray-800);
    border-radius: 10px;
    overflow: hidden;
}

.counter-progress-bar {
    height: 100%;
    background: var(--yellow);
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    text-align: center;
    padding: 100px 0;
}

.cta-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 64px;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-text {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--yellow);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
}

/* ============================================
   AUTH PAGE
   ============================================ */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
    background: var(--white);
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-logo span {
    color: var(--yellow);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--gray-500);
}

.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 32px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
    border: none;
    background: transparent;
}

.auth-tab.active {
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow-sm);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    display: block;
}

.form-input-wrapper {
    position: relative;
}

.form-control-custom {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--white);
    color: var(--black);
    outline: none;
}

.form-control-custom:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form-control-custom.error {
    border-color: #EF4444;
}

.form-control-custom.success {
    border-color: #10B981;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--gray-600);
}

.form-error {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-auth:hover {
    background: var(--yellow-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    padding: 0 16px;
}

.btn-google {
    width: 100%;
    padding: 14px;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray-500);
}

.auth-footer-text a {
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.auth-footer-text a:hover {
    color: var(--yellow);
}

/* Forgot Password */
.forgot-link {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--black);
}

/* Alert Messages */
.alert-custom {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
}

.alert-custom.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-visual {
        margin-top: 48px;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        margin-top: 12px;
    }

    .nav-link {
        padding: 12px 16px !important;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }
    .auth-section{
        margin-top:60px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .counter-value {
        font-size: 40px;
    }

    .auth-card {
        padding: 24px;
    }

    .step-connector {
        display: none;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast */
.toast-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease;
    max-width: 400px;
}

.toast-success {
    background: var(--black);
    color: var(--white);
    border-left: 4px solid var(--yellow);
}

.toast-error {
    background: #991B1B;
    color: #fff;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}