/* General styles */
html {
    scroll-behavior: smooth;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #F3F4F6;
}

/* Header & Navbar */
header {
    background-color: black;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.portfolio-name {
    font-size: 1.5rem;
    font-weight: bold;
}
.navbar {
    position: relative;
}
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li {
    margin-left: 20px;
}
.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px;
}
.nav-links a:hover {
    background-color: #444;
    border-radius: 5px;
}
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: black;
        width: 100%;
        text-align: right;
        padding: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .menu-toggle {
        display: flex;
    }

    /* Slide-in Menu (alternative mobile styling) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -250px;
        height: 100vh;
        width: 250px;
        background-color: #000;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px;
        list-style: none;
        margin: 0;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        width: 100%;
        margin: 15px 0;
    }
    .nav-links a {
        display: block;
        width: 100%;
        color: #fff;
        font-size: 18px;
        padding: 8px 0;
    }
    .nav-links a:hover {
        background-color: #444;
        border-radius: 4px;
    }
    .menu-toggle {
        justify-content: space-around;
        width: 30px;
        height: 25px;
        z-index: 1100;
    }
    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
    }
}

/* Section Styles */
section {
    background-color: #FFE2E2;
    padding: 50px 20px;
    text-align: center;
    clear: both;
}

/* Home Section */
.home {
    background-color: #FFE2E2;
    padding: 50px 20px;
    margin-top: 60px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    flex-wrap: wrap;
}
.home-content h1 {
    font-size: 36px;
    color: #333;
}
.home-content h3 {
    color: #74512D;
    margin: 5px 0;
}
.quote {
    margin-top: 20px;
    font-style: italic;
    font-size: 18px;
    color: #5c3d2e;
    max-width: 500px;
    line-height: 1.6;
}

/* Profile Picture */
.profile-pic {
    width: 50%;
    text-align: center;
}
.profile-pic img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20%;
    border: 3px solid #333;
}
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: center;
    }
    .profile-pic {
        width: 100%;
        margin-top: 20px;
    }
    .home-content {
        width: 100%;
    }
}

/* Buttons */
.resume-button,
.project-card a,
.btn-box {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #001F3F;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.resume-button:hover,
.project-card a:hover,
.btn-box:hover {
    background-color: #074799;
}

/* Social Icons */
.social-icons a {
    font-size: 40px;   /* applies to the <i> inside since it's font-based */
    margin: 0 12px;
    color: black;      /* initial color */
    text-decoration: none;
  }
  
  .social-icons a:hover {
    color: #1DA1F2;
  }
  

/* Skills Buttons */
.skills-buttons button {
    margin: 5px;
    padding: 10px 20px;
    background-color: #F0BB78;
    border: none;
    border-radius: 5px;
    color: #333;
    font-size: 14px;
}
.skills-buttons button:hover {
    background-color: #FFA07A;
    color: white;
}

/* Projects */
.projects-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.project-card {
    background-color: #FEFAE0;
    border-radius: 8px;
    padding: 20px;
    width: 350px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.project-card h3 {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #FFE2E2;
}
.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-form button {
    width: 100%;
    background-color: #001F3F;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: #074799;
}

/* Scroll Offsets */
#home, #about, #skills, #internships, #projects, #contact {
    scroll-margin-top: 80px;
}

/* Section Headings */
#skills h2,
#projects h2,
#internships h2,
#about h2,
#contact h2 {
    margin-bottom: 3rem;
}
