/* stylese.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0b1020 !important;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   PARTICLE BACKGROUND
========================================= */

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at top,
            #001995 0%,
            #1c2355 35%,
            #141c45 70%,
            #090d1f 100%);
}

/* =========================================
   NAVBAR
========================================= */

.navbar {

    position: fixed !important;

    top: 18px;

    left: 50%;

    transform: translateX(-50%);

    width: 92%;

    max-width: 1220px;

    padding: 12px 50px !important;

    border-radius: 20px;

    background: rgba(13, 16, 33, .72);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(120, 75, 255, .22);

    box-shadow:

        0 10px 45px rgba(0, 0, 0, .45),

        0 0 35px rgba(123, 74, 255, .12);

    transition: .35s;

    z-index: 9999;

}

.navbar:hover {

    border-color: rgba(255, 94, 167, .35);

    box-shadow:

        0 14px 50px rgba(0, 0, 0, .55),

        0 0 40px rgba(255, 94, 167, .16);

}

.navbar {
    box-shadow:
        0 10px 45px rgba(0, 0, 0, .45),
        0 0 35px rgba(37, 99, 235, .18);
}

.navbar:hover {
    box-shadow:
        0 14px 50px rgba(0, 0, 0, .55),
        0 0 40px rgba(37, 99, 235, .28);
}

.navbar .container {

    padding: 0;

}

.logo {

    gap: 16px !important;

}

.logo img {

    transition: .35s;

}

.digi-logo {

    height: 42px;

    filter: drop-shadow(0 0 14px rgba(77, 109, 255, .45));

}

.schl-logo {

    height: 46px;

    filter: drop-shadow(0 0 18px rgba(255, 94, 167, .35));

}

.logo img:hover {

    transform: translateY(-2px) scale(1.05);

}

.navbar-nav {

    gap: 10px;

}

.navbar-nav .nav-link {

    color: #f5f5ff !important;

    font-size: 16px;

    font-weight: 600;

    letter-spacing: .5px;

    border-radius: 10px;

    padding: 10px 18px !important;

    transition: .35s;

}

.navbar-nav .nav-link:hover {

    color: #fff !important;

    background: linear-gradient(90deg,
            rgba(77, 109, 255, .18),
            rgba(123, 58, 255, .22),
            rgba(255, 94, 167, .18));

    text-shadow: 0 0 10px rgba(255, 94, 167, .35);

}

.navbar-toggler {

    border: 1px solid rgba(140, 90, 255, .4) !important;

}

.navbar-toggler:focus {

    box-shadow: none !important;

}

.navbar-toggler-icon {

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");

}

/* =========================================
   EVENTS SECTION
========================================= */

.events-section {
    padding: 150px 7% 90px;
    position: relative;
}

.events-title {

    text-align: center;

    font-size: 60px;

    margin-bottom: 70px;

    color: #ffffff;

    text-shadow:
        0 0 18px #5c73f6,
        0 0 35px #6b93ff,
        0 0 70px rgba(107, 169, 255, 0.35);

}

/* =========================================
   EVENTS GRID
========================================= */

.events-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 40px;

    align-items: stretch;

    perspective: 1000px;

}

/* =========================================
   EVENT CARD
========================================= */

.event-card {

    position: relative;

    background:
        linear-gradient(145deg,
            rgba(28, 25, 60, .94),
            rgba(17, 20, 45, .94));

    border-radius: 20px;

    padding: 25px;

    border:
        2px solid rgba(0, 68, 187, 0.607);

    overflow: hidden;

    transition: 0.45s ease;

    backdrop-filter: blur(14px);

    min-height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transform-style: preserve-3d;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35);

}

.event-card * {
    position: relative;
    z-index: 2;
}

.event-card {
    opacity: 0;
    transform: translateY(70px);
    transition:
        opacity .8s ease,
        transform .8s ease,
        box-shadow .4s ease;
}

.event-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* LIGHT SWEEP */

.event-card::before {

    content: "";

    position: absolute;

    top: -50%;
    left: -60%;

    width: 50%;
    height: 200%;

    background:
        linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent);

    transform: rotate(25deg);

    transition: 0.8s;

}

.event-card:hover::before {
    left: 130%;
}

/* GLOW */

.event-card::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(circle at top left,
            rgba(0, 255, 255, 0.15),
            transparent 55%);

    opacity: 0;

    transition: 0.4s;

}

.event-btn {

    position: relative;

    overflow: hidden;

}

.ripple {

    position: absolute;

    width: 20px;
    height: 20px;

    background: white;

    border-radius: 50%;

    transform: translate(-50%, -50%) scale(0);

    animation: ripple .6s linear;

    opacity: .6;

}

@keyframes ripple {

    to {

        transform: translate(-50%, -50%) scale(20);

        opacity: 0;

    }

}

