/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth; 
}

body {
    background: linear-gradient(135deg, #FFFFFF 0%, #003366 100%);
    color: #333;
    line-height: 1.6;
}

/* Link Reset */
a {
    text-decoration: none;
    color: inherit;
}

/* --- Navigation Bar --- */
.firstline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; 
    top: 0;
    width: 100%;
    padding: 20px 5%;
    z-index: 1000;
    background: rgba(178, 34, 52, 0.2); 
    backdrop-filter: blur(10px); 
    transition: background 0.3s ease;
}

.firstline:hover {
    background: rgba(178, 34, 52, 0.8);
}

.lime {
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav h4 {
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.nav h4:hover {
    color: #FFD700;
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(178, 34, 52, 0.5), rgba(0, 51, 102, 0.5)), url('./stick_figure_playing_music_with_edge_of.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ontop {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.ontop h1 {
    font-size: 4rem;
    font-weight: 800;
    animation: fadeInUp 1.2s ease-out;
    text-shadow: 2px 2px 10px rgba(255, 215, 0, 0.8);
}

.hero-image {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 18px auto 0;
    border-radius: 50%;
    border: 4px solid rgba(255,215,0,0.25);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35)) drop-shadow(0 0 8px rgba(255,215,0,0.45));
    background: rgba(255,255,255,0.03);
}

.hero-svg-fallback {
    display: none;
    width: 120px;
    height: 120px;
    margin: 18px auto 0;
    border-radius: 50%;
}

/* --- About Section --- */
#about {
    padding: 100px 10%;
    text-align: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #B22234 100%);
}

.images1 {
    height: 160px;
    width: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #FFD700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.images1:hover { transform: scale(1.1); }

.textabout {
    font-size: 1.2rem;
    color: #555;
    max-width: 900px;
    margin: 30px auto 0;
    padding: 0 20px;
}

/* --- Skills Section --- */
.feature {
    padding: 80px 10%;
    background: linear-gradient(135deg, #003366 0%, #FFFFFF 100%);
}

#mskill-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: left;
}

.inline {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD700 10%);
    padding: 20px;
    border-radius: 20px;
    transition: 0.3s;
}

.inline:hover {
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
}

.images2 {
    height: 150px;
    width: 150px;
    border-radius: 15px;
    object-fit: cover;
    transition: 0.4s;
    border: 3px solid #FFD700;
}

.inline:hover .images2 {
    transform: scale(1.05) rotate(2deg);
}

.right { flex: 1; }

.text {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
    font-weight: normal;
}

.titlee {
    color: #FFD700;
    font-size: 1.5rem;
    text-transform: capitalize;
}

/* --- Projects Section --- */
.projects {
    padding: 80px 10%;
    text-align: center;
    background: linear-gradient(135deg, #B22234 0%, #FFFFFF 100%);
}

.projects h1 {
    margin-bottom: 50px;
    color: #FFD700;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 3px solid #FFD700;
}

.project-img:hover {
    transform: scale(1.05);
}

/* --- Footer & Socials --- */
.footer {
    background: #003366;
    color: white;
    padding: 80px 10% 40px;
    text-align: center;
    border-radius: 40px 40px 0 0;
}

.btn {
    background: #FFD700;
    color: #003366;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background: #B22234;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(178, 34, 52, 0.4);
}

.socials {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.socials li {
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.7;
}

.socials li:hover {
    color: #FFD700;
    opacity: 1;
    transform: scale(1.1);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Queries --- */
@media (max-width: 768px) {
    .ontop h1 { font-size: 2.5rem; }
    .inline {
        flex-direction: column; 
        text-align: center;
        gap: 20px;
    }
    .images2 {
        width: 100%;
        max-width: 250px;
        height: 200px;
    }
    .hero-image, .hero-svg-fallback {
        width: 80px;
        height: 80px;
    }
    .ontop h1 { font-size: 2rem; }
}