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

/* General Styles */
body {
    font-family: 'Open Sans';
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 2rem;
    background-color: #01533f;
    color: #FFF;
    position: sticky;
    top: 0;
    z-index: 10;
}

header .logo,
header h2 {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 50px;
    width: auto;
    display: block;
    margin-right: 10px;
}

header h2 {
    font-size: 1.5rem;
    margin: 0;
}

header nav {
    margin-left: auto;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 1rem;
}

header nav ul li a {
    color: #FFF;
    text-decoration: none;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Welcome Section */
#welcome {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #F2F2F2;
    text-align: center;
    padding: 0 1rem;
    background-image: url('images/Background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.welcome-image {
    max-width: 800px;
    height: auto;
    margin: .5rem 0;
}

#welcome h2 {
    color: #F2F2F2;
    font-style: italic;
    margin: 0 0 3rem 0;
}

#welcome .hero-content .btn {
    display: inline-block;
    /* Ensures scaling applies to the whole box */
    padding: .8rem 1.5rem;
    background: #b1d13d;
    color: #01533f;
    border: none;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 5px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
    /* Adds shadow */
    transition: all 0.3s ease;
    /* Smooth hover effect */
}

#welcome .hero-content .btn:hover {
    background-color: #b1d13d;
    /* Darker shade on hover */
    transform: scale(1.05);
    /* Slightly larger on hover */
}

/* Sections */
section {
    scroll-margin-top: 40px;
    padding: 4rem 8rem;
    text-align: center;
    max-width: 100%
}

section h1 {
    font-size: 2rem;
    color: #0d0d0d;
    margin-bottom: 2rem;
}

section p {
    margin-bottom: 1.5rem;
}

.top {
    padding-top: 4rem;
    font-size: 2rem;
    color:#e7f0db;
    background-color: #01533f;
    display: flex;
    justify-content: center;
}

/* About Section */
#about {
    background-color: #e7f0db;
}

/* Carousel Styles for Specific ID */
#about-carousel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 225px;
    padding: 0px;
    margin-top: 40px;
    max-width: 1200px;
    overflow: hidden;
}

#about-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

#about-carousel img {
    width: 100%;
    margin: 10px;
    max-width: calc(600px / 2);
    /* Adjust to show 3 images at a time */
    flex: 0 0 calc(100% / 2);
    /* Make each image take up a third of the container */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Slicker button styling */
#about-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #e7f0db;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 30px;
    border-radius: 50%;
    z-index: 1;
}

#about-carousel .carousel-btn:hover {
    color: #01533f;
}

#about-carousel .prev {
    left: 10px;
}

#about-carousel .next {
    right: 10px;
}


/*Exec team*/

#exec-team-section {
    padding-top:2.5rem;
    background-color: #01533f;
    display: flex;
    justify-content: center;
}

.exec-team-section {
    background-color: #e7f0db;
    display: flex;
    justify-content: center;
    width: 100%;
    border-radius: 5px;
}

.exec-names {
    width: 50%;
    padding: 40px;
    margin-top: 20px;
}

.exec-names ul {
    list-style: none;
    padding: 0;
}

.exec-names li {
    margin: 15px 0;
    cursor: pointer;
    font-size: 18px;
    color: #01533f;
}

.exec-names li:hover {
    transform: scale(1.05);
}

.exec-names li.active {
    font-weight: bold;
    font-size: 1.2rem;
}



.exec-info {
    width: 100%;
    padding: 20px;
}

.exec-detail {
    display: none;
}

.exec-detail img {
    width: 510px;
    height: 170px;
    border-radius: 5%;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* styles.css */
.contact-links {
    margin: 20px;
    width: 93%;
    gap: 10px;
}

.contact-links a{
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    /* Makes the text large */
    font-weight: bold;
    /* Makes the text bold */
    color: #e7f0db;
    /* Text color */
    background-color: #01533f;
    text-decoration: none;
    /* Removes underline */
    border-radius: 5px;
    /* Rounds corners */
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
    /* Adds shadow */
    transition: all 0.3s ease;
    /*Smooth hover effect */
    margin: 0 5px 0 5px;
}

.contact-links a:hover {
background-color: #01533f;
/* Darker shade on hover */
transform: scale(1.05);
/* Slightly larger on hover */
}

/* Resources Section */
#resources {
    background-color: #e7f0db;
}

