/* GLOBAL STYLES & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: white;
    background-color: #1a1e27; /* Dark background */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #8a94d3; /* Accent color on hover */
}

/* NAVIGATION BAR */
header {
    background-color: #2a3142;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8a94d3;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    padding: 10px 15px;
    display: block;
    font-weight: 500;
}

.nav-links li a:hover {
    color: white;
    background-color: #8a94d3;
    border-radius: 4px;
}

/* Mobile Menu Setup */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #8a94d3;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #3b4458;
    position: absolute;
    top: 60px; /* Adjust based on header height */
    left: 0;
    transition: max-height 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.show {
    max-height: 500px; /* Needs to be large enough to show all links */
    padding: 10px 0;
}

.mobile-menu li a {
    padding: 15px 50px;
    border-bottom: 1px solid #4a536b;
}

/* HERO SECTION */
.firstSection {
    padding: 80px 10%;
    text-align: center;
    background-color: #1a1e27;
}

.headline h1 {
    font-size: 4rem;
    color: #8a94d3;
    font-weight: 800;
}

.headline h3 {
    font-size: 2rem;
    color: #f1f1f1;
    margin-bottom: 30px;
}

.hero-img {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* SECTIONS & SEPARATOR */
.separator {
    border: none;
    background-color: #8a94d3;
    height: 1.2px;
    margin: 40px 84px;
}

.about-section,
.flowchart-section,
.services,
.events,
.upcoming-projects,
.form-wrapper {
    padding: 50px 10%;
    min-height: 400px;
}

.about-text h2,
.services-heading,
.section-heading,
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #8a94d3;
}

.about-text p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #ccc;
}

/* WHY US / FLOWCHART SECTION */
.flowchart-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: white;
}

.flowchart-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.flowchart-box {
    background-color: #2a3142;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    flex-basis: calc(25% - 20px); /* 4 boxes per row on desktop */
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid transparent;
    transition: transform 0.3s, border-color 0.3s, opacity 0.5s;
    opacity: 0; /* Initial state for animation */
}

.flowchart-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.flowchart-box i {
    font-size: 1.5rem;
    color: #8a94d3;
    margin-right: 10px;
}

.flowchart-box:hover {
    transform: translateY(-5px);
    border-color: #8a94d3;
}

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-box {
    background-color: #2a3142;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.service-box h3 {
    font-size: 1.2rem;
    margin: 0;
}

.service-box i {
    color: #8a94d3;
    margin-right: 10px;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: #8a94d3;
}

/* Personalization Highlights (Green: Student, Orange: Employee, Blue: Entrepreneur) */
.services-grid.highlight-student .service-internships,
.services-grid.highlight-student .service-workshops {
    border-color: #1abc9c; /* Green */
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.5);
}
.services-grid.highlight-employee .service-freelance,
.services-grid.highlight-employee .service-coworking {
    border-color: #f39c12; /* Orange */
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
}
.services-grid.highlight-entrepreneur .service-startup,
.services-grid.highlight-entrepreneur .service-registration {
    border-color: #3498db; /* Blue */
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}


/* POPUP MODAL (Services, Events, Projects) */
.service-popup {
    display: none;
    position: fixed;
    z-index: 1001; /* Above welcome modal if active */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #2a3142;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #555;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.popup-content h3 {
    color: #8a94d3;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.popup-content p {
    font-size: 1.1rem;
    color: #ccc;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: white;
}

/* EVENTS & PROJECTS SECTIONS */
.events-grid,
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.event-card,
.project-card {
    background-color: #2a3142;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-basis: calc(33% - 20px);
    min-width: 250px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.event-card h3,
.project-card h3 {
    color: #8a94d3;
    margin-bottom: 10px;
}

.event-card p,
.project-card p {
    font-size: 0.95rem;
    color: #ccc;
}

.event-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    background-color: #3b4458;
}

/* REGISTRATION FORM */
.form-wrapper {
    display: flex;
    justify-content: center;
    padding: 50px 10%;
}

.form-container {
    background-color: #2a3142;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.form-container h2 {
    color: #8a94d3;
    margin-bottom: 25px;
    text-align: center;
}

#registrationForm label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
}

#registrationForm input,
#registrationForm select,
#registrationForm button {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #4a536b;
    background-color: #3b4458;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

#registrationForm button {
    background-color: #8a94d3;
    color: white;
    cursor: pointer;
    margin-top: 25px;
    font-weight: 600;
    transition: background-color 0.3s;
}

#registrationForm button:hover {
    background-color: #a4b3f0;
}

.status {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}

/* FOOTER */
.footer {
    background-color: #2a3142;
    padding: 50px 10%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #4a536b;
}

.footer-about h2 {
    color: #8a94d3;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: #8a94d3;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-contact p,
.footer-contact a {
    margin-bottom: 8px;
    display: block;
}

.social-icons a {
    margin-right: 15px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #8a94d3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}


/* --- Initial Welcome Modal Styles (NEW) --- */
.modal-initial {
    display: none;
    position: fixed;
    z-index: 10000; /* Extremely high z-index to ensure it is always on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content-initial {
    background-color: #2a3142; 
    color: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.9);
    position: relative;
    animation: fadeIn 0.5s;
}

.modal-title {
    color: #8a94d3; 
    margin-bottom: 10px;
    font-size: 2rem;
    text-align: center;
}

.modal-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-align: center;
}

.close-btn-initial {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn-initial:hover {
    color: #8a94d3;
}

.modal-content-initial label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#welcomeForm select,
.modal-submit-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

#welcomeForm select {
    background-color: #3b4458;
    color: white;
    border: 1px solid #555;
}

.modal-submit-btn {
    background-color: #8a94d3;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.modal-submit-btn:hover {
    background-color: #a4b3f0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}


/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .flowchart-box {
        flex-basis: calc(33% - 20px);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 10px 20px;
    }
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero-img {
        max-width: 80%;
    }
    .headline h1 {
        font-size: 3rem;
    }
    .headline h3 {
        font-size: 1.5rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flowchart-box {
        flex-basis: calc(50% - 20px);
    }
    .event-card,
    .project-card {
        flex-basis: 100%;
    }
    .footer-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .firstSection {
        padding: 50px 5%;
    }
    .headline h1 {
        font-size: 2.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .flowchart-box {
        flex-basis: 100%;
    }
    .separator {
        margin: 30px 20px;
    }
}