/**********************************************************************
******                        General                            ******
**********************************************************************/
:root {
    --navbar-height: 60px;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, hsl(0, 0%, 15%) 0%, #292929 100%);
    min-height: 100vh;

        overflow-x: hidden;
    overflow-y: hidden;

}


/**********************************************************************
******                       Book Animation                       ******
**********************************************************************/
/* container covers the whole viewport, behind your content */
.falling-books {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;    /* clicks pass through */
  overflow: hidden;
  z-index: -1;             /* behind everything */
}

/* each “book” is an absolutely-positioned emoji */
.falling-books .book {
  position: absolute;
  top: -5%;                /* start just above the top */
  user-select: none;
  opacity: 0.9;
  font-size: 2.5rem;       /* default size, will be overridden */
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  color: #310000;
}

/* animate from top → bottom, with a full spin */
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}






/**********************************************************************
******                        Header Section                     ******
**********************************************************************/
.header {
    margin-top: calc(var(--navbar-height));
    padding: 70px;
    text-align: center;
    position: relative;
}


.title {
    text-align: center;
    font-size: 5rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    color: rgb(214, 214, 214);

    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: visible;
}


/**********************************************************************
******          Degrees and class formatting                     ******
**********************************************************************/
.main-content {
    display: flex;
    min-height: 600px;
    gap: 20px;


    padding: 30px;
    padding-top: 0;
}

.degrees-container {
    flex: 1;
    background: linear-gradient(135deg, #1c0101, #2F0101);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgb(29, 0, 0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: 100%;

}

.course-container {
    flex: 2;

    background: linear-gradient(-135deg, #1c0101, #2F0101);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgb(29, 0, 0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: 100%;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: rgb(214, 214, 214);
    border-bottom: 3px solid rgb(214, 214, 214);
    padding-bottom: 10px;
}



/**********************************************************************
******                        Degree Styling                     ******
**********************************************************************/
.degree-card {
    background: rgba(255, 255, 255, 0.127);
    border: 1px solid rgba(28, 1, 1, 0.401);

    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); */

    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.degree-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(197, 0, 0, 0.3), rgba(197, 0, 0, 0.1));

}

.degree-card.active {
    background: linear-gradient(135deg, rgba(197, 0, 0, 0.3), rgba(197, 0, 0, 0.1));
    border-color: rgb(39, 0, 0);
    box-shadow:
        0 0 4px 1px rgba(100, 20, 20, 0.5),
        0 0 12px 3px rgba(100, 20, 20, 0.3),
        0 0 24px 6px rgba(100, 20, 20, 0.15),
        0 0 40px 10px rgba(100, 20, 20, 0.08);
}

.degree-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgb(214, 214, 214);

    margin-bottom: 5px;
}

.degree-details {
    font-size: 0.9rem;
    color: #7a8586;
    margin-bottom: 10px;
}

.gpa {
    background: #310000;
    color: rgb(214, 214, 214);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    margin-top: 10px;
}

.honors {
    background: #310020;
    color: rgb(214, 214, 214);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 5px 5px 0 0;
    display: inline-block;
}


/**********************************************************************
******                       Courses                             ******
**********************************************************************/
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.course-card {
    background: rgba(255, 255, 255, 0.127);
    border: 1px solid rgba(28, 1, 1, 0.401);

    
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); */
}

.course-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-name {
    font-weight: 600;
    color: rgb(214, 214, 214);
    margin-bottom: 5px;
}

.course-code {
    color: #7a8586;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.grade {
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.grade.CR,
.grade.T,
.grade.A {
    background: #6A1B9A;
}

.grade.AB {
    background: #4A148C;
}

.grade.B {
    background: #38006B;
}

.grade.C {
    background: #240046;
}







/**********************************************************************
******                       Info Card                             ******
**********************************************************************/
.info-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.info-card-overlay.active {
    display: flex;
    animation: info-cardFadeIn 0.3s ease;
}

@keyframes info-cardFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.info-note {
    background-color: rgba(30, 30, 35, 1);
    border-radius: 25px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: noteSlideIn 0.3s ease;
}

@keyframes noteSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.course-note-header {
    background: rgba(28, 1, 1, 0.9);
    color: rgb(214, 214, 214);
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

/* idk if  should keep this */
.course-note-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    pointer-events: none;
}

.course-note-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.course-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.meta-item {
    background: rgba(255, 255, 255, 0.127);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.meta-item strong {
    font-weight: 700;
}

.course-note-body {
    padding: 30px;
}

.course-summary-title {
    font-size: 1.3rem;
    color: rgb(214, 214, 214);
    margin-bottom: 15px;
    font-weight: 600;
}

.course-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgb(214, 214, 214);
    text-align: justify;
}



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



.hidden {
    display: none;
}






/**********************************************************************
******                      Responsiveness                       ******
**********************************************************************/        

@media (max-width: 768px) {

    body {
        padding-top: 0px;

    }


    .main-content {
        flex-direction: column;
        padding-left: 10px;
        padding-right: 10px;
    }
    .header {
        padding-top: 0px;
    }
 
    
    h1 {
        font-size: 2rem;
    }


    .title {
        font-size: clamp(3.1rem, 10vw, 5rem);
    }

}


@media (max-width: 500px){

    .title {
        font-size: clamp(2.5rem, 11vw, 3.1rem);
    }
}


@media (max-width: 400px){
    .header {
        padding-left: 40px;
        padding-right: 40px;
    }
    .title {
        font-size: clamp(1.5rem, 10vw, 2.5rem);
    }
}



@media (max-width: 350px){
    .title {
        font-size: clamp(1.5rem, 11vw, 2.5rem);
    }
}






