/* ============================================================
   Dr. Robert Gettens - WNE Biomedical Engineering
   Professional palette (main page) + Bills palette (hobbies page)
   ============================================================ */

:root {
    /* Bills colors — kept for hobbies.html */
    --bills-blue: #00338D;
    --bills-red: #C60C30;
    --bills-white: #FFFFFF;
    --bills-silver: #A5ACAF;
    --bills-light-blue: #0057B8;
    --bills-dark: #001a4d;

    /* Professional palette — used on main page */
    --pro-dark: #1c2b3a;
    --pro-blue: #2d4a6e;
    --pro-mid: #3d6491;
    --pro-accent: #4a7fa5;

    --bg-light: #f0f4f8;
    --text-dark: #1a1a2e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #ffffff;
    background-image: url('bg.svg');
    background-repeat: repeat;
    background-size: 1400px 900px;
    color: var(--text-dark);
    line-height: 1.7;
}

/* ---- NAVIGATION ---- */
nav {
    background: linear-gradient(135deg, var(--pro-dark) 0%, var(--pro-blue) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0,0,0,0.4);
    border-bottom: 4px solid var(--pro-accent);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    color: var(--bills-white);
    font-size: 1.1rem;
    font-weight: bold;
    padding: 14px 0;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-brand span {
    color: var(--pro-accent);
}

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

.nav-links li a {
    display: block;
    color: var(--bills-white);
    text-decoration: none;
    padding: 16px 18px;
    font-size: 0.88rem;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--pro-accent);
    color: #fff;
}

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--pro-dark) 0%, var(--pro-blue) 50%, var(--pro-mid) 100%);
    color: var(--bills-white);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.015) 30px,
        rgba(255,255,255,0.015) 60px
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-shield {
    width: 90px;
    height: 90px;
    background: var(--pro-accent);
    clip-path: polygon(50% 0%, 100% 15%, 100% 70%, 50% 100%, 0% 70%, 0% 15%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-shield::after {
    content: 'RG';
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero h2 {
    font-size: 1.2rem;
    color: var(--bills-silver);
    font-weight: normal;
    margin-bottom: 6px;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h3 {
    font-size: 1rem;
    color: #7db4ff;
    font-weight: normal;
    font-family: Arial, sans-serif;
    margin-bottom: 25px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    max-width: 650px;
    margin: 0 auto;
}

.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-family: Arial, sans-serif;
}

/* Keep Go Bills! badge red — personality touch */
.badge.red { background: rgba(198,12,48,0.5); border-color: var(--bills-red); }

/* ---- SECTIONS ---- */
section {
    padding: 70px 20px;
}

section:nth-child(even) {
    background: rgba(232, 238, 245, 0.65);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: var(--pro-blue);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--pro-accent);
    margin-top: 6px;
    border-radius: 2px;
}

.section-subtitle {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 40px;
    font-style: italic;
}

/* ---- ABOUT CARD ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.about-photo-placeholder {
    background: linear-gradient(135deg, var(--pro-blue), var(--pro-mid));
    border-radius: 12px;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border: 4px solid var(--pro-accent);
    box-shadow: 0 8px 25px rgba(28,43,58,0.3);
}

.about-photo-placeholder .initials {
    font-size: 3.5rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.about-photo-placeholder p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 8px;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #333;
}

.about-text strong {
    color: var(--pro-blue);
}

/* ---- RESEARCH CARDS ---- */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.research-card {
    background: white;
    border-radius: 10px;
    padding: 28px;
    border-top: 4px solid var(--pro-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(45,74,110,0.15);
}

.research-card.featured {
    border-top-color: var(--pro-accent);
}

.research-card .icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.research-card h3 {
    color: var(--pro-blue);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.research-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- TEACHING SECTION ---- */
.teaching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.teaching-highlight {
    background: linear-gradient(135deg, var(--pro-blue), var(--pro-dark));
    color: white;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 6px 20px rgba(28,43,58,0.3);
}

.teaching-highlight h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #fff;
}

.teaching-highlight p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
    line-height: 1.7;
}

.quote-block {
    background: rgba(255,255,255,0.1);
    border-left: 4px solid var(--pro-accent);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-style: italic;
    font-size: 1.05rem;
}

.course-list {
    list-style: none;
}

.course-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
}

.course-list li::before {
    content: '▶';
    color: var(--pro-accent);
    font-size: 0.7rem;
}

.teaching-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-left: 4px solid var(--pro-accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--pro-blue);
    font-family: Arial, sans-serif;
    min-width: 70px;
    text-align: center;
}

