/* 
   Penn State Student Space Programs Laboratory (SSPL)
   Space-Themed Responsive Stylesheet
*/

:root {
    --bg-dark: #05070f;
    --bg-card: rgba(13, 19, 43, 0.75);
    --bg-card-hover: rgba(22, 32, 70, 0.85);
    --border-color: rgba(0, 240, 255, 0.2);
    --border-glow: rgba(0, 240, 255, 0.6);
    --primary-cyan: #00f0ff;
    --primary-blue: #0072ff;
    --accent-purple: #7b2cbf;
    --accent-gold: #ffb703;
    --text-main: #f0f4f8;
    --text-muted: #a0aec0;
    --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Stars Canvas */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Top Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo img {
    height: 45px;
    width: auto;
    filter: none;
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-cyan);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-github {
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan) !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: radial-gradient(circle at center, rgba(123, 44, 191, 0.15) 0%, rgba(5, 7, 15, 0.95) 70%);
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* Ensures clean vertical stacking between text and buttons */
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-cyan) 50%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem; /* Pushes button row down cleanly below description text */
    position: relative;
    z-index: 2;
}

.btn-primary {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: #05070f;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-heading);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(0, 240, 255, 0.05);
}

/* Common Section Layout */
.section {
    padding: 5rem 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Image Slot Placeholders Styling */
.image-slot {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(13, 19, 43, 0.8), rgba(20, 28, 60, 0.9));
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-slot:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.image-slot svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-cyan);
    opacity: 0.7;
    margin-bottom: 8px;
}

.image-slot span {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: var(--primary-cyan);
    letter-spacing: 1px;
}

/* Executive Board Grid (8 Slots) */
.exec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.exec-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.exec-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.25);
    background: var(--bg-card-hover);
}

.exec-photo-slot {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    background: #0d132b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.exec-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exec-photo-slot .placeholder-icon {
    font-size: 2rem;
    color: var(--primary-cyan);
}

.exec-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 4px;
}

.exec-title {
    color: var(--primary-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exec-major {
    color: var(--accent-gold);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.exec-bio {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.exec-contact {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.exec-contact a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.exec-contact a:hover {
    background: var(--primary-cyan);
    color: #05070f;
}

/* Projects Section & Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-cyan);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.2);
}

.project-content {
    padding: 20px;
}

.project-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(123, 44, 191, 0.3);
    border: 1px solid var(--accent-purple);
    color: #d8b4fe;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* GitHub Embed Container Section */
.github-widget-section {
    background: rgba(13, 19, 43, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 30px;
    margin-top: 3rem;
}

.github-live-feed {
    background: #02040a;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: #00f0ff;
    max-height: 250px;
    overflow-y: auto;
}

/* Step-By-Step Guide Box */
.guide-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 25px;
    margin-top: 2rem;
}

.guide-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary-cyan);
    color: #05070f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

/* Footer */
footer {
    background: #020408;
    border-top: 1px solid var(--border-color);
    padding: 3rem 8% 1.5rem 8%;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .section {
        padding: 3rem 5%;
    }
}
/* Prevent navigation links and title from vertical text wrapping */
.brand-text h1, 
.brand-text span, 
.nav-links a {
    white-space: nowrap !important;
}

/* Allow navigation bar to adapt cleanly inside narrow embed containers */
.nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 0.8rem 2%;
    }
}
