@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@500;600;700;800&family=Nunito:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --gpma-primary: #1e73be;
    --gpma-yellow: #ffd43b;
    --gpma-green: #2ecc71;
    --gpma-sky: #e8f4ff;
    --gpma-text: #1f2f44;
    --gpma-muted: #607088;
    --gpma-white: #ffffff;
    --gpma-card: #ffffff;
    --gpma-border: #d6e4f3;
    --gpma-radius-sm: 12px;
    --gpma-radius-md: 18px;
    --gpma-radius-lg: 26px;
    --gpma-shadow: 0 12px 34px rgba(18, 62, 109, 0.12);
    --gpma-shadow-hover: 0 18px 46px rgba(25, 89, 155, 0.2);
    --font-heading: "Baloo Bhai 2", cursive;
    --font-body: "Nunito", sans-serif;
    --font-ui: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gpma-text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 20% 0%, rgba(30, 115, 190, 0.11), transparent 40%),
        radial-gradient(circle at 92% 10%, rgba(46, 204, 113, 0.1), transparent 37%),
        linear-gradient(180deg, #fafdff 0%, #ffffff 45%, #f9fcff 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 0;
    color: var(--gpma-primary);
}

p {
    color: var(--gpma-muted);
    margin-bottom: 0;
}

.muted {
    color: var(--gpma-muted);
}

a {
    text-decoration: none;
}

