* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    background-color: #0f172a;
    color: #fff;
    line-height: 1.6;
}

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

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

.highlight {
    text-decoration: underline;
    font-weight: 700;
}

.section-title {
    font-size: 56px;
    text-decoration: underline;
    text-align: center;
    margin: 0 0 20px 0;
    display: block;
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    margin: 0 0 40px 0;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    align-self: flex-end;
    padding: 12px 28px;
    font-size: 18px;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    background-color: black;
    border: 2px solid black;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    width: fit-content;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    border-color: white;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: transparent;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#main-header.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 14px 50px;
}

#main-header h1 {
    font-size: 28px;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    letter-spacing: -1px;
}

#main-header h1 a {
    color: #fff;
    transition: opacity 0.3s;
}

#main-header h1 a:hover {
    opacity: 0.8;
}

#main-header nav ul {
    list-style-type: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: 'JetBrains Mono', monospace;
}

#main-header nav ul li a {
    color: #fff;
    padding: 6px 0;
    position: relative;
    transition: opacity 0.3s;
}

#main-header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

#main-header nav ul li a:hover::after,
#main-header nav ul li a.active::after {
    width: 100%;
}

#main-header nav ul li a:hover {
    opacity: 0.9;
}

#main-header .menu-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    transition: background 0.3s;
}

#main-header .menu-toggle:hover {
    background: rgba(255,255,255,0.2);
}

#main-header nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#main-header nav.active ul {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

#hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 140px 50px 60px;
    background-color: #60a5fa;
    min-height: 100vh;
}

.hero-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: black solid 2px;
    padding: 30px;
    background-color: rgba(0,0,0,0.15);
    border-radius: 10px;
}

.hero-content h2 {
    text-decoration: underline;
    font-size: 42px;
    margin: 0 0 20px 0;
}

.hero-content p {
    font-size: 22px;
    margin: 0 0 30px 0;
}

#logo {
    width: 380px;
    margin-right: 30px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

#projects {
    padding: 80px 50px;
    background-color: #60a5fa;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}

.project-card {
    background-color: white;
    border: 2px solid black;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
    border-bottom: 2px solid black;
}

.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #2563eb;
    color: #fff;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}

.project-desc {
    font-size: 14px;
    margin: 0 0 15px 0;
    flex: 1;
    line-height: 1.5;
    opacity: 0.95;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-badge {
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid black;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
    font-size: 18px;
    grid-column: 1 / -1;
}

#about {
    padding: 80px 50px;
    background-color: #60a5fa;
}

.about-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

#about-logo {
    width: 350px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.about-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: black solid 2px;
    padding: 30px;
    background-color: rgba(0,0,0,0.15);
    border-radius: 10px;
}

.about-content p {
    font-size: 20px;
    margin: 0 0 20px 0;
}

.about-content p:last-child {
    margin-bottom: 0;
}

#commission {
    padding: 80px 50px;
    background-color: #60a5fa;
}

.commission-wrapper {
    display: flex;
    flex-direction: row;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.commission-info {
    flex: 1;
    border: 2px solid black;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(0,0,0,0.2);
}

.commission-info h3 {
    font-size: 28px;
    text-decoration: underline;
    margin: 0 0 20px 0;
}

.commission-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commission-info li {
    font-size: 18px;
    margin-bottom: 12px;
    padding-left: 5px;
}

.commission-form {
    flex: 1.2;
    border: 2px solid black;
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    color: #000;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    border: 2px solid black;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #fff;
}

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

.form-status {
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    min-height: 20px;
}

.form-status.success {
    color: #16a34a;
    font-weight: 700;
}

.form-status.error {
    color: #dc2626;
    font-weight: 700;
}

#contact {
    padding: 80px 50px;
    background-color: #60a5fa;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 40px auto 0;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 2px solid black;
    border-radius: 12px;
    padding: 30px 20px;
    background-color: rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: rgba(0,0,0,0.25);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.contact-logo-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.08);
    border: 1px dashed rgba(255,255,255,0.3);
    overflow: hidden;
}

.contact-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.contact-card:hover .contact-logo {
    opacity: 1;
}

.contact-label {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

footer {
    text-align: center;
    padding: 30px;
    background-color: #0f172a;
    border-top: 2px solid black;
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 900px) {
    #main-header {
        padding: 15px 25px;
    }

    #main-header.scrolled {
        padding: 12px 25px;
    }

    #main-header h1 {
        font-size: 22px;
    }

    #main-header .menu-toggle {
        display: block;
    }

    #main-header nav {
        display: none;
    }

    #main-header nav.active {
        padding: 20px 25px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    #hero {
        flex-direction: column-reverse;
        padding: 120px 25px 40px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        align-items: center;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    #logo {
        width: 220px;
        margin-right: 0;
    }

    #projects,
    #about,
    #commission,
    #contact {
        padding: 50px 25px;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    #about-logo {
        width: 220px;
    }

    .commission-wrapper {
        flex-direction: column;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .contact-links {
        grid-template-columns: repeat(2, 1fr);
    }
}