@import url('theme colours.css');

@keyframes fadein {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes scrollDownAnimation {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    25% {
        opacity: 1;
        transform: translateY(0);
    }

    75% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* -------------------------------------------------------------------------------- */


* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    margin: 0;
    background-color: var(--primary-bg-color);
}


/* -------------------------------------------------------------------------------- */

/* Navbar items are here */
nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 7%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 10px 40px;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 20px;
}

/* Grouping the logo image and text */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between the bulb and the word IGI */
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-black);
}

/* Controlling the logo size */
/* .navbar-logo {
    height: 40px;
    width: auto;
} */

.logo-text {
    color: black;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-links a {
    color: black;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
    cursor: pointer;
    opacity: 0.9;
    color: var(--bg-button-primary);
    transform: scale(1.1);
}

.login-button {
    background-color: var(--bg-button-primary);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-button-primary);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    padding: 5px 15px;
    font-weight: 600;
    text-decoration: none;
}

.login-button:hover {
    opacity: 0.9;
    transform: scale(1.1);
    transition: 0.2s;
}


/* ----------------------------------------------------------------------------- */
/* hero is here */


.hero {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    padding: 60px 10%;
    align-items: center;
    min-height: 100vh;

    margin: 0 auto;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/general/bg image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadein 0.5s ease-in-out;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    gap: 15vh;
    /* Adjusted for better spacing on all screens */
}

@media (max-width: 768px) {
    .hero-content {
        gap: 10vh;
    }
}

.scroll-down {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 500;
    opacity: 0;
    animation: scrollDownAnimation 5s ease-in-out 2s 5;
    cursor: pointer;
    text-align: center;
}

.IGI-title {
    color: var(--color-white);
    font-size: clamp(32px, 8vw, 60px);
    /* Fluid typography */
    font-weight: 700;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    animation: fadein 1s ease-in-out;
    padding: 0 20px;
}

