/* ===== General Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: black;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===== Navbar ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(19, 18, 18, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

.logo {
    color: royalblue;
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

nav ul {
    display: flex;
    gap: 50px;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 22px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: royalblue;
}

/* ===== Sections ===== */
section {
    padding: 80px 10%;
    min-height: 90vh;
}

/* ===== Home Section ===== */
.Home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding-top: 120px;
    /* To prevent overlap with fixed navbar */
}

.Home-text h1 {
    font-size: 50px;
}

.Home-text p {
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
}

.Home-image img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 2px solid royalblue;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

/* ===== About, Skills, Contact Headings ===== */
.About h2,
.Skills h2,
.Contact h2 {
    color: royalblue;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== About Section ===== */
.About {
    text-align: center;
    min-height: 90vh;
}

.About h2 {
    margin-top: 100px;
}

.about-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 70px;
    flex-wrap: wrap;
    /* responsive */
}

.about-box {
    width: 250px;
    height: 150px;
    border: 2px solid royalblue;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(65, 105, 225, 0.05);
    transition: 0.3s;
    padding: 15px;
}

.about-box p {
    font-size: 18px;
    color: white;
}

/* ===== Skills Section ===== */
.skills-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.Skills h2 {
    padding: 45px;
}

.skill-box {
    width: 320px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 50px;
    background: rgba(65, 105, 225, 0.05);
    text-align: left;
    margin: 10px;
    transition-duration: color 0.3s;
}


.skill-box:hover {
    border: 2px solid royalblue;
}

.skill-box h3 {
    color: royalblue;
    margin-bottom: 15px;
    font-size: 22px;
}

/* Flow Tree */
.flow-tree {
    border-left: 3px solid royalblue;
    padding-left: 20px;
}

.branch {
    display: flex;
    align-items: center;
    margin: 30px 0;
    position: relative;
}

.branch .line {
    width: 20px;
    height: 2px;
    background: royalblue;
    position: absolute;
    left: -20px;
}

.branch .tool {
    background: rgba(65, 105, 225, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    color: royalblue;
    font-size: 18px;
}

.skill-box:hover .tool {
    background: white;
    color: royalblue;
}

/* ===== Contact Section ===== */
.Contact form {
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.Contact input,
.Contact textarea {
    padding: 10px;
    border: 1px solid royalblue;
    border-radius: 5px;
    margin-bottom: 15px;
    background: #111;
    color: white;
}

.Contact button {
    background: royalblue;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.Contact button:hover {
    background: white;
    color: royalblue;
    border: 1px solid royalblue;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid royalblue;
}

/* ===== Hamburger Menu ===== */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: rgba(19, 18, 18, 0.95);
        padding: 15px;
        border-radius: 8px;
        gap: 15px;
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .Home {
        flex-direction: column;
        text-align: center;
    }

    .Home-text h1 {
        font-size: 32px;
    }

    .Home-image img {
        max-width: 250px;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-box {
        width: 90%;
        height: auto;
    }

    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .skill-box {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        background: rgba(19, 18, 18, 0.95);
        position: absolute;
        top: 60px;
        right: 10px;
        padding: 10px;
        border-radius: 8px;
    }

    .Home-text h1 {
        font-size: 24px;
    }

    .Home-text p {
        font-size: 16px;
    }

    .Home-image img {
        max-width: 200px;
    }
}