* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


body {
    background: #f7f7f7;
    color: #222;
    transition: background 0.3s, color 0.3s;
}


body.dark {
    background: #121212;
    color: #e0e0e0;
}

header {
    background: #01471e;
    color: white;
    padding-bottom: 60px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    font-size: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

#theme-toggle {
    background: none;
    border: 2px solid white;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.hero {
    text-align: center;
    padding: 80px 20px;
}

.section {
    padding: 60px 40px;
    max-width: 900px;
    margin: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.skills-grid span {
    background: #e0e0e0;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

body.dark .skills-grid span {
    background: #333;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
}

.gallery-item p {
    margin-top: 10px;
    font-size: 0.95rem;
}


form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #aaa;
}

button {
    padding: 12px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

body.dark button {
    background: #333;
}

.contact-note {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

footer {
    background: #160544;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}


.badge {
    position: relative;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    color: #111;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    transition: transform 250ms cubic-bezier(.2,.8,.2,1), box-shadow 250ms, filter 250ms;
    transform-origin: center bottom;
    cursor: default;
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

body.dark .badge {
    background: #333;
    color: #ffffff
}
.badge::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -6px;
    height: 8px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.18), rgba(0,0,0,0.06));
    border-radius: 50%;
    transition: transform 250ms cubic-bezier(.2,.8,.2,1), opacity 250ms;
    z-index: -1;
    opacity: 1;
}

.badge:hover,
.badge:focus {
    transform: translateY(-14px) rotateX(8deg);
    box-shadow: 0 28px 40px rgba(0,0,0,0.28);
    filter: saturate(1.02);
}

.badge:hover::after,
.badge:focus::after {
    transform: translateY(6px) scale(1.06);
    opacity: 0.9;
}

.job {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.job:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}


.hamburger {
    display: none;
    background: none;
    border: 2px solid white;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

#nav-menu {
    transition: max-height 0.3s ease;
}


@media (max-width: 768px) {
    nav {
        padding: 20px 20px;
        position: relative;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        order: 1;
        flex: 1;
    }

    .hamburger {
        display: block;
        order: 2;
    }

    #theme-toggle {
        order: 3;
    }

    .logo img {
        width: 120px;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #01471e;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        z-index: 1000;
        order: 4;
        width: 100%;
    }

    nav ul.open {
        max-height: 500px;
        padding: 20px 0;
    }

    nav li {
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav li:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .section {
        padding: 40px 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .badge {
        padding: 4px 8px;
        font-size: 0.9rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .job h3 {
        font-size: 1.1rem;
    }

    .job ul {
        padding-left: 20px;
    }

    footer {
        padding: 15px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    nav {
        padding: 15px 15px;
    }

    .logo img {
        width: 100px;
    }

    .hero {
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section {
        padding: 30px 15px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .badge {
        padding: 3px 6px;
        font-size: 0.8rem;
    }

    .job h3 {
        font-size: 1rem;
    }

    .job ul {
        padding-left: 15px;
    }

    .job li {
        font-size: 0.9rem;
    }
}

