/* All custom styles will be here */
/* Colors spacing fonts and layout */
/* decorations */

/* ===== OVERRIDE BROWSER LINK COLORS ===== */
nav a {
    color: #00e5ff !important;     /* Forces white on all nav links */
    font-size: 1.2rem;
    /* text-decoration: none; */
}

section {
    scroll-margin-top: 100px;  /* Adjust this to match your nav height */
}

/* ===== RESET & BASE ===== */

/* resets the default page format */

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

/* defualt font and color for the whole page */

body {
    font-family: 'Times New Roman', sans-serif;
    line-height: 1.6;
    color: #000000;
}

/* ===== NAVIGATION ===== */

/* sticks to the top when you scroll (header) */

nav {
    background: linear-gradient(135deg, #0a1929, #1a3a5c);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #00e5ff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);  /* ← Adds shadow */
}

/* centers the nav content and spaces logos and links */

.nav-container {
    max-width: 1600px;
    /* CHOICE: can delete this line entirely if you want it to fill all the way (tradeoff is it can be hard to read on large monitors so I use 1400 */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo a {
    color: #00e5ff; /* V.I.T.A.L text color */
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;          /* allows links to wrap to next line */
    justify-content: center;  /* centers wrapped links */
    gap: 0.75rem 1.5rem;      /* row gap and column gap */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00e5ff;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);               /* ← Frosted glass */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px 12px;
    z-index: 101;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: #00e5ff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 101;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        width: auto;
        min-width: 140px;              /* ← Narrower */
        text-align: center;
        padding: 0.5rem 0;             /* ← Tighter */
        gap: 0.15rem;                  /* ← Very tight gap */
        background: rgba(10, 25, 41, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 50px;           /* ← PILL SHAPE */
        border: 2px solid rgba(0, 229, 255, 0.4);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        z-index: 102;
        overflow: hidden;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.25s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-8px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .nav-links a {
        color: white;
        font-size: 0.95rem;            /* ← Smaller font */
        padding: 0.2rem 1.2rem;        /* ← Tighter padding */
        transition: color 0.3s ease, background 0.3s ease;
        border-radius: 50px;           /* ← Pill-shaped individual links too */
        margin: 0 0.3rem;              /* ← Slight margin from edges */
    }

    .nav-links a:hover {
        color: #0a1929;
        background-color: #00e5ff;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(10, 25, 41, 0.85), rgba(10, 25, 41, 0.85)), url('../images/purdue-skyline.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 8rem 4rem;
    border-radius: 12px;   /* ← ADD THIS */
    margin-bottom: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.hero h1 {
    font-size: 2.8rem; /* Makes main headline big */
    margin-bottom: 1rem;
}

.hero p { /* sub headline stuff */
    font-size: 1.2rem;
    color: #a8d8ea;
    margin-bottom: 2rem;
}

/* ===== ABOUT SECTION ===== */
#about {
    background: linear-gradient(135deg, #0a1929, #1a3a5c);
    color: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

#about h2 {
    color: white;
    border-bottom: 3px solid #00e5ff;
    padding-bottom: 0.5rem;
}

#about h2::before {
    content: "◆";
    display: block;
    color: #00e5ff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#about p {
    color: #a8d8ea;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PILLARS SECTION ===== */
#pillars {
    background: linear-gradient(135deg, #0a1929, #1a3a5c);
    color: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    margin: 0 2rem 2rem 2rem;
}

#pillars h2 {
    color: white;
    border-bottom: 3px solid #00e5ff;
    padding-bottom: 0.5rem;
    text-align: center;
}

#pillars h2::before {
    content: "◆";
    display: block;
    color: #00e5ff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#pillars > p {
    color: #a8d8ea;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.pillar-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #0a1929;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
}

.pillar-card h3 {
    color: #0a1929;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.pillar-card p {
    color: #000000;
    font-size: 0.95rem;
    max-width: 100%;
}

/* ===== TEAM SECTION ===== */
#team {
    background: linear-gradient(135deg, #0a1929, #1a3a5c);
    color: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

#team h2 {
    color: white;
    border-bottom: 3px solid #00e5ff;
    padding-bottom: 0.5rem;
}

#team h2::before {
    content: "◆";
    display: block;
    color: #00e5ff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#team p {
    color: #a8d8ea;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== TEAM CARDS (Light background on dark section) ===== */
#team .team-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

#team .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

#team .team-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #0a1929; /* Dark text on white cards */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#team .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
}

#team .team-card h3 {
    color: #0a1929;
}

