* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f7fbff;
    color: #1e293b;
    line-height: 1.6;
}

/* background particles */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

header h2 {
    color: #0ea5e9;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    font-weight: 600;
    color: #334155;
    transition: 0.3s;
}

nav a:hover {
    color: #0ea5e9;
}

/* hero */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero span {
    color: #0ea5e9;
}

.hero p {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 25px;
}

/* resume button */

.resume-btn {
    padding: 12px 30px;
    background: #0ea5e9;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.resume-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

/* avatar */

.avatar {
    width: 360px;
    margin: auto;
    margin-top: 40px;
    background: transparent;
    transition: 0.3s;
}

.avatar:hover {
    transform: translateY(-6px);
}

.dark .avatar {
    background: #0f172a;
}

/* sections */

section {
    padding: 80px 8%;
    max-width: 1200px;
    margin: auto;
}

section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #0f172a;
}

.dark section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #ffffff;
}


/* skills */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.skills-grid div {
    background: white;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.skills-grid div:hover {
    transform: translateY(-5px);
}

/* projects */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* cards */

.card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    transition: 0.35s;
}

.card h3 {
    color: #0ea5e9;
    margin-bottom: 10px;
}

.card p {
    color: #475569;
}

.dark .card p {
    color: #ffffff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* AI section spacing */

#ai {
    background: #f1f9ff;
    border-radius: 15px;
}

/* contact */

#contact {
    text-align: center;
}

#contact a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
}

/* footer */

footer {
    margin-top: 60px;
    background: #e6f6ff;
    padding: 30px;
    text-align: center;
    font-size: 14px;
    color: #334155;
}

.dark footer p {
    margin-top: 60px;
    background: transparent;
    padding: 30px;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
}

/* dark mode */

.dark {
    background: #020617;
    color: white;
}

.dark header {
    background: #020617;
    box-shadow: none;
}

.dark nav a {
    color: #cbd5f5;
}

.dark .card {
    background: #0f172a;
}

.dark .skills-grid div {
    background: #0f172a;
}

.dark #ai {
    background: #020617;
}

.dark footer {
    background: #020617;
}

.dark h2 {
    color: "#fff";
}

/* mobile */

@media(max-width:768px) {

    .hero h1 {
        font-size: 36px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 10px;
    }

    section {
        padding: 70px 20px;
    }

}

/* ABOUT SECTION */

.about-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #64748b;
    font-size: 18px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.about-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    text-align: left;
}

.about-card h3 {
    margin-bottom: 10px;
    color: #0ea5e9;
}

.about-card:hover {
    transform: translateY(-6px);
}


/* OTHER TOOLS */

.tool-title {
    margin-top: 50px;
    margin-bottom: 25px;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.tool {
    background: white;
    padding: 12px 18px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.tool:hover {
    background: #0ea5e9;
    color: white;
}

.theme-toggle {
    margin-left: 15px;
    padding: 4px 10px;
    border-radius: 30px;
    border: 1px solid rgba(14, 165, 233, 0.25);
    background: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.theme-toggle .icon {
    font-size: 16px;
}

.theme-toggle:hover {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

.dark .theme-toggle {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.dark .about-card {
    background: #0f172a;
    color: #e2e8f0;
}

.dark .tool {
    background: #0f172a;
    color: #e2e8f0;
}

.dark .skills-grid div {
    background: #0f172a;
    color: #e2e8f0;
}

.dark .about-intro {
    color: #cbd5f5;
}