.resources-grid {
    display: grid;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.resource-item {
    background-color: #01533f;
    color: #FFF;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
    /* Adds shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth hover effect */
    display: inline-block;
    /* Ensures scaling applies to the whole box */
}

.resources-grid a {
    text-decoration: none;
    color: #e7f0db;
}

.resource-item:hover {
    transform: scale(1.05);
    /* Scale effect on hover for the entire box */
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.3);
    /* Larger shadow for lifting effect */
}

/* Events Section */
#events {
    background-color: #01533f;
    padding: 4rem 8rem;
    text-align: center;
}

#events h1 {
    color: #e7f0db;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.carousel {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    gap: 1rem;
}

.carousel-item {
    flex: 0 0 auto;
    background-color: #e7f0db;
    padding: 1rem;
    border-radius: 10px;
    width: 250px;
    scroll-snap-align: start;
    text-align: left;
}

.carousel-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.carousel-item h3 {
    color: #01533f;
    font-size: 1.25rem;
    margin: 10px 0;
}

.carousel-item p {
    color: #333;
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Custom scrollbar for events section */
#events .carousel {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #b1d13d transparent;
    /* Firefox */
}

#events .carousel::-webkit-scrollbar {
    height: 5px;
    /* Scrollbar height */
}

#events .carousel::-webkit-scrollbar-track {
    background: transparent;
    /* Background of scrollbar */
}

#events .carousel::-webkit-scrollbar-thumb {
    background-color: #b1d13d;
    /* Green color for scrollbar thumb */
    border-radius: 10px; 
    /* Rounded edges for scrollbar */
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    .carousel {
        flex-direction: column;
    }

    .carousel-item {
        width: 100%;
    }
}

/*Programs Section */

#program {
    background-color: #e7f0db;
}

#program {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 29px;
    /* Spacing between images */
    flex-wrap: wrap;
    /* Allows images to wrap on smaller screens */
}

#program img {
    width: 100px;
    /* Set a base width */
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
    /* Smooth animation for scaling */
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
    /* Adds shadow */
}

#program img:hover {
    transform: scale(1.1);
    /* Slightly enlarge on hover */
    cursor: pointer;
}

#program a {
    text-decoration: none;
    /* Remove link underline */
}

/* Pitch Competiton*/
#pitchComp {
    display: flex;
    justify-content: center;
    background-color: #01533f;
    padding-top:2.5rem;

}

.pitch-comp-section {
    background-color:#e7f0db;
    display: flex;
    justify-content: center;
    width: 100%;
    border-radius: 5px;
}

.pitch-names {
    width: 45%;
    margin-top: 120px;
    padding: 40px;
}

.pitch-names ul {
    list-style: none;
    padding: 0;
}

.pitch-names li {
    margin: 15px 0;
    cursor: pointer;
    font-size: 18px;
    color: #01533f;
}

.pitch-names li:hover {
    transform: scale(1.05);
}

.pitch-names li.active {
    font-weight: bold;
    font-size: 1.2rem;
}

.pitch-info {
    width: 100%;
    padding: 20px;
}

.pitch-info h3 {
    margin-bottom: 10px;
}

.pitch-detail {
    display: none;
}

.pitch-detail img {
    width: 510px;
    height: 170px;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.pitch-info a{
        display: inline-block;
        padding: 10px 20px;
        font-size: 1rem;
        /* Makes the text large */
        font-weight: bold;
        /* Makes the text bold */
        color: #e7f0db;
        /* Text color */
        background-color: #01533f;
        text-decoration: none;
        /* Removes underline */
        border-radius: 5px;
        /* Rounds corners */
        box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
        /* Adds shadow */
        transition: all 0.3s ease;
        /*Smooth hover effect */
}

.pitch-info a:hover {
    background-color: #01533f;
    /* Darker shade on hover */
    transform: scale(1.05);
    /* Slightly larger on hover */
}

/*Join Us Section */

#join {
    background-color: #e7f0db;
    text-align: center;
    /* Center-aligns all content within the section */
    padding: 40px 20px;
}

#join h1 {
    margin-bottom: 10px;
    /* Space between h1 and h3 */
}

#join h3 {
    margin-bottom: 30px;
    /* Space between h3 and the link */
    color: #333
}

#join .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.5rem;
    /* Makes the text large */
    font-weight: bold;
    /* Makes the text bold */
    color: #e7f0db;
    /* Text color */
    background-color: #01533f;
    text-decoration: none;
    /* Removes underline */
    border-radius: 5px;
    /* Rounds corners */
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
    /* Adds shadow */
    transition: all 0.3s ease;
    /* Smooth hover effect */
}

