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

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background: #764ba2;
    min-height: 100vh;
}

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

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #764ba2;
    text-decoration: none;
}

/* Navigation Menu Styles */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #764ba2;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-close {
    display: none;
}

/* Navigation menu styles for all screens */
.nav-links {
    position: absolute;
    top: 100%;
    right: -200px;
    width: 150px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0.8rem 0;
    transition: right 0.3s ease;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0rem;
    font-size: 0;
}

.nav-links.active {
    right: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 0.05rem 0 0 .75rem;
    font-size: 1.1rem;
    text-align: left;
    line-height: 1;
}

/* Global link hover styling */
a:hover {
    color: #764ba2 !important;
}

/* Hero Section Styles */
.hero {
    padding: 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-image, .hero-banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.hero-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    z-index: 10;
}

.hero h1 {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    text-align: left;
    color: white;
}


/* Section Styles */
.section {
    background: white;
    margin: 0.5rem auto 2rem auto;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* About page specific styles */
.headshot-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    float: right;
    margin: 0 0 2rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    object-position: center top;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.skill-category {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.skill-category h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 0.3rem 0;
    color: #555;
    position: relative;
    padding-left: 1rem;
}

.skill-category li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Common Category Filter Styles */
.category-filter-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.category-filter-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-filter-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.category-filter-links a:hover,
.category-filter-links a.active {
    color: #764ba2;
    background: rgba(118, 75, 162, 0.1);
}

.category-filter-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #764ba2;
    border-radius: 1px;
}

/* Common Category Section Styles */
.category-section {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #764ba2;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-header:hover {
    background: #667eea;
}

.category-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.collapse-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.collapse-icon.collapsed {
    transform: rotate(-90deg);
}

/* Common Item Container Styles */
.items-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

/* Two column layout for larger screens */
.items-container.two-column {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .items-container.two-column {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.items-container.collapsed {
    display: none;
}

/* Common Item Styles */
.content-item {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.content-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-item h3, .content-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.content-item h4 {
    font-size: 1.2rem;
}

.content-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.content-item a:hover {
    color: #764ba2;
}

.content-meta {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.speaking-meta {
    font-size: 1rem;
}

/* Common Link Styles */
.content-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.content-links a {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.content-links a:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* Quick Navigation Styles */
.quick-nav {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.quick-nav h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quick-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.quick-nav-links a {
    background: #764ba2;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quick-nav-links a:hover {
    background: #667eea;
    transform: translateY(-2px);
}

/* Grid Layouts - responsive adjustments */
@media (min-width: 1600px) {
    .items-container.two-column {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Footer Styles */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #764ba2;
}

.contact-info img {
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-text-overlay {
        padding: 1.5rem 2rem;
    }

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

    .banner-image, .hero-banner {
        height: 300px;
    }

    .section {
        margin: 1rem;
        padding: 2rem;
    }

    .headshot-large {
        float: none;
        display: block;
        margin: 0 auto 2rem auto;
        width: 150px;
        height: 150px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-filter-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .category-filter-nav {
        padding: 0.5rem 0;
    }

    .items-container {
        grid-template-columns: 1fr !important;
    }

    .content-links {
        flex-direction: column;
    }

    .quick-nav-links {
        flex-direction: column;
        align-items: center;
    }

    /* About page current projects mobile layout */
    .section div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
    }

    .section img[src="runwithjoy.jpg"] {
        width: 150px !important;
        height: 150px !important;
        margin-bottom: 1rem !important;
    }

}

/* Contact Page Styles */
.contact-buttons {
    display: grid;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.contact-buttons .contact-button {
    min-width: 300px;
    width: 100%;
}

.contact-button {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    position: absolute;
    left: 1rem;
    object-fit: contain;
    pointer-events: none;
}

/* Special handling for LinkedIn logo */
.contact-button img[src="InBug-White.png"] {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    padding: 1px;
}

.contact-button .contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}

.contact-button .contact-info h3 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: block;
    font-size: 1.2rem;
    color: white;
    text-align: center;
    transform: translateY(8px);
    pointer-events: none;
}


@media (max-width: 768px) {
    .contact-buttons {
        max-width: 100%;
        margin: 0 1rem;
    }

    .contact-buttons .contact-button {
        min-width: auto;
        width: 100%;
    }

    .contact-button {
        padding: 0.8rem 1rem;
        min-height: 50px;
        touch-action: manipulation;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        left: 1rem;
        pointer-events: none;
    }

    .contact-button .contact-info h3 {
        font-size: 1rem;
        pointer-events: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}