/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: "SUIT Variable", sans-serif;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Background Layers */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/wallpaper.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 360px;
    background: linear-gradient(180deg, transparent 0%, #B1F6FF 100%);
    z-index: -1;
}

/* Main Container */
.outer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    margin-left: 96px;
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* Main Title */
.main_message {
    color: #0E6F98;
    font-family: "SUIT Variable", sans-serif;
    font-size: 96px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 60px;
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

/* Navigation Menu Container */
.msgcontainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    width: 600px;
    font-family: "SUIT Variable", sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

/* Navigation Menu Items */
.msg {
    color: #0E6F98;
    font-family: "SUIT Variable", sans-serif;
    font-size: 24px;
    font-weight: 800;
    padding: 20px 0;
    border-top: 3px solid #1699D0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    display: block;
    transform: translateY(0);
}

.msg::after {
    content: '>';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #0E6F98;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.msg:hover {
    color: #48D1CC;
    border-top-color: #48D1CC;
    transform: translateY(-3px);
    text-shadow: 0 2px 8px rgba(72, 209, 204, 0.3);
}

.msg:hover::after {
    right: -10px;
    color: #48D1CC;
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .outer {
        margin-left: 24px;
        margin-right: 24px;
        padding: 40px 20px;
        justify-content: flex-start;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
        height: auto;
        min-height: calc(100vh - 80px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .main_message {
        font-size: 48px;
        margin-bottom: 40px;
        text-align: left;
    }
    
    .msgcontainer {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 24px;
        width: 100%;
        font-size: 20px;
    }
    
    .msg {
        font-size: 20px;
        padding: 16px 0;
    }
    
    .msg::after {
        font-size: 18px;
    }
    
    body::after {
        height: 240px;
    }
}

@media screen and (max-width: 480px) {
    .outer {
        margin-left: 16px;
        margin-right: 16px;
        padding: 32px 16px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        border-radius: 16px;
        margin-top: 32px;
        margin-bottom: 32px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    }
    
    .main_message {
        font-size: 36px;
        margin-bottom: 32px;
    }
    
    .msgcontainer {
        gap: 20px;
        font-size: 18px;
    }
    
    .msg {
        font-size: 18px;
        padding: 14px 0;
    }
    
    .msg::after {
        font-size: 16px;
    }
    
    body::after {
        height: 200px;
    }
}

@media screen and (max-width: 320px) {
    .outer {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(14px);
        border-radius: 12px;
        margin-top: 24px;
        margin-bottom: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    .main_message {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .msgcontainer {
        gap: 16px;
        font-size: 16px;
    }
    
    .msg {
        font-size: 16px;
        padding: 12px 0;
    }
}