#join .btn:hover {
    background-color: #01533f;
    /* Darker shade on hover */
    transform: scale(1.05);
    /* Slightly larger on hover */
}

/* Start ups */
#startUps {
    padding: 40px;
    background-color: #e7f0db;
    text-align: center;
}

#startUps h1 {
    font-size: 2em;
    color: #2b2b2b;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

/* Card grid container */
.startup-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Individual startup card styling */
.startup-card {
    background-color:#01533f;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.startup-card:hover {
    transform: scale(1.05);
}

.startup-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.startup-name {
    font-size: 1.2em;
    color:#e7f0db;
    margin-bottom: 10px;
    font-weight: bold;
}

.startup-description {
    font-size: 0.95em;
    color:#e7f0db;
    line-height: 1.4;
}

.startup-card:nth-child(odd) {
    transform: rotate(-1deg);
}

.startup-card:nth-child(even) {
    transform: rotate(1deg);
}


/* Past guest spakers */
#pastGuest {
    background-color:#01533f;
    text-align: center;
}

#pastGuest h1 {
    text-align: center;
    color:#e7f0db;
}

.pastGuest-section p {
    text-align: center;
    font-size: 1em;
    color:#e7f0db;
    margin:0px;
    padding: 0px;
}

.speakers-wall {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.speaker {
    background-color: #e7f0db;
    color:#333;
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    flex: 1 1 calc(25% - 20px); /* Adjusts each item to take 25% of the row minus gap */
    max-width: calc(25% - 20px);
}

.speaker p{
    margin: 5px;
    margin-bottom: 10px;
}

.speaker img {
    margin-top: 10px;
    max-width: 50%;
    border-radius: 50%;
}

/* Contact us */

#contact {
    background-color: #e7f0db;
    text-align: center;
    /* Center-aligns all content within the section */
    padding: 40px 20px;
}

#contact h1 {
    margin-bottom: 10px;
    /* Space between h1 and h3 */
}

#contact h3 {
    margin-bottom: 30px;
    /* Space between h3 and the link */
    color: #333
}

#contact .btn {
    display: inline-block;
    padding: 10px 20px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 1.5rem;
    /* Makes the text large */
    font-weight: bold;
    /* Makes the text bold */
    color: #e7f0db;
    /* Text color */
    background-color: #01533f;
    text-decoration: none;
    /* Removes underline */
    border-radius: 5px;
    /* Rounds corners */
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
    /* Adds shadow */
    transition: all 0.3s ease;
    /* Smooth hover effect */
}

#contact .btn:hover {
    background-color: #01533f;
    /* Darker shade on hover */
    transform: scale(1.05);
    /* Slightly larger on hover */
}

#social {
    text-align: center;
    background-color:#01533f
}

#social h1 {
    color:#e7f0db;
    padding-top: 0px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a img {
    width: 65px;
    height: 65px;
    transition: transform 0.3s;
}

.social-links a img:hover {
    transform: scale(1.1);
}


/* Footer */
footer {
    background-color:#e7f0db;
    color:#01533f;
    padding: 2rem;
    text-align: center;
}

footer p {
    margin: 0;
}

footer a {
    color:#01533f;
    text-decoration: none;
    padding: .5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    .exec-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .exec-member img {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .carousel {
        flex-direction: column;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* General adjustments */
    body {
        font-size: 1rem;
    }
    
    /* Header */
    header {
        padding: 0.5rem 1rem;
        flex-direction: column;
    }

    header h2 {
        font-size: 1.2rem;
    }

    header nav ul {
        flex-direction: column;
        margin: 1rem 0;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    /* Welcome Section */
    #welcome {
        padding: 2rem 1rem;
        text-align: center;
    }

    .welcome-image {
        max-width: 90%;
    }

    #welcome h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    #welcome .hero-content .btn {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    /* Section Styling */
    section {
        padding: 2rem 1rem;
    }

    section h1 {
        font-size: 1.5rem;
    }

    section p {
        font-size: 0.9rem;
    }

    /* Top Section */
    .top {
        font-size: 1.5rem;
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    /* Smaller screens adjustments */
    header .logo img {
        height: 40px;
        margin-right: 5px;
    }

    header h2 {
        font-size: 1rem;
    }

    #welcome h2 {
        font-size: 1.2rem;
    }

    #welcome .hero-content .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* About Section */
@media (max-width: 768px) {
    #about {
        padding: 2rem 1rem;
    }

    /* Carousel */
    #about-carousel {
        height: 200px;
    }

    #about-carousel img {
        max-width: 90%;
        flex: 0 0 100%;
        margin: 5px;
    }

    #about-carousel .carousel-btn {
        font-size: 24px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    #about-carousel {
        height: 150px;
    }

    #about-carousel img {
        max-width: 100%;
        margin: 2px;
    }

    #about-carousel .carousel-btn {
        font-size: 20px;
    }
}