.stat-label {
    color: #444;
    font-size: 0.95rem;
}

/* ---- TIMELINE ---- */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--pro-blue), var(--pro-accent));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--pro-accent);
    border-radius: 50%;
    border: 3px solid var(--bills-white);
    box-shadow: 0 0 0 2px var(--pro-blue);
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--pro-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
    margin-bottom: 4px;
}

.timeline-content h3 {
    color: var(--pro-blue);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.timeline-content p {
    color: #555;
    font-size: 0.95rem;
}

/* ---- FOOTER ---- */
footer {
    background: var(--pro-dark);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 30px 20px;
    border-top: 4px solid var(--pro-accent);
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
}

footer a {
    color: var(--bills-silver);
    text-decoration: none;
}

footer strong {
    color: white;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--pro-accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #3a6a8a;
    transform: translateY(-1px);
}

.btn.btn-outline {
    background: transparent;
    border: 2px solid var(--bills-white);
    color: var(--bills-white);
    margin-left: 10px;
}

.btn.btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

/* ---- HOBBY PAGE ---- */
.hobby-hero {
    background: linear-gradient(135deg, var(--bills-dark) 0%, var(--bills-blue) 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.hobby-hero h1 {
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.hobby-section {
    padding: 60px 20px;
}

.hobby-section:nth-child(even) {
    background: rgba(232, 238, 245, 0.65);
}

.hobby-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.hobby-icon {
    font-size: 2.5rem;
    background: var(--bills-red);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- GAME STYLES ---- */
#gameWrapper {
    max-width: 820px;
    margin: 0 auto;
    background: #0a0a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 3px solid var(--bills-blue);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
}

#gameUI {
    background: #0d0d20;
    padding: 16px;
    border-top: 2px solid var(--bills-blue);
}

.play-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

.play-btn {
    background: var(--bills-blue);
    color: white;
    border: 2px solid var(--bills-light-blue);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.15s;
}

.play-btn:hover {
    background: var(--bills-red);
    border-color: #ff3355;
    transform: translateY(-2px);
}

.play-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.opponent-btn {
    background: transparent;
    border: 2px solid var(--bills-silver);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-align: center;
    min-width: 140px;
}

.opponent-btn:hover {
    border-color: var(--bills-red);
    color: var(--bills-red);
    transform: translateY(-2px);
}

#gameMessage {
    color: #FFD700;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    text-align: center;
    min-height: 24px;
    padding: 4px;
}

#gameStatus {
    color: var(--bills-silver);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    text-align: center;
}

/* ---- ADIRONDACKS SECTION ---- */
.adirondack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.activity-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-top: 4px solid var(--bills-blue);
    transition: transform 0.2s;
}

.activity-card:hover {
    transform: translateY(-4px);
}

.activity-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.activity-card h3 { color: var(--bills-blue); margin-bottom: 8px; }
.activity-card p { color: #555; font-size: 0.9rem; }

/* ---- BOOKS SECTION ---- */
.book-shelf {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.book-spine {
    width: 38px;
    height: 160px;
    border-radius: 3px 0 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.65rem;
    font-weight: bold;
    color: white;
    cursor: default;
    transition: transform 0.2s;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
    padding: 6px 4px;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
}

.book-spine:hover {
    transform: translateY(-6px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .teaching-grid { grid-template-columns: 1fr; }
    .nav-links li a { padding: 12px 10px; font-size: 0.78rem; }
    .nav-brand { font-size: 0.9rem; }
    .section-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 1.6rem; }
}
