/* style.css */
:root {
    --bg-paper: #f5f2eb;
    --bg-card: #ffffff;
    --iub-purple: #6a1b9a;  
    --iub-blue: #283593;    
    --iub-orange: #f57c00;  
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --window-border: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-paper);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
}

.wide-container {
    width: 92%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px 0;
}

section {
    padding: 100px 0;
    border-bottom: 2px solid #1a1a1a;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.section-header .bar {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--iub-blue), var(--iub-purple), var(--iub-orange));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Navbar & Robot Pill State Handling */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Default full header navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 2px solid var(--window-border);
    padding: 10px 24px;
    border-radius: 50px;
    width: auto;
    max-width: 95%;
    box-shadow: 4px 4px 0px #1a1a1a;
    transition: all 0.3s ease;
}

/* Robot Trigger Pill (Hidden by default, active on scroll or mobile) */
.nav-robot-trigger {
    display: none;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 2px solid var(--window-border);
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 4px 4px 0px #1a1a1a;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-robot-trigger:hover {
    transform: scale(1.05);
    background-color: #fff;
}

.robot-trigger-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Mini Cute Robot Icon */
.mini-cute-robot {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 24px;
    height: 24px;
    justify-content: center;
}

.mini-robot-antenna {
    width: 2px;
    height: 6px;
    background-color: var(--iub-orange);
    position: absolute;
    top: -2px;
}

.mini-robot-head {
    width: 22px;
    height: 15px;
    background: #2b2b36;
    border: 1.5px solid #1a1a1a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-robot-eyes {
    display: flex;
    gap: 6px;
}

.mini-eye {
    width: 3px;
    height: 4px;
    background-color: #50fa7b;
    border-radius: 50%;
}

.nav-close-btn {
    display: none;
    background: rgba(0,0,0,0.06);
    border: 1px solid #1a1a1a;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 15px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-close-btn:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* States for Header Modes controlled by JS / CSS Classes */
body.header-collapsed .nav-container {
    display: none !important;
}

body.header-collapsed .nav-robot-trigger {
    display: flex !important;
}

body.header-expanded .nav-container {
    display: flex !important;
}

body.header-expanded .nav-robot-trigger {
    display: none !important;
}

.nav-logo img {
    height: 32px;
    width: auto;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--iub-purple);
    background-color: rgba(106, 27, 154, 0.08);
}

.nav-join-btn {
    background-color: var(--iub-blue);
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    box-shadow: 2px 2px 0px #1a1a1a;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    width: 92%;
    max-width: 1350px;
    margin: 0 auto;
    align-items: center;
}