/* Executive Team Section */
@media (max-width: 768px) {
    #exec-team-section {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .exec-team-section {
        flex-direction: column;
    }

    .exec-names {
        width: 100%;
        padding: 20px;
    }

    .exec-info {
        width: 100%;
        padding: 10px;
    }

    .exec-detail img {
        width: 100%;
        height: auto;
    }
}

/* Contact Links */
@media (max-width: 768px) {
    .contact-links {
        flex-direction: column;
        gap: 5px;
        width: 100%;
        margin: 20px auto;
    }

    .contact-links a {
        font-size: 0.9rem;
        padding: 8px 15px;
        margin: 5px 0;
    }
}

/* Resources Section */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .resource-item {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Events Section */
@media (max-width: 768px) {
    #events {
        padding: 2rem 1rem;
    }

    #events h1 {
        font-size: 1.5rem;
    }

    .carousel {
        flex-direction: column;
        gap: 1rem;
    }

    .carousel-item {
        width: 100%;
    }

    .carousel-item h3 {
        font-size: 1rem;
    }

    .carousel-item p {
        font-size: 0.8rem;
    }
}

/* Programs Section */
@media (max-width: 768px) {
    #program {
        gap: 1rem;
        padding: 2rem 1rem;
    }

    #program img {
        width: 80px;
        margin: 10px;
    }
}

/* Pitch Competition Section */
@media (max-width: 768px) {
    #pitchComp {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    .pitch-comp-section {
        flex-direction: column;
        padding: 1rem;
    }

    .pitch-names {
        width: 100%;
        margin-top: 20px;
        padding: 1rem;
        font-size: 1rem;
    }

    .pitch-info {
        width: 100%;
        padding: 1rem;
    }

    .pitch-detail img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .resources-grid {
        grid-template-columns: 1fr;
    }

    #events h1, .carousel-item h3 {
        font-size: 1.2rem;
    }

    .carousel-item p {
        font-size: 0.8rem;
    }

    #program img {
        width: 70px;
    }

    .pitch-names, .pitch-info {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

/* Join Us Section */
@media (max-width: 768px) {
    #join {
        padding: 20px 10px;
    }

    #join h1 {
        font-size: 1.5rem;
    }

    #join h3 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    #join .btn {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
}

/* Startups Section */
@media (max-width: 768px) {
    #startUps {
        padding: 20px;
    }

    #startUps h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .startup-card-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .startup-card {
        padding: 15px;
    }

    .startup-logo {
        width: 100px;
        height: 100px;
    }

    .startup-name {
        font-size: 1rem;
    }

    .startup-description {
        font-size: 0.85rem;
    }
}

/* Past Guest Speakers Section */
@media (max-width: 768px) {
    #pastGuest {
        padding: 20px;
    }

    #pastGuest h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .speakers-wall {
        flex-direction: column;
        align-items: center;
    }

    .speaker {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .speaker img {
        width: 80px;
        height: auto;
    }
}

/* Contact Us Section */
@media (max-width: 768px) {
    #contact {
        padding: 20px 10px;
    }

    #contact h1 {
        font-size: 1.5rem;
    }

    #contact h3 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    #contact .btn {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
}

/* Social Section */
@media (max-width: 768px) {
    #social {
        padding: 20px;
    }

    #social h1 {
        font-size: 1.5rem;
    }

    .social-links {
        flex-direction: column;
        gap: 10px;
    }

    .social-links a img {
        width: 50px;
        height: 50px;
    }
}

/* Footer */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Additional adjustments for very small screens */
    #join h1, #startUps h1, #pastGuest h1, #contact h1, #social h1 {
        font-size: 1.2rem;
    }

    .startup-name, .startup-description, .speaker p {
        font-size: 0.85rem;
    }

    #contact .btn, #join .btn {
        font-size: 1rem;
        padding: 6px 10px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    header nav {
        margin-left: 0;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    header nav ul li a {
        font-size: 1.2rem;
    }
}

/* Mobile Navigation Toggle Button */
.nav-toggle {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #FFF;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    header nav ul {
        display: none; /* Hide menu by default on mobile */
    }

    header nav ul.show-menu {
        display: flex; /* Show menu when toggled */
    }
}