/* Modern Premium CSS for Mobile Location & Website Page */

:root {
    --bg-navy-dark: #030d1a;
    --bg-navy-light: #0d1e36;
    --card-navy: #08162b;
    --accent-gold: #c5a059;
    --accent-gold-light: #dfc082;
    --accent-gold-dark: #9a7a3e;
    --text-light: #f3f6fa;
    --text-muted: #8fa0b5;
    --shadow-premium: 0 25px 50px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 50%, var(--bg-navy-light) 0%, var(--bg-navy-dark) 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Ambient Animated Glows (Desktop Only) */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

.glow-1 {
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-100%, -100%);
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

.glow-2 {
    background: radial-gradient(circle, #1e457e 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(0, 0);
    animation: pulseGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1) translate(0, 0); opacity: 0.12; }
    50% { transform: translate(-50%, -50%) scale(1.1) translate(50px, -50px); opacity: 0.18; }
    100% { transform: translate(-50%, -50%) scale(0.9) translate(-30px, 30px); opacity: 0.1; }
}

/* ==========================================================================
   MOBILE CONTAINER (Aspect-Locked Card for Pixel-Perfect Layout)
   ========================================================================== */
.mobile-container {
    width: 92vw;
    max-width: 385px; /* Fits desktop and mobile viewports beautifully */
    background: var(--card-navy);
    border: 1.5px solid rgba(197, 160, 89, 0.35);
    border-radius: 28px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

/* Subtle border glow on hover */
body:hover .mobile-container {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(197, 160, 89, 0.2);
    border-color: rgba(197, 160, 89, 0.55);
}

/* Floating Brand Logo Overlay */
.brand-logo-overlay {
    position: absolute;
    top: 5.5%; /* Placed elegantly above the company name "BERNHARD SCHULTE" */
    left: 50%;
    transform: translateX(-50%);
    width: 38%; /* Fixed width percentage relative to card width to bypass browser height bugs */
    height: auto;
    z-index: 10;
    pointer-events: none;
}

/* Card Content Wrapper (holds image and overlays) */
.card-content-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--card-navy);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16; /* Force the image container to lock to the 9:16 aspect ratio */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-navy);
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fits perfectly with zero cropping because parent is 9:16 */
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* ==========================================================================
   INTERACTIVE LOCATION HOTSPOT OVERLAY (Pulsing ring centered on Pin)
   ========================================================================== */
.location-hotspot {
    position: absolute;
    top: 33.9%; /* Center of the gold pin is Y=33.9% */
    left: 49.7%; /* Center of the gold pin is X=49.7% */
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    background: transparent;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: hotspotPulse 2.5s infinite ease-out;
}

.ring-2 {
    animation-delay: 1.25s;
}

.hotspot-dot {
    width: 14px;
    height: 14px;
    background: var(--accent-gold-light);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-gold-light), 0 0 5px #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.location-hotspot:hover .hotspot-dot {
    opacity: 0.65;
    transform: scale(1.4);
}

@keyframes hotspotPulse {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* ==========================================================================
   ACTION BUTTON SECTION (Floating overlay in the bottom reflection area)
   ========================================================================== */
.action-wrapper {
    position: absolute;
    bottom: 6%; /* Positioned perfectly in the water reflection area below the skyline */
    left: 0;
    right: 0;
    padding: 0 24px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

/* Beautified Premium Button */
.website-button {
    position: relative;
    display: block;
    width: 100%;
    max-width: 290px;
    text-decoration: none;
    border-radius: 50px;
    padding: 2px; /* Golden outer gradient border */
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 50%, var(--accent-gold-dark) 100%);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.25);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.button-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #030d1a; /* Matches the dark navy card corners */
    padding: 12px 20px;
    border-radius: 48px;
    color: var(--text-light);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-icon {
    font-size: 14px;
    color: var(--accent-gold);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

/* Gold Glow Layer behind button */
.button-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

/* Premium Hover & Active States */
.website-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(197, 160, 89, 0.4),
        0 0 15px rgba(197, 160, 89, 0.2);
}

.website-button:hover .button-content {
    background: transparent; /* Reveals the glowing background gradient */
    color: #030d1a; /* Dark navy text for high contrast */
}

.website-button:hover .btn-icon {
    color: #030d1a;
    transform: scale(1.1) rotate(15deg);
}

.website-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
}

/* Subtle pulse animation for the button border */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 6px 20px rgba(197, 160, 89, 0.25);
    }
    50% {
        box-shadow: 0 6px 26px rgba(197, 160, 89, 0.45);
    }
    100% {
        box-shadow: 0 6px 20px rgba(197, 160, 89, 0.25);
    }
}

.website-button {
    animation: buttonPulse 3s infinite ease-in-out;
}

/* ==========================================================================
   RESPONSIVE LAYOUT (Mobile Optimization)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        background: var(--card-navy);
        padding: 0;
    }

    .ambient-glow {
        display: none;
    }

    /* Keep the aspect-ratio card layout centered on mobile screens */
    .mobile-container {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .card-content-wrapper {
        width: 100%;
        height: 100vh; /* Fills the full viewport height since logo header is now an overlay */
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--card-navy);
    }

    .card-image-wrapper {
        height: 100%;
        max-height: 100%;
        width: auto;
        aspect-ratio: 9 / 16; /* Locks image aspect ratio to 9:16 on mobile viewports */
    }

    .location-image {
        object-fit: cover; /* Fits perfectly with zero cropping within the 9:16 container */
    }
}
