* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* prevent scrollbars with animation */
}
/* Navigation */
nav {
    background-color: #2c3e50;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #3498db;
}
/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    text-align: center;
    padding: 2rem;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}
.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.5s;
    animation-fill-mode: both;
}
/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}
section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}
/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}
.card p, .card ul {
    font-size: 1rem;
    color: #555;
}
.card ul {
    list-style: disc;
    padding-left: 1.5rem;
}
/* Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.skill {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}
.skill:hover {
    transform: scale(1.1);
}
/* Contact */
.contact-info {
    text-align: center;
}
.contact-info a {
    color: #3498db;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: #2c3e50;
}
/* Animations */
@keyframes fadeInDown {
from {
    opacity: 0;
    transform: translateY(-50px);
}
to {
    opacity: 1;
    transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
}
.abt {
    text-align: center;
    max-width: 800px; 
    margin: 0 auto;
    color: azure;
}
.a{
    text-align: center;
    color:blueviolet;
}
.b{
    color:lawngreen;
}
/* --- Fix: Remove white box effect for badge sections --- */
#skills, #certifications, #languages, #achievements {
    background: transparent !important;
    box-shadow: none !important;
    padding: 4rem 2rem;
}

#skills .skills-list,    
#certifications .skills-list,
#languages .skills-list,
#achievements .skills-list {
    background: transparent;
    box-shadow: none;
    padding: 1rem 0;
}

/* Optional – make the badges look vibrant and consistent */
#skills .skill,
#certifications .skill,
#languages .skill,
#achievements .skill {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#skills .skill:hover,
#certifications .skill:hover,
#languages .skill:hover,
#achievements .skill:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    padding: 8px;
    outline: none;
    -webkit-tap-highlight-color: transparent; /* removes blue tap flash */
}

.menu-toggle:focus,
.menu-toggle:focus-visible {
    outline: none;
}

.menu-toggle .bar {
    display: block;
    width: 26px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease, background-color 0.3s ease;
}

.menu-toggle .bar + .bar {
    margin-top: 5px;
}

/* Morph into X */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle.active .bar {
    background-color: #3498db;
}

/* Mobile view */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #2c3e50;
        width: 100%;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    nav ul.show {
        max-height: 600px;
        opacity: 1;
        padding: 1rem 0;
    }

    nav a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    section {
        padding: 3rem 1rem;
    }

    .card-container {
        grid-template-columns: 1fr;
    }
}
