* { box-sizing: border-box; }

body {
    font-family: 'Merriweather', serif;
    background-color: #0f172a;
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    scroll-snap-type: y mandatory;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .display-font {
    font-family: 'Playfair Display', serif;
}

.global-video-bg {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.global-video-bg.active {
    opacity: 1;
}

.global-overlay {
    display: none;
}

.full-screen-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; 
    width: 100%;
    display: flex;
    overflow: hidden;
    scroll-snap-align: start;
    align-items: flex-end; 
    padding-bottom: 8vh; 
    padding-left: 5vw; 
    padding-right: 5vw; 
}

.hero-section {
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
    padding-left: 0;
}

.content-card {
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px; 
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none; 
    opacity: 1;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    will-change: opacity, transform;
    max-height: 70vh; 
    overflow-y: auto;
}

.inner-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hover-vanish {
    position: relative;
    z-index: 10;
    opacity: 1;
}

.num-highlight {
    color: #ffffff !important;
    font-weight: bold;
}

.text-justify-custom { text-align: justify; }

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem !important;
        margin: 0 3px !important;
        width: calc(100% - 6px) !important;
        max-width: 100% !important;
        background: rgba(15, 23, 42, 0.7); 
        max-height: 40vh !important;
    }
    .display-font { word-break: keep-all; }
    
    h1.display-font { 
        font-size: 2.5rem !important;
        line-height: 1.2 !important; 
        margin-bottom: 0.5rem !important;
    }
    
    h2.display-font { font-size: 1.25rem !important; }
    p { font-size: 0.9rem !important; }
    
    .logo-magazine {
        width: 80px !important;
        top: 10px !important;
        left: 10px !important;
    }
}