.event-card:hover::after {
    opacity: 1;
}

/* HOVER */

.event-card:hover {

    transform:
        translateY(-12px) scale(1.03);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(139, 92, 246, .35),
        0 0 45px rgba(255, 107, 181, .25);

}

/* =========================================
   EVENT IMAGE
========================================= */

.event-image {

    position: relative;

    width: 170px;
    height: 170px;

    margin: auto;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    overflow: hidden;

}

.event-image img {

    width: 87%;
    height: 87%;

    object-fit: contain;

    border-radius: 50%;

    background: black;

    z-index: 2;

    transition: 0.4s;

}

.event-image::before,
.event-image::after {

    content: "";

    position: absolute;

    border-radius: 50%;

}

.event-image::before {

    width: 100%;
    height: 100%;
    border: 5px solid #8b5cf6;

    animation: rotateRing 8s linear infinite;

    opacity: 0.8;

}

.event-image::after {

    width: 135px;
    height: 135px;

    border: 3px dashed #ff6bb5;

    animation: rotateRingReverse 6s linear infinite;

}

/* =========================================
   CARD TEXT
========================================= */

.event-card h3 {

    font-size: 1.1rem;

    margin-bottom: 8px;

    color: #8ce6ff;

    text-align: center;

    text-shadow:
        0 0 10px rgba(0, 255, 255, 0.5);

}

.event-tagline {

    font-size: 0.82rem;

    color: #ffffff;

    margin-bottom: 15px;

    text-align: center;

    font-style: italic;

    text-shadow:
        0 0 8px rgba(0, 255, 157, 0.4);

}



.event-details {

    background:
        linear-gradient(135deg,
            rgba(139, 92, 246, .10),
            rgba(255, 107, 181, .08));

    border-radius: 10px;

    padding: 14px;

    margin-bottom: 14px;

    border:
        1px solid rgba(0, 255, 255, 0.15);

}

.event-details p {

    margin: 5px 0;

    color: #c6f8ff;

    line-height: 1.5;

    font-size: 0.8rem;

}

.event-details strong {
    color: #00ffff;
}

.event-desc {

    font-size: 0.8rem;

    color: #d9f9ff;

    line-height: 1.7;

    margin-bottom: 18px;

    text-align: center;

}

.event-extra {

    font-size: 0.74rem;

    color: #00ffff;

    background:
        rgba(0, 255, 157, 0.08);

    padding: 10px;

    border-radius: 8px;

    margin-bottom: 18px;

    border-left:
        3px solid #00ff9d;

}

/* =========================================
   BUTTON
========================================= */

