/** Importing Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

header {
    background-color: darkgrey;
    min-height: 100vh;
    width: 100%;
    background-image: url("../images/ub-bg.png");
    background-position: center;
    background-size: cover;
    position: relative;

    display: flex;
    flex-direction: column;
}

.brothers-header {
    background-color: darkgrey;
    min-height: 100vh;
    width: 100%;
    background-image: url("../images/brothers-bg.png");
    background-position: center;
    background-size: cover;
    position: relative;

    display: flex;
    flex-direction: column;
}

.rush-header {
    background-color: darkgrey;
    min-height: 100vh;
    width: 100%;
    background-image: url("../images/rush-bg.png");
    background-position: center;
    background-size: cover;
    position: relative;

    display: flex;
    flex-direction: column;

}

.header-bar {
    position: fixed;

    top: 0;
    z-index: 1000; /* Ensures it stays above event cards and images */
    
    /* Style it to look like it's floating */
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px); /* Adds a "glass" effect */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);

    display: flex;
    padding: 10px 4%;
    width: 100%;
    justify-content: space-between;
    align-items: center;

    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The hidden state: Pushed off-screen */
.nav-up {
    transform: translateY(-100%);
}

.nav-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.nav-logo img {
    height: 60px;
}

.nav-logo:hover {
    transform: scale(1.05);
}


.logo-text {
    padding-left: 10px;
    display: block;
}

.logo-text h2, .logo-text h4 {
    color: white;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    flex: 1;
    text-align: right;
}

.nav-item {
    list-style: none;
    display: inline-block;
    padding: 8px 38px;
    position: relative;
}

.nav-link {
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.nav-link::after {
    content: '';
    width: 0%;
    height: 2px;
    background: white;
    display: block;
    margin: auto;
    transition: 0.2s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-active {
    color: #D3AF37;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.nav-link-active::after {
    content: '';
    width: 100%;
    height: 2px;
    background: #D3AF37;
    display: block;
    margin: auto;
    transition: 0.2s;
}

.header-content {
    margin-top: auto;
    margin-bottom: 10%;
    padding-left: 4%;

    width: 50%;
    
    white-space: nowrap; 
}


.header-content h1 {
    color: white;
    text-align: justify;

    font-size: clamp(1.5rem, 6vw, 6rem);
    letter-spacing: 18px;
}

.header-content h4 {
    color: white;
    text-align: justify;

    letter-spacing: 2px;
    font-size: clamp(1.0rem, 2.0vw, 4rem);
}

.about-content {
    background-color: white;
    width: 100%;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center; 

    padding: 2% 6%;
}

.about-content-questions {
    padding: 2% 14%;
}

.about-content hr {
    width: 80%;           
    margin: 24px auto;     
    border: 1px solid black
}


.class-header {
    width: 100%;
    margin: 60px 0;
    font-size: 2.4rem;
    font-weight: normal;
    letter-spacing: 4px;
}

.brother-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    width: 100%;
    gap: 40px;

    justify-content: center;
    

    margin-bottom: 40px;
}

.brother-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.brother-card:hover {
    transform: translateY(-5px);
}

.brother-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 60%;
}

.brother-text-container h3 {
    font-size: 0.8rem;
}

.brother-text-container p {
    font-size: 0.7rem;
}

.img-container {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    border: 2px solid transparent;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brother-card h3 {
    font-size: 0.95rem;
    margin: 0;
    color: #333;
    text-align: center;
    font-weight: 600;
}

.brother-card p {
    font-size: 0.65rem;
    font-weight: normal;
}


.schedule-header {
    width: 100%;
    margin: 60px 0;
    font-size: 2.4rem;
    font-weight: normal;
    letter-spacing: 4px;
    text-align: center;
}

.rush-logo-container {
    width: 260px;
    height: 260px;
    border-radius: 100%;
    overflow: hidden;
    background-color: #2a2a2a;
    box-shadow: 0 0px 24px rgba(0, 0, 0, 0.4);

    margin-bottom: 12px;
    margin-top: 30px;
    border: 2px solid transparent;

    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6), box-shadow 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);

}

.rush-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: opacity 0.4s ease, filter 0.4s ease;
}

.rush-logo-container:hover img {
    opacity: 0.2;
    filter: blur(2px);
}

.rush-logo-container:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 0px 26px rgba(0, 0, 0, 0.8);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Centering logic */
    display: flex;
    flex-direction: column; /* Icon on top, text on bottom */
    justify-content: center;
    align-items: center;
    gap: 8px; /* Space between icon and text */

    opacity: 0;
    background: rgba(0, 0, 0, 0.4); /* Darkens the logo background for contrast */
    color: white;
    transition: opacity 0.3s ease;
    pointer-events: none; /* So the mouse still clicks the link, not the overlay */
}

.insta-overlay i {
    font-size: 4rem; 
    color: #e1306c;
}

.insta-overlay span {
    font-size: 1.0rem;
    font-weight: bold;
}

