/* Root CSS Variables using logo color palette (#CBD154, #D9271E, #E16525, #CEC4C8, #6E6C95) */
:root {
    --accent: #6E6C95;
    --accent_rgb: 110, 108, 149;
    --sub-accent: #C21D15;
    --sub-accent_rgb: 194, 29, 21;
    --color-1: #C64E10;
    --color-2: #211F36;
    --color-3: #5C6115;
    --color-neutral: #CEC4C8;

    /* Social Media Official Brand Colors */
    --brand-facebook: #1877F2;
    --brand-facebook-page: #0866FF;
    --brand-instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Universal Reset - No Outline, No Scroll */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
    user-select: none;
}

html,
body {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    /* Prevents vertical scroll */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Image with Dark Tint Overlay for High Legibility */
.bg-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../img/Radhaba-school-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    animation: bgZoom 20s ease-in-out infinite alternate;
}

.bg-overlay {
    /* Change the RGBA white opacity values (e.g., 0.75 to make it lighter/darker) */
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.75) 0%,
            rgba(242, 245, 250, 0.55) 50%,
            rgba(255, 255, 255, 0.82) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Responsive Mobile Screen Container */
.app-viewport {
    width: 100%;
    max-width: 440px;
    height: 100%;
    max-height: 100dvh;
    padding: 1.25rem;
    display: flex;
    row-gap: 5vh;
    flex-direction: column;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    background-color: #ffffffd6
}

/* Content Layering & Animations */
.header,
.contact-list,
.social-actions {
    position: relative;
    z-index: 3;
}

/* Full-width header extending across the viewport */
.header {
    text-align: center;
    animation: animSlideDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: #03396C;
    /* School navy header background */
    padding: 1.25rem 0 0;
    /* 0 bottom & side padding for full-width wave divider */
    margin: -1.25rem -1.25rem 0 -1.25rem;
    /* Stretches to full edge-to-edge width */
    width: calc(100% + 2.5rem);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 0 1.25rem 0.5rem;
}

.logo-badge {
    width: 30vw;
    height: 30vw;
    max-width: 200px;
    max-height: 200px;
    margin: 0 auto 0.6rem;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    animation: logoPulse 3s ease-in-out infinite alternate;
    padding: 3px;
    overflow: hidden;
}

.school-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Editorial Animated Parallax Wave Header Divider - Full Width */
.editorial {
    display: block;
    width: 100%;
    height: 52px;
    max-height: 52px;
    margin: 0;
    z-index: 5;
    position: relative;
    bottom: 0;
    left: 0;
}

.parallax1>use {
    animation: move-forever1 10s linear infinite;
}

.parallax1>use:nth-child(1) {
    animation-delay: -2s;
}

.parallax2>use {
    animation: move-forever2 8s linear infinite;
}

.parallax2>use:nth-child(1) {
    animation-delay: -2s;
}

.parallax3>use {
    animation: move-forever3 6s linear infinite;
}

.parallax3>use:nth-child(1) {
    animation-delay: -2s;
}

.parallax4>use {
    animation: move-forever4 4s linear infinite;
}

.parallax4>use:nth-child(1) {
    animation-delay: -2s;
}

@keyframes move-forever1 {
    0% {
        transform: translate(85px, 0%);
    }

    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever2 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}

@keyframes move-forever3 {
    0% {
        transform: translate(85px, 0%);
    }

    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever4 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: animFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
    margin-top: 0.8rem;
}

/* Card Item Links */
.card-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    text-decoration: none;
    color: var(--color-2);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.95);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-link:hover,
.card-link:active {
    transform: translateY(-2px) scale(0.99);
    background: #FFFFFF;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.icon-wrapper {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent_rgb), 0.12);
    color: var(--color-1);
}

.icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.link-text {
    word-break: break-word;
    hyphens: auto;
}

.social-actions {
    display: flex;
    gap: 0.6rem;
    animation: animFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    position: absolute;
    width: 92%;
    margin: 0 auto;
    bottom: 40px;
}

/* Social Action Buttons */
.btn-social {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 0.3rem;
    border-radius: 18px;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-social:hover,
.btn-social:active {
    transform: translateY(-3px) scale(0.97);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.btn-fb {
    background-color: var(--brand-facebook);
}

.btn-fb-page {
    background-color: var(--brand-facebook-page);
}

.btn-insta {
    background: var(--brand-instagram);
}

.btn-social svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Keyframe Animations */
@keyframes animSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animFadeUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bgZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.06);
    }
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.04);
    }
}