:root {
    --bg-dark: #05110a;
    --glass-green: rgba(0, 255, 153, 0.1);
    --border-green: rgba(0, 255, 153, 0.25);
    --text-light: #e6fff5;
    --accent-green: #00ff99;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: "ubuntu", sans-serif;
    font-style: normal;
    font-weight: 300;
    overflow-x: hidden;
    width: 100vw;
}

#background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    animation: wave 20s ease-in-out infinite;
    transform-origin: center;
}

/* Circles */
.circle {
    position: absolute;
    opacity: 0.2;
    border-radius: 50%;
    mix-blend-mode: overlay;
    animation: float 12s ease-in-out infinite alternate;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    100% {
        transform: translateY(-40px) translateX(20px);
    }
}

@keyframes wave {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(1deg) scale(1.2);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 153, 0.05);
    border: 1px solid var(--border-green);
    border-radius: 20px;
    padding: 12px 40px;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

nav.hidden-up {
    opacity: 0;
    transform: translateY(-40px);
    pointer-events: none;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    font-family: "Anta", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-green);
    margin-top: 10px;
}

section {
    max-width: 900px;
    margin: 80px auto;
    padding: 40px;
    background: rgba(0, 255, 153, 0.05);
    border: 1px solid var(--border-green);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 1;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: underline;
    color: var(--accent-green);
    margin: 10px auto 20px auto;
    text-align: center;
}

.description-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--accent-green);
}

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

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

.projects-grid > :first-child {
    grid-column: span 2; /* Make the first item span across both columns */
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 255, 153, 0.15);
}

.project-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.tech-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    );
    color: white;
    border-radius: 0 0 16px 16px;
}

.tech-card .tech-info {
    position: static;
    width: auto;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15));
    text-align: center;
    margin: 10px;
}

.tech-card .tech-info h4 {
    color: var(--accent-green);
    font-size: 1rem;
}

.tech-card .tech-info p {
    color: var(--text-light);
    opacity: 0.9;
    margin-top: 8px;
    font-size: 0.95rem;
}

/* LANGUAGE SECTION */
.languages h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.language {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
}

.language span {
    font-weight: 500;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.dot.filled {
    background: var(--accent-green);
}

/* PROJECT SECTION */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    );
    color: var(--text-light);
    border-radius: 0 0 16px 16px;
    display: flex; /* align h4 and p in one row */
    align-items: center; /* vertically center */
    gap: 10px; /* small space between h4 and p */
}

.project-info h4 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-green);
    margin: 0;
}

.project-info p {
    font-size: 1rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* CONTACT SECTION */
.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-icons a {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-icons img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 4px rgba(0, 255, 153, 0.4));
}

.contact-icons a:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--accent-green));
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(10, 25, 15, 0.95);
    border: 1px solid var(--border-green);
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    color: var(--text-light);
    animation: fadeIn 0.4s ease;
}

.modal-content img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 15px;
}

.modal-content h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--accent-green);
}

.modal-content p {
    margin: 5px 0;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--accent-green);
}

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

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--accent-green);
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    50%,
    100% {
        opacity: 1;
    }
    25%,
    75% {
        opacity: 0;
    }
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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