/* Custom micro-animations & utilities for GlobeXped */

/* =============================================
   Hero cinematic slideshow
   ============================================= */
.hero-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1);
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    animation: heroZoom 9s ease-out forwards;
}

/* Subtle slow zoom while slide is visible (3s display + fade overlap) */
@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.04); }
}

.hero-overlay-navy {
    background:
        /* Subtle bright cyan/blue top overlay */
        linear-gradient(to bottom, rgba(21, 159, 227, 0.15) 0%, rgba(11, 93, 122, 0.08) 50%, rgba(17, 17, 17, 0.40) 100%),
        /* Clean light blue left-to-right gradient overlay */
        linear-gradient(to right, rgba(11, 93, 122, 0.25) 0%, rgba(21, 159, 227, 0.08) 60%, transparent 100%),
        /* Soft subtle bottom gradient for text contrast */
        linear-gradient(to top, rgba(17, 17, 17, 0.30) 0%, transparent 35%);
}

/* Slide indicator dots */
.hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
    padding: 0;
    border: none;
    cursor: pointer;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

.hero-dot.active {
    background: #159FE3;
    width: 1.5rem;
}

/* Respect reduced motion: static first slide, no zoom */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: opacity 0.6s linear;
    }
    .hero-slide.active {
        animation: none;
    }
}

/* =============================================
   Mobile hero — full landscape visible, no aggressive crop
   ============================================= */
@media (max-width: 767px) {
    #hero {
        height: 85svh;
        min-height: 560px;
    }

    /* Portrait mobile crops fit a tall narrow hero without
       chopping the left/right of the scene */
    .hero-slide {
        background-position: center top;
        background-size: cover;
    }

    /* Prevent horizontal scrolling from any wide element */
    body {
        overflow-x: hidden;
    }

    .hero-dot {
        width: 0.4rem;
        height: 0.4rem;
    }
    .hero-dot.active {
        width: 1.2rem;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for premium look */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #EAF8FD;
}
::-webkit-scrollbar-thumb {
    background: #159FE3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0B5D7A;
}

/* Premium gradient backgrounds */
.gradient-overlay-navy {
    background: linear-gradient(to top, rgba(17, 17, 17, 0.8) 0%, rgba(11, 93, 122, 0.3) 50%, rgba(21, 159, 227, 0.1) 100%);
}

.gradient-overlay-light {
    background: linear-gradient(to top, rgba(234, 248, 253, 1) 0%, rgba(234, 248, 253, 0.6) 80%, rgba(234, 248, 253, 0) 100%);
}

/* Text stroke for large numbers */
.text-stroke-gold {
    -webkit-text-stroke: 1px #159FE3;
    color: transparent;
}

/* Destination card premium animation */
.destination-card {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
}
.destination-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px -6px rgba(21, 159, 227, 0.18), 0 4px 12px -2px rgba(11, 93, 122, 0.08);
    border-color: #159FE3;
}
.destination-card .dest-img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.destination-card:hover .dest-img {
    transform: scale(1.08);
}

/* Page transitions / reveal animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hover effects */
.hover-card-zoom img {
    transition: transform 0.7s ease;
}
.hover-card-zoom:hover img {
    transform: scale(1.08);
}

/* Button micro-interactions */
.btn-gold-glow {
    position: relative;
    overflow: hidden;
}
.btn-gold-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
}
.btn-gold-glow:hover::after {
    transform: scale(1);
}

/* =============================================
   Plain Django Form Fields — Tailwind CSS styling
   Replaces django-crispy-forms / crispy-tailwind
   ============================================= */

/* Base input, select, textarea */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="search"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.5;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

/* Validation states */
input.errorlist,
.errorlist ~ input,
select.errorlist {
    border-color: #ef4444;
}

/* Checkboxes */
input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #0066ff;
}

/* File inputs */
input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: #f8fafc;
    cursor: pointer;
}

/* Textarea */
textarea {
    min-height: 6rem;
    resize: vertical;
}

/* Select arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* Dark-background form variant (e.g., visa detail sidebar) */
.form-dark input[type="text"],
.form-dark input[type="email"],
.form-dark input[type="password"],
.form-dark input[type="number"],
.form-dark input[type="tel"],
.form-dark input[type="date"],
.form-dark select,
.form-dark textarea {
    background-color: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.form-dark input:focus,
.form-dark select:focus,
.form-dark textarea:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

/* Reduced motion settings */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}

