/* Reset default browser styling for consistent appearance across browsers */
*{
    padding : 0;
    margin : 0;
    box-sizing : border-box;
}

/* Set global font and background color for the entire page */
body{
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',Arial, sans-serif;
    background-color: #27add8;
}

/* Navbar: sticky navigation bar that stays at top when scrolling */
.navbar{
    align-content: center;
    background-color: #27add8;
    width: 100%;
    height: clamp(60px, 10vh, 100px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Container for navbar links - uses flexbox to center and wrap items */
.navbar-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 100%;
    padding: 0 20px;
    flex-wrap: wrap;
}

/* Style for individual navbar links - button-like appearance */
.navbar-container a{
    text-decoration: none;
    color: #c3d6dd;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 8px;
    background-color: #28282b;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

/* Hover effect: lifts button and changes colors for interactivity */
.navbar-container a:hover{
    background-color: #27add8;
    color: #090808;
    border-color: #c3d6dd;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 173, 216, 0.4);
}

/* Active state: slight press effect when clicking */
.navbar-container a:active{
    transform: translateY(-1px);
}
/* Hero section: main landing area with introduction */
.hero{
    background-color: #28282b;
    text-align: center;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #c3d6dd;
    height: 80vh;
    align-content: center;
}

/* Hero heading: uses clamp() for responsive font sizing between min and max values */
.hero h1{
    font-size: clamp(2rem,6vw,4rem);
    max-width: 90ch;
    width: 90%;
    margin: 0.5rem auto;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Hero paragraph: descriptive text with responsive sizing */
.hero p{
    font-size: clamp(1rem, 2.5vw, 2rem);
    max-width: 80ch;
    width: 85%;
    margin: 0 auto;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Profile picture: circular with responsive sizing and maintain aspect ratio */
.selfie{
    display: block;
    width: clamp(450px, 45vw, 550px);
    aspect-ratio: 1/1;
    border-radius:50%;
    object-fit: cover;
    border: 5px solid #000000;
    margin: 20px auto;
}

/* About Me section: contains biography information */
.about-me{
    min-height: 35vh;
    text-align: center;
    background-color: #27add8;
    overflow: auto;
    padding: 20px 0;
}

/* Unified styling for all section headers across the page */
.about-me-header, .skills-header, .music-header, .fav-games-header {
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(2rem, 2.5vw, 3rem);
    margin-top: 0;
    margin-bottom: 5rem;
}

/* Extra top margin for about me header to create separation from hero section */
.about-me-header{
    margin-top: 3rem;
}

/* Content box for about me text - dark background with rounded corners */
.about-me-content{
    background-color: #28282b;
    height: 30vh;
    border-radius: 15px;
    align-content: center;
    color: #c3d6dd;
    font-size: clamp(1rem, 2.5vw, 2rem);
    max-width: 100ch;
    width: 85%;
    margin: 0 auto;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Padding inside the content box for breathing room */
.about-me-content p{
    padding: 3rem;
}

/* Skills section: displays technical skills in card format */
.skills{
    font-size: 1.5rem;
    align-content: flex-start;
    min-height: 30vh;
    margin: 2rem auto;
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Unified container for all cards (skills, songs, games) */
.cards-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 0 40px 0;
}

/* Unified card styling - works for skills, music, and games */
.card{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #28b1d3;
    border: 1px solid #28282b;
    border-radius: 10px;
    padding: 20px;
    margin: 1rem;
    width: auto;
    max-width: 300px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover effect: cards lift up and grow slightly to show interactivity */
.card:hover{
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Standard image sizing for cards - square with rounded corners */
.card img{
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
    box-sizing: border-box;
    border-radius: 10px;
}

/* Style Font Awesome icons in skill cards to match image dimensions */
.skills .card i{
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    color: #000000;
    font-size: 150px;
}

/* Remove default link styling for YouTube links in music cards */
.yt-link, .yt-link h3, .yt-link p{
    text-decoration: none;
    color: #28282b;
}

/* Make LBP cover its card fully by using cover instead of contain */
.card img[src$="lbp.jpg"], .card img[alt*="LBP" i] {
    object-fit: cover;
}

/* Music and favorite games sections: dark backgrounds to alternate with light sections */
.music, .fav-games{
    background-color: #28282b;
    min-height: 50vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

/* Light colored headers for visibility on dark backgrounds */
.music-header, .fav-games-header{
    color: #c3d6dd;
}

/* Contact section: final section with social media links */
.contact{
    background-color: #27add8;
    min-height: 30vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Contact header: matches other section headers */
.contact-header{
    text-transform: uppercase;
    font-size: clamp(2rem, 2.5vw, 3rem);
    margin-bottom: 2rem;
}

/* Container for contact icons (GitHub and LinkedIn) */
.contact-icons{
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
}

/* Individual contact link styling: icon with label below */
.contact-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #28282b;
    transition: transform 0.3s ease;
}

/* Hover effect: slight scale up for interactivity */
.contact-link:hover{
    transform: scale(1.1);
}

/* Contact icon images: consistent sizing */
.contact-link img{
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

/* Contact link labels: bold for emphasis */
.contact-link p{
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsive Design: Medium screens (tablets and smaller laptops) */
/* Below 1000px width - make heights auto to prevent overflow issues */
@media (max-width: 1000px) {
    .about-me-content {
        height: auto;
    }

    .hero {
        height: auto;
    }

    .skills {
        height: auto;
    }

    .fav-songs, .fav-games {
        height: auto;

    }

    /* Reduce header margins to save space on smaller screens */
    .fav-games-header, .music-header, .skill-header, .about-me-header {
        margin-bottom: 2rem;
    }
}

/* Responsive Design: Small screens (mobile phones) */
/* Below 600px width - scale down card and image sizes */
@media (max-width: 600px) {
    /* Shrink card images to fit mobile screens */
    .card img{
        width: 72px;
        height: 72px;
    }

    /* Reduce card size for mobile layout */
    .card{
        max-width: 160px;
        padding: 12px;
        margin: 0.5rem;
    }

    /* Prevent selfie from shrinking too small on mobile */
    .selfie{
        width: clamp(250px, 40vw, 450px);
    }

    /* Scale down contact icons for mobile */
    .contact-link img{
        width: 60px;
        height: 60px;
    }

    /* Reduce spacing between contact icons */
    .contact-icons{
        gap: 40px;
    }

    /* Compact navbar for mobile screens */
    .navbar-container{
        gap: 8px;
        padding: 0 10px;
    }

    /* Smaller navbar text and buttons for mobile */
    .navbar-container a{
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}
