/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
    font-size: 14px;
}

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

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

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

.nav a:hover {
    color: #3498db;
}

/* Hero Section (used on main portfolio page) */
.hero {
    margin-top: 80px;
    padding: 3rem 0;
    background-color: #ffffff;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.about-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6c7d;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.headshot {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* Contact Section */
.contact-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-grid .contact-item {
    min-width: 150px;
    flex: 0 1 auto;
}

.contact-grid .contact-item.location {
    min-width: auto;
    flex: 0 1 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.contact-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.location {
    cursor: default;
}

.location:hover {
    transform: none;
    border-color: #e9ecef;
    box-shadow: none;
}

/* Skills Section */
.skills-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.skills-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
}

/* Tech Logos */
.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.tech-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
}

.tech-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

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

.skill-category {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: #3498db;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Experience Section */
.experience-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.experience-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.experience-item:hover::before {
    left: 100%;
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.experience-period {
    display: inline-block;
    background-color: #3498db;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 1rem;
}

.experience-location {
    color: #5a6c7d;
    font-size: 0.9rem;
    font-style: italic;
}

.experience-details {
    list-style: none;
    padding-left: 0;
}

.experience-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #5a6c7d;
    line-height: 1.6;
}

.experience-details li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.projects-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    border-color: #3498db;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.project-content p {
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: #3498db;
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-summary-btn {
    background-color: #2c3e50;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.project-summary-btn:hover {
    background-color: #34495e;
}

/* Placeholder Project Cards */
.project-card.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: #f8f9fa;
    border: 2px dashed #bdc3c7;
}

.project-card.placeholder:hover {
    border-color: #95a5a6;
    transform: none;
    box-shadow: none;
}

.project-placeholder {
    text-align: center;
    color: #7f8c8d;
}

.plus-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.project-placeholder p {
    font-size: 1rem;
    font-weight: 500;
}

/* Education Section */
.education-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.education-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.education-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.education-item:hover {
    border-color: #27ae60;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
}

.education-header {
    margin-bottom: 1rem;
}

.education-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.education-period {
    display: inline-block;
    background-color: #27ae60;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.education-details {
    color: #5a6c7d;
}

.institution {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.grade {
    font-weight: 500;
    color: #27ae60;
}

/* Certifications */
.certifications {
    max-width: 800px;
    margin: 0 auto;
}

.certifications h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.cert-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.cert-item p {
    color: #5a6c7d;
    font-size: 0.9rem;
}

/* Contact Form Section */
.contact-form-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.contact-form-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-btn {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    font-size: 0.9rem;
}

/* Hover/animation helpers */
.skill-tag {
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
}

.tech-logo {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-item {
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-item:hover::before {
    left: 100%;
}

/* Location contact item styling */
.contact-item.location {
    justify-content: center;
    text-align: center;
}

/* Contact items min-height */
.contact-item {
    min-height: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .headshot {
        width: 200px;
        height: 200px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

    .education-grid {
        grid-template-columns: 1fr;
    }

    .tech-logos {
        gap: 1rem;
    }

    .tech-logo {
        width: 40px;
        height: 40px;
    }

    .nav {
        gap: 1rem;
    }

    .nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .headshot {
        width: 180px;
        height: 180px;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 15px;
    }

    .hero {
        margin-top: 120px;
    }

    .tech-logos {
        gap: 0.8rem;
    }

    .tech-logo {
        width: 35px;
        height: 35px;
    }
}