.rush-logo-container:hover .insta-overlay {
    opacity: 1;
}

.rush-logo-container:hover img {
    filter: blur(4px) brightness(0.7);
}



.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 60%;
    gap: 10px;

    margin-top: 60px;
    margin-bottom: 40px;
}

.event-card {
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother fidget transition */
    padding: 20px 25px;
    width: 60%;
    margin-bottom: 20px;
    
    background-color: #ffffff; /* Clean white */
    border-radius: 8px; /* Rounded corners make it feel friendlier */
    
    /* Subtle initial shadow */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    
    /* Side accent border */
    border-left: 6px solid #940000; 
}

/* Alternate colors for even cards */
.event-card:nth-child(even) {
    margin-left: auto;
    border-left: none;
    border-right: 6px solid #940000; /* Change color for variety */
    text-align: right;
    align-items: flex-end; /* Align text to the right for even cards */
}

.event-card:hover {
    transform: translateX(10px); /* Slide slightly to emphasize the timeline */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.rush-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rush-text-container h1 {
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    color: #222;
    letter-spacing: -0.5px;
}

.rush-text-container h2 {
    font-size: 1.1rem;
    margin: 0;
    color: #940000; /* Accent color for the date */
    text-transform: uppercase;
}

.rush-text-container h3, p {
    font-size: 0.95rem;
    margin: 2px 0;
    color: #666;
    font-weight: 400;
}



.interest-form-container {
    max-width: 800px;
    margin: 60px auto; /* Centers the form and gives space from the schedule */
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 8px solid #940000; /* Accent color */
}

.interest-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interest-form-header h2 {
    margin-top: 0;
    color: #222;
    font-size: 2rem;
}

.interest-form-header img {
    height: 80px;
    margin-bottom: 30px;
}

.interest-form-container h2 {
    margin-top: 0;
    color: #222;
    font-size: 2rem;
    margin-bottom: 30px;
}

.interest-form-container p {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.9rem;
}

input, select, textarea {
    resize: none;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease; /* Fidget-ready transition */
    outline: none;
}

/* Fidget effect: Glow and lift on focus */
input:focus, select:focus, textarea:focus {
    border-color: #940000;
    box-shadow: 0 0 8px rgba(64, 93, 230, 0.2);
    transform: translateY(-2px);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #222;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.submit-btn:hover {
    background: #940000;
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(225, 48, 108, 0.3);
}






.quote {
    color: black;
    text-align: center;

    padding: 24px 0px;
    font-size: 36px;
    font-weight: 300;
}

.about-content h6 {
    color: black;
    text-align: center;

    padding-top: 32px;
    padding-bottom: 16px;
    font-size: 36px;
    font-weight: 300;
}

.about-text {
    color: black;
    text-align: center;

    padding: 16px 5%;
    font-size: 24px;
    font-weight: 300;
}

.questions-header {
    color: black;
    text-align: center;

    padding: 16px 5%;
    font-size: 2.8rem;
    font-weight: 300;
}


.about-collumns ul {
    display: flex; 
    justify-content: space-between;
}

.about-collumns ul li {
    flex: 1;
    list-style: none;
    margin: 0 24px;  
}

.chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

canvas {
    width: 100%;
}

footer {
    background-color: #87600C;
    min-height: 14vh;
    width: 100%;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center; 

}

footer h1 {
    color: white;
    text-align: center;

    padding: 14px 0px;
    font-size: 24px;
    font-weight: bold;
}

footer a {
    color: white;
    text-align: center;

    padding-bottom: 10px;
    font-size: 16px;
    font-weight: bold;

    text-decoration: none;
}

footer p {
    color: lightgrey;
    text-align: center;

    padding-bottom: 12px;
    font-size: 14px;
    font-weight: normal;

    text-decoration: none;
}

@media(max-width: 950px) {
    .about-collumns ul {
        flex-direction: column;
    }

    .header-content {
        width: 70%;
    }

    .header-content h4 {
        font-size: clamp(0.75rem, 1.0vw, 2rem);
    }

    .nav-item {
        padding: 4px 10px;
    }

    .nav-link {
        font-size: 10px;
    }

    .nav-link-active {
        font-size: 12px;
    }

    .nav-logo {
        font-size: 10px;
    }

    .nav-logo img {
        height: 50px;
    }


    .interest-form-container {
        width: 90%; /* Let the form take up more space on mobile */
        padding: 20px;
        margin: 30px auto;
    }

    .form-row {
        flex-direction: column; /* Stack Year and Major vertically */
        gap: 0; /* Let the form-group margins handle spacing */
    }

    .event-card {
        width: 95%; /* Make event cards wider on mobile so text isn't cramped */
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important;
        align-items: flex-start !important;
        border-right: none !important;
        border-left: 6px solid #940000 !important; /* Uniform look for mobile */
    }


    footer h1 {
        font-size: 16px;
        padding: 10px, 0px;
    }

    footer p {
        padding-bottom: 6px;
        font-size: 12px;
    }

}




