/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F8F9FA;
    color: #212529;
    text-align: center;
}

/* Navigation Bar */
/* nav {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    background: #007BFF;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
} */

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  }
  
  .cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Hero Section */
header {
    padding: 150px 20px;
    background: #007BFF;
    color: white;
}

h1 {
    font-size: 3em;
    margin: 0;
}

#typing-text {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 10px;
}

/* About Me Section */
#about {
    padding: 60px 20px;
    background-color: #FFFFFF;
}

.about-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.about-image {
    width: 280px;
    aspect-ratio: 4/4;
    border-radius: 50%;
    box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.1);
}

.about-info {
    max-width: 600px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Skills Section */
.skills-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.skill {
    background: #495057;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.skill:hover {
    background: #007BFF;
}

/* Projects Section */
.project-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 400px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card img {
    width: 100%;
    border-radius: 10px;
}

.project-link {
    text-decoration: none;
    font-weight: bold;
    color: #007BFF;
}

/* Contact Section */
#contact {
    padding: 60px 20px;
    background-color: #007BFF;
    color: white;
}

#contact a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

#contact a:hover {
    text-decoration: underline;
}

/* Project Pop-Up Modal */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 80%;
    position: relative;
}

.popup h3 {
    font-size: 2em;
    margin-bottom: 10px;
}

.popup p {
    font-size: 1.1em;
}

.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 2em;
    cursor: pointer;
}

.popup-overlay.show {
    display: flex;
}


/* Responsiveness */
/* Navigation Bar (Updated for Mobile) */
nav {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    background: #007BFF;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

/* Navigation Links */
nav ul {
    margin-right: 100px;
    list-style: none;
    display: flex;
    gap: 20px;
}

.about-info p 
{
    line-height: 2;
}

/* When on mobile, make navigation items vertical and give a "hamburger-style" effect */
@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #007BFF;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-300px); /* Initially hidden */
        transition: transform 0.3s ease-in-out;
    }

    nav ul.active {
        transform: translateY(0); /* Show when toggled */
    }

    nav ul li {
        padding: 10px 20px;
        text-align: center;
        width: 100%;
    }

    nav a {
        color: white;
        font-size: 1.2em;
        text-decoration: none;
        display: block;
    }

    nav a:hover {
        background-color: #0056b3;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        position: relative;
        z-index: 110;
    }

    .hamburger div {
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: 0.3s;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
        top: 0;
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
        top: 0;
    }
}



/* Hamburger Button (Mobile View) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 30px;
    height: 30px;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Mobile Menu and Hamburger */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Show hamburger only on mobile */
    }

    nav ul {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #007BFF;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-300px); /* Initially hidden */
        transition: transform 0.3s ease-in-out;
    }

    nav ul.active {
        transform: translateY(0); /* Show when toggled */
    }

    nav ul li {
        padding: 10px 20px;
        text-align: center;
        width: 100%;
    }

    nav a {
        color: white;
        font-size: 1.2em;
        text-decoration: none;
        display: block;
    }

    nav a:hover {
        background-color: #0056b3;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
        top: 0;
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
        top: 0;
    }
    .about-image {
        width: 200px;
        height: 400px;
    }

    .about-info p 
    {
        line-height: 1.4;
    }
}

