*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --primary-accent: #0078d4;
    --text-primary: rgba(255, 255, 255, 0.9);
    --blur-intensity: blur(12px);
}

/* Body Styles */
body {
    background-image: linear-gradient(to right top, #5c5157, #5c4f5a, #594e5e, #554d62, #4d4d67, #48526d, #395b75, #3a6579, #406e7b, #49777c, #567f7d);
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    font-family: 'Exo 2', 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Container Styles */
.container {
    max-width: 1200px;
    width: 100%;
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 0;
    padding-bottom: 1em;
    margin: 0 auto;
}

/* Header Styles */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.index-welcome-msg {
    color: #d4be94;
    margin: 1em 0 .4em 0;
    letter-spacing: 0.2em;
    font-size: clamp(1.2em, 2vw + 1.5em, 4em);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    display: inline-block;
    vertical-align: middle;
    word-break: break-all;
}

.seo-subheading {
    color: #797469;
    margin: 0.5em 0 1em 0;
    letter-spacing: 0.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    -webkit-text-stroke: 1px rgb(223 223 223 / 80%);
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

/* Main Grid */
.main-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    margin: 10px 0;
}

@media (max-width: 568px) {
    .main-container {
        grid-template-columns: 1fr;
        margin: 10px 0;
    }
}

/* Box Container Styles */
.box-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    height: 18.125em;
    /* Fixed height for desktop */
}

@media (max-width: 768px) {
    .box-container {
        height: 15.625em;
        /* Adjusted height for tablets */
    }
}

@media (max-width: 568px) {
    .box-container {
        height: 12.5em;
        /* Adjusted height for mobile */
    }
}

/* Background Video Styles */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    border-radius: 10px;
}

/* Box Styles */
.box {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: rgba(6, 6, 6, 0.8);
    background-color: rgba(0, 46, 60, 0.7);
    padding: 20px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.box:hover {
    background-color: rgba(0, 46, 60, 0.9);
    transform: scale(1.05);
}

.box-text {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 4px;
    color: white;
}

.box-text-span {
    color: #e7ca93;
    font-weight: 900;
    display: block;
    font-size: clamp(1.5rem, 3vw, 3rem);
}

/* // Instalation */
/* ====================
     Install Button Styles
     ==================== */
.floating-install {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-intensity);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-weight: 600;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-install:hover {
    background: rgba(0, 120, 212, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 120, 212, 0.25);
    backdrop-filter: blur(16px);
}

.floating-install::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    z-index: -1;
}

/* 💫 Enhanced Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.03);
        opacity: 0.97;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ================
     Toast Styles
     ================ */
#toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-intensity);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    opacity: 0;
    z-index: 1001;
    transition: all 0.4s ease;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    transform: translateX(120%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#toast.show {
    opacity: 1;
    transform: translateX(0);
}

#toast.hidden {
    opacity: 0;
    transform: translateX(120%);
}

/* ================
     Modal Styles
     ================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-intensity);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90%;
    width: 400px;
    animation: modalEntrance 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-message {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-ok,
.modal-cancel {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-ok {
    background: linear-gradient(45deg, #4CAF50cc, #45a049cc);
    color: white;
}

.modal-cancel {
    background: linear-gradient(45deg, #f44336cc, #d32f2fcc);
    color: white;
}

.modal-ok:hover,
.modal-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}