/* Base Reset & Design Tokens */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #f1f5f9;
    --bg-elevated: #f8fafc;
    --surface: rgba(255, 255, 255, 0.7);
    --border-hairline: rgba(15, 23, 42, 0.08);
    --border-highlight: rgba(15, 23, 42, 0.15);
    --text-primary: #1a335a;
    --text-muted: #475569;
    --color-gold: #9a782b;
    --color-gold-glow: rgba(154, 120, 43, 0.1);
    --color-whatsapp: #128c7e;
    --color-whatsapp-glow: rgba(18, 140, 126, 0.1);
    --color-checkin: #2b5c8f;
    --color-checkin-glow: rgba(43, 92, 143, 0.1);
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    
    /* Easing Curve - UI UX Pro Max: Expo.out */
    --easing-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Wrapper */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* UI UX Pro Max: Animated Ambient Blobs */
.background-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 1;
    pointer-events: none;
}

.bg-glow-1 {
    width: 380px;
    height: 380px;
    top: 5%;
    left: -120px;
    background-color: rgba(235, 121, 36, 0.07);
    animation: floatGlow1 24s ease-in-out infinite alternate;
}

.bg-glow-2 {
    width: 320px;
    height: 320px;
    bottom: 8%;
    right: -100px;
    background-color: rgba(26, 51, 90, 0.05);
    animation: floatGlow2 20s ease-in-out infinite alternate;
}

.bg-glow-3 {
    width: 250px;
    height: 250px;
    top: 45%;
    left: 40%;
    background-color: rgba(224, 201, 133, 0.04);
    animation: floatGlow3 28s ease-in-out infinite alternate;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.15); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, -50px) scale(1.2); }
}

@keyframes floatGlow3 {
    0% { transform: translate(0, 0) scale(0.9); }
    100% { transform: translate(30px, -20px) scale(1.1); }
}

/* Background Watermark */
.bg-sara-watermark-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.bg-sara-watermark {
    width: 80%;
    max-width: 380px;
    height: auto;
    opacity: 0.02;
    filter: grayscale(1) invert(1) drop-shadow(0 0 15px rgba(0,0,0,0.02));
    animation: floatWatermark 20s ease-in-out infinite;
}

@keyframes floatWatermark {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-20px) rotate(2deg) scale(1.03); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 24px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    position: relative;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    animation: fadeIn 0.8s var(--easing-expo) forwards;
}

.logo-wrapper {
    display: inline-block;
    padding: 8px;
}

.hotel-logo {
    height: 96px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(26, 51, 90, 0.06));
    animation: pulseLogo 6s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
    0% { transform: scale(1); filter: drop-shadow(0 4px 12px rgba(26, 51, 90, 0.06)); }
    100% { transform: scale(1.03); filter: drop-shadow(0 8px 20px rgba(26, 51, 90, 0.12)); }
}

@keyframes waAttract {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(18, 140, 126, 0.15), 0 0 0 0 rgba(18, 140, 126, 0.3);
    }
    25% {
        transform: scale(1.06) rotate(3deg);
        box-shadow: 0 6px 22px rgba(18, 140, 126, 0.25), 0 0 0 8px rgba(18, 140, 126, 0);
    }
    50% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(18, 140, 126, 0.15), 0 0 0 0 rgba(18, 140, 126, 0);
    }
    75% {
        transform: scale(1.06) rotate(-3deg);
        box-shadow: 0 6px 22px rgba(18, 140, 126, 0.25), 0 0 0 8px rgba(18, 140, 126, 0);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(18, 140, 126, 0.15), 0 0 0 0 rgba(18, 140, 126, 0);
    }
}

/* Main Portal Container */
.portal-main {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

/* Plugs Group */
.plugs-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    flex-grow: 1;
    animation: slideUp 0.8s var(--easing-expo) forwards;
}

