:root {
    --background: #0c0c0f;
    --surface: #15151a;
    --surface-light: #1d1d23;

    --text: #f5f5f5;
    --muted: #9c9ca6;

    --accent: #b69aff;

    --border: #292930;
}


/* ================= RESET ================= */

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


html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


body {
    background: var(--background);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.7;
}


/* ================= GENERAL ================= */

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


.section {
    padding: 110px 8%;
    border-top: 1px solid var(--border);
}


.eyebrow {
    color: var(--accent);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 18px;
}


.section-heading {
    margin-bottom: 50px;
}


h2 {
    font-size: clamp(34px, 5vw, 54px);

    line-height: 1.1;

    letter-spacing: -1.5px;
}


.section-text {
    color: var(--muted);

    max-width: 650px;

    margin-bottom: 20px;
}


/* ================= NAVBAR ================= */

.navbar {
    position: sticky;

    top: 0;

    z-index: 100;

    min-height: 76px;

    padding: 18px 8%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    background: rgba(12, 12, 15, 0.9);

    backdrop-filter: blur(15px);
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    color: var(--text);
}

.logo-text span {
    color: var(--accent);
}




nav {
    display: flex;

    gap: 28px;
}


nav a {
    color: var(--muted);

    font-size: 14px;

    transition: 0.2s;
}


nav a:hover {
    color: var(--text);
}


.menu-toggle {
    display: none;

    background: transparent;

    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 7px 11px;

    font-size: 18px;

    cursor: pointer;
}


/* ================= HERO ================= */

.hero {
    min-height: calc(100vh - 76px);

    padding: 100px 8%;

    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    align-items: center;

    gap: 50px;
}


.hero h1 {
    font-size: clamp(48px, 8vw, 90px);

    line-height: 0.98;

    letter-spacing: -4px;

    margin-bottom: 30px;
}


.hero h1 span {
    color: var(--accent);
}


.hero-description {
    color: var(--muted);

    max-width: 600px;

    font-size: 17px;

    margin-bottom: 32px;
}


.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.button {
    display: inline-block;

    padding: 12px 20px;

    border-radius: 8px;

    font-weight: 700;

    transition: 0.2s;
}


.button:hover {
    transform: translateY(-3px);
}


.primary {
    background: var(--accent);

    color: #17101f;
}


.secondary {
    border: 1px solid var(--border);
}


.hero-visual {
    display: flex;

    justify-content: center;
}



.visual-box {
    width: 480px;
    height: 300px;

    border: 1px solid var(--border);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            #101014
        );

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4);
    
     overflow: hidden;
}

.visual-box img {
    width: 100%;
    height: 100%;
    object-fit:contain;
    display: block;
}   

/* ================= ABOUT ================= */

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
}


.large-text {
    font-size: 28px;

    line-height: 1.4;
}


/* ================= SKILLS ================= */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.skill-category {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 28px;
}


.skill-category h3 {
    margin-bottom: 20px;
}


.skill-list {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


.skill-list span,
.project-tags span {
    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 6px 12px;

    color: var(--muted);

    font-size: 12px;
}


/* ================= PROJECTS ================= */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


.project-card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;

    transition: 0.25s;
}


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

    border-color: var(--accent);
}


.project-image {
    height: 230px;

    padding: 15px;
}


.image-placeholder {
    width: 100%;

    height: 100%;

    border-radius: 10px;

    background: var(--surface-light);

    color: var(--accent);

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    font-size: 20px;

    font-weight: 800;

    letter-spacing: 3px;
}


.project-content {
    padding: 25px;
}


.project-type {
    color: var(--accent);

    font-size: 10px;

    letter-spacing: 1.5px;

    font-weight: 700;

    margin-bottom: 12px;
}


.project-content h3 {
    font-size: 24px;

    margin-bottom: 12px;
}


.project-content > p:not(.project-type) {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 20px;
}


.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 25px;
}


.project-link {
    color: var(--text);

    font-size: 14px;

    font-weight: 700;
}


.project-link:hover {
    color: var(--accent);
}


/* ================= ARTWORK ================= */

.art-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}


.art-placeholder {
    aspect-ratio: 4 / 5;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--muted);

    font-size: 13px;

    transition: 0.25s;

    overflow: hidden;
}


/* Artwork images */

.art-placeholder img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 12px;

    display: block;
}


/* Hover effect */

.art-placeholder:hover {
    transform: translateY(-5px);

    border-color: var(--accent);

    color: var(--accent);
}

/* ================= CONTACT ================= */

.contact {
    position: relative;
    overflow: hidden;
}


/* Ambient background glow */

.contact-glow {
    position: absolute;

    width: 450px;
    height: 450px;

    right: -150px;
    bottom: -180px;

    background: var(--accent);

    opacity: 0.08;

    filter: blur(120px);

    border-radius: 50%;

    pointer-events: none;
}


/* Main layout */

.contact-layout {
    position: relative;

    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    gap: 80px;

    margin-top: 35px;

    padding: 65px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.2);

    overflow: hidden;
}


