/* Josh Furlong Personal Website - Styles */
/* Modern Color Scheme: Vibrant Orange, Navy, Teal & Purple accents */

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

:root {
    /* Primary Brand Colors */
    --primary-orange: #FF8C42;
    --secondary-teal: #2EC4B6;
    --accent-purple: #6366F1;

    /* Dark Colors */
    --dark-navy: #1A1F2E;
    --charcoal: #2C3E50;

    /* Light Colors */
    --warm-cream: #FFF9F0;
    --light-grey: #F5F7FA;
    --pure-white: #FFFFFF;

    /* Text */
    --text-dark: #2C3E50;
    --text-light: #6B7280;

    /* Borders & Shadows */
    --border-color: #E2E8F0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Legacy compatibility */
    --dark-grey: var(--dark-navy);
    --white: var(--pure-white);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
#navbar {
    background-color: var(--dark-grey);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-orange);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FF7629 100%);
    color: var(--pure-white);
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-teal) 0%, #26B5A7 100%);
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(46, 196, 182, 0.4);
}

/* Home Page */
.hero {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(255, 140, 66, 0.05) 100%);
    border-radius: 16px;
    margin: 2rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--dark-navy);
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-section,
.blog-section,
.contact-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-navy);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--secondary-teal) 100%);
    border-radius: 2px;
}

/* About Section */
.about-content {
    background-color: var(--pure-white);
    padding: 2.5rem;
    border-radius: 12px;
    line-height: 1.8;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-orange);
}

/* Blog Widget */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-post-card {
    background-color: var(--pure-white);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--primary-orange);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--light-grey);
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-content h3 {
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.blog-post-content .date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--pure-white);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--light-grey);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--secondary-teal) 100%);
    color: var(--pure-white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background-color: var(--pure-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--light-grey);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background-color: var(--pure-white);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Blog Post Detail */
.blog-post-detail {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.blog-post-detail .post-header {
    margin-bottom: 2rem;
}

.blog-post-detail h1 {
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.blog-post-detail .post-meta {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.blog-post-detail .post-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-post-detail .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* CV/About Page */
.cv-section {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-orange);
}

.cv-section h2 {
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination button {
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--dark-grey);
    cursor: pointer;
    border-radius: 5px;
}

.pagination button:hover:not(:disabled) {
    background-color: var(--primary-orange);
    color: var(--white);
}

.pagination button.active {
    background-color: var(--primary-orange);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-grey);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
        padding: 0.75rem 0;
    }

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

    .blog-posts,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Honeypot field (hidden from users, visible to bots) */
.honeypot {
    position: absolute;
    left: -9999px;
}
