@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

body {
    font-family: "Inter", sans-serif;
    background-color: #0a0a0a;
    color: #fafafa;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.glow {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.link-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(99, 102, 241, 0.1),
            transparent);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover::before {
    left: 100%;
}

.avatar-ring {
    position: relative;
    overflow: hidden;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background:
        radial-gradient(circle at var(--pos1-x) var(--pos1-y),
            rgba(255, 255, 255, 0.9) var(--size1-start),
            rgba(255, 255, 255, 0) var(--size1-end)),
        radial-gradient(circle at var(--pos2-x) var(--pos2-y),
            rgba(0, 84, 154, 0.9) var(--size2-start),
            rgba(0, 84, 154, 0) var(--size2-end)),
        radial-gradient(circle at var(--pos3-x) var(--pos3-y),
            rgba(255, 205, 77, 0.9) var(--size3-start),
            rgba(255, 205, 77, 0) var(--size3-end)),
        linear-gradient(to right,
            #00549A 5%,
            #ffffff 35%,
            #FFCD4D 65%,
            #ffffff 95%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    animation:
        move-color1 15s ease-in-out infinite alternate,
        move-color2 17s ease-in-out infinite alternate-reverse,
        move-color3 13s ease-in-out infinite alternate;
    --pos1-x: 30%;
    --pos1-y: 70%;
    --size1-start: 10%;
    --size1-end: 60%;
    --pos2-x: 75%;
    --pos2-y: 25%;
    --size2-start: 10%;
    --size2-end: 60%;
    --pos3-x: 20%;
    --pos3-y: 40%;
    --size3-start: 10%;
    --size3-end: 60%;
}

@property --pos1-x {
    syntax: '<percentage>';
    initial-value: 30%;
    inherits: false;
}

@property --pos1-y {
    syntax: '<percentage>';
    initial-value: 70%;
    inherits: false;
}

@property --size1-start {
    syntax: '<percentage>';
    initial-value: 10%;
    inherits: false;
}

@property --size1-end {
    syntax: '<percentage>';
    initial-value: 60%;
    inherits: false;
}

@property --pos2-x {
    syntax: '<percentage>';
    initial-value: 75%;
    inherits: false;
}

@property --pos2-y {
    syntax: '<percentage>';
    initial-value: 25%;
    inherits: false;
}

@property --size2-start {
    syntax: '<percentage>';
    initial-value: 10%;
    inherits: false;
}

@property --size2-end {
    syntax: '<percentage>';
    initial-value: 60%;
    inherits: false;
}

@property --pos3-x {
    syntax: '<percentage>';
    initial-value: 20%;
    inherits: false;
}

@property --pos3-y {
    syntax: '<percentage>';
    initial-value: 40%;
    inherits: false;
}

@property --size3-start {
    syntax: '<percentage>';
    initial-value: 10%;
    inherits: false;
}

@property --size3-end {
    syntax: '<percentage>';
    initial-value: 60%;
    inherits: false;
}

@keyframes move-color1 {
    0% {
        --pos1-x: 30%;
        --pos1-y: 70%;
        --size1-start: 10%;
        --size1-end: 60%;
    }

    25% {
        --pos1-x: 60%;
        --pos1-y: 30%;
        --size1-start: 5%;
        --size1-end: 50%;
    }

    50% {
        --pos1-x: 20%;
        --pos1-y: 20%;
        --size1-start: 15%;
        --size1-end: 70%;
    }

    75% {
        --pos1-x: 80%;
        --pos1-y: 70%;
        --size1-start: 5%;
        --size1-end: 40%;
    }

    100% {
        --pos1-x: 30%;
        --pos1-y: 60%;
        --size1-start: 10%;
        --size1-end: 60%;
    }
}

@keyframes move-color2 {
    0% {
        --pos2-x: 75%;
        --pos2-y: 25%;
        --size2-start: 10%;
        --size2-end: 60%;
    }

    20% {
        --pos2-x: 30%;
        --pos2-y: 60%;
        --size2-start: 5%;
        --size2-end: 40%;
    }

    40% {
        --pos2-x: 65%;
        --pos2-y: 75%;
        --size2-start: 15%;
        --size2-end: 65%;
    }

    60% {
        --pos2-x: 20%;
        --pos2-y: 30%;
        --size2-start: 10%;
        --size2-end: 55%;
    }

    80% {
        --pos2-x: 70%;
        --pos2-y: 60%;
        --size2-start: 5%;
        --size2-end: 45%;
    }

    100% {
        --pos2-x: 45%;
        --pos2-y: 35%;
        --size2-start: 10%;
        --size2-end: 60%;
    }
}

@keyframes move-color3 {
    0% {
        --pos3-x: 20%;
        --pos3-y: 40%;
        --size3-start: 10%;
        --size3-end: 60%;
    }

    33% {
        --pos3-x: 60%;
        --pos3-y: 80%;
        --size3-start: 5%;
        --size3-end: 50%;
    }

    66% {
        --pos3-x: 40%;
        --pos3-y: 10%;
        --size3-start: 15%;
        --size3-end: 70%;
    }

    100% {
        --pos3-x: 75%;
        --pos3-y: 45%;
        --size3-start: 10%;
        --size3-end: 55%;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: 0.2;
    transition: 0s;
}

/* Floating orbs background */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
}

.orb-blue {
    background-color: #00549A;
    width: 300px;
    height: 300px;
    left: -50px;
    top: 20%;
    animation: float-orb-1 15s ease-in-out infinite alternate;
}

.orb-yellow {
    background-color: #FFCD4D;
    width: 250px;
    height: 250px;
    right: -30px;
    bottom: 10%;
    animation: float-orb-2 12s ease-in-out infinite alternate;
}

@keyframes float-orb-1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(40px, 60px) rotate(10deg);
    }

    66% {
        transform: translate(-30px, 30px) rotate(-5deg);
    }

    100% {
        transform: translate(20px, -40px) rotate(5deg);
    }
}

@keyframes float-orb-2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-50px, -30px) rotate(-10deg);
    }

    66% {
        transform: translate(40px, -50px) rotate(5deg);
    }

    100% {
        transform: translate(-20px, 40px) rotate(-5deg);
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background-color: #171717;
    border: 1px solid #262626;
    border-radius: 12px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #262626;
}

.modal-header h2 {
    color: #fafafa;
    margin: 0;
}

.close-btn {
    background-color: #262626;
    border: 1px solid #404040;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #a1a1aa;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #404040;
    color: #fafafa;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #262626;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.schedule-table thead {
    background-color: #262626;
    position: sticky;
    top: 0;
    z-index: 10;
}

.schedule-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #fafafa;
    border-bottom: 1px solid #404040;
}

.schedule-table tbody tr {
    border-bottom: 1px solid #262626;
    transition: background-color 0.15s ease;
}

.schedule-table tbody tr:hover {
    background-color: #1a1a1a;
}

.schedule-table tbody tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 0.875rem 1rem;
    color: #d4d4d8;
}

.schedule-table td:first-child {
    color: #a1a1aa;
    font-weight: 500;
}

.schedule-table td strong {
    color: #fafafa;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
        margin: 0.5rem;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .schedule-table {
        font-size: 0.875rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.75rem 0.5rem;
    }

    /* Hide "No School Days" column on mobile to save space */
    .schedule-table th:nth-child(3),
    .schedule-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .modal-container {
        margin: 0.5rem;
        border-radius: 8px;
    }

    .modal-header {
        padding: 0.875rem;
    }

    .modal-header h2 {
        font-size: 1.125rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .schedule-table {
        font-size: 0.8125rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.625rem 0.375rem;
    }
}