/* Subtle top highlight */

.contact-layout::before {
    content: "";

    position: absolute;

    top: 0;
    left: 10%;

    width: 80%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );

    opacity: 0.6;
}


/* ================= CONTACT INTRO ================= */

.contact-intro h2 {
    font-size: clamp(50px, 6vw, 85px);

    line-height: 0.95;

    letter-spacing: -0.04em;

    margin: 0 0 30px;

    max-width: 650px;
}


.contact-intro h2 span {
    color: var(--accent);
}


.contact-intro .section-text {
    max-width: 520px;

    line-height: 1.7;

    margin-bottom: 35px;
}


/* Email */

.contact-email {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 10px;

    color: var(--text);

    text-decoration: none;

    border-bottom: 1px solid var(--muted);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        gap 0.3s ease;
}


.contact-email span:first-child {
    font-size: 15px;
}


.email-arrow {
    font-size: 20px;

    color: var(--accent);
}


.contact-email:hover {
    color: var(--accent);

    border-color: var(--accent);

    gap: 22px;
}


/* ================= SOCIAL AREA ================= */

.contact-socials {
    display: flex;

    flex-direction: column;

    justify-content: center;
}


.social-label {
    margin: 0 0 18px;

    color: var(--muted);

    font-size: 11px;

    letter-spacing: 0.18em;

    font-weight: 600;
}


/* ================= SOCIAL CARD ================= */

.social-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 17px 18px;

    margin-bottom: 10px;

    color: var(--text);

    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Social abbreviation */

.social-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 10px;

    color: var(--accent);

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.08);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.05em;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


/* Text */

.social-info {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}


.social-name {
    font-size: 14px;

    font-weight: 600;
}


.social-handle {
    color: var(--muted);

    font-size: 11px;
}


/* Arrow */

.social-arrow {
    margin-left: auto;

    color: var(--muted);

    font-size: 18px;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}


/* Hover */

.social-card:hover {
    transform: translateX(7px);

    border-color: rgba(255, 255, 255, 0.18);

    background: rgba(255, 255, 255, 0.055);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18);
}


.social-card:hover .social-icon {
    color: var(--text);

    background: var(--accent);

    transform: scale(1.05);
}


.social-card:hover .social-arrow {
    color: var(--accent);

    transform: translate(3px, -3px);
}


/* Keyboard accessibility */

.social-card:focus-visible,
.contact-email:focus-visible {
    outline: 2px solid var(--accent);

    outline-offset: 4px;
}   

/* ================= FOOTER ================= */

footer {
    padding: 25px 8%;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 12px;
}


/* ================= MOBILE ================= */
@media (max-width: 850px) {

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    nav.open {
        display: flex;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }

.hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
}

.visual-box {
    width: min(480px, 90vw);
    height: 220px;
}

.visual-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .art-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    /* CONTACT — MOBILE */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 40px 25px;
    }

    .contact-socials {
        width: 100%;
    }

    .social-card {
        width: 100%;
    }
}


@media (max-width: 500px) {

    .section {
        padding: 80px 6%;
    }


    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }


    .hero h1 {
        
        font-size: 48px;
        letter-spacing: -2px;
    }


    .skills-grid {
        grid-template-columns: 1fr;
    }


    .art-grid {
        grid-template-columns: 1fr 1fr;
    }

}
/* ================= HERO ANIMATIONS ================= */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Ambient purple glow */
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 500px;
    height: 500px;
    top: 5%;
    right: 5%;

    background: radial-gradient(
        circle,
        rgba(182, 154, 255, 0.13),
        transparent 70%
    );

    filter: blur(25px);
    pointer-events: none;
    animation: glow-drift 8s ease-in-out infinite alternate;
}

/* Animated role text */
.hero-role {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;

    margin-bottom: 22px;
    color: var(--muted);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

#typed-role {
    color: var(--accent);
}

.typing-cursor {
    color: var(--accent);
    animation: cursor-blink 0.8s steps(2) infinite;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 12px rgba(182, 154, 255, 0.8);
}

/* Hero entrance */
.hero-content {
    animation: hero-enter 0.8s ease-out both;
}

.hero-visual {
    animation: visual-enter 1s ease-out both;
}

.visual-box {
    animation: float-visual 5s ease-in-out infinite;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.visual-box:hover {
    border-color: var(--accent);
    box-shadow: 0 25px 80px rgba(182, 154, 255, 0.14);
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes visual-enter {
    from {
        opacity: 0;
        transform: translateX(25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float-visual {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow-drift {
    from {
        transform: translate(-20px, -10px);
    }

    to {
        transform: translate(25px, 20px);
    }
}

@keyframes cursor-blink {
    50% {
        opacity: 0;
    }
}

/* Accessibility: reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-visual,
    .visual-box,
    .hero::before,
    .typing-cursor {
        animation: none !important;
    }

    .hero-content,
    .hero-visual {
        opacity: 1;
        transform: none;
    }

}