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

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header and Navigation */
.header {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-logo {
    margin-right: 32px;
}

.nav-logo .logo {
    height: 80px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.more-link:hover {
    text-decoration: underline;
}

/* Page Headers */
.page-header,
.about-hero,
.contact-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-tagline {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
}

/* Projects Grid */
.projects {
    padding: 2rem 0 4rem;
    width: 100%;
}

.projects .container {
    max-width: none;
    padding: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    column-gap: 40px;
    row-gap: 2rem;
    padding: 0 6vw;
    width: 100%;
    max-width: none;
}

.project-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
    grid-column: span 8;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 3:4 aspect ratio to maintain proportional scaling */
    overflow: hidden;
    position: relative;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    display: none;
}

.project-description {
    color: #1f1f1f;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 500;
}

/* Project Detail Pages */
html {
    scroll-behavior: smooth;
}

.project-hero {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.overview-section {
    background-color: #ffffff;
    padding: 4rem 0;
}

.my-process-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.learning-section {
    background-color: #ffffff;
    padding: 4rem 0;
}

.project-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.project-main-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.project-client {
    font-size: 1.1rem;
    color: #888;
}

.project-banner {
    text-align: center;
    margin-top: 2rem;
}

.project-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.project-content {
    padding: 4rem 0;
}

/* Override for project cards only */
.project-card .project-content {
    padding: 24px 12px 24px 0px;
}

.project-section {
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-section p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-section ul,
.project-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-section li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #555;
}

.project-section blockquote {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.project-section blockquote p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.project-subsection {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-subsection h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Text Highlighting */
.highlight-cyan {
    background-color: rgb(211, 247, 228);
}

.highlight-yellow {
    background-color: yellow;
}

.highlight-pink {
    background-color: lightpink;
}

/* Table of Contents Links */
.toc-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: block;
    color: #2679d8;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 0.25rem 0;
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.3s ease;
}

.toc-link:hover {
    color: #0056b3;
    border-left-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

/* Scroll offset to account for fixed header */
.anchor-section {
    scroll-margin-top: 150px;
}

@media (max-width: 768px) {
    .toc-link {
        font-size: 1rem;
        padding-left: 0.5rem;
    }
}

.project-image-container {
    margin: 2rem 0;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-image-dual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .project-image-dual {
        grid-template-columns: 1fr 1fr;
    }
}

.figma-embed {
    margin: 2rem 0;
    text-align: center;
}

.figma-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .figma-embed iframe {
        height: 400px;
    }
}

.project-navigation {
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

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

.dual-project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-project {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-project:hover {
    color: #007bff;
}

.nav-project.prev {
    flex-direction: row;
}

.nav-project.next {
    flex-direction: row;
    text-align: right;
}

.chevron {
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

.nav-project-name {
    font-weight: 600;
}

@media (max-width: 768px) {
    .dual-project-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-project {
        width: 100%;
        justify-content: center;
    }
}

.back-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

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

/* About Page */
.about-content {
    padding: 2rem 0 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.about-section ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.about-section li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #555;
}

.skills-category {
    margin-bottom: 2rem;
}

.skills-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.skills-category ul {
    padding-left: 1.5rem;
}

.skills-category li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #555;
}

/* Contact Page */
.contact-content {
    padding: 2rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-details h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
}

.contact-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.thank-you-message {
    text-align: center;
    padding: 2rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.thank-you-message h3 {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    max-width: 300px;
    text-align: left;
    margin: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: calc(80px + 1rem);
}

.footer-email,
.footer-phone {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.footer-email a,
.footer-phone a {
    color: #007bff;
    text-decoration: none;
}

.footer-email a:hover,
.footer-phone a:hover {
    text-decoration: underline;
}

/* Desktop Design */
@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(24, 1fr);
        padding: 0 4vw;
    }
    
    .project-card {
        grid-column: span 12;
    }
}

/* Mobile Design */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #eee;
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .project-main-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(8, 1fr);
        column-gap: 11px;
        row-gap: 1.5rem;
        padding: 0 6vw;
    }
    
    .project-card {
        grid-column: span 8;
        max-width: 100%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .project-main-title {
        font-size: 1.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .projects {
        padding: 1rem 0 2rem;
    }
    
    .project-content {
        padding: 2rem 0;
    }
}

