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

:root {
    --text-primary: #2a2a2a;
    --text-secondary: #555555;
    --text-light: #888888;
    --bg-primary: #f9f7f4;
    --bg-secondary: #f0ede8;
    --accent: #7a9b8e;
    --accent-hover: #6a8b7e;
    --border: #e8e4df;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    font-size: 16px;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    object-fit: cover;
    object-position: 50% 5%;
    display: block;
    max-width: 100%;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}

.about-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

#pfp {
    width: 320px;
    height: 320px;
    border-radius: 8px;
    object-fit: cover;
    object-position: 50% 15%;
    display: block;
    max-width: 100%;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}

/* Projects Section */
.projects-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}

.projects-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

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

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

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

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.1);
}

.project-card-content {
    position: relative;
    z-index: 1;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

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

.tag {
    background: white;
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.arrow {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.project-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Skills Section */
.skills-section {
    max-wn-bottom: 3rem;
    letter-spacing: -0.5px;
}

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

.skill-group {
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.skill-group h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.skill-group p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: idth: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}

.skills-section h2 {
    font-size: 2rem;
    margi1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.bottombar {
    max-width: 1000px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.bottombar a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.bottombar a:hover {
    color: var(--accent);
}

footer p {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        text-align: center;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #pfp {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

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

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

    .hero {
        padding: 4rem 2rem 2rem;
    }

    .projects-section,
    .about-section,
    .skills-section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .description {
        font-size: 0.95rem;
    }
}

/* Contact section avatar */
/* Contact square (site logo/avatar) */
.contact-square {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(42,42,42,0.06);
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .contact-square {
        width: 140px;
        height: 140px;
    }
}

/* 'Coming soon' badge for unavailable actions */
.badge--soon {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-left: 0.5rem;
}

@media (max-width: 480px) {
    .badge--soon {
        display: inline-block;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* overlay badge on button */
.btn-badge {
    position: relative;
    display: inline-block;
}

.btn-badge .badge--soon {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 0.25rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    box-shadow: 0 6px 14px rgba(42,42,42,0.06);
    margin-left: 0;
}

@media (max-width: 480px) {
    .btn-badge .badge--soon {
        top: -6px;
        right: -6px;
        font-size: 0.6rem;
        padding: 0.2rem 0.35rem;
    }
}
