/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0a192f;
    color: #e6edf3;
}

/* ===== NAVBAR ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

/* LOGO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 0 10px #64ffda;
}

.logo-container h2 {
    color: #64ffda;
    font-size: 20px;
}

/* NAV LINKS */
nav ul {
    display: flex;
    gap: 25px;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 15px;
    position: relative;
}

/* HOVER */
nav ul li a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #64ffda;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ===== SECTION ===== */
section {
    padding: 70px 60px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #64ffda;
    margin-bottom: 40px;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 120px;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 48px;
}

.hero-text span {
    color: #64ffda;
}

.hero-text h2 {
    margin: 10px 0;
    color: #8892b0;
}

.hero-text p {
    margin: 20px 0;
    color: #a8b2d1;
    line-height: 1.6;
}

/* BUTTONS */
.buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    background: #64ffda;
    color: #0a192f;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}

.hire-btn {
    background: transparent;
    border: 1px solid #64ffda;
    color: #64ffda;
}

/* SOCIAL */
.social-icons {
    margin-top: 25px;
}

.social-icons a {
    color: #8892b0;
    margin-right: 15px;
    font-size: 20px;
}

.social-icons a:hover {
    color: #64ffda;
}

/* IMAGE */
.hero-img img {
    width: 320px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(100,255,218,0.2);
}

/* ===== ABOUT ===== */
.about {
    background: #020c1b;
}

.about-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    color: #a8b2d1;
}

.about-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

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

/* ===== SKILLS ===== */
.skills {
    background: #0a192f;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.skill-box {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 12px;
    width: 260px;
    transition: 0.3s;
}

.skill-box:hover {
    transform: translateY(-8px);
}

.skill-box h3 {
    color: #64ffda;
    margin-bottom: 15px;
}

.skill {
    margin-bottom: 12px;
}

.bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.bar span {
    display: block;
    height: 100%;
    background: #64ffda;
    width: 0;
    transition: width 1.5s ease;
}

/* ===== PROJECTS ===== */
.projects {
    background: #020c1b;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.project-card {
    width: 300px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card h3 {
    color: #64ffda;
}

.project-card p {
    color: #a8b2d1;
}

.tech span {
    background: rgba(100,255,218,0.1);
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 5px;
    font-size: 12px;
}

.project-links a {
    color: #64ffda;
    margin-right: 10px;
}

/* ===== CERTIFICATES ===== */
.certificates {
    background: #0a192f;
    padding-bottom: 40px;
}

.cert-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cert-card {
    width: 280px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
}

.cert-card:hover {
    transform: translateY(-8px);
}

.cert-card h3 {
    color: #64ffda;
}

.cert-card p {
    color: #a8b2d1;
}

/* ===== CONTACT ===== */
.contact {
    background: #020c1b;
    padding: 60px 60px;
}

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
}

.contact-form button {
    margin-top: 10px;
}

/* ===== ANIMATION ===== */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HOVER ===== */
.btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.project-card:hover {
    box-shadow: 0 10px 30px rgba(100,255,218,0.2);
}

.skill-box:hover {
    transform: scale(1.05);
}

.cert-card:hover {
    transform: scale(1.05);
}

/* ===== TABLET ===== */
@media (max-width: 992px) {

    nav {
        padding: 15px 30px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-img img {
        width: 250px;
    }

    .about-container,
    .contact-container {
        flex-direction: column;
    }

}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    nav ul {
        display: none; /* simple mobile navbar */
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 14px;
    }

    section {
        padding: 50px 20px;
    }

    .skills-wrapper,
    .projects-container,
    .cert-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card,
    .cert-card,
    .skill-box {
        width: 100%;
        max-width: 300px;
    }

    .contact-form {
        width: 100%;
    }

}

body {
    background: linear-gradient(-45deg, #0a192f, #020c1b, #112240, #0a192f);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cursor {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #64ffda;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px #64ffda, 0 0 40px #64ffda;
    z-index: 9999;
}

/* ===== FOOTER ===== */
.footer {
    background: #020c1b;
    text-align: center;
    padding: 40px 20px;
}

.footer h2 {
    color: #64ffda;
    margin-bottom: 10px;
}

.footer p {
    color: #a8b2d1;
    margin-bottom: 10px;
}

/* SOCIAL */
.footer-social {
    margin: 15px 0;
}

.footer-social a {
    color: #8892b0;
    font-size: 20px;
    margin: 0 10px;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #64ffda;
}

/* COPYRIGHT */
.footer .copyright {
    font-size: 13px;
    color: #6b7280;
}
/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #64ffda;
}

/* MOBILE NAV */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: #0a192f;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 20px 0;
    }

    .nav-links li {
        margin: 10px 0;
    }
    .nav-links.active {
    max-height: 100vh;
}

    .nav-links.active {
        display: flex;
    }
}

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0a192f;
        flex-direction: column;
        align-items: center;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links.active {
        max-height: 300px;
    }
}
.hamburger span {
    transition: 0.3s;
}
body.light-mode {
    background: #ffffff;
    color: #000;
}

#topBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    padding: 10px 15px;
    background: #64ffda;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0a192f;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 20px;
}
/* NAV RIGHT */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* THEME BUTTON */
.theme-btn {
    background: transparent;
    border: 1px solid #64ffda;
    color: #64ffda;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav-right {
        gap: 10px;
    }
}

/* NAV RIGHT FIX */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* HAMBURGER visible */
    .hamburger {
        display: flex;
    }

    /* NAV LINKS */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0a192f;
        flex-direction: column;
        align-items: center;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-links.active {
        max-height: 300px;
    }

    /* THEME BUTTON SMALL */
    .theme-btn {
        padding: 4px 8px;
        font-size: 14px;
    }
}