.btn {
    border-radius: 999px;
    font-family: var(--font-ui);
    font-weight: 600;
    border-width: 2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gpma-btn-primary {
    background: linear-gradient(130deg, var(--gpma-primary), #1364ac);
    color: var(--gpma-white);
    border-color: transparent;
    padding: 0.75rem 1.4rem;
}

.gpma-btn-primary:hover {
    color: var(--gpma-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(30, 115, 190, 0.35);
}

.gpma-btn-outline {
    border-color: var(--gpma-primary);
    color: var(--gpma-primary);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.4rem;
}

.gpma-btn-outline:hover {
    background-color: var(--gpma-primary);
    color: var(--gpma-white);
}

.gpma-btn-light {
    background: #ffffff;
    color: var(--gpma-primary);
    border-color: #ffffff;
    padding: 0.8rem 1.5rem;
}

.gpma-btn-light:hover {
    color: #0f4d83;
    transform: translateY(-2px);
}

.gpma-topbar {
    background: linear-gradient(100deg, #125e9f, var(--gpma-primary));
    color: var(--gpma-white);
    font-family: var(--font-ui);
    font-size: 0.82rem;
}

.topbar-inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.4rem 0;
}

.topbar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    align-items: center;
}

.topbar-left a,
.topbar-left span {
    color: var(--gpma-white);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.95;
}

.topbar-left a:hover {
    color: #fff8c9;
}

.admission-badge {
    background: var(--gpma-yellow);
    color: #322800;
    border-radius: 999px;
    font-weight: 800;
    padding: 0.35rem 0.8rem;
    display: inline-flex;
    align-items: center;
    animation: badgePulse 2.1s ease-in-out infinite;
}

@keyframes badgePulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.gpma-navbar {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid rgba(30, 115, 190, 0.08);
    backdrop-filter: blur(8px);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.gpma-navbar.is-scrolled {
    box-shadow: 0 10px 30px rgba(18, 62, 109, 0.12);
    padding: 0.56rem 0;
}

.gpma-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gpma-text);
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(160deg, var(--gpma-primary), #0f5d9f);
    color: var(--gpma-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 22px rgba(30, 115, 190, 0.35);
}

.gpma-brand strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    color: #134d81;
    line-height: 1.05;
}

.gpma-brand small {
    display: block;
    color: #50708f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gpma-navbar .nav-link {
    font-family: var(--font-ui);
    color: #36536f;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gpma-navbar .nav-link:hover,
.gpma-navbar .nav-link.active {
    background: rgba(30, 115, 190, 0.12);
    color: var(--gpma-primary);
}

.gpma-section {
    position: relative;
    padding: 4.8rem 0;
}

.section-soft-bg {
    background: linear-gradient(180deg, var(--gpma-sky), #ffffff);
}

.section-tint {
    background: linear-gradient(180deg, #f4f9ff, #ffffff);
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #188260;
    font-size: 0.9rem;
    font-weight: 800;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin-bottom: 1.6rem;
    max-width: 680px;
}

.gpma-hero {
    overflow: hidden;
    padding: 4.8rem 0 4rem;
    background:
        linear-gradient(165deg, #e8f4ff 0%, #f5fbff 52%, #ffffff 100%);
}

.hero-kicker {
    background: rgba(255, 212, 59, 0.25);
    color: #5f4a00;
    border: 1px solid rgba(255, 212, 59, 0.7);
    display: inline-block;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1.15rem;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.81rem;
}

.gpma-hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
    max-width: 620px;
}

.hero-tagline {
    color: #1564a6;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 800;
    margin-top: 0.6rem;
}

.hero-copy {
    max-width: 560px;
    margin-top: 0.95rem;
    font-size: 1.05rem;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-illustration-wrap {
    position: relative;
    background: #ffffff;
    border-radius: var(--gpma-radius-lg);
    border: 1px solid #dce9f7;
    box-shadow: var(--gpma-shadow);
    padding: 1.2rem;
}

.hero-illustration {
    width: 100%;
    display: block;
    border-radius: calc(var(--gpma-radius-lg) - 8px);
}

.floating-icon {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gpma-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 22px rgba(14, 73, 130, 0.18);
    animation: floatY 3.3s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: -14px;
    left: 8%;
}

.floating-icon:nth-child(2) {
    top: 22%;
    right: -12px;
    animation-delay: 0.7s;
}

.floating-icon:nth-child(3) {
    bottom: -16px;
    left: 62%;
    animation-delay: 1.2s;
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.shape-a {
    width: 220px;
    height: 220px;
    top: -95px;
    left: -80px;
    background: rgba(30, 115, 190, 0.12);
}

.shape-b {
    width: 170px;
    height: 170px;
    top: 10%;
    right: -45px;
    background: rgba(46, 204, 113, 0.14);
}

.shape-c {
    width: 150px;
    height: 150px;
    bottom: -40px;
    left: 36%;
    background: rgba(255, 212, 59, 0.2);
}

.welcome-card,
.principal-card,
.contact-card,
.map-card {
    background: var(--gpma-card);
    border-radius: var(--gpma-radius-lg);
    border: 1px solid var(--gpma-border);
    box-shadow: var(--gpma-shadow);
    padding: 1.3rem;
}

.welcome-card h2,
.principal-card h2,
.contact-card h2 {
    margin-bottom: 0.65rem;
}

.welcome-image {
    width: 100%;
    border-radius: calc(var(--gpma-radius-lg) - 8px);
    object-fit: cover;
    min-height: 320px;
}

.welcome-meta {
    margin-top: 1rem;
    display: grid;
    gap: 0.55rem;
}

.welcome-meta span {
    display: block;
    border-left: 4px solid rgba(30, 115, 190, 0.23);
    background: #f8fbff;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    color: #45617c;
}

.principal-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    background: linear-gradient(150deg, #ffd43b, #f5b92d);
    color: #3f2f00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 6px solid #fff;
    box-shadow: 0 12px 28px rgba(39, 53, 70, 0.2);
}

.principal-card h3 {
    color: #175f9d;
}

.quote-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(30, 115, 190, 0.15);
    color: var(--gpma-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.55rem;
}

.facility-card,
.class-card,
.kids-card {
    background: #ffffff;
    border-radius: var(--gpma-radius-md);
    border: 1px solid var(--gpma-border);
    box-shadow: 0 6px 22px rgba(30, 95, 158, 0.08);
    padding: 1.15rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.facility-card:hover,
.class-card:hover,
.kids-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gpma-shadow-hover);
    border-color: #b4d2ee;
}

.facility-icon,
.class-icon,
.kids-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.facility-icon {
    background: rgba(30, 115, 190, 0.15);
    color: #115a98;
}

.class-icon {
    background: rgba(46, 204, 113, 0.16);
    color: #178852;
}

.kids-icon {
    background: rgba(255, 212, 59, 0.26);
    color: #6f5600;
}

.facility-card h3,
.class-card h3,
.kids-card h3 {
    color: #175f9d;
    font-size: 1.35rem;
}

.facility-card p,
.class-card p,
.kids-card p {
    margin-top: 0.4rem;
}

.activity-card {
    position: relative;
    border-radius: var(--gpma-radius-md);
    overflow: hidden;
    min-height: 260px;
    box-shadow: var(--gpma-shadow);
}

.activity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.activity-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 34, 62, 0.83) 10%, rgba(12, 54, 91, 0.1));
    display: flex;
    align-items: flex-end;
    padding: 1.05rem;
}

.activity-overlay h3 {
    color: #fff;
    font-size: 1.5rem;
}

.activity-card:hover img {
    transform: scale(1.07);
}

.kids-corner {
    background:
        radial-gradient(circle at 4% 8%, rgba(255, 212, 59, 0.34), transparent 25%),
        radial-gradient(circle at 97% 90%, rgba(46, 204, 113, 0.2), transparent 22%),
        linear-gradient(140deg, #fff8d4, #f5fdff 56%, #f6fff9);
}

.gallery-head {
    margin-bottom: 1.35rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.gallery-card {
    position: relative;
    border-radius: var(--gpma-radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(17, 63, 106, 0.14);
    min-height: 230px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card span {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    background: rgba(14, 56, 94, 0.82);
    color: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.admission-banner {
    overflow: hidden;
}

.admission-content {
    background:
        radial-gradient(circle at 95% 20%, rgba(255, 212, 59, 0.28), transparent 33%),
        linear-gradient(120deg, #1e73be 0%, #2f88d8 45%, #2ecc71 100%);
    border-radius: var(--gpma-radius-lg);
    box-shadow: 0 18px 44px rgba(27, 92, 156, 0.35);
    color: #fff;
    text-align: center;
    padding: 3.2rem 1rem;
}

.admission-content h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.admission-content p {
    margin: 0.45rem 0 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-card ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.82rem;
}

.contact-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #446380;
}

.contact-card i {
    margin-top: 0.2rem;
    color: #0f5f9f;
}

.map-card {
    min-height: 380px;
    overflow: hidden;
}

.map-card iframe {
    border-radius: calc(var(--gpma-radius-lg) - 8px);
}

.gpma-footer {
    background: linear-gradient(180deg, #0f4f86 0%, #0b3c65 100%);
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.95);
    padding: 3.2rem 0 1.4rem;
}

.gpma-footer h5 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.gpma-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.gpma-footer li,
.gpma-footer a {
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-ui);
    font-size: 0.92rem;
}

.gpma-footer a:hover {
    color: #ffffff;
}

.footer-copy {
    margin-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 12px 26px rgba(2, 104, 44, 0.38);
    z-index: 1200;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 16px 28px rgba(2, 104, 44, 0.46);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    .gpma-navbar .nav-link {
        margin: 0.2rem 0;
        border-radius: var(--gpma-radius-sm);
    }

    .gpma-hero {
        padding-top: 3.8rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .gallery-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-head .btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .gpma-topbar {
        font-size: 0.76rem;
    }

    .gpma-brand strong {
        font-size: 0.98rem;
    }

    .gpma-brand small {
        font-size: 0.66rem;
    }

    .gpma-section {
        padding: 3.8rem 0;
    }

    .welcome-image {
        min-height: 250px;
    }

    .map-card {
        min-height: 300px;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        right: 16px;
        bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
