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

body {
    font-family: "Lato";
    line-height: 1.6;
    color: #333;
    background-color: #f1ebde;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #22114a;
    color: #fff;
    padding: 1rem 0;
    font-family: "Lato";
}

.nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    color: #e3cbff;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 18px;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    font-style: bold;
}

/* Hero Section */
.hero-section {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Courier Prime';
    font-size: 96px;
    font-weight: 600;
    color: white;
    margin-left: 5%;
    white-space: nowrap;
}

/* Who are we Section */
.who-are-we-section {
    width: 100%;
    aspect-ratio: 3/2;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.who-are-we-background {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.who-are-we-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 20px;
}

.who-are-we-title {
    font-family: 'Courier Prime';
    font-size: 96px;
    font-weight: 600;
    color: white;
}

.who-are-we-description {
    font-family: 'Lato';
    font-size: 30px;
    color: white;
    margin-right: 20%;
    margin-left: 20%;
    text-align: center;
    line-height: 1.2;
}

/* Projects Section */
.projects-section {
    background-color: #f1ebde;
    padding: 2rem 0;
}

.projects-section h1 {
    font-family: 'Courier Prime';
    font-size: 96px;
    color: #6b46c1;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    box-sizing: border-box;
    transition: transform 0.3s ease-out,
        filter 0.3s ease-out,
        box-shadow 0.3s ease-out;
}

.project-card h2 {
    color: #6b46c1;
    margin-bottom: 0.5rem;
}

.project-card:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 10px;
    border-radius: 1rem;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.slide-img.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.tag {
    display: inline-block;
    background-color: #e9d8fd;
    color: #6b46c1;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.status {
    display: inline-block;
    color: #6b46c1;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.ongoing {
    background-color: #ffc369;
}

.completed {
    background-color: #d1f87c;
}

.in-service {
    background-color: #afa5ef;
}

.all-projects-btn-container {
    text-align: center;
    margin-top: 2rem;
}

.all-projects-btn {
    display: inline-block;
    background-color: #6b46c1;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Lato';
    font-size: 40px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.all-projects-btn:hover {
    background-color: #553c9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Explore Section */
.explore-section {
    background-color: white;
    padding: 4rem 0;
}

.explore-title {
    font-family: 'Courier Prime';
    font-size: 96px;
    color: #333;
    text-align: left;
    margin-bottom: 1rem;
}

.engineering-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.engineering-card {
    position: relative;
    text-align: center;
    display: inline-block;
    margin: 0 auto;
}

.engineering-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.engineering-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    font-family: 'Courier Prime';
    font-size: 40px;
    color: white;
    padding: 0 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.1;
}

.explore-subtitle {
    font-family: 'Courier Prime';
    font-size: 64px;
    color: #333;
    text-align: right;
    margin-top: 2rem;
}

/* Get Involved Section */
.get-involved-section {
    width: 100%;
    aspect-ratio: 3/2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.get-involved-background {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.get-involved-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.get-involved-title {
    font-family: 'Courier Prime';
    font-size: 84px;
    color: black;
    margin-top: 3rem;
}

.get-involved-btn-container {
    margin-top: 1rem;
    margin-bottom: auto;
}

.get-involved-btn {
    display: inline-block;
    background-color: #6b46c1;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Lato';
    font-size: 40px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.get-involved-btn:hover {
    background-color: #553c9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

main {
    padding: 2rem 0;
}

main h1 {
    font-family: 'Courier Prime';
    font-size: 4rem;
    color: #6b46c1;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    box-sizing: border-box;
    transition: 
        filter 0.3s ease-out,
        box-shadow 0.3s ease-out;
}

.card h2 {
    color: #6b46c1;
    margin-bottom: 0.5rem;
}

.card:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hyperlink {
    color: #6b46c1;
    margin-bottom: 0.5rem;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.full-width {
    grid-column: 1 / -1;
}

ul {
    margin-left: 20px;
}

/* Button */
.button {
    display: inline-block;
    background-color: #6b46c1;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.button:hover {
    background-color: #553c9a;
}

/* Officer Profile */
.profiles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    margin: 10px;
  }

.profile {
    flex: 0 0 200px;
    background-color: #fffaf2;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    text-align: center;
    box-sizing: border-box;
    transition: 
        filter 0.3s ease-out,
        box-shadow 0.3s ease-out;
}

.profile:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.profile img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
    margin-bottom: 0.5rem;
}
  
.profile h2 {
    font-size: 1.25rem;
    margin: 0.25rem 0 0.25rem;
    color: #22114a;
}

.profile .title {
    font-weight: bold;
    color: #6b46c1;
    margin: 0.25rem 0;
}

.profile .major {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.contact-button {
    background-color: #6b46c1;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-button:hover {
    background-color: #553c9a;
}

/* Social Media Grid */
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.black-highlight {
    text-shadow: 
        /* -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black, */
        3px 3px 0 black;
    padding: 0 10px;
}

/* Responsive Design to handle when the window is resized smaller */
@media (max-width: 1080px) {
    .hero-section {
        height: auto;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 80px;
    }
    
    .who-are-we-title {
        font-size: 80px;
    }
    
    .who-are-we-description {
        font-size: 28px;
    }
    
    .projects-section h1 {
        font-size: 80px;
    }
    
    .explore-title {
        font-size: 64px;
    }
    
    .explore-subtitle {
        font-size: 48px;
    }
    
    .engineering-title {
        font-size: 36px;
    }
    
    .engineering-img {
        width: 250px;
        height: 250px;
    }
    
    .get-involved-title {
        font-size: 64px;
    }
    
    .get-involved-btn {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        display: inline-block;
        margin: 0.5rem 1rem 0.5rem 0;
    }
    
    .hero-title {
        font-size: 60px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .who-are-we-section {
        min-height: 60vh;
    }
    
    .who-are-we-title {
        font-size: 60px;
    }
    
    .who-are-we-description {
        font-size: 16px;
        margin-right: 5%;
    }
    
    .who-are-we-content {
        padding: 1rem;
    }
    
    .projects-section h1 {
        font-size: 60px;
    }
    
    .explore-title {
        font-size: 48px;
    }
    
    .explore-subtitle {
        font-size: 36px;
    }
    
    .engineering-title {
        font-size: 28px;
    }
    
    .engineering-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .engineering-img {
        width: 200px;
        height: 200px;
    }
    
    .get-involved-title {
        font-size: 48px;
    }
    
    .get-involved-btn {
        font-size: 20px;
    }
    
    .get-involved-content {
        padding: 1rem;
    }
    
    .social-media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        aspect-ratio: 16/7;
        min-height: 40vh;
    }

    .who-are-we-section {
        aspect-ratio: 3/1.6;
        min-height: 45vh;
    }

    /* Navigation bar */
    .nav-content {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links a {
        font-size: 16px;
        margin: 0.25rem 0.5rem 0.25rem 0;
    }
    
    /* Container adjustments */
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 40px;
        margin-left: 3%;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    .who-are-we-title {
        font-size: 40px;
    }
    
    .who-are-we-description {
        font-size: 14px;
        margin: 0 5%;
        line-height: 1.1;
    }
    
    .who-are-we-content {
        padding: 0.5rem;
    }
    
    /* Projects Section */
    .projects-section h1 {
        font-size: 40px;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1rem;
        margin-bottom: 15px;
    }
    
    .project-card h2 {
        font-size: 1.2rem;
    }
    
    .image-slider {
        height: 200px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .all-projects-btn {
        font-size: 18px;
        padding: 0.5rem 1rem;
    }
    
    .explore-section {
        padding: 2rem 0;
    }
    
    .explore-title {
        font-size: 32px;
    }
    
    .explore-subtitle {
        font-size: 24px;
    }
    
    .engineering-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .engineering-title {
        font-size: 20px;
        bottom: 10px;
    }
    
    .engineering-img {
        width: 180px;
        height: 180px;
    }
    
    .get-involved-title {
        font-size: 32px;
    }
    
    .get-involved-btn {
        font-size: 18px;
        padding: 0.5rem 1rem;
    }
    
    .get-involved-section {
        min-height: 50vh;
    }

    .get-involved-content {
        padding: 0.5rem;
        min-height: 0;
    }
 
    /* Other pages besides the main page */
    main {
        padding: 1rem 0;
    }
    
    main h1 {
        font-size: 2.5rem;
    }
    
    .intro {
        font-size: 1rem;
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 15px;
    }
    
    .card h2 {
        font-size: 1.2rem;
    }
    
    .hyperlink {
        font-size: 18px;
    }

    .profiles-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .profile {
        max-width: none;
        width: 100%;
        padding: 0.6rem;
    }
    
    .profile h2 {
        font-size: 1.1rem;
    }
    
    .profile .title {
        font-size: 0.9rem;
    }
    
    .profile .major {
        font-size: 0.8rem;
    }
    
    .contact-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .social-media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .tag, .status {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}