* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #0f0f0f;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}


/* =========================
   NAVBAR
========================= */

nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: #151515;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    min-height: 75px;
    padding: 10px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

nav img {
    width: 150px;
    height: auto;
    mix-blend-mode: screen;
    transition: transform 0.3s ease;
}

nav img:hover {
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

nav ul li {
    list-style: none;
}

nav ul a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul a:hover {
    color: #00d9ff;
    transform: translateY(-2px);
}

#themeBtn,
#menuBtn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

#themeBtn {
    font-size: 22px;
}

#menuBtn {
    display: none;
    font-size: 28px;
}


/* =========================
   PROGRESS BAR
========================= */

#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #00d9ff;
    z-index: 9999;
}


/* =========================
   HOME
========================= */

#home {
    min-height: 90vh;
    padding: 100px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.home-content {
    max-width: 850px;
}

#home h1 {
    font-size: 64px;
    color: #00d9ff;
    margin-bottom: 10px;
}

#home h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

#profession {
    color: white;
}

#home p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: #d1d1d1;
}

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

#home a {
    display: inline-block;
    padding: 12px 25px;

    background: #00d9ff;
    color: #0f0f0f;

    text-decoration: none;
    font-weight: bold;

    border-radius: 25px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#home a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.25);
}


/* =========================
   SECTIONS
========================= */

section {
    padding: 90px 20px;
    max-width: 1100px;
    margin: auto;
}

section h2 {
    text-align: center;
    font-size: 40px;
    color: #00d9ff;
    margin-bottom: 35px;
}


/* =========================
   ABOUT
========================= */

#about p {
    max-width: 800px;
    margin: 0 auto 18px;
    text-align: center;
    color: #d1d1d1;
    font-size: 17px;
}


/* =========================
   SKILLS
========================= */

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.skills-container p {
    width: 220px;
    padding: 25px;

    text-align: center;

    background: #151515;
    color: white;

    border-radius: 15px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.skills-container p:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.2);
}


/* =========================
   PROJECTS
========================= */

.projects-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.project-card {
    width: 300px;
    padding: 25px;

    background: #151515;
    color: white;

    border-radius: 15px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.18);
}

.project-card h3 {
    color: #00d9ff;
    margin-bottom: 10px;
}

.project-card p {
    color: #d1d1d1;
    margin-bottom: 10px;
}

.project-card a {
    display: inline-block;

    margin-top: 20px;
    padding: 10px 20px;

    background: #00d9ff;
    color: #0f0f0f;

    text-decoration: none;

    border-radius: 20px;
    font-weight: bold;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 217, 255, 0.3);
}


/* =========================
   CONTACT
========================= */

#contact form {
    max-width: 650px;
    margin: auto;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact input,
#contact textarea {
    width: 100%;

    padding: 14px 16px;

    background: #151515;
    color: white;

    border: 1px solid #333;
    border-radius: 10px;

    font-size: 16px;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #999;
}

#contact input:focus,
#contact textarea:focus {
    border-color: #00d9ff;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
    outline: none;
}

#contact button {
    width: 200px;
    align-self: center;

    padding: 12px 20px;

    background: #00d9ff;
    color: #0f0f0f;

    border: none;
    border-radius: 25px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#contact button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.35);
}

#contact button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#formMessage {
    min-height: 25px;
    text-align: center;
    font-weight: bold;
    color: #00d9ff;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 25px;

    text-align: center;

    background: #151515;
    color: #bdbdbd;

    font-size: 14px;
    margin-top: 50px;
}


/* =========================
   LOADER
========================= */

#loader {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0f0f0f;

    z-index: 10000;

    transition: opacity 0.5s ease;
}

.loader-text {
    font-size: 45px;
    font-weight: bold;
    letter-spacing: 6px;
    color: #00d9ff;

    animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================
   LIGHT MODE
========================= */

body.light-mode {
    background: linear-gradient(135deg,
            #cfe8ff,
            #ddd6ff,
            #ffd9ec);
    color: #1f2937;
}

body.light-mode nav {
    background: #151515;
}

body.light-mode nav ul a {
    color: white;
}

body.light-mode nav ul a:hover {
    color: #00d9ff;
}

body.light-mode #themeBtn {
    color: white;
}

body.light-mode #home h1,
body.light-mode section h2 {
    color: #009fc2;
}

body.light-mode #home h2 {
    color: #1f2937;
}

body.light-mode #profession {
    color: #009fc2;
}

body.light-mode #home p,
body.light-mode #about p {
    color: #333333;
}

body.light-mode .skills-container p,
body.light-mode .project-card {
    background: #151515;
    color: white;
}

body.light-mode .project-card p {
    color: #d1d1d1;
}

body.light-mode #contact input,
body.light-mode #contact textarea {
    background: #151515;
    color: white;
}

body.light-mode #contact input::placeholder,
body.light-mode #contact textarea::placeholder {
    color: #999;
}

body.light-mode footer {
    background: #151515;
    color: #bdbdbd;
}


/* =========================
   GLOBAL TRANSITIONS
========================= */

body,
nav,
.project-card,
.skills-container p,
#contact input,
#contact textarea,
footer {
    transition:
        background 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}


/* =========================
   IMAGES
========================= */

img {
    max-width: 100%;
    height: auto;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .nav-container {
        min-height: 70px;
        padding: 10px 20px;
    }

    nav img {
        width: 120px;
    }

    .nav-right {
        gap: 12px;
    }

    #menuBtn {
        display: block;
    }

    nav ul {
        position: absolute;

        top: 70px;
        right: 20px;

        width: 190px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: #151515;

        padding: 12px;

        border-radius: 12px;

        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul a {
        display: block;
        padding: 10px;
    }

    #home {
        padding: 80px 20px;
        min-height: 85vh;
    }

    #home h1 {
        font-size: 45px;
    }

    #home h2 {
        font-size: 21px;
    }

    #home p {
        font-size: 16px;
    }

    section {
        padding: 70px 20px;
    }

    section h2 {
        font-size: 32px;
    }

    .skills-container {
        gap: 15px;
    }

    .skills-container p {
        width: 100%;
        max-width: 300px;
    }

    .project-card {
        width: 100%;
        max-width: 320px;
    }

    #contact button {
        width: 100%;
        max-width: 250px;
    }

    footer {
        margin-top: 30px;
    }
}