/* ===== Reset and Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* ===== Page Wrapper ===== */
.page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===== Background Layer ===== */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a6adb;
    z-index: 1;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0.3;
}

/* ===== Navigation Header ===== */
.navigation {
    position: relative;
    z-index: 10;
    background: white;
    border: 1.5px solid rgba(9, 152, 255, 0.7);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    max-width: 1443px;
    margin: 0 auto;
    margin-top: -2px;
}

/* App Name Section */
.app-name {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.colby-logo {
    width: 190px;
    height: 89px;
    object-fit: contain;
}

.scheduler-title {
    font-family: 'Inknut Antiqua', serif;
    font-weight: 600;
    color: #002878;
    opacity: 0.8;
    margin: 0;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.scheduler-s {
    font-size: 65px;
}

.scheduler-text {
    font-size: 55px;
}

/* Navigation Bar */
.navbar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-button {
    position: relative;
    width: 137px;
    height: 45px;
    background: url('assets/images/nav-button-bg.png') center/cover;
    background-color: #2680EB;
    border: none;
    border-radius: 6px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-button:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 128, 235, 0.4);
}

.nav-button.active {
    opacity: 1;
    background-color: #1e6bd6;
}

/* ===== Profile Cards Container ===== */
.profile-cards-container {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: calc(100vh - 119px);
}

.cards-border-box {
    position: relative;
    width: 1039px;
    height: 590px;
    border: 6px solid #f2f4f6;
    border-radius: 15px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 40px;
}

/* ===== Individual Profile Cards ===== */
.profile-card {
    position: relative;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 29px;
}

.card-background {
    position: absolute;
    top: -20px;
    left: -21px;
    width: 300px;
    height: 437.5px;
    background: url('assets/images/profile-card-bg.png') center/cover;
    z-index: -1;
    pointer-events: none;
}

/* User Avatar */
.user-avatar {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.avatar-icon {
    position: absolute;
    width: 36px;
    height: 36px;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Text Card Button */
.text-card {
    background: #32c5ff;
    border: 1.5px solid rgba(9, 152, 255, 0.7);
    border-radius: 6px;
    padding: 15px 12px;
    width: 200px;
    min-height: 82px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(50, 197, 255, 0.3);
}

.text-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(50, 197, 255, 0.5);
    background: #2bb8f0;
}

.text-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 197, 255, 0.4);
}

/* Card specific positioning adjustments */
.supervisor-card {
    transform: translateY(-11px);
}

.student-card {
    transform: translateY(0);
}

/* ===== Responsive Design ===== */

@media (max-width: 1400px) {
    .navigation {
        max-width: 100%;
        padding: 20px 30px;
    }

    .cards-border-box {
        width: 90%;
        max-width: 1039px;
    }
}

@media (max-width: 1024px) {
    .navigation {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .app-name {
        flex-direction: column;
        text-align: center;
    }

    .colby-logo {
        width: 140px;
        height: auto;
    }

    .scheduler-s {
        font-size: 50px;
    }

    .scheduler-text {
        font-size: 42px;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-button {
        width: 120px;
        height: 40px;
        font-size: 13px;
    }

    .profile-cards-container {
        padding-top: 100px;
    }

    .cards-border-box {
        width: 95%;
        height: auto;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .cards-border-box {
        flex-direction: column;
        gap: 60px;
        padding: 40px 20px;
        height: auto;
    }

    .profile-card {
        width: 220px;
    }

    .user-avatar {
        width: 220px;
        height: 220px;
    }

    .text-card {
        width: 180px;
        font-size: 18px;
        padding: 12px 10px;
        min-height: 75px;
    }

    .card-background {
        width: 260px;
        height: 380px;
    }

    .supervisor-card,
    .student-card {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .navigation {
        padding: 15px;
    }

    .colby-logo {
        width: 100px;
    }

    .scheduler-s {
        font-size: 36px;
    }

    .scheduler-text {
        font-size: 30px;
    }

    .navbar {
        gap: 8px;
    }

    .nav-button {
        width: 100px;
        height: 36px;
        font-size: 12px;
    }

    .profile-cards-container {
        padding-top: 80px;
    }

    .cards-border-box {
        border-width: 4px;
        padding: 30px 15px;
    }

    .profile-card {
        width: 180px;
    }

    .user-avatar {
        width: 180px;
        height: 180px;
    }

    .avatar-icon {
        width: 28px;
        height: 28px;
    }

    .text-card {
        width: 160px;
        font-size: 16px;
        padding: 10px 8px;
        min-height: 70px;
        line-height: 22px;
    }

    .card-background {
        width: 220px;
        height: 330px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: fadeIn 0.6s ease-out;
}

.profile-card:nth-child(1) {
    animation-delay: 0.2s;
}

.profile-card:nth-child(2) {
    animation-delay: 0.3s;
}

/* Smooth transitions for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
