/* Futuristic Villa Website CSS - STABLE VERSION */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00bcd4;
    --secondary-color: #0097a7;
    --accent-color: #00e5ff;
    --dark-bg: #1a1a2e;
    --gradient-primary: linear-gradient(135deg, #00bcd4, #0097a7, #00e5ff);
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--dark-bg);
    color: #ffffff;
    overflow-x: hidden;
}

/* Particles */
.particles-container {
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 188, 212, 0.6);
    border-radius: 50%;
    animation: float-particle 15s linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('./images/hero-bg-CP.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    background-image: url('./images/hero-bg-CP.jpg');
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
}

.futuristic-overlay {
    background: linear-gradient(45deg, 
        rgba(0, 188, 212, 0.05) 0%, 
        rgba(0, 151, 167, 0.05) 25%, 
        rgba(0, 229, 255, 0.05) 50%, 
        rgba(0, 188, 212, 0.05) 75%, 
        rgba(0, 151, 167, 0.05) 100%);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typography */
.gradient-text {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text 3s ease infinite;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.gradient-text-hero {
    background: linear-gradient(45deg, #00bcd4, #00e5ff, #ffffff, #00bcd4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text 4s ease infinite;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    text-shadow: 0 0 30px rgba(0, 188, 212, 0.5);
}

@keyframes gradient-text {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Header */
#main-header {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1030;
}

.ticker-container {
    background: rgba(0, 188, 212, 0.9);
    z-index: 1025;
}

.ticker-text {
    color: white;
    font-weight: 500;
}

@media (max-width: 767px) {
    .ticker-container {
        display: block !important;
        padding: 8px 0;
        font-size: 14px;
    }
    
    .ticker-text {
        animation: ticker 20s linear infinite;
        white-space: nowrap;
        display: inline-block;
    }
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Logo */
.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .logo-img {
        width: 30px;
        height: 30px;
    }
}

/* Buttons */
.btn-futuristic {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-futuristic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
    color: white;
}

/* Villa Cards */
.villa-card {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.villa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.villa-img, .villa-img-main {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.villa-card:hover .villa-img,
.villa-card:hover .villa-img-main {
    transform: scale(1.05);
}

/* Watermark */
.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(0, 188, 212, 0.1) 50px,
        rgba(0, 188, 212, 0.1) 52px
    );
    z-index: 2;
    pointer-events: none;
}

.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 24px;
    font-weight: bold;
    color: rgba(0, 188, 212, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 3;
    pointer-events: none;
    font-family: 'Orbitron', monospace;
}

/* Payment Icons */
.payment-icon-small {
    width: 40px;
    height: 25px;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.payment-icon-small:hover {
    transform: scale(1.1);
}

.payment-icon-midtrans {
    max-height: 50px;
    width: auto;
}

.payment-icon {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.payment-icon:hover {
    transform: scale(1.1);
}

/* WhatsApp Float */
.whatsapp-float {
    width: 60px;
    height: 60px;
    z-index: 1040;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .display-2 {
        font-size: 2.2rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .payment-icon-small {
        width: 35px;
        height: 22px;
    }
}

/* Navbar Mobile */
/* Hamburger Menu Mobile - Perbaikan Estetik */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 12px;
    background: rgba(0, 188, 212, 0.1);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(0, 188, 212, 0.2);
    transform: scale(1.05);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300bcd4' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 188, 212, 0.25);
}

/* Mobile Navigation Improvements */
@media (max-width: 767px) {
    .navbar-collapse {
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 10px;
        margin-top: 15px;
        padding: 20px;
        border: 1px solid rgba(0, 188, 212, 0.3);
    }
    
    .navbar-nav .nav-link {
        padding: 12px 20px;
        margin: 5px 0;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: center;
        font-weight: 500;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(0, 188, 212, 0.2);
        transform: translateX(10px);
    }
}

/* Modal Styling */
.modal-content {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
}

.modal-header {
    border-bottom: 1px solid var(--primary-color);
}

.villa-info-card {
    background: rgba(0, 188, 212, 0.05);
    backdrop-filter: blur(10px);
}

/* Carousel Styling */
.carousel-item img, .carousel-item video {
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 188, 212, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

/* Payment Icons */
.payment-icon-small {
    width: 40px;
    height: 25px;
    object-fit: contain;
    border-radius: 4px;
    background: white;
    padding: 2px;
}

/* Form Styling */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 188, 212, 0.25);
}

/* Responsive Improvements */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .carousel-item img, .carousel-item video {
        height: 250px;
    }
    
    .villa-info-card {
        margin-top: 20px;
    }
}

/* Loading Animation */
.loading-payment {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 188, 212, 0.3);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fadeIn {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}