/* CSS Variables - Matching covikinga.com */
:root {
    --color-bg: #E8DED0;
    --color-text: #2C2620;
    --color-text-muted: #6A6058;
    --color-accent: #C4582A;
    --color-warm-2: #D4A574;
    --color-warm-3: #A67C52;
    --color-border: #C9BFB1;
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.logo {
    display: block;
}

.logo-svg {
    height: 1.25rem;
    width: auto;
    display: block;
}

.logo-svg path {
    fill: var(--color-text);
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    padding: 8rem 2rem 6rem;
    border-bottom: 1px solid var(--color-border);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Projects Section */
.projects {
    padding: 5rem 2rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Project Card */
.project-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.project-card:hover .project-type,
.project-card:hover .project-description {
    color: var(--color-border);
}

.project-thumbnail {
    aspect-ratio: 16 / 10;
    background: var(--color-warm-3);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.03);
}

.project-type {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.project-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.project-description {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.project-arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

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

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-copyright {
    font-size: 0.875rem;
    font-weight: 400;
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

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

/* Social Icon */
.social-icon {
    width: 27px;
    height: 27px;
    display: block;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--color-text);
    transition: fill 0.2s ease;
}

.social-icon:hover svg {
    fill: var(--color-accent);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1.5rem;
    }

    .nav {
        gap: 1.5rem;
    }

    .nav a {
        font-size: 0.75rem;
    }

    .hero {
        padding: 5rem 1.5rem 4rem;
    }

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

    .hero-description {
        font-size: 0.9375rem;
    }

    .projects {
        padding: 3rem 1.5rem;
    }

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

    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem;
    }

    .logo-svg {
        height: 1rem;
    }

    .hero {
        padding: 4rem 1rem 3rem;
    }

    .projects {
        padding: 2.5rem 1rem;
    }

    .project-card {
        padding: 1.25rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }
}
