﻿/* Import Inter font - same as Anthony Fu's site (the website I took inspiration from) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Reset for consistent cross-browser rendering */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background: #fafaf9;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive typography with fluid scaling */
h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

p {
    margin-bottom: 1rem;
    color: #4a4a4a;
    line-height: 1.7;
}

/* Link styling with hover effects */
a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-highlight {
    color: #d97706;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.link-highlight:hover {
    border-bottom-color: #d97706;
}

/* Fixed navigation with backdrop blur for modern glass effect */
.nav-minimal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 249, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 65rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-home {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.nav-home:hover {
    color: #d97706;
}

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

.nav-links a {
    color: #6b6b6b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero-minimal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
}

.hero-content {
    max-width: 65rem;
    margin: 0 auto;
    width: 100%;
}

.intro {
    font-size: 1.3rem;
    color: #6b6b6b;
    margin-bottom: 2rem;
}

.current-work {
    margin-bottom: 2rem;
}

.current-work p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.tech-focus {
    margin-bottom: 2rem;
}

.tech-focus p {
    margin-bottom: 0.5rem;
}

/* Technology highlight tags for skill visibility */
.tech-highlight {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.passion-statement,
.personal-touch,
.interests {
    margin-bottom: 2rem;
}

.social-section {
    margin-top: 3rem;
}

.social-section p:first-child {
    margin-bottom: 0.5rem;
    color: #6b6b6b;
}

.social-links-minimal {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    color: #d97706;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.social-link:hover {
    border-bottom-color: #d97706;
}

/* Sections */
.section-minimal {
    max-width: 65rem;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-intro {
    color: #6b6b6b;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Project showcase layout */
.projects-container {
    display: grid;
    gap: 2.5rem;
}

.project-card-minimal {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.project-card-minimal:last-child {
    border-bottom: none;
}

.project-link {
    color: #1a1a1a;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.project-link:hover {
    border-bottom-color: #d97706;
}

.project-card-minimal p {
    margin: 1rem 0 1.5rem;
    color: #6b6b6b;
    line-height: 1.6;
}

.tech-stack-minimal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag-minimal {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Accessibility and progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Keyboard navigation focus styles */
a:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* Page load animation for enhanced user experience */
.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation active state for current page */
.nav-active {
    color: #d97706 !important;
    font-weight: 600;
}

/* Page layout for non-homepage pages */
.page-content {
    max-width: 65rem;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.1rem;
    color: #6b6b6b;
    max-width: 600px;
    margin: 0 auto;
}

/* Project cards */
.project-card-detailed {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.project-card-detailed:last-child {
    border-bottom: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-header h2 {
    margin: 0;
    flex: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.project-external-link {
    color: #d97706;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.project-external-link:hover {
    border-bottom-color: #d97706;
}

.project-coming-soon {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-stack-detailed {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag-detailed {
    background: #f3f4f6;
    color: #374151;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-status {
    margin-top: 1rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.status-badge.planning {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

.status-badge.experimental {
    background: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
}

/* Media page styling*/
.media-intro {
    margin-bottom: 3rem;
    line-height: 1.7;
}

.media-intro p {
    color: #6b6b6b;
    margin-bottom: 1rem;
}

.media-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-link {
    color: #6b6b6b;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.filter-link:hover,
.filter-link.active {
    color: #d97706;
    background: rgba(217, 119, 6, 0.1);
}

.media-list {
    display: grid;
    gap: 0;
    margin-bottom: 3rem;
}

.media-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.media-item:hover {
    background-color: rgba(217, 119, 6, 0.05);
    border-bottom-color: #d97706;
    transform: translateX(4px);
}

.media-item:last-of-type {
    border-bottom: none;
}

.media-title {
    font-weight: 500;
    color: #1a1a1a;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.media-item:hover .media-title {
    color: #d97706;
}

.media-dots {
    flex: 1;
    height: 1px;
    background-image: repeating-linear-gradient(
            to right,
            #d1d5db 0,
            #d1d5db 4px,
            transparent 4px,
            transparent 8px
    );
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.media-item:hover .media-dots {
    background-image: repeating-linear-gradient(
            to right,
            #d97706 0,
            #d97706 4px,
            transparent 4px,
            transparent 8px
    );
    opacity: 0.6;
}

.media-creator {
    color: #6b6b6b;
    font-weight: 400;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.media-item:hover .media-creator {
    color: #92400e;
}

.media-placeholder-text {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.media-placeholder-text p {
    color: #9ca3af;
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Mobile responsiveness for media page */
@media (max-width: 768px) {
    .media-filters {
        gap: 1rem;
    }

    .media-item {
        padding: 1rem 0;
    }

    .media-item:hover {
        transform: none;
        background-color: rgba(217, 119, 6, 0.03);
    }

    .media-dots {
        margin: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .media-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .media-dots {
        display: none;
    }

    .media-creator {
        font-size: 0.9rem;
        opacity: 0.8;
    }
}