body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background: wheat;
}

/* Header */
header {
    text-align: center;
    padding: 6% 4%; /* fluid spacing */
    background: #222;
    color: white;
}

header img {
    width: 25%;          /* auto-resizes on any device */
    max-width: 160px;    /* stops it from getting too big */
    aspect-ratio: 1/1;   /* keeps perfect circle */
    border-radius: 50%;
    object-fit: cover;
    border: 0.4rem solid white;
    transition: 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

/* Container */
.container {
    width: 90%;               /* auto fits mobile */
    max-width: 900px;
    margin: 5% auto;
    padding: 4%;
    background-color: azure;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
    color: #333;
    margin-top: 8%;
    font-size: 1.6rem;
}

/* Skills */
.skills span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1%;
    padding: 1% 3%;
    background: #222;
    color: wheat;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.skills span img {
    width: 1rem;
    height: 1rem;
}

.skills span:hover {
    background: #444;
    transform: scale(1.1);
}

/* Projects */
.projects li {
    padding: 1% 0;
    transition: 0.3s;
}

/* Video */
.video-section video {
    width: 100%;
    max-width: 90%;
    border-radius: 1rem;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: 3%;
    margin-top: 5%;
}

.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: 0.3s ease;
}

/* Footer */
footer {
    text-align: center;
    padding: 4%;
    margin-top: 6%;
    background: #222;
    color: white;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

.slide-down {
    animation: slideDown 1.3s ease;
}

@keyframes slideDown {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Mobile Boost */
@media (max-width: 600px) {

    header img {
        width: 40%;  /* bigger on small screens */
    }

    h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    .skills span {
        padding: 2% 4%;
        font-size: 0.8rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(45%, 1fr)); 
    }
}