.hero a {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 10px;
    transition: 0.3s;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

/* .hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
} */

/* .hero-desc {
    color: var(--tertiary-text-color);
    max-width: 500px;
    line-height: 1.6;
} */

/* .highlights {
    text-align: center;
    background-color: var(--light-highlight);
    display: block;
    font-weight: 900;
    font-size: small;
    color: var(--highlight);
    border-radius: 15px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    max-width: 300px;
} */

.text-highlight {
    color: var(--text-highlight);
}

/* .dashboard-link {
    background-color: var(--text-highlight);
    color: var(--color-white);
    border-radius: 5px;
    box-shadow: 0px 4px 6px var(--tertiary-text-color);
    text-align: center;

}

.dashboard-link:hover {
    transform: scale(1.1);
    transition: 0.3s;
} */

/* .course-link {
    color: var(--text-highlight);
    border: 2px solid var(--text-highlight);
    border-radius: 5px;
    box-shadow: 0px 4px 6px var(--tertiary-text-color);
    text-align: center;

}

.course-link:hover {
    transform: scale(1.1);
    transition: 0.3s;
} */

/* .hero-img-box {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img-box img {
    width: 100%;
    max-width: 600px;
    min-width: 200px;
    border-radius: 24px;
    border: 8px solid var(--color-white);
    box-shadow: 0 25px 12px var(--shadow-standard);
} */

/*---------------------------CARDS-------------------------------------*/

.intro-cards {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.mission-title {
    font-weight: 900;
    font-style: normal;
}

.mission-card {
    align-items: center;
    box-sizing: border-box;
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
    background-color: var(--card-bg-accent-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 1000px;
    text-align: center;
    font-size: 25px;
    font-weight: 500;
    font-style: normal;
}

.mission-text-highlight {
    color: var(--text-highlight);
    font-weight: 900;
    font-style: italic;
    opacity: 0;
}

.mission-card:hover {
    .mission-text-highlight {
        opacity: 1;
        transform: scale(1.5);
        transition: all 0.5s ease-in-out;
    }

    transform: scale(1.05);
}

/* Nexus Section Styles */
.nexus-section {
    padding-bottom: 80px;
}

.nexus-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%) !important;
    border: 1px solid var(--color-light-blue);
    position: relative;
    padding: 60px 40px !important;
    text-align: left !important;
}

.nexus-card h2 {
    color: var(--color-navy-primary);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.nexus-subtitle {
    color: var(--text-highlight);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
}

.nexus-card p {
    font-size: 18px;
    line-height: 1.8;
}

.nexus-formula {
    font-size: 56px;
    font-weight: 900;
    color: var(--text-highlight);
    margin: 40px 0;
    text-align: center;
    letter-spacing: -2px;
}

.nexus-formula span {
    color: var(--color-navy-primary);
    font-size: 40px;
    margin: 0 10px;
}

.nexus-formula sup {
    font-size: 30px;
}

.nexus-card a {
    color: var(--text-highlight);
    font-weight: 700;
    text-decoration: none;
}

.nexus-highlight {
    background-color: var(--color-light-blue);
    padding: 25px;
    border-radius: 15px;
    border-left: 6px solid var(--text-highlight);
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(20, 71, 230, 0.05);
}

.nexus-highlight h3 {
    margin-top: 0;
    color: var(--color-navy-primary);
    font-size: 26px;
}

.nexus-highlight p {
    margin-bottom: 0;
}

.nexus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.nexus-grid h4 {
    color: var(--text-highlight);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.nexus-highlight.bursary {
    background-color: #fafbfc !important;
    border-left-color: var(--color-navy-primary) !important;
}

@media (max-width: 768px) {
    nav {
        height: auto;
        min-height: 50px;
        padding: 5px 15px;
        font-size: 14px;
        border-radius: 12px;
        margin-top: 0;
    }

    .logo-text {
        font-size: 16px;
    }

    .navbar-links {
        gap: 10px;
    }

    .login-button {
        padding: 4px 10px;
        font-size: 12px;
    }

    .nexus-grid {
        grid-template-columns: 1fr;
    }
}

/*---------------------------PROJECTS SECTION-------------------------------------*/

.explore-projects {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.projects-header {
    text-align: center;
    margin-bottom: 50px;
}

.projects-header h2 {
    font-size: 40px;
    color: var(--color-navy-primary);
    margin-bottom: 10px;
}

.projects-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 1200px;
}

.projects-cards a {
    text-decoration: none;
}

.project-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--card-bg-light);
    border-radius: 25px;
    padding: 25px;
    gap: 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-content {
    flex: 1;
}

.project-content h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 0px;
    color: var(--color-navy-primary);
    transition: all 0.3s ease;
}

.project-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

/* Hover Effects */
.project-card:hover {
    background-color: var(--card-bg-accent-light);
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 35px 25px;
}

.project-card:hover .project-image {
    width: 180px;
    height: 180px;
    border-radius: 25px;
}

.project-card:hover .project-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

.project-card:hover h3 {
    color: var(--text-highlight);
}

.explore-button {
    display: flex;
    justify-content: center;
    background-color: var(--bg-button-primary);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 25px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    max-width: 300px;
    margin: 20px auto 0;

}

.explore-button:hover {
    opacity: 0.9;
    transform: scale(1.1);
    transition: 0.2s;
}


/*---------------------------IGI DESCRIPTION SECTION-------------------------------------*/

.igi-desc {
    padding: 80px 10%;
    background-color: var(--card-bg-light);
    width: 100%;
}

.igi-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.igi-text {
    flex: 1.5;
}

.igi-text h2 {
    font-size: 36px;
    color: var(--color-navy-primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.igi-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.igi-text ul {
    margin-bottom: 25px;
    padding-left: 60px;
}

.igi-text li {
    font-size: 19px;
    line-height: 2;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.igi-text strong {
    color: var(--text-highlight);
}

.igi-founder-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.igi-image-placeholder {
    width: 320px;
    height: 400px;
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.igi-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.igi-image-placeholder:hover {
    border-color: var(--text-highlight);
    background-color: #f0f0f0;
}

.founder-label {
    margin-top: 15px;
    font-weight: 600;
    font-size: 18px;
    color: var(--color-navy-primary);
}

@media (max-width: 992px) {
    .igi-container {
        flex-direction: column;
        text-align: center;
    }

    .igi-text {
        order: 2;
    }

    .igi-founder-container {
        order: 1;
        margin-bottom: 40px;
    }
}

.about-us-button {
    padding: 80px 10%;
    background-color: var(--card-bg-light);
    width: 100%;
}

.about-button {
    display: flex;
    justify-content: center;
    background-color: var(--bg-button-primary);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 25px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    max-width: 300px;
    margin: 20px auto 0;
}

.about-button:hover {
    opacity: 0.9;
    transform: scale(1.1);
    transition: 0.2s;
}


/*----------------------------------------------------------------*/

/*---------------------------REVEAL ANIMATION-------------------------------------*/

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/*---------------------------FOOTER SECTION-------------------------------------*/

.footer {
    background-color: var(--color-navy-primary);
    color: var(--color-white);
    padding: 60px 10% 20px;
    margin-top: 80px;
    position: relative;
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand .logo-text {
    color: var(--color-white);
    font-size: 28px;
    display: block;
    margin-bottom: 15px;
    text-align: left;
}

.footer-brand p {
    color: var(--color-text-tertiary);
    font-size: 15px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.link-group h4 {
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.link-group a {
    display: block;
    color: var(--color-text-tertiary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--text-highlight);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-tertiary);
    font-size: 13px;
}

@media (max-width: 700px) {
    .hero {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding: 40px 5%;
    }

    .hero-desc {
        margin: 0 auto;
    }

    .highlights {
        margin: 0 auto 20px auto;
    }

    .hero-btns {
        flex-direction: column;
        /* Stacks buttons vertically on mobile */
        align-items: center;
        /* Centers the stack */
        width: 100%;
    }

    .hero a {
        max-width: 100%;
        /* Allows buttons to be full-width on mobile */
        width: 100%;
        margin: 0;
    }

    .hero-img-box {
        margin-top: 40px;
        /* Adds space above the image when it moves below */
    }

    .hero-img-box img {
        max-width: 90%;
        /* Let the image scale down on small screens */
        margin: 0 auto;
    }
}