/* ================================
   Modern Design System - Kamaniya Rental Bali
   Black & White Monochrome Theme
   ================================ */

/* Root Variables - Black & White Palette */
:root {
    /* Primary Colors - Monochrome */
    --primary-900: #0a0a0a;
    --primary-800: #171717;
    --primary-700: #262626;
    --primary-600: #404040;
    --primary-500: #525252;
    --primary-400: #737373;
    --primary-300: #a3a3a3;
    --primary-200: #d4d4d4;
    --primary-100: #f5f5f5;
    --primary-50: #fafafa;

    /* Accent Colors - Pure Black & White */
    --accent-black: #000000;
    --accent-white: #ffffff;

    /* Gradients */
    --dark-gradient: linear-gradient(135deg, #0a0a0a 0%, #262626 100%);
    --light-gradient: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);

    /* Background */
    --bg-light: #fafafa;
    --bg-section: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ================================
   Base Animations
   ================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate__fadeInDown {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate__fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate__fadeInLeft {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate__fadeInRight {
    animation: fadeInRight 0.6s ease-out forwards;
}

/* ================================
   Glassmorphism Header
   ================================ */
.glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-link {
    position: relative;
    color: var(--primary-600);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-black);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-black);
}

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

/* ================================
   Hero Section
   ================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ================================
   Premium Buttons
   ================================ */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--accent-black);
    color: var(--accent-white);
    font-weight: 600;
    border-radius: 8px;
    border: none;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--accent-white);
    color: var(--accent-black);
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--primary-200);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--primary-100);
    border-color: var(--primary-400);
    transform: translateY(-2px);
}

/* ================================
   Feature Cards
   ================================ */
.feature-card {
    position: relative;
    background: var(--accent-white);
    border: 1px solid var(--primary-200);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-black);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-white);
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 12px;
}

.feature-text {
    color: var(--primary-500);
    line-height: 1.6;
}

/* ================================
   Product Cards
   ================================ */
.product-card {
    position: relative;
    background: var(--accent-white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--primary-200);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--primary-100);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: 24px;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-black);
}

.product-time {
    font-size: 0.875rem;
    color: var(--primary-500);
    font-weight: 500;
}

.product-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: var(--accent-black);
    color: var(--accent-white);
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.product-btn:hover {
    background: var(--primary-800);
    transform: translateY(-2px);
}

/* ================================
   Testimonial Cards
   ================================ */
.testimonial-section {
    background: var(--bg-section);
}

.testimonial-card {
    position: relative;
    background: var(--accent-white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-200);
    transition: var(--transition-smooth);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: var(--primary-200);
    line-height: 1;
}

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

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--primary-300);
}

.testimonial-name {
    font-weight: 700;
    color: var(--primary-900);
}

.testimonial-date {
    font-size: 0.875rem;
    color: var(--primary-400);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--primary-600);
    line-height: 1.7;
    font-style: italic;
}

/* ================================
   Section Titles
   ================================ */
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-900);
    text-align: center;
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-black);
    margin: 0 auto 48px;
    border-radius: 2px;
}

/* ================================
   Premium Footer
   ================================ */
.footer-premium {
    background: var(--primary-900);
    color: var(--accent-white);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-white);
    margin-bottom: 20px;
}

.footer-text {
    color: var(--primary-400);
    line-height: 1.7;
}

.footer-link {
    position: relative;
    color: var(--primary-400);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-white);
    padding-left: 4px;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--accent-white);
    transition: var(--transition-smooth);
}

.footer-social:hover {
    background: var(--accent-white);
    color: var(--accent-black);
    transform: translateY(-3px);
}

/* ================================
   Profile Dropdown
   ================================ */
#profileDropdown {
    position: absolute;
    right: 0;
    top: 100%;
    width: 200px;
    background: var(--accent-white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: none;
    z-index: 1000;
    border: 1px solid var(--primary-200);
    overflow: hidden;
    padding: 8px;
}

#profileDropdown li a,
#profileDropdown li button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    transition: var(--transition-fast);
    text-align: left;
}

#profileDropdown li a:hover,
#profileDropdown li button:hover {
    background: var(--primary-100);
    color: var(--accent-black);
}

/* ================================
   Utility Classes
   ================================ */
.hidden {
    display: none;
}

#mobileMenu {
    top: 4rem;
    z-index: 1000;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-white);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    background: var(--primary-700);
}

/* ================================
   Form Inputs
   ================================ */
.input-premium {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--primary-300);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--accent-white);
}

.input-premium:focus {
    outline: none;
    border-color: var(--accent-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.textarea-premium {
    min-height: 120px;
    resize: vertical;
}

/* ================================
   Alert/Note Box
   ================================ */
.note-box {
    background: var(--primary-100);
    border-left: 4px solid var(--accent-black);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
}

.note-box-warning {
    background: #fef3c7;
    border-left-color: #d97706;
}

/* ================================
   Loading Skeleton
   ================================ */
.loading-skeleton {
    background: linear-gradient(90deg, var(--primary-100) 25%, var(--primary-200) 50%, var(--primary-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card,
    .product-card,
    .testimonial-card {
        border-radius: 12px;
    }

    .product-card:hover,
    .feature-card:hover {
        transform: translateY(-4px);
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
    }
}