/* Michael Czeiszperger Portfolio - Mary Blair-inspired Design */
/* Colors inspired by Theme Park Hall of Shame mid-century modern aesthetics */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Space+Grotesk:wght@400;600;700;800&display=swap');

:root {
    --coral: #FF6B5A;
    --turquoise: #00B8C5;
    --gold: #FFB627;
    --soft-pink: #FF9BAA;
    --deep-teal: #007B8A;
    --warm-white: #FFF8F0;
    --charcoal: #2A2A2A;
    --light-gray: #F5F5F5;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--warm-white);
    color: var(--charcoal);
    line-height: 1.6;
}

/* ============================================
   GEOMETRIC TOP BAR
   ============================================ */
.geometric-bar {
    height: 12px;
    background: linear-gradient(
        to right,
        var(--coral) 0%,
        var(--coral) 25%,
        var(--turquoise) 25%,
        var(--turquoise) 50%,
        var(--gold) 50%,
        var(--gold) 75%,
        var(--soft-pink) 75%,
        var(--soft-pink) 100%
    );
}

/* ============================================
   HEADER SECTION
   ============================================ */
.header-section {
    background: var(--warm-white);
    padding: 60px 20px 50px;
    text-align: center;
    position: relative;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 30px;
    right: 10%;
    width: 120px;
    height: 120px;
    background: var(--coral);
    opacity: 0.12;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.header-section::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 8%;
    width: 80px;
    height: 80px;
    background: var(--turquoise);
    opacity: 0.12;
    border-radius: 50%;
}

.header-section h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 0.95;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.title-line-1 {
    color: var(--coral);
    display: block;
}

.title-line-2 {
    color: var(--deep-teal);
    display: block;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.value-prop {
    font-size: 1rem;
    font-weight: 400;
    color: var(--charcoal);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--deep-teal);
    text-decoration: none;
    padding: 10px 20px;
    border: 3px solid var(--charcoal);
    background: white;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--charcoal);
    color: white;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.projects-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section-marker {
    width: 8px;
    height: 50px;
    flex-shrink: 0;
    background: var(--coral);
}

.section-marker.turquoise {
    background: var(--turquoise);
}

.section-marker.gold {
    background: var(--gold);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-context-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.section-context {
    font-size: 1rem;
    color: var(--charcoal);
    opacity: 0.8;
    margin-bottom: 0;
    padding-left: 28px;
    border-left: 3px solid var(--gold);
    line-height: 1.6;
    flex: 1 1 50%;
    min-width: 300px;
}

.button-column {
    flex: 1 1 calc(50% - 30px);
    display: flex;
    justify-content: center;
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.project-card {
    background: white;
    border: 3px solid var(--charcoal);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.project-card.professional::before {
    background: var(--coral);
}

.project-card.personal::before {
    background: var(--turquoise);
}

.project-card.featured::before {
    background: linear-gradient(to right, var(--turquoise), var(--gold));
}

.project-card:hover {
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    transform: translate(-3px, -3px);
}

.project-header {
    margin-bottom: 15px;
}

.project-tag {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    margin-bottom: 10px;
    background: var(--light-gray);
    color: var(--charcoal);
}

.project-tag.featured {
    background: var(--gold);
    color: var(--charcoal);
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-teal);
    line-height: 1.2;
}

.project-description {
    font-size: 0.95rem;
    color: var(--charcoal);
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-highlights {
    list-style: none;
    margin-bottom: 25px;
}

.project-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--charcoal);
}

.project-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--gold);
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-link.primary {
    background: var(--deep-teal);
    color: white;
    border: none;
}

.project-link.primary:hover {
    background: var(--coral);
}

.project-link.secondary {
    background: transparent;
    color: var(--deep-teal);
    border: 2px solid var(--deep-teal);
}

.project-link.secondary:hover {
    background: var(--deep-teal);
    color: white;
}

.project-link .arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.project-link:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.video-container {
    background: linear-gradient(135deg, var(--charcoal) 0%, #1a3a3f 100%);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--charcoal);
}

.video-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--coral);
    opacity: 0.1;
    border-radius: 50%;
}

.video-container::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 100px;
    height: 100px;
    background: var(--turquoise);
    opacity: 0.1;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.video-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.video-header {
    text-align: center;
    margin-bottom: 30px;
}

.video-tag {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    background: var(--coral);
    color: white;
    margin-bottom: 15px;
}

.video-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--warm-white);
    margin-bottom: 10px;
}

.video-subtitle {
    font-size: 1rem;
    color: var(--warm-white);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.video-tech-stack {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tech-pill {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--turquoise);
    border: 1px solid var(--turquoise);
    border-radius: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 4px solid var(--warm-white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: 40px;
    padding: 40px 20px;
    background: var(--charcoal);
    color: var(--warm-white);
    text-align: center;
}

.footer-text {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   CLIENT LIST BUTTON
   ============================================ */
.client-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--deep-teal);
    background: white;
    border: 3px solid var(--deep-teal);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.client-list-btn:hover {
    background: var(--deep-teal);
    color: white;
}

.client-list-btn .arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.client-list-btn:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.95);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--warm-white);
    border: 4px solid var(--charcoal);
    max-width: 900px;
    width: 100%;
    padding: 40px;
    position: relative;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--charcoal);
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--coral);
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-teal);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 30px;
}

.client-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 40px;
}

@media (max-width: 768px) {
    .client-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .client-categories {
        grid-template-columns: 1fr;
    }
}

.client-category h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--coral);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

.client-category ul {
    list-style: none;
}

.client-category li {
    font-size: 0.9rem;
    color: var(--charcoal);
    padding: 4px 0;
    padding-left: 12px;
    position: relative;
}

.client-category li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--turquoise);
}

/* ============================================
   TPHOS MODAL
   ============================================ */
.tphos-modal {
    max-width: 1100px;
}

.tphos-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .tphos-content {
        grid-template-columns: 1fr;
    }
}

.tphos-description p {
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tphos-description h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--coral);
    margin: 25px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

.tphos-description h3:first-of-type {
    margin-top: 0;
}

.tphos-description ul {
    list-style: none;
    margin-bottom: 15px;
}

.tphos-description li {
    font-size: 0.9rem;
    color: var(--charcoal);
    padding: 6px 0 6px 18px;
    position: relative;
    line-height: 1.5;
}

.tphos-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--turquoise);
}

.tphos-screenshots h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--coral);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

.screenshot-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.screenshot-item {
    border: 2px solid var(--charcoal);
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    transform: translate(-2px, -2px);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.screenshot-caption {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--charcoal);
    padding: 10px 12px;
    background: var(--light-gray);
    border-top: 2px solid var(--charcoal);
}

/* Button styling for project cards */
button.project-link {
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .project-card {
        padding: 25px;
    }

    .project-title {
        font-size: 1.3rem;
    }

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

    .contact-link {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .video-section {
        padding: 30px 15px;
    }

    .video-container {
        padding: 25px;
    }

    .video-title {
        font-size: 1.4rem;
    }

    .video-wrapper {
        border-width: 3px;
    }

    .tech-pill {
        font-size: 0.6rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .header-section h1 {
        font-size: 2.5rem;
    }

    .header-section {
        padding: 40px 15px 35px;
    }

    .content-wrapper {
        padding: 30px 15px;
    }

    .section-header {
        gap: 15px;
    }

    .section-marker {
        height: 40px;
        width: 6px;
    }

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

    .project-link {
        width: 100%;
        justify-content: center;
    }
}