.event-btn {

    display: inline-block;

    padding: 11px 24px;

    border-radius: 30px;

    background:
        linear-gradient(90deg,
            #5c61f6,
            #6be6ff);

    color: #031c3b;

    font-weight: bold;

    text-decoration: none;

    transition: 0.3s;

    border: none;

    cursor: pointer;

    text-align: center;

}

.event-btn:hover {

    transform: scale(1.05);

    box-shadow:
        0 0 20px #00ff9d;

    background:
        linear-gradient(90deg,
            #ff6bb5,
            #8b5cf6);

}

/* =========================
   CONTACT SECTION (PREMIUM BLUE)
========================= */

.contact-section{
    color: #ffffff;
    padding:120px 8%;
    position:relative;
}

/* BOX */
.contact-box{
    background:rgba(17,20,45,.78);
    backdrop-filter:blur(18px);

    border:1px solid rgba(37,99,235,.25);
    border-radius:24px;

    box-shadow:0 30px 90px rgba(0,0,0,.5);

    padding:40px;
}

/* TITLE */
.contact-box h2{
    font-size:42px;
    font-weight:900;
    color:#60a5fa;
    letter-spacing:2px;
}

/* divider */
.section-divider{
    border:0;
    height:1px;
    background:linear-gradient(90deg,transparent,#ffffff,transparent);
    margin:20px 0 40px;
}

/* CONTACT TEXT */
.contact-info p{
    color:#cbdcff;
    margin-bottom:18px;
    font-size:15px;
}

.contact-info strong{
    color:#ffffff;
}

/* ICONS */
.contact-info i{
    font-size:22px;
    color:#60a5fa;
    margin-bottom:6px;
}

/* LINKS */
.contact-info a{
    color:#93c5fd;
    text-decoration:none;
}

.contact-info a:hover{
    color:#ffffff;
}
/* =========================
   ULTRA SMOOTH OCEAN FOOTER
========================= */

.wave-footer{
    position:relative;
    width:100%;
    height:100px;
    overflow:hidden;

    background:linear-gradient(180deg,#050712,#0a1024);
    border-top:1px solid rgba(96,165,250,.25);
}

/* TEXT */
.wave-footer .footer-content{
    position:relative;
    z-index:5;
    text-align:center;
    color:#cbdcff;
    font-size:14px;

    padding-top:50px;
}

/* WAVES WRAPPER */
.waves{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:140px;
    overflow:hidden;
}

/* SVG scaling */
.waves svg{
    position:absolute;
    bottom:0;
    width:200%;
    height:100%;
}

/* BASE WAVE STYLE */
.wave{
    fill:rgba(59,130,246,0.35);
    transform-origin:center;
}

/* SMOOTHER LAYERS (REAL FEEL) */
.wave1{
    animation:waveMove1 10s ease-in-out infinite;
    opacity:0.45;
}

.wave2{
    animation:waveMove2 14s ease-in-out infinite;
    opacity:0.3;
    fill:rgba(37,99,235,0.35);
}

.wave3{
    animation:waveMove3 18s ease-in-out infinite;
    opacity:0.18;
    fill:rgba(96,165,250,0.35);
}

/* SMOOTH FLOAT + DRIFT */
@keyframes waveMove1{
    0%{
        transform:translateX(0) translateY(0);
    }
    50%{
        transform:translateX(-25%) translateY(-6px);
    }
    100%{
        transform:translateX(-50%) translateY(0);
    }
}

@keyframes waveMove2{
    0%{
        transform:translateX(0) translateY(0);
    }
    50%{
        transform:translateX(-18%) translateY(-4px);
    }
    100%{
        transform:translateX(-35%) translateY(0);
    }
}

@keyframes waveMove3{
    0%{
        transform:translateX(0) translateY(0);
    }
    50%{
        transform:translateX(-12%) translateY(-3px);
    }
    100%{
        transform:translateX(-25%) translateY(0);
    }
}

/* SOFT WATER GLOW */
.wave-footer::before{
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:140px;
    background:radial-gradient(circle at 50% 20%, rgba(96,165,250,0.18), transparent 70%);
    z-index:2;
}

/* MOBILE */
@media(max-width:768px){
    .wave-footer{
        height:140px;
    }

    .wave-footer .footer-content{
        font-size:12px;
        padding-top:80px;
    }
}

/* =========================================
   MODALS
========================================= */

.modal-toggle {
    display: none;
}

.css-modal {

    display: none;

    position: fixed;

    z-index: 99999;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0, 0, 0, 0.85);

    backdrop-filter: blur(5px);

    justify-content: center;
    align-items: center;

    padding: 20px;

}

.modal-toggle:checked+.css-modal {
    display: flex;
}

.css-modal-overlay {

    position: absolute;

    inset: 0;

    cursor: pointer;

}

.css-modal-content {

    position: relative;

    z-index: 2;

    background:
        linear-gradient(135deg,
            rgba(26, 23, 71, .98),
            rgba(15, 17, 40, .98));

    border:
        2px solid #ff6bb5;

    border-radius: 20px;

    padding: 30px;

    width: 100%;
    max-width: 700px;

    max-height: 85vh;

    overflow-y: auto;

    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.3);

    animation: modalSlideIn 0.3s ease;

}

.css-modal-close {

    position: absolute;

    top: 15px;
    right: 20px;

    color: #00ffff;

    font-size: 32px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;

}

.css-modal-close:hover {

    color: #00ff9d;

    transform: scale(1.1);

}

.css-modal-content h2 {

    color: #00ffff;

    margin-bottom: 10px;

    padding-right: 40px;

}

.modal-tagline {

    color: #ffffff;

    margin-bottom: 20px;

    font-style: italic;

}

.modal-section {

    margin-bottom: 20px;

    padding: 15px;

    background:
        rgba(0, 255, 255, 0.05);

    border-radius: 10px;

    border:
        1px solid rgba(0, 255, 255, 0.15);

}

.modal-section h3 {

    color: #7d99ff;

    margin-bottom: 10px;

}

.modal-section p,
.modal-section li {

    color: #d9f9ff;

    line-height: 1.7;

    font-size: 0.92rem;

}

.modal-section ul {

    list-style: none;

    padding-left: 0;

}

.modal-section li {
    margin-bottom: 8px;
}

/* SCROLLBAR */

.css-modal-content::-webkit-scrollbar {
    width: 8px;
}

.css-modal-content::-webkit-scrollbar-thumb {
    background: #0026fe;
    border-radius: 10px;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes rotateRing {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes rotateRingReverse {

    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }

}

@keyframes modalSlideIn {

    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1024px) {

    .events-grid {
        grid-template-columns:
            repeat(auto-fit, minmax(280px, 1fr));
    }

}

@media(max-width:768px) {

    .navbar {
        width: 97%;
        top: 10px;
    }

    .navbar-collapse {

        background:
            rgba(10, 20, 40, 0.95);

        padding: 20px;

        border-radius: 12px;

        margin-top: 10px;

    }

    .navbar-nav {
        text-align: center;
    }

    .events-title {
        font-size: 42px;
    }

    .events-section {
        padding: 130px 20px 70px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .event-card {
        padding: 22px;
    }

    .event-image {
        width: 150px;
        height: 150px;
    }

    .event-image::after {
        width: 120px;
        height: 120px;
    }

    .contact-box {
        padding: 25px;
    }

    .css-modal-content {
        padding: 20px;
    }

}

@media(max-width:480px) {

    .events-title {
        font-size: 32px;
    }

    .event-image {
        width: 130px;
        height: 130px;
    }

    .event-image::after {
        width: 100px;
        height: 100px;
    }

    .event-btn {
        width: 100%;
    }

    .css-modal-content h2 {
        font-size: 1.3rem;
    }

    footer p {
        font-size: 0.8rem;
    }

}

.event-card {
    position: relative;
    background: rgba(10, 30, 60, 0.88);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(244, 244, 244, 0.65);
    overflow: hidden;

    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform: translateY(0);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* initial animation state (keep yours if using observer) */
.event-card {
    opacity: 0;
    transform: translateY(70px);
}

.event-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   ENHANCED RESPONSIVE STYLES
   ========================= */

/* Tablets */
@media (max-width: 992px) {
    .navbar {
        width: 95%;
        padding: 10px 20px;
    }

    .events-title {
        font-size: 48px;
    }

    .events-section {
        padding: 130px 30px 70px;
    }

    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .event-card {
        padding: 22px;
    }

    .event-image {
        width: 150px;
        height: 150px;
    }

    .event-image::after {
        width: 120px;
        height: 120px;
    }

    .contact-box {
        padding: 30px;
    }

    .contact-box h2 {
        font-size: 36px;
    }

    .contact-info p {
        font-size: 14px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        width: 94%;
        top: 10px;
        padding: 10px 14px;
        border-radius: 14px;
    }

    .navbar-collapse {
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(10, 20, 40, 0.95);
        border-radius: 12px;
        padding: 20px;
    }

    .navbar-nav {
        gap: 8px;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        font-size: 1rem;
    }

    .logo img {
        height: 34px !important;
    }

    /* Events */
    .events-section {
        padding: 120px 20px 60px;
    }

    .events-title {
        font-size: 38px;
        margin-bottom: 40px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .event-card {
        padding: 20px;
    }

    .event-card h3 {
        font-size: 1.1rem;
    }

    .event-tagline {
        font-size: 0.85rem;
    }

    .event-details p {
        font-size: 0.85rem;
    }

    .event-desc {
        font-size: 0.85rem;
    }

    .event-extra {
        font-size: 0.8rem;
    }

    .event-image {
        width: 140px;
        height: 140px;
    }

    .event-image::after {
        width: 110px;
        height: 110px;
    }

    .event-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Contact */
    .contact-section {
        padding: 70px 20px;
    }

    .contact-box {
        padding: 25px 20px;
    }

    .contact-box h2 {
        font-size: 28px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .contact-info i {
        font-size: 1.2rem;
    }

    iframe {
        height: 250px !important;
    }

    /* Footer */
    .wave-footer {
        height: 120px;
    }

    .wave-footer .footer-content {
        font-size: 12px;
        padding-top: 70px;
    }

    .waves {
        height: 100px;
    }

    /* Modal */
    .css-modal-content {
        padding: 20px;
        margin: 10px;
    }

    .css-modal-close {
        font-size: 28px;
        top: 10px;
        right: 15px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .events-title {
        font-size: 30px;
    }

    .event-image {
        width: 120px;
        height: 120px;
    }

    .event-image::after {
        width: 95px;
        height: 95px;
    }

    .event-btn {
        width: 100%;
        text-align: center;
    }

    .event-card h3 {
        font-size: 1rem;
    }

    .event-tagline {
        font-size: 0.8rem;
    }

    .event-details p {
        font-size: 0.8rem;
    }

    .event-desc {
        font-size: 0.8rem;
    }

    .event-extra {
        font-size: 0.75rem;
    }

    .contact-box h2 {
        font-size: 24px;
    }

    .contact-info p {
        font-size: 13px;
    }

    iframe {
        height: 200px !important;
    }

    .css-modal-content h2 {
        font-size: 1.2rem;
    }

    footer p {
        font-size: 0.8rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .events-title {
        font-size: 26px;
    }

    .event-image {
        width: 100px;
        height: 100px;
    }

    .event-image::after {
        width: 80px;
        height: 80px;
    }

    .event-card {
        padding: 15px;
    }

    .event-card h3 {
        font-size: 0.95rem;
    }
}