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

:root {
    --brand-color: #ed4410;
    --bg-dark: #0a0a0a;
    --text-light: #ffffff;
    --text-muted: #999;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(237, 68, 16, 0.1);
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

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

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

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 4rem;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background-image: url('/images/baw.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right center;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.6) 70%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.6) 70%, black 100%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1::selection {
    background: var(--brand-color);
    color: var(--bg-dark);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.work-grid {
    padding: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.project-card:hover h3 {
    color: var(--brand-color);
}

.project-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

footer {
    padding: 4rem;
    text-align: center;
    color: #666;
    border-top: 1px solid #222;
}

.about-section {
    padding: 8rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--brand-color);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-content p:first-child {
    font-size: 1.5rem;
    color: var(--text-light);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #1a1a1a;
    margin: 10% auto;
    padding: 3rem;
    border: 2px solid #444;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.modal-close {
    color: #999;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--brand-color);
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--brand-color);
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modal-content p strong {
    color: var(--text-light);
}

.modal-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--brand-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.3s;
}

.modal-link:hover {
    transform: translateY(-2px);
}

.modal-wide {
    max-width: 800px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.archive-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid #444;
}

.archive-item h4 {
    color: var(--brand-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.archive-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-section {
    padding: 8rem 4rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--brand-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #444;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--brand-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.form-status {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(95, 196, 196, 0.15);
    border: 2px solid #5fc4c4;
    color: #6dd4d4;
}

.form-status.error {
    display: block;
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid #ff4444;
    color: #ff4444;
}

@media (max-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
    }
    
    .hero {
        padding: 0 2rem;
    }
    
    .hero::before {
        width: 80%;
        opacity: 0.3;
    }
    
    .work-grid {
        padding: 2rem;
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 4rem 2rem;
    }
    
    .about-section h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }

    .contact-section {
        padding: 4rem 2rem;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
}
