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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #fff;
    --accent-color: #666;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background: var(--secondary-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('../images/hero-bg.jpg') center/cover;
    color: white;
    text-align: center;
    margin-top: 0;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Categories Grid */
.categories {
    padding: 120px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.category-item {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 4/3;
    display: block;
}

.category-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.category-item:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-item:hover .category-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.category-overlay h2 {
    color: white;
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 3px;
}

/* Category Hero */
.category-hero,
.portfolio-hero,
.about-hero,
.contact-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.category-hero h1,
.portfolio-hero h1,
.about-hero h1,
.contact-hero h1 {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.category-hero p,
.portfolio-hero p,
.contact-hero p {
    font-size: 18px;
    color: var(--accent-color);
    letter-spacing: 1px;
}

/* Gallery Grid */
.gallery {
    padding: 60px 0 120px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

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

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

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox .close:hover {
    opacity: 0.7;
}

/* About Page */
.about-content {
    padding: 60px 0 120px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.about-info {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.about-info h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

.about-info ul {
    list-style: none;
}

.about-info li {
    font-size: 16px;
    color: var(--accent-color);
    padding: 8px 0;
}

/* Contact Page */
.contact-content {
    padding: 60px 0 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 10px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.contact-item p,
.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    line-height: 1.8;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 15px 50px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #333;
}

.alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        max-width: 300px;
        height: 100vh;
        text-align: left;
        transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        padding: 100px 40px 40px;
        gap: 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        padding: 0;
        margin: 0;
        opacity: 0;
        transform: translateX(20px);
        animation: slideIn 0.3s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.4s;
    }
    
    .nav-menu a {
        color: rgba(255, 255, 255, 0.7);
        font-size: 24px;
        font-weight: 300;
        padding: 20px 0;
        display: block;
        letter-spacing: 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: white;
        padding-left: 10px;
    }
    
    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Overlay when menu is open */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 300px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .category-overlay h2 {
        font-size: 32px;
    }
    
    .category-hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .categories {
        padding: 80px 0;
    }
    
    .gallery {
        padding: 40px 0 80px;
    }
    
    .about-content,
    .contact-content {
        padding: 40px 0 80px;
    }
    
    .lightbox .close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
}