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

:root {
    --background: #ffffff;
    --foreground: #252525;
    --muted-foreground: #717182;
    --border: rgba(0, 0, 0, 0.1);
    --primary: #030213;
    --primary-foreground: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    font-weight: 400;
}

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

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--muted-foreground);
}

/* Main */
.main {
    flex: 1;
}

.main > .container {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Hero Section */
.hero-title {
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.5;
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 42rem;
    margin-bottom: 4rem;
}

.description-line {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.description-line:last-child {
    margin-bottom: 0;
}

/* Work Section */
.work-section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.personal-work-title {
    margin-top: 5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

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

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    cursor: pointer;
}

.image-container {
    aspect-ratio: 4 / 3;
    background-color: #ececf0;
    margin-bottom: 1rem;
    overflow: hidden;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.logo-image {
    object-fit: contain;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-description {
    color: var(--foreground);
    font-size: 1.5rem;
    font-weight: 500;
}

/* About Section */
.about-section {
    margin-bottom: 2rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
    }
}

.about-text {
    flex: 1;
    max-width: 42rem;
}

.about-text p {
    color: var(--muted-foreground);
}

.about-image {
    flex-shrink: 0;
    width: 16rem;
    height: 16rem;
    overflow: hidden;
    border: 4px solid black;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Contact Section */
.contact-section {
    max-width: 48rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

.contact-link {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--foreground);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    z-index: 40;
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    background-color: rgba(3, 2, 19, 0.9);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 50;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    color: #d1d5db;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #d1d5db;
}

.lightbox-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 10;
}

.zoom-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.zoom-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.zoom-level {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    padding: 2rem;
}

.lightbox-image-container.white-bg {
    background-color: white;
}

.lightbox-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.2s;
}

.lightbox-info {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.lightbox-description {
    font-size: 0.875rem;
}

.lightbox-counter {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}
