@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Crimson+Pro:wght@300;400&display=swap');

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

:root {
    --bg: #FAFAFA;
    --text: #1a1a1a;
    --accent: #000;
    --border: #e0e0e0;
    --hover: #f0f0f0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.6;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* Hero Section */
.hero {
    margin-top: 100px;
    padding: 6rem 4rem 4rem;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero p {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Portfolio Grid */
.portfolio-grid {
    padding: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 2px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
    height: 500px;
}

.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:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.project-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
    overflow: hidden;
}

/* Placeholder patterns */
.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0,0,0,0.03) 49%, rgba(0,0,0,0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0,0,0,0.03) 49%, rgba(0,0,0,0.03) 51%, transparent 52%);
    background-size: 40px 40px;
}

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

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

.project-info {
    padding: 2rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-info {
    opacity: 1;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-category {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

/* About Section */
.about-section {
    display: none;
    padding: 8rem 4rem 6rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.about-section.active {
    display: block;
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    color: var(--accent);
}

.about-content p {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.about-content .services {
    margin-top: 4rem;
}

.about-content .services h3 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.about-content .services ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.about-content .services li {
    font-size: 1rem;
    color: #666;
    padding-left: 1.5rem;
    position: relative;
}

.about-content .services li::before {
    content: '—';
    position: absolute;
    left: 0;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem;
    text-align: center;
    margin-top: 6rem;
}

footer h3 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    display: inline-block;
    margin-bottom: 2rem;
}

footer a:hover {
    opacity: 0.6;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

footer p {
    font-size: 0.8rem;
    color: #999;
    margin-top: 3rem;
    letter-spacing: 0.05em;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 4rem 2rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 1rem;
    }
    
    .about-section {
        padding: 6rem 2rem 4rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
    
    .about-content .services ul {
        grid-template-columns: 1fr;
    }
    
    footer {
        padding: 3rem 2rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading state */
.loading {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.loading.hidden {
    opacity: 0;
}

.loading-text {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    font-weight: 300;
}
