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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #0d0b14;
    color: #f3f0ff;
    line-height: 1.6;
}

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

/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(13, 11, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(160, 89, 255, 0.25);
}

nav {
    max-width: 1100px;
    margin: auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    color: #b678ff;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 22px;
    font-size: 15px;
}

.nav-links a:hover {
    color: #b678ff;
}

/* HERO */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    background:
        radial-gradient(circle at top, rgba(150, 70, 255, 0.25), transparent 35%),
        linear-gradient(180deg, #12101d 0%, #0d0b14 100%);
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(182, 120, 255, 0.5);
    border-radius: 999px;
    color: #c99cff;
    background: rgba(182, 120, 255, 0.08);
}

h1 {
    font-size: clamp(42px, 8vw, 76px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: #b678ff;
    text-shadow: 0 0 25px rgba(182, 120, 255, 0.45);
}

.hero p {
    max-width: 700px;
    margin: 0 auto 32px;
    color: #c9c3d8;
    font-size: 18px;
}

/* BUTTONS */

.buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: bold;
    transition: 0.2s;
}

.btn-primary {
    background: #8f43ff;
    color: white;
    box-shadow: 0 0 25px rgba(143, 67, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #a45cff;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f3f0ff;
}

.btn-secondary:hover {
    border-color: #b678ff;
    color: #b678ff;
}

/* GENERAL SECTIONS */

section {
    max-width: 1100px;
    margin: auto;
    padding: 90px 24px;
}

.section-title {
    font-size: 34px;
    margin-bottom: 16px;
}

.section-text {
    color: #c9c3d8;
    max-width: 760px;
    margin-bottom: 36px;
}

.paragraph-spacing {
    margin-top: 20px;
}

/* ABOUT */

.about-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(182, 120, 255, 0.18);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* SKILLS */

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.skill {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #e7ddff;
}

/* PROJECT CARDS */

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(182, 120, 255, 0.16);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.25s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(182, 120, 255, 0.45);
    box-shadow: 0 0 35px rgba(143, 67, 255, 0.16);
}

.project-image {
    height: 170px;
    background:
        linear-gradient(135deg, rgba(143, 67, 255, 0.35), rgba(20, 18, 30, 1)),
        url("project-placeholder.jpg");
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.project-content p {
    color: #c9c3d8;
    margin-bottom: 16px;
}

.tech,
.tech-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech {
    margin-bottom: 18px;
}

.tech span,
.tech-list span {
    border-radius: 999px;
    background: rgba(182, 120, 255, 0.12);
    color: #c99cff;
}

.tech span {
    font-size: 13px;
    padding: 5px 10px;
}

.tech-list {
    gap: 12px;
    margin-top: 30px;
}

.tech-list span {
    padding: 8px 14px;
    border: 1px solid rgba(182, 120, 255, 0.18);
}

.project-link {
    color: #b678ff;
    font-weight: bold;
}

/* PROJECT DETAIL PAGE */

.project-page {
    max-width: 1100px;
    margin: auto;
    padding: 80px 24px;
}

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: #b678ff;
    font-weight: bold;
}

.project-header {
    margin-bottom: 50px;
}

.project-header h1 {
    font-size: clamp(42px, 7vw, 70px);
    margin-bottom: 20px;
}

.project-header p {
    max-width: 850px;
    color: #c9c3d8;
    font-size: 18px;
    line-height: 1.7;
}

.section {
    margin-top: 80px;
    padding: 0;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.section p,
.section li {
    color: #c9c3d8;
    line-height: 1.8;
}

.features {
    padding-left: 22px;
    display: grid;
    gap: 12px;
}

/* GALLERY */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery img:hover {
    transform: scale(1.02);
    border-color: rgba(182, 120, 255, 0.4);
    box-shadow: 0 0 30px rgba(143, 67, 255, 0.18);
}

/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 10, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 30px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1000000;
    font-size: 42px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

/* CONTACT */

.contact {
    text-align: center;
    background: rgba(255, 255, 255, 0.035);
    border-radius: 28px;
    border: 1px solid rgba(182, 120, 255, 0.16);
}

/* FOOTER */

footer {
    text-align: center;
    padding: 30px 20px;
    color: #8f88a3;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* RESPONSIVE */

@media (max-width: 700px) {
    nav {
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    section {
        padding: 70px 20px;
    }

    .project-page {
        padding: 60px 20px;
    }

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

    .gallery img {
        height: 190px;
    }
}