/* Large Glassy Plug Boxes (Vertically stretched) */
.plug-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 24px;
    flex: 1;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-hairline);
    border-radius: 24px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--easing-expo);
    box-shadow: 0 15px 35px rgba(26, 51, 90, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Hover reflection sweep */
.plug-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    transition: 0.85s;
    pointer-events: none;
}

.plug-box:hover .plug-shine {
    left: 150%;
}

/* Icon Container inside Box */
.plug-icon-container {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 20px;
    transition: transform 0.4s var(--easing-expo), color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

/* Sara AI default styling */
.btn-sara .plug-icon-container {
    background: rgba(154, 120, 43, 0.06);
    border: 1px solid rgba(154, 120, 43, 0.2);
    color: var(--color-gold);
    box-shadow: 0 4px 15px rgba(154, 120, 43, 0.03);
}

/* Check-in default styling */
.btn-checkin .plug-icon-container {
    background: rgba(43, 92, 143, 0.08);
    border: 1px solid rgba(43, 92, 143, 0.2);
    color: var(--color-checkin);
    box-shadow: 0 4px 15px rgba(43, 92, 143, 0.04);
}

/* WhatsApp default styling with attractive infinite attention-grabber animation */
.btn-wa .plug-icon-container {
    background: rgba(18, 140, 126, 0.08);
    border: 1px solid rgba(18, 140, 126, 0.2);
    color: var(--color-whatsapp);
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.04);
    animation: waAttract 3.5s ease-in-out infinite;
}

.plug-icon-container svg {
    width: 32px;
    height: 32px;
}

.sara-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plug-content {
    width: 100%;
}

.plug-title {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.plug-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.5;
    transition: color 0.3s ease;
    max-width: 310px;
    margin: 0 auto;
}

/* active press-state down scale - UI UX Pro Max */
.plug-box:active {
    transform: scale(0.97) translateY(0px) !important;
}

/* Sara AI Specific Styles */
.btn-sara:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(154, 120, 43, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(154, 120, 43, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-sara:hover .plug-title {
    color: var(--color-gold);
}

.btn-sara:hover .plug-icon-container {
    transform: scale(1.1) rotate(4deg);
    background: rgba(154, 120, 43, 0.12);
    border-color: rgba(154, 120, 43, 0.4);
    box-shadow: 0 6px 20px rgba(154, 120, 43, 0.1);
}

/* Check-in Specific Styles */
.btn-checkin:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(43, 92, 143, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(43, 92, 143, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-checkin:hover .plug-title {
    color: var(--color-checkin);
}

.btn-checkin:hover .plug-icon-container {
    transform: scale(1.1) rotate(4deg);
    background: rgba(43, 92, 143, 0.12);
    border-color: rgba(43, 92, 143, 0.4);
    box-shadow: 0 6px 20px rgba(43, 92, 143, 0.1);
}

/* WhatsApp Specific Styles */
.btn-wa:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(18, 140, 126, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(18, 140, 126, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-wa:hover .plug-title {
    color: var(--color-whatsapp);
}

.btn-wa:hover .plug-icon-container {
    transform: scale(1.1) rotate(-4deg);
    background: rgba(18, 140, 126, 0.12);
    border-color: rgba(18, 140, 126, 0.4);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.1);
}

/* Footer */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
    animation: fadeIn 0.8s var(--easing-expo) forwards;
}

.footer-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.copyrights {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.75;
}

.microsystem-branding {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.microsystem-branding:hover {
    opacity: 0.85;
}

.microsystem-logo {
    height: 18px;
    width: auto;
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Small Screens Adjustments */
@media (max-width: 375px) {
    .container {
        padding: 20px 14px;
    }
    .hotel-logo {
        height: 66px;
    }
    .plugs-group {
        gap: 16px;
    }
    .plug-box {
        padding: 20px 16px;
    }
    .plug-icon-container {
        width: 54px;
        height: 54px;
        margin-bottom: 12px;
    }
    .plug-icon-container svg {
        width: 24px;
        height: 24px;
    }
    .plug-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }
    .plug-desc {
        font-size: 0.78rem;
        line-height: 1.4;
    }
}
