/*
 * Styles for Shane John portfolio website
 *
 * The aesthetic takes inspiration from Squarespace’s Reflect template with
 * bold typography, vibrant gradients and generous white space. The design
 * prioritizes readability on both desktop and mobile, using a fluid layout
 * and responsive breakpoints.
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #0d0d0d;
    overflow-x: hidden;
}

a {
    color: #ffd166;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ffffff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    z-index: 1000;
}
.navbar .logo a {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-links li a {
    font-weight: 400;
    color: #f5f5f5;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.nav-links li a:hover,
.nav-links li a:focus {
    color: #ffd166;
}

/* Hamburger for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('bg.jpeg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.6);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
    padding: 0 1rem;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.hero .tagline {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: #e0e0e0;
}
.button {
    display: inline-block;
    background-color: #ffd166;
    color: #0d0d0d;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.button:hover {
    background-color: #fab83f;
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.alt-section {
    background-color: #171717;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    color: #ffd166;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    width: 2px;
    height: 100%;
    background-color: #444;
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-marker {
    position: absolute;
    left: -0.25rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    background-color: #ffd166;
    border-radius: 50%;
}
.timeline-content {
    background-color: #1e1e1e;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: #fff;
}
.timeline-date {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}
.timeline-location {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #ffd166;
}
.skill-category ul {
    list-style: none;
    padding-left: 1rem;
}
.skill-category ul li {
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 0.6rem;
}
.skill-category ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #fab83f;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.card {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: #ffd166;
}
.card p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Coursework */
.course-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.course-column h3 {
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
    color: #ffd166;
}
.course-column ul {
    list-style: none;
    padding-left: 1rem;
}
.course-column li {
    position: relative;
    margin-bottom: 0.4rem;
    padding-left: 0.6rem;
    color: #ddd;
}
.course-column li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: #fab83f;
    font-size: 0.8rem;
    top: 0;
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.contact-info p {
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 1rem;
}
.recommendation {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-left: 4px solid #ffd166;
    font-style: italic;
    color: #ddd;
    border-radius: 4px;
}
.recommendation cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.8rem;
    color: #999;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #171717;
    color: #777;
    font-size: 0.85rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 200px;
        flex-direction: column;
        background-color: rgba(13, 13, 13, 0.95);
        padding-top: 4rem;
        transition: right 0.3s ease;
    }
    .nav-links li {
        margin: 1rem 0;
    }
    .nav-links.open {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
}

/* Section reveal animation */
.section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}
