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

:root {
    --bg-deep: #050506;
    --bg-elevated: #0e1013;
    --surface: rgba(255, 255, 255, 0.02);
    --border-hairline: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(255, 255, 255, 0.12);
    --text-primary: #f9fafb;
    --text-muted: #8a8f98;
    --color-gold: #e0c985;
    --color-gold-glow: rgba(224, 201, 133, 0.2);
    --color-whatsapp: #25d366;
    --color-whatsapp-glow: rgba(37, 211, 102, 0.15);
    --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(224, 201, 133, 0.12); /* Gold ambient light */
    animation: floatGlow1 24s ease-in-out infinite alternate;
}

.bg-glow-2 {
    width: 320px;
    height: 320px;
    bottom: 8%;
    right: -100px;
    background-color: rgba(94, 106, 210, 0.08); /* Indigo ambient light */
    animation: floatGlow2 20s ease-in-out infinite alternate;
}

.bg-glow-3 {
    width: 250px;
    height: 250px;
    top: 45%;
    left: 40%;
    background-color: rgba(234, 88, 12, 0.06); /* Warm orange ambient light */
    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.045;
    filter: grayscale(1) drop-shadow(0 0 15px rgba(255,255,255,0.03));
    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: 78px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 20px rgba(224, 201, 133, 0.4));
    animation: pulseLogo 6s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
    0% { transform: scale(1); filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 20px rgba(224, 201, 133, 0.4)); }
    100% { transform: scale(1.03); filter: drop-shadow(0 6px 18px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 30px rgba(224, 201, 133, 0.6)); }
}

@keyframes waAttract {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.3);
    }
    25% {
        transform: scale(1.06) rotate(3deg);
        box-shadow: 0 6px 22px rgba(37, 211, 102, 0.25), 0 0 0 8px rgba(37, 211, 102, 0);
    }
    50% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15), 0 0 0 0 rgba(37, 211, 102, 0);
    }
    75% {
        transform: scale(1.06) rotate(-3deg);
        box-shadow: 0 6px 22px rgba(37, 211, 102, 0.25), 0 0 0 8px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15), 0 0 0 0 rgba(37, 211, 102, 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.02);
    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(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 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.08), 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;
}

/* Sara AI default styling */
.btn-sara .plug-icon-container {
    background: rgba(224, 201, 133, 0.06);
    border: 1px solid rgba(224, 201, 133, 0.25);
    color: var(--color-gold);
    box-shadow: 0 4px 15px rgba(224, 201, 133, 0.05);
}

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

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

.plug-content {
    width: 100%;
}

.plug-title {
    font-size: 1.35rem;
    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(224, 201, 133, 0.03);
    border-color: rgba(224, 201, 133, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(224, 201, 133, 0.08), inset 0 1px 0 rgba(224, 201, 133, 0.12);
}

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

.btn-sara:hover .plug-icon-container {
    transform: scale(1.1) rotate(4deg);
    background: rgba(224, 201, 133, 0.12);
    border-color: rgba(224, 201, 133, 0.45);
    box-shadow: 0 6px 20px rgba(224, 201, 133, 0.15);
}

/* WhatsApp Specific Styles */
.btn-wa:hover {
    background: rgba(37, 211, 102, 0.03);
    border-color: rgba(37, 211, 102, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.08), inset 0 1px 0 rgba(37, 211, 102, 0.12);
}

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

.btn-wa:hover .plug-icon-container {
    transform: scale(1.1) rotate(-4deg);
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.15);
}

/* 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.5;
}

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

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

.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;
    }
}
