/* =======================================================
| GLOW 2025 - REVISED SHARED STYLES (Clean Blue Theme) |
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f8ff; /* AliceBlue, a very light blue */
    --text-primary: #2c3e50; /* A professional, desaturated blue-black */
    --text-secondary: #566573; /* A softer gray-blue */
    --border-primary: #a9cce3; /* A light, muted blue for borders */
    --brand-primary: #3498db; /* A clean, professional sky blue */
    --brand-gradient: linear-gradient(135deg, #3498db, #85c1e9);
    --shadow-md: 0 5px 15px rgba(52, 152, 219, 0.1);
    --shadow-lg: 0 10px 30px rgba(52, 152, 219, 0.15);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 0.75rem;
    --transition-speed: 0.3s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.container { width: 100%; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1280px) { .container { max-width: 1140px; } }

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--brand-primary);
}

.main-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 2rem;
    color: var(--brand-primary);
}

/* New and Modified Styles for Participant Page */

.participants-container {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    gap: 2rem;
    align-items: flex-start; /* Aligns columns to the top */
}

.participant-column {
    flex: 1; /* Allows columns to grow and shrink equally */
    min-width: 300px; /* Prevents columns from becoming too narrow */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between cards in the same column */
}

.column-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    /* The university color class will override this, which is fine */
    color: var(--brand-primary); 
    border-bottom: 2px solid var(--border-primary);
    padding-bottom: 0.5rem;

    /* Add these properties for alignment */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Adjust space between name and logo */
}
.card-text em {
    font-style: italic;
    color: var(--text-secondary); /* Updated to use a theme variable */
}

/* End of New Styles */

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--brand-primary);
}

p { color: var(--text-secondary); margin-bottom: 1rem; }
.main-content { padding: 4rem 0; }
section { margin-bottom: 6rem; }

.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px) saturate(180%);
    position: sticky; top: 0; z-index: 50;
    border-bottom: 2px solid var(--border-primary);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    height: 40px;
    transform: scale(1);
    vertical-align: middle;
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    z-index: 10;
}

.nav-links li:last-child {
    margin-left: 0; /* Remove the desktop-specific margin */
    margin-top: 1rem; /* Add some space above the contact button on mobile */
}

/* NAVIGATION - FIXED & CLEANED */

.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    transition: transform 0.4s ease;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1rem;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-link {
    background: var(--brand-primary);
    color: #fff !important;
    padding: 0 1.25rem;
    border-radius: 999px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: -18px;
}

.contact-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* --- Hamburger Button --- */
#mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: transparent;
    z-index: 1100;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--brand-primary);
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    .nav-links.open {
        transform: translateX(0%);
    }

    #mobile-nav-toggle {
        display: flex;
    }

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

    /* Hamburger animation to "X" */
    #mobile-nav-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    #mobile-nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    #mobile-nav-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .main-content {
    /* Reduces the top/bottom padding of the main section on mobile */
    padding: 2rem 0;
    }

    .team-card {
        /* Reduces the internal padding of each card */
        padding: 1.25rem;
    }

    .member-photo {
        /* Makes the profile pictures smaller */
        width: 80px;
        height: 80px;
        margin-bottom: 1rem; /* Reduces space below the photo */
    }

    .member-name {
        /* Slightly reduces the name's font size */
        font-size: 1.15rem;
    }

    .column-heading {
        /* Makes the university titles a bit smaller */
        font-size: 1.4rem;
    }

    .container {
        /* Reduces the side padding on the narrowest screens */
        padding: 0 1rem;
    }
}

/* --- Helper for Screen-Reader Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.contact-link:hover {
    transform: translateY(-2px);
    background-color: #2980b9; /* Slightly darker blue on hover */
}

.contact-link::after {
    display: none;
}

.nav-link:not(.contact-link) {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform var(--transition-speed) ease-out;
}

.nav-link:hover, .nav-link.active, .nav-link:focus-visible {
    color: var(--brand-primary);
    outline: none;
}
.nav-link:hover::after, .nav-link.active::after, .nav-link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.team-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--brand-primary);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

.member-name {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary); /* Ensuring name uses primary text color */
}

.card-section {
    margin-bottom: 1rem;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-subheading {
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary); /* Ensuring subheading is clear */
}

.site-footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-primary);
    text-align: center;
    color: var(--text-secondary);
    margin-top: 4rem;
}

.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
| STYLES FOR OUR TEAM PAGE                |
=========================================== */

