* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: linear-gradient(120deg, #020617, #0d0f1a);
    color: #e5e7eb;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Canvas background */
#codeRain {
    position: fixed;
    inset: 0;
    z-index: -2;
    display: block;
    background: transparent;
}

/* Overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.35),
        rgba(13, 15, 26, 0.45)
    );
    z-index: -1;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 0, 50, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    color: #ff00ff;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #d0b3ff;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover {
    background: #7d1ecc;
    color: #fff;
}

/* Main container */
.container {
    min-height: 100vh;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 60px;
    gap: 30px;

    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(14px);
    border-radius: 14px;
}

/* Headers */
header {
    text-align: center;
}

h1,
h2 {
    text-shadow: 0 0 10px rgba(200, 50, 255, 0.6);
}

h1 {
    font-size: 38px;
    text-shadow: 0 0 10px rgba(200, 50, 255, 0.6);
}

h2 {
    font-size: 20px;
    color: #d0b3ff;
    font-weight: 500;
}

.location {
    font-size: 14px;
    color: #cbd5f5;
    margin-top: 6px;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* ONE IMAGE PER ROW FOR PROJECTS */
.project-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.project-images img {
    width: 90%; 
    max-width: 900px;
    height: auto;
    border-radius: 16px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 10px 30px rgba(200, 50, 255, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.project-images img:hover {
    transform: scale(1.08);
    box-shadow:
        0 25px 60px rgba(200, 50, 255, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Project text */
.project p {
    font-size: 14px;
    color: #cbd5f5;
    text-align: center;
}

/* Footer */
.actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.actions a {
    background: #9b30ff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.3s ease;
}

.actions a:hover {
    background: #7d1ecc;
    transform: translateY(-2px);
}

/* Visitor counter */
.visits {
    text-align: center;
    font-size: 14px;
    color: #d96cff;
    margin-top: -10px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: #1e293b;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
}

/* Lists */
.list {
    list-style: none;
    font-size: 14px;
}

.list li {
    margin-bottom: 12px;
}

/* Projects */
.project-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.project-images img {
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.project-images img:hover {
    transform: scale(1.03);
}

/* Footer actions */
.actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.actions a {
    background: #9b30ff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.actions a:hover {
    background: #7d1ecc;
}

/* Back button */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #9b30ff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.2s ease, background 0.3s ease;
}

.back-button:hover {
    background: #7d1ecc;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 18px;
    }

    .project-images img {
        width: 100%;
    }

    /* Mobile navbar adjustments */
    .nav-menu {
        flex-direction: column;
        background: rgba(20, 0, 50, 0.95);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
        padding: 10px 0;
        border-radius: 8px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
    }
}