.sketch-badge {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    border: 2px dashed #1a1a1a;
    padding: 6px 14px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 3px 3px 0px #1a1a1a;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -2px;
    color: var(--text-main);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--iub-blue), var(--iub-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .description {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    display: inline-block;
    border: 2px solid #1a1a1a;
}

.btn-primary {
    background-color: var(--iub-blue);
    color: white;
    box-shadow: 4px 4px 0px #1a1a1a;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #1a1a1a;
    background-color: var(--iub-purple);
}

.btn-secondary {
    background-color: #fff;
    color: var(--text-main);
    box-shadow: 4px 4px 0px #1a1a1a;
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #1a1a1a;
}

/* Floating Mascot */
.hero-art-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-direct-card {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 380px;
}

.speech-bubble {
    position: relative;
    background: #ffffff;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    padding: 14px 18px;
    border-radius: 16px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0px #1a1a1a;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #1a1a1a transparent;
    display: block;
    width: 0;
}

.mascot-avatar-wrapper {
    cursor: pointer;
    padding: 15px;
    transition: transform 0.2s ease;
}

.mascot-avatar-wrapper:hover {
    transform: scale(1.12);
}

.cute-robot {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: robotDance 1.8s ease-in-out infinite;
}

.robot-antenna {
    width: 4px;
    height: 20px;
    background-color: var(--iub-orange);
    position: relative;
    animation: antennaWiggle 0.6s ease-in-out infinite alternate;
}

.robot-antenna::before {
    content: '';
    position: absolute;
    top: -7px;
    left: -5px;
    width: 14px;
    height: 14px;
    background-color: #ff5f56;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    animation: pulseGlow 1.2s infinite alternate;
}

.robot-head {
    width: 100px;
    height: 70px;
    background: #2b2b36;
    border: 3px solid #1a1a1a;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 4px 4px 0px #1a1a1a;
    position: relative;
    animation: headTilt 1.8s ease-in-out infinite;
}

.robot-cheeks {
    position: absolute;
    width: 12px;
    height: 6px;
    background-color: rgba(255, 121, 198, 0.4);
    border-radius: 50%;
    top: 40px;
}
.left-cheek { left: 12px; }
.right-cheek { right: 12px; }

.robot-eyes {
    display: flex;
    gap: 20px;
}

.eye {
    width: 10px;
    height: 14px;
    background-color: #50fa7b;
    border-radius: 50%;
    box-shadow: 0 0 8px #50fa7b;
    animation: blinkEyes 3s infinite;
}

.robot-mouth {
    width: 18px;
    height: 8px;
    border: 2px solid #ff79c6;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.robot-body {
    width: 85px;
    height: 60px;
    background: linear-gradient(135deg, var(--iub-blue), var(--iub-purple));
    border: 3px solid #1a1a1a;
    border-radius: 16px;
    margin-top: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 5px 0px #1a1a1a;
}

.pulse-core {
    width: 26px;
    height: 26px;
    background-color: var(--iub-orange);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 12px var(--iub-orange);
    animation: corePulse 1s infinite alternate;
}

@keyframes robotDance {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-3deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes headTilt {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(4deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-4deg); }
    100% { transform: rotate(0deg); }
}

@keyframes antennaWiggle {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px #ff5f56; }
}

@keyframes corePulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

@keyframes blinkEyes {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.mascot-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.mascot-btn {
    flex: 1;
    padding: 10px 14px;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 3px 3px 0px #1a1a1a;
}

.primary-action {
    background-color: var(--iub-orange);
    color: white;
}

.secondary-action {
    background-color: #fff;
    color: #1a1a1a;
}

/* Stats Section */
.stats {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    width: 92%;
    max-width: 1350px;
    margin: 0 auto;
    text-align: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-card h3 {
    font-size: 3.5rem;
    color: var(--iub-orange);
    margin-bottom: 8px;
    font-weight: 800;
}

.stat-card p {
    color: #dfdfdf;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Grids */
.about-grid, .events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card, .event-card {
    background-color: var(--bg-card);
    border: 2px solid #1a1a1a;
    padding: 40px 35px;
    border-radius: 10px;
    box-shadow: 5px 5px 0px #1a1a1a;
}

.event-card {
    border-left: 8px solid var(--iub-orange);
    position: relative;
}

.event-num {
    font-family: 'Fira Code', monospace;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--iub-orange);
}

/* Gallery & Cards Hover Transition */
.gallery-card {
    transition: transform 0.2s ease;
}
.gallery-card:hover {
    transform: translateY(-4px);
}

/* --- INTERACTIVE ORG CHART LEADERSHIP SECTION --- */
.leadership-section {
    background-color: #0b0f19;
    color: #ffffff;
    border-bottom: 2px solid #1e293b;
    position: relative;
    overflow: hidden;
}

.leadership-section .section-header h2 {
    color: #ffffff;
}

.section-number {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    color: var(--iub-orange);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.org-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    position: relative;
}

.org-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.org-level-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.org-nodes-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.org-node-card {
    background: linear-gradient(145deg, #131c31, #0f172a);
    border: 2px solid #334155;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    width: 240px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.org-node-card:hover {
    transform: translateY(-5px);
    border-color: var(--iub-orange);
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.25);
}

.primary-node {
    border-color: var(--iub-blue);
}

.node-avatar-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--iub-blue), var(--iub-purple));
    border: 2px solid #64748b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}

.node-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.node-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-role {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #94a3b8;
}

.org-connector-vertical {
    width: 2px;
    height: 30px;
    background-color: #334155;
}

/* --- PROFILE MODAL POPUP --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: #0f172a;
    border: 2px solid #334155;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #475569;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.modal-header-bg {
    height: 100px;
    background: linear-gradient(135deg, var(--iub-blue), var(--iub-purple));
    border-bottom: 2px solid #334155;
}

.modal-body-content {
    padding: 0 25px 25px;
    text-align: center;
    margin-top: -50px;
}

.modal-img-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #0f172a;
    overflow: hidden;
    margin: 0 auto 15px;
    background-color: #1e293b;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.modal-role-badge {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--iub-orange);
    background: rgba(245, 124, 0, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.modal-department {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.modal-bio-text {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    background: #1e293b;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #334155;
}

.modal-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-social-links a {
    width: 38px;
    height: 38px;
    background-color: #1e293b;
    border: 1px solid #475569;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.modal-social-links a:hover {
    background-color: var(--iub-orange);
    border-color: var(--iub-orange);
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.fsu-footer {
    background-color: #141417;
    color: #f8fafc;
    padding: 70px 0 20px;
    border-top: 3px solid #1a1a1a;
}

.footer-content-wrapper {
    width: 92%;
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #2a2a35;
}

.footer-col h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-col h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 0.5px;
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-email {
    margin-top: 15px;
}

.footer-email a {
    color: var(--iub-orange);
    text-decoration: none;
    font-weight: 600;
}

.footer-email a:hover {
    text-decoration: underline;
}

.links-col ul {
    list-style: none;
}

.links-col li {
    margin-bottom: 10px;
}

.links-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.links-col a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.fsu-social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.fsu-social-icons a {
    width: 38px;
    height: 38px;
    background-color: #1f1f28;
    border: 1px solid #2f2f3d;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.fsu-social-icons a:hover {
    background-color: var(--iub-orange);
    border-color: var(--iub-orange);
    transform: translateY(-2px);
}

.footer-tagline {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom-bar {
    text-align: center;
    padding-top: 25px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive Styles for Mobile Initial State and Layout Adjustments */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-grid, .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .about-grid, .events-grid, .footer-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Make nav links stack or fit inside smaller screens nicely when expanded */
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 20px;
        width: 90%;
        max-width: 340px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        gap: 8px;
        align-items: center;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .nav-close-btn {
        display: flex;
        margin-left: 0;
        margin-top: 5px;
    }
    /* Prevent text and boxes from clipping on the right side */
    body, html {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Make all containers fit snugly with safe padding */
    .container, .wide-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    /* Fix the membership perks grid so boxes don't overflow */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .about-card {
        width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
    }

    /* Ensure form and hero titles don't get cut off */
    .hero-content h1, .section-header h2 {
        font-size: 1.7rem !important;
        word-break: break-word !important;
    }
}