/* --- 1. Creates a responsive grid for the team cards --- */
/* This makes the cards "smaller" by fitting more in a row on larger screens */
.team-grid {
    display: grid;
    /* This creates columns that are at least 320px wide, but can grow. 
       It will automatically fit as many columns as possible. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* --- 2. Professional touch for the job title --- */
.member-title {
    text-align: center;
    margin-top: -1.25rem; /* Pulls it closer to the name */
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- 3. A container for the buttons at the bottom --- */
/* This ensures the buttons are always at the bottom, creating a uniform look */
.card-actions {
    margin-top: auto; /* This is the magic that pushes the div to the bottom */
    padding-top: 1rem; /* Adds space above the buttons */
    display: flex;
    flex-direction: column; /* Stacks the buttons vertically */
    gap: 0.75rem; /* Space between the buttons */
}

/* --- 4. Styling for the action buttons --- */
/* We'll create a shared style for both buttons */
.resume-button,
.email-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px; /* Rounded pill shape */
    transition: all 0.3s ease;
}

/* Primary Button Style (for Resume) */
.resume-button {
    background: var(--brand-gradient);
    color: #fff;
    border: 2px solid transparent;
}

.resume-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Secondary Button Style (for Email) */
.email-link {
    background-color: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.email-link:hover {
    background-color: var(--brand-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* A smaller text style for the experience details */
.text-sm {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.site-header .nav-container {
    padding-top: 1rem;      /* Adjust this value for more/less space above */
    padding-bottom: 1rem;   /* Adjust this value for more/less space below */
}

.telkom-university {
    color: #da393e;
    font-weight: 600; /* Makes the text slightly bolder */
}

.icats-university {
    color: #8e6f31;
    font-weight: 600; /* Makes the text slightly bolder */
}

/* =========================================
|   UNIVERSITY LOGO STYLES                |
=========================================== */
.uni-logo {
    height: 40px; /* Adjust height as needed */
    width: auto;
}

/* =================================
|   CONTACT PAGE & FORM STYLES    |
================================== */

.contact-subheading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.3); /* Glow effect */
}

textarea {
    resize: vertical; /* Allow users to resize the textarea vertically */
}

.submit-button {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--brand-gradient);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* For success/error messages after submission */
#form-status {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    display: none; /* Hidden by default */
}

#form-status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Styles for the new Instagram link */.social-link a {
            display: flex;
            align-items: center;
            gap: 8px; /* space between icon and text */
            text-decoration: none;
            color: #333; /* Dark grey color for text */
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .social-link svg {
            width: 20px;
            height: 20px;
            fill: #E1306C; /* Instagram gradient color */
        }

        .social-link a:hover {
            color: #E1306C; /* Change text color on hover */
            text-decoration: none;
        }

        .card-section.social-link {
            margin-top: 10px;
        }

        /* Styles for the lecturer section */
        .lecturer-section {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem; /* Adds space between the lecturer card and the participant cards */
        }

        .lecturer-card {
            width: 100%;
            max-width: 400px; /* Adjust the max-width as needed */
}

/* =========================================
|   DESKTOP SCROLL ANIMATION              |
=========================================== */

@media (min-width: 769px) {
  /*
    This sets the initial "hidden" state for our content section.
    It will be invisible and slightly moved down.
  */
  .fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  /*
    When JavaScript adds the .is-visible class, the section
    will fade in and slide up to its final position.
  */
  .fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-heading {
    background: linear-gradient(120deg, #2980b9, #85c1e9, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 4px solid var(--text-secondary);
    color: transparent;
    animation:
        typing 3s steps(35, end),
        blink-caret .75s step-end infinite;
    animation-fill-mode: forwards;
    width: 0;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--text-secondary); }
}

/* =========================================
|   SUBMIT BUTTON LOADER                  |
=========================================== */

/* The loader is a spinning circle, hidden by default */
.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-left-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* The 'spin' animation for the loader */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* This is what happens when the button is loading */
.submit-button.loading .button-text {
    display: none; /* Hide the "Send Message" text */
}

.submit-button.loading .button-loader {
    display: block; /* Show the spinning loader */
}

/* Make sure the loader is centered */
.submit-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
|   FOOTER LOGO STYLES                    |
=========================================== */

.footer-content {
    /* Use Flexbox to easily align items */
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center;    /* Center items vertically */
    gap: 1rem;              /* Add space between the logo and the text */
}

.footer-logo {
    /* Set a specific height for the logo in the footer */
    height: 30px;
}

/* =========================================
|   LOGO REVEAL SPLASH SCREEN STYLES      |
=========================================== */

/* Prevent scrolling while splash screen is active */
body.no-scroll {
    overflow: hidden;
}

/* The main splash screen container */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    display: grid;
    place-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* The container for our blobs and logo */
.blob-container {
    width: 150px;
    height: 150px;
    position: relative;
    filter: url(#goo);
    animation: bounce 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.2s forwards;
    transition: transform 0.8s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.8s ease;
}

/* --- KEY CHANGE 2: Rule to make the logo shrink during the final fade-out. --- */
#splash-screen.hidden .blob-container {
    transform: scale(0.8);
    opacity: 0;
}

/* The individual blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    background: var(--brand-primary);
    /* Add a transition for the hide effect */
    transition: all 0.6s cubic-bezier(0.55, 0, 0.45, 1);
}

.blob:nth-child(1) {
    width: 80px; height: 80px; top: 20%; left: 20%;
}
.blob:nth-child(2) {
    width: 60px; height: 60px; top: 60%; left: 60%;
}
.blob:nth-child(3) {
    width: 70px; height: 70px; top: 30%; left: 70%;
}

/* The new logo inside the splash screen */
.splash-logo {
    position: absolute;
    top: 50%;
    left: 60%;
    width: 110px; /* Adjust size as needed */
    z-index: 1000;
    height: auto;
    opacity: 0; /* Hidden by default */
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

/* --- The Reveal Animation State --- */

/* When this class is added, the blobs will disappear */
.blob-container.reveal-logo .blob {
    transform: scale(0);
    opacity: 0;
}

/* When this class is added, the logo will appear */
.blob-container.reveal-logo .splash-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* Main bounce animation for the whole container */
@keyframes bounce {
    0%   { transform: translateY(-200%); }
    80%  { transform: translateY(0); }
    90%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

