@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #008b8b;
    --dark-bg: #1f242d;
    --second-bg: #323946;
    --text-color: #fff;
    --main-color: #00d2d2; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* FIX NAV OVERLAP */
section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    scroll-margin-top: 100px;

    /* Animation */
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease forwards;
}

section:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo a {
    color: #00d2d2; /* light blue */
    text-decoration: none;
}

.logo a:visited {
    color: #00d2d2; /* stops purple */
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 7%;
    background: rgba(31, 36, 45, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-color);
}

#check {
    display: none;
}

.icons {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-left: 2rem;
    transition: .3s;
}

.nav-links li a:hover {
    color: var(--main-color);
}

/* --- HERO --- */
.hero-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-typing {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 1rem 0;
}

.highlight {
    color: var(--main-color);
}

.bio-description {
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #ccc;
}

.profile-img {
    width: 20vw;
    min-width: 250px;
    border-radius: 30px;
    border: 5px solid var(--main-color);
    box-shadow: 10px 10px 0px var(--primary-color);
    transition: 0.4s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

/* --- ABOUT --- */
.about {
    background: var(--second-bg);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 6rem;
    width: 100%;
}

.about-img {
    width: 350px;
    border-radius: 20px;
    border: 4px solid var(--main-color);
}

/* --- PROJECTS --- */
.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 10px rgba(0, 210, 210, 0.3);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.projects .card {
    background: var(--second-bg);
    padding: 3rem;
    border-radius: 1.5rem;
    transition: 0.4s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.projects .card:hover {
    border-color: var(--main-color);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 210, 210, 0.3);
}

.projects .card i {
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

/* --- SKILLS --- */
.skills {
    background: var(--dark-bg);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.skill-category {
    background: var(--second-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: 0.4s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 210, 210, 0.2);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-line {
    position: relative;
    height: 10px;
    width: 100%;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
}

.progress-line span {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--main-color));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--main-color);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--dark-bg);
    font-weight: 600;
    cursor: pointer;
    transition: .3s ease;
    margin-top: 1rem;
}

.btn:hover {
    box-shadow: 0 0 15px var(--main-color);
    transform: translateY(-3px);
}

.btn:active {
    transform: scale(0.95);
}

/* --- CONTACT --- */
.contact-form {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .contact-form textarea,
    .contact-form button {
        grid-column: span 2;
    }
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--second-bg);
    color: white;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

/* --- FOOTER --- */
footer {
    padding: 2rem 7%;
    background: var(--dark-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--second-bg);
}

.social-links a {
    color: var(--main-color);
    font-size: 1.8rem;
    margin-right: 2rem;
    transition: 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .icons {
        display: inline-flex;
        position: absolute;
        right: 7%;
        font-size: 2.2rem;
        color: var(--text-color);
        cursor: pointer;
    }

    #check:checked ~ .icons #menu-icon {
        display: none;
    }

    #check:checked ~ .icons #close-icon {
        display: block;
    }

    .icons #close-icon {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0; 
        background: rgba(31, 36, 45, 0.98);
        flex-direction: column;
        align-items: center;
        transition: .3s ease;
        overflow: hidden;
        border-bottom: 2px solid var(--primary-color);
    }

    #check:checked ~ .nav-links {
        height: calc(100vh - 100%); 
        overflow-y: auto;
        padding: 2rem 0;
    }

    body:has(#check:checked) {
        overflow: hidden;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links li a {
        margin-left: 0;
        font-size: 1.3rem;
        display: block;
    }

    .hero-content, 
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    section {
        align-items: center;
        padding: 8rem 5% 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-typing {
        font-size: 2rem;
    }

    .profile-img {
        width: 60%;
    }

    .about-img {
        width: 80%;
    }

    .bio-description {
        text-align: center;
    }
} /* Final closing bracket for media query */