/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    /* ENHANCEMENT: Enable smooth scrolling when navigating to sections */
    scroll-behavior: smooth; 
}
body {
    background: #0d1b2a;
    color: #fff;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
.section {
    padding: 80px 10%;
    text-align: center;
}
h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00e5ff;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: #001220;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}
.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
}
.navbar ul {
    list-style: none;
    display: flex;
}
.navbar ul li {
    margin-left: 20px;
}
.navbar ul li a {
    color: #fff;
    transition: 0.3s;
}
.navbar ul li a:hover,
.navbar ul li a.active {
    color: #00e5ff;
}

/* ENHANCEMENT: Hamburger Menu Icon */
.menu-toggle {
    display: none; 
    font-size: 1.8rem;
    cursor: pointer;
    color: #00e5ff;
}

/* Hero */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 10% 60px;
}
.hero-text h1 {
    font-size: 3rem;
    color: #00e5ff;
}
.hero-text .typing {
    color: #ff0080;
    font-weight: bold;
}
.hero-text .socials a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: #00e5ff;
}
.hero-text .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #00e5ff;
    color: #000;
    border-radius: 25px;
    font-weight: bold;
}
.hero-img img {
    width: 300px;
    border-radius: 50%;
    border: 5px solid #00e5ff;
    box-shadow: 0 0 20px #00e5ff;
}

/* Skills */
.skills-container {
    max-width: 700px;
    margin: auto;
}
.skill-bar {
    margin: 15px 0;
}
.skill-bar p {
    text-align: left;
}
.skill-bar .bar {
    background: #1a2d40;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}
.skill-bar .bar span {
    display: block;
    height: 100%;
    background: #00e5ff;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background: #1a2d40;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}
.card h3 {
    color: #00e5ff;
    margin-bottom: 10px;
}
.card a {
    display: inline-block;
    margin-top: 10px;
    color: #ff0080;
}

/* Certifications & Achievements */
.certifications-grid, .achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.cert-card, .ach-card {
    background: #1a2d40;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transition: 0.3s ease-in-out;
}
.cert-card:hover, .ach-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(255, 0, 128, 0.5);
}
.cert-card i, .ach-card i {
    font-size: 2rem;
    color: #00e5ff;
    margin-bottom: 10px;
}

/* ENHANCEMENT: Style for "View Certificate" button */
.cert-card a.cert-btn {
    display: block;
    margin-top: 15px;
    padding: 8px 15px;
    background: #00e5ff;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}
.cert-card a.cert-btn:hover {
    background: #ff0080;
    color: #fff;
}


/* Contact Section */
.contact form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
    transition: opacity 0.3s;
}
.contact input,
.contact textarea {
    padding: 10px;
    margin: 10px 0;
    border: none;
    outline: none;
    border-radius: 5px;
}
.contact button {
    padding: 10px;
    background: #08bfc5;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* ENHANCEMENT: Styles for Thank You Message */
.hidden {
    display: none !important;
}

#thankYouMessage {
    color: #2be817;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 20px;
    padding: 20px;
    background: #1a2d40;
    border-radius: 10px;
}


/* Social Icons */
.social-icons-wrapper {
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 15px; 
    margin-top: 30px; 
}

.social-icon-circle {
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 70px; 
    height: 70px; 
    background-color: white; 
    border-radius: 50%; 
    text-decoration: none; 
}

.social-icon-circle img {
    width: 60%; 
    height: auto; 
    max-width: 40px; 
    max-height: 40px; 
}

/* Footer */
footer {
    background: #001220;
    text-align: center;
    padding: 15px;
    margin-top: 50px;
}

/* --- MEDIA QUERY FOR RESPONSIVENESS (Mobile/Tablet Styles) --- */
@media (max-width: 850px) {
    
    /* Display the mobile menu icon */
    .menu-toggle {
        display: block;
    }
    
    /* Hide the regular horizontal navigation */
    .navbar ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px; 
        right: 0;
        width: 100%; 
        background-color: #001220;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0;
    }
    
    /* Class added by JavaScript to show the menu */
    .navbar ul.active {
        display: flex;
    }

    .navbar ul li {
        margin: 0;
        text-align: center;
        width: 100%;
    }
    
    .navbar ul li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    /* Adjust Hero section layout for mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-img {
        order: -1; 
        margin-bottom: 30px;
    }

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