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

html {
    scroll-behavior: smooth;
}

body {
    background: #0f0f10;
    color: #e5e5e5;
    line-height: 1.6;
    overflow-x: hidden;
    font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
.name {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

p,
span,
a {
    font-weight: 400;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particles span {
    position: absolute;

    width: var(--size);

    height: var(--size);

    background: #e5ca72;

    border-radius: 50%;

    box-shadow: 0 0 6px #e5ca72;

    opacity: var(--opacity);

    top: var(--y);

    left: var(--x);

    animation: float var(--speed) ease-in-out infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(10px, -20px);
    }

    50% {
        transform: translate(-10px, -40px);
    }

    75% {
        transform: translate(15px, -20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.hero,
.about,
.projects,
.contact,
footer {
    position: relative;
    z-index: 1;
    background: transparent;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-controls {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.name {
    font-size: 4rem;
    color: #e5ca72;
    text-shadow: 0 0 20px rgba(148, 25, 236, 0.6);
}

.subtitle {
    margin: 10px 0 20px;
    color: #aaa;
}

.about-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tech-stack h3 {
    color: #e5ca72;
    margin-bottom: 15px;
}

.tech-grid {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tech-item {
    background: #1a1a1d;
    padding: 10px;
    border-radius: 8px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    border: 1px solid rgba(229, 202, 114, 0.1);
    transition: 0.3s;
}

.tech-item:hover {
    transform: translateY(-3px);
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(148, 25, 236, 0.307);
}

.tech-item img {
    width: 44px;
    height: 44px;
}

.tech-item span {
    font-size: 0.75rem;
    color: #aaa;
}

a {
    text-decoration: none;
    color: #e5ca72;
    transition: 0.3s;
}

a:hover {
    text-decoration: underline;
}

.btn {
    padding: 10px 20px;
    border: 1px solid #e5ca72;
    color: #e5ca72;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #e5ca72;
    color: black;
}

section {
    padding: 80px 20px;
    max-width: 900px;
    margin: auto;
}

h2 {
    color: #e5ca72;
    margin-bottom: 20px;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    display: flex;

    gap: 20px;

    align-items: center;

    background: #1a1a1d;

    padding: 20px;

    border-left: 3px solid #6a0dad;

    transition: 0.3s;

    border-radius: 10px;
}

.project-card img {
    width: 140px;

    height: 140px;

    object-fit: cover;

    border-radius: 10px;

    border: 1px solid rgba(229, 202, 114, 0.15);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.project-card:hover img {
    transform: scale(1.03);
    transition: 0.3s;
    filter: brightness(1.05) contrast(1.1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-left: 3px solid #d4af37;
    box-shadow: 0 0 20px rgba(148, 25, 236, 0.307);
}

.project-card span {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
}

.card-controls {
    display: flex;

    gap: 12px;

    margin-top: 10px;
}


.project-card a {
    font-size: 0.9rem;
}

.project-content {
    display: flex;

    flex-direction: column;
}

.contact p {
    margin: 8px 0;
    color: #bbb;
}

footer {
    text-align: center;
    padding: 30px;
    color: #555;
    font-size: 0.8rem;
}

/* RESPONSIVE LAYER */


/* Large tablets */
@media (max-width: 1024px) {
    section {
        padding: 70px 18px;
    }

    .name {
        font-size: 3.2rem;
    }

    .about-container {
        gap: 30px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets / small laptops */
@media (max-width: 900px) {
    .project-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-card img {
        width: 100%;
        height: 220px;
    }

    .project-content {
        width: 100%;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tech-grid {

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

/* Mobile */
@media (max-width: 600px) {
    .hero {
        padding: 0 20px;
    }

    .name {
        font-size: 2.4rem;
        text-align: center;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .hero-controls {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-card {
        padding: 16px;
    }

    .project-card img {
        height: 180px;
    }

    section {
        padding: 60px 16px;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .name {
        font-size: 2rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .project-card img {
        height: 160px;
    }
}