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

body {
    font-family: 'DM Sans', sans-serif;
    background: #0a0806;
    color: #f4f0e8;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
            radial-gradient(ellipse 80% 60% at 20% 10%, rgba(232,201,109,0.07) 0%, transparent 60%),
            radial-gradient(ellipse 60% 80% at 80% 90%, rgba(120,80,20,0.08) 0%, transparent 60%),
            url("https://images.unsplash.com/photo-1679193559910-24dba57949e1?fm=jpg&q=60&w=3000&auto=format&fit=crop&ixlib=rb-4.1.0") no-repeat center center / cover;
    filter: brightness(0.15) saturate(0.5);
    z-index: -1;
}

.wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 3rem 6%;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.left {
    flex: 1 1 280px;
    width: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 900;
    margin-top: 2rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #e8c96d 60%, #f5e4a0 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: revealText 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes revealText {
    from { background-position: 100% 0; opacity: 0; }
    to   { background-position: 0% 0; opacity: 1; }
}

.tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #e8c96d;
    margin-top: 0.6rem;
    opacity: 0;
    animation: fadeUp 1s 0.8s forwards;
}

.photo-wrap {
    position: relative;
    margin-top: 2rem;
    display: inline-block;
}

.photo-wrap::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 24px;
    background: linear-gradient(135deg, #e8c96d, transparent 55%, #e8c96d);
    opacity: 0.45;
    z-index: 0;
}

.photo {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    max-width: 100%;
    height: auto;
    width: 400px;
    display: block;
    filter: contrast(1.05) saturate(0.85);
    box-shadow: 0 20px 60px rgba(0,0,0,0.85), 0 0 0 1px rgba(232,201,109,0.2);
}

.right {
    width: 60%;
    flex: 1 1 400px;
    margin-top: 2rem;
    background-color: rgba(10, 8, 6, 0.65);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
    border: 1px solid rgba(232,201,109,0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    animation: fadeUp 1s 0.4s forwards;
}

.about {
    font-style: normal;
}

.about h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e8c96d;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(232,201,109,0.2);
}

.about p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.97rem;
    line-height: 1.75;
    color: #c8c2b8;
    font-weight: 300;
    margin-bottom: 2rem;
}

.about pre {
    background-color: rgba(232, 201, 109, 0.1);
    padding: 1rem 1.3rem;
    border-left: 3px solid #e8c96d;
    border-radius: 0 8px 8px 0;
    color: #f4f0e8;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    white-space: pre-wrap;
    letter-spacing: 0.01em;
}

.skills pre {
    background-color: rgba(255,255,255,0.035);
    padding: 1.2rem 1.4rem;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.95;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    color: #b8b2a8;
    border: 1px solid rgba(232,201,109,0.2);
}

.profiles {
    text-align: center;
    margin: 1rem 0 4rem;
    overflow-x: auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeUp 1s 0.9s forwards;
}

.links {
    display: inline-block;
    margin: 0 0.6rem;
    padding: 0.65rem 1.6rem;
    background-color: transparent;
    color: #f4f0e8;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(232,201,109,0.2);
    transition: all 0.3s ease;
}

.links:hover {
    background-color: #e8c96d;
    color: #0a0806;
    border-color: #e8c96d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,201,109,0.2);
}

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

@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
        margin: 2rem 4%;
    }
    .right {
        margin-top: 1rem;
    }
    .name {
        font-size: 2.4rem;
    }
    .photo {
        width: 220px;
    }
}

.projects {
    margin: 0 6% 3rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeUp 1s 0.7s forwards;
}

.projects-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e8c96d;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(232,201,109,0.2);
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.project-card {
    flex: 1 1 280px;
    background-color: rgba(10, 8, 6, 0.65);
    border: 1px solid rgba(232,201,109,0.2);
    border-radius: 16px;
    padding: 1.8rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,201,109,0.3);
}

.project-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f4f0e8;
    margin-bottom: 0.8rem;
}

.project-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #c8c2b8;
    font-weight: 300;
    margin-bottom: 1.4rem;
}

.project-links {
    display: flex;
    gap: 1.8rem;
}

.project-btn {
    padding: 0.5rem 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    background-color: #e8c96d;
    color: #0a0806;
    border: 1px solid #e8c96d;
    transition: all 0.3s ease;
}

.project-btn:hover {
    background-color: transparent;
    color: #e8c96d;
}

.project-btn-outline {
    background-color: transparent;
    color: #f4f0e8;
    border: 1px solid rgba(232,201,109,0.2);
}

.project-btn-outline:hover {
    border-color: #e8c96d;
    color: #e8c96d;
}

@media (max-width: 900px) {
    .projects {
        margin: 0 4% 2rem;
    }
}

.contact {
    text-align: center;
    margin: 0 0 2rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeUp 1s 0.85s forwards;
}

.contact-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #c8c2b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #e8c96d;
}

.contact-dot {
    margin: 0 1rem;
    color: rgba(232,201,109,0.3);
}