#team .team-title {
    color: #00e5ff;
    font-weight: bold;
}

#team .team-major {
    color: #000000;
}

#team .team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00e5ff;
    margin-bottom: 1rem;
}

#team .team-bio {
    color: #000000;
    font-size: 1rem;
    margin-top: 0.75rem;
    line-height: 1.4;
    border: 2px solid #00e5ff;
    border-radius: 8px;       
    padding: 0.75rem 1rem;     
}

/* ===== TEAM CARD LINKEDIN BUTTON ===== */
.team-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #ffffff;           /* ← White background like your other buttons */
    color: #0a1929;                      /* ← Navy text */
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;                 /* ← Pill shape like your buttons */
    text-decoration: none;
    border: 2px solid #00e5ff;           /* ← Aqua border */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-linkedin:hover {
    background-color: #00e5ff;           /* ← Aqua on hover like your buttons */
    color: #0a1929;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.team-linkedin-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* ===== CONTACT SECTION ===== */
#contact {
    background: linear-gradient(135deg, #0a1929, #1a3a5c);
    color: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

#contact h2 {
    color: white;
    border-bottom: 3px solid #00e5ff;
    padding-bottom: 0.5rem;
}

#contact h2::before {
    content: "◆";
    display: block;
    color: #00e5ff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#contact p {
    color: #a8d8ea;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACT SOCIAL LINKS (Light buttons on dark background) ===== */
#contact .contact-email {
    color: #00e5ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#contact .contact-email:hover {
    color: #2dd4bf;
    text-decoration: underline;
}

#contact .contact-social {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

#contact .contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #0a1929;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    background-color: #ffffff;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#contact .contact-social-link:hover {
    background-color: #00e5ff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    color: #0a1929;
}

#contact .contact-social-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* ===== JOIN ===== */

#join {
    background: linear-gradient(135deg, #0a1929, #1a3a5c);
    color: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

#join h2 {
    color: white;
    border-bottom-color: #00e5ff;
}

#join h2::before {
    content: "◆";
    display: block;
    color: #00e5ff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#join p {
    color: #a8d8ea;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background-color: #ffffff;
    color: #0a1929;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #00e5ff;
    color: #0a1929;
    transform: scale(1.05);
}

/* ===== SECTIONS ===== */
section {
    padding: 1rem 2rem;
    /*max-width: 1000px; /* how far text will go (dont go too big so text is good) */
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0a1929;
    border-bottom: 3px solid #00e5ff;
    padding-bottom: 0.5rem;
}

section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: #0a1929;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

footer p {
    color: #a8d8ea;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: block;
}

/* ========================================
   PHONE-SPECIFIC FIXES
   ======================================== */

@media (max-width: 480px) {
    /* ----- SMALLER FONTS ----- */
    body {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section p {
        font-size: 0.95rem;
    }

    #about h3,
    #join h3 {
        font-size: 1.1rem !important;
    }

    /* ----- REDUCE WHITESPACE ----- */
    .hero {
        padding: 3rem 1rem;
        margin: 0 0.5rem 1rem 0.5rem;
    }

    #about,
    #pillars,
    #team,
    #join,
    #contact {
        padding: 2rem 1rem;
        margin: 0 0.5rem 1rem 0.5rem;
    }

    /* ----- SMALLER BUTTONS ----- */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    /* ----- TEAM CARDS ----- */
    #team .team-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    #team .team-photo {
        width: 120px;
        height: 120px;
    }

    #team .team-card h3 {
        font-size: 1.1rem;
    }

    #team .team-title {
        font-size: 0.85rem;
    }

    #team .team-major {
        font-size: 0.8rem;
    }

    #team .team-bio {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    /* ----- PILLAR CARDS ----- */
    .pillars-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .pillar-card h3 {
        font-size: 1rem;
    }

    .pillar-card p {
        font-size: 0.9rem;
    }

    /* ----- CONTACT SOCIAL BUTTONS ----- */
    #contact .contact-social {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    #contact .contact-social-link {
        font-size: 0.95rem;
        padding: 0.5rem 1.2rem;
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }

    #contact .contact-social-icon {
        width: 20px;
        height: 20px;
    }

    /* ----- JOIN SECTION LIST ITEMS ----- */
    #join div p {
        font-size: 0.9rem;
    }

    /* ----- FOOTER ----- */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }
}