
/* =====================================
   William Puls - Professional Portfolio
   ===================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: #fafafa;
    color: #1c1c1c;
    font-family: 'Manrope', sans-serif;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.site-header {
    background: rgba(250, 250, 250, 0.95);
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #555;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #4169e1;
}

/* Private Login Placeholder */
.private-login {
    border: 1px solid #d7d7d7;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

/* Homepage Hero */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 30px 120px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 65px;
    min-height: 660px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #4169e1;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2.5px;
    margin-bottom: 20px;
}

.hero h2 {
    color: #46515e;
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero-description {
    color: #667085;
    font-size: 16px;
    max-width: 550px;
    margin-bottom: 32px;
}

/* Homepage Buttons */
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease,
                background 0.2s ease,
                box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: #1c1c1c;
    color: white;
}

.btn-primary:hover {
    background: #4169e1;
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.18);
}

.btn-secondary {
    border: 1px solid #d6d6d6;
    background: white;
}

/* Professional Headshot */
.hero-photo {
    width: 100%;
    max-width: 380px;
    justify-self: center;
}

.profile-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.12);
}

/* Main Content Sections */
.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 30px;
    border-top: 1px solid #e8e8e8;
}

.content-section h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.content-section > p {
    max-width: 780px;
    color: #626b77;
    font-size: 16px;
    margin-bottom: 18px;
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.project-card {
    background: white;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    padding: 32px;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #b5c6f5;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.project-card p {
    font-size: 14px;
    color: #626b77;
}

/* Contact Form */
.contact-form {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.contact-form label {
    font-size: 14px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font: inherit;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #4169e1;
    outline-offset: 2px;
}

.contact-form button {
    background: #1c1c1c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font: inherit;
    font-weight: 700;
    align-self: flex-start;
}

.contact-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Footer */
.site-footer {
    border-top: 1px solid #e8e8e8;
    text-align: center;
    padding: 35px 20px;
    color: #78808b;
    font-size: 13px;
}

/* Tablets and Phones */
@media (max-width: 850px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 65px 24px;
        gap: 35px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-photo {
        max-width: 300px;
    }

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

@media (max-width: 480px) {
    .navbar {
        padding: 18px;
    }

    .logo {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .content-section {
        padding: 65px 22px;
    }

    .content-section h2 {
        font-size: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .project-card {
        transition: none;
    }
}


/* Professional Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #46515e;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #4169e1;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 850px) {
    .social-links {
        justify-content: center;
    }
}


/* =====================================
   Resume Section
   ===================================== */

.resume-card {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    padding: 30px;
    margin-top: 30px;
    max-width: 750px;
}

.resume-info {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.resume-icon {
    background: #eef2ff;
    color: #4169e1;
    padding: 17px 13px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.resume-info h3 {
    font-size: 18px;
    font-weight: 700;
}

.resume-info p {
    font-size: 13px;
    color: #667085;
}

.resume-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .resume-card {
        padding: 22px;
    }

    .resume-buttons {
        flex-direction: column;
    }

    .resume-buttons .btn {
        text-align: center;
    }
}


/* =====================================
   Featured Project Showcase
   ===================================== */

.featured-project {
    padding: 0;
    overflow: hidden;
}

.project-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid #e7e7e7;
}

.project-content {
    padding: 28px;
}

.project-category {
    color: #4169e1 !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-technologies span {
    background: #f0f2f5;
    color: #46515e;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 12px !important;
    color: #667085 !important;
}

.project-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4169e1;
    flex-shrink: 0;
}


/* =====================================
   Individual Project Details Page
   ===================================== */

.project-details {
    max-width: 1000px;
    margin: 0 auto;
    padding: 65px 30px 100px;
}

.project-back {
    display: inline-block;
    color: #4169e1;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 55px;
}

.project-back:hover {
    text-decoration: underline;
}

.project-intro {
    margin-bottom: 80px;
}

.project-intro h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.project-lead {
    max-width: 790px;
    color: #626b77;
    font-size: 18px;
    line-height: 1.8;
}

.project-intro .project-technologies {
    margin-top: 28px;
}

.project-detail-section {
    padding: 48px 0;
    border-top: 1px solid #e7e7e7;
}

.project-detail-section h2 {
    font-size: 27px;
    letter-spacing: -0.8px;
    margin-bottom: 18px;
}

.project-detail-section p {
    color: #626b77;
    font-size: 16px;
    line-height: 1.85;
    max-width: 850px;
    margin-bottom: 18px;
}

.project-detail-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin-top: 30px;
    border: 1px solid #e7e7e7;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

@media (max-width: 600px) {
    .project-details {
        padding: 40px 22px 70px;
    }

    .project-intro {
        margin-bottom: 50px;
    }

    .project-intro h1 {
        letter-spacing: -1px;
    }

    .project-detail-section {
        padding: 35px 0;
    }
}

.project-view-link {
    display: inline-block;
    margin-top: 20px;
    color: #4169e1;
    font-size: 14px;
    font-weight: 800;
}

.project-view-link:hover {
    text-decoration: underline;
}

/* Projects that are still being developed */
.project-coming-soon {
    margin-top: 20px;
    color: #4169e1 !important;
    font-size: 13px !important;
    font-weight: 700;
}


/* =====================================
   About Me Section
   ===================================== */

.section-label {
    color: #4169e1 !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin-bottom: 10px !important;
}

.about-summary {
    max-width: 850px;
    color: #626b77;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 38px !important;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.about-card {
    background: #ffffff;
    padding: 28px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
}

.about-card h3 {
    color: #4169e1;
    font-size: 13px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-card h4 {
    color: #1c1c1c;
    font-size: 17px;
    margin-bottom: 10px;
}

.about-card p {
    color: #626b77;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Technical Skills */

.skills-section {
    margin-top: 45px;
}

.skills-section h3 {
    font-size: 23px;
    margin-bottom: 20px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list span {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    color: #46515e;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 650px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 23px;
    }
}

/* Contact form validation feedback */
#contact-feedback {
    font-size: 14px;
    color: #4169e1;
    min-height: 24px;
}

.contact-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}