* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

body {
    background: #020617;
    color: white;
}

/* container */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* navbar */


header {
    background: #020617cc;
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #38bdf8, #c084fc);
    -webkit-background-clip: text;
    color: transparent;
}

.code-logo {
    color: #38bdf8;
    margin-right: 6px;
    font-weight: 700;
}

/* nav links */

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
}

.nav-links a:hover {
    color: #38bdf8;
}

/* hamburger */

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* hero */

.hero {
    padding: 60px 0;
    background: #0a0f25;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero-text h2 {
    color: #38bdf8;
    margin-bottom: 15px;
}

.hero-text p {
    margin-bottom: 20px;
    color: #cbd5e1;
}

.hero img {
    width: 230px;
    border-radius: 50%;
    border: 4px solid #334155;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

/* buttons */

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    background: linear-gradient(90deg, #38bdf8, #c084fc);
    color: #410909;
    font-weight: 600;
    margin-right: 10px;
}

.hero-buttons a:hover {
    background: #0284c7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.wave {
    display: block;
    width: 100%;
    height: 80px;
    line-height: 0;
}

.wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* sections */

section {
    padding: 60px 0;
}

/* different backgrounds */

.about {
    background: #0b1222;
}

.skills-section {
    background: #0f172a;
}

.projects-section {
    background-color: #0a0f25;
}

.contact-section {
    background: #111827;
}

/* titles */

.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;

    background: linear-gradient(90deg, #38bdf8, #c084fc);
    -webkit-background-clip: text;
    color: transparent;
}

/* about */

.about p {
    text-align: center;
    max-width: 700px;
    margin: auto;
    color: #cbd5e1;
}

/* skills */

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill {
    background: #1e293b;
    padding: 14px 26px;
    border-radius: 8px;
    border: 1px solid #334155;
    transition: 0.3s;
}

.skill:hover {
    background: #38bdf8;
    transform: scale(1.08);
    color: white;
}

.experience-section {
    background: #0b1222;
    padding: 60px 0;
}

.experience-card {
    background: #1e293b;
    padding: 25px;
    border-radius: 10px;
    max-width: 700px;
    margin: auto;
    text-align: center;
    border: 1px solid #334155;
}

.experience-card h3 {
    margin-bottom: 10px;
    color: #38bdf8;
}

.experience-card p {
    color: #cbd5e1;
    margin: 6px 0;
}

.experience-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.experience-buttons a:hover {
    background: #0284c7;
}

/* projects */

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}


.card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
    padding: 10px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    padding: 8px;
    background: #0f172a;
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.card-content p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* project buttons */

.project-buttons {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.project-buttons a {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #38bdf8, #c084fc);
    color: #410909;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}


.project-buttons a:hover {
    background: #0284c7;
}

/* contact */

.contact {
    text-align: center;
}

.contact p {
    margin: 8px 0;
}

.contact a {
    color: #38bdf8;
    text-decoration: none;
}

.footer {
    background: #020617;
    border-top: 1px solid #1e293b;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer p {
    color: #94a3b8;
    font-size: 14px;
}

.built {
    font-size: 13px;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
}

.footer-links a:hover {
    color: #38bdf8;
}

/* mobile */

@media(max-width:768px) {

    .menu-icon {
        display: block;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 60px;
        background: #020617;
        flex-direction: column;
        width: 200px;
        display: none;
        padding: 20px;
    }

    #menu-toggle:checked+.menu-icon+.nav-links {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero img {
        margin-top: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

}