html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

:root {
    --primary-color: #ffffff;
    --dark-text-color: #000000;
    --light-text-color: #ffffff;
    --light-background-color: #ffffff;
    --dark-background-color: #000000;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-v24-latin-regular.woff2') format('woff2');
}


@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-v24-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/poppins-v24-latin-700.woff2') format('woff2');
}

body {
    background-color: #ffffff;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    margin: 0;
}

header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 100rem;
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding-top: 1rem;
    list-style: none;
}

.nav-list li {
    padding: 1rem 0;
}

.nav-toggle:checked ~ .nav-list {
    display: flex;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.logo {
    width: 3rem;
    height: auto;
    aspect-ratio: auto;
}

.nav-list a, a:visited, a:hover, a:active {
    text-decoration: none;
    color: inherit;
}

main {
    max-width: 100rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0 2rem 0;
    gap: 2rem;
}

.hero-content {
    order: 1;
}

.hero-image {
    order: 2;
    display: flex;
    justify-content: center;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0;
    padding-bottom: 0;
    margin-top: 0;
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--dark-text-color);
    margin: 1.5rem 0 2rem 0;
    max-width: 500px;
    line-height: 1.6;
    opacity: 0.7;
}

.hero h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-text-color);
    opacity: 0.9;
}


.jsm_profile-pic {
    width: 19.5rem;
    height: auto;
    aspect-ratio: auto;
    
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.btn-primary {
    display: inline-block;
    background-color: var(--dark-background-color);
    color: var(--light-text-color) !important;
    padding: 1rem 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 0;
}

.btn-primary:hover {
    color: var(--dark-text-color) !important;
    background-color: var(--light-background-color);
    border: 2px solid var(--dark-background-color); 
}

.btn-primary:visited {
    color: var(--dark-text-color) !important;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    margin-top: 0; 
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    
    background-color: transparent;
    border: 2px solid var(--dark-background-color);
    color: var(--dark-text-color);
}

.btn-secondary:hover {
    background-color: var(--dark-background-color);
    color: var(--light-text-color);
}

.skills-bar {
    text-align: center;
    margin-top: 1.5rem;
    padding: 5rem 1rem;
    background-color: #f9f9f9;
}

.skills-bar h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skills-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-bar li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    
    background-color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-text-color);
    
    border: 1px solid #e0e0e0; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.skills-bar li img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.skills-bar li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--dark-background-color);
}

.custom-icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--dark-text-color); 
}

.skills-heading-secondary {
    margin-top: 3rem;
}

.gallery {
    padding: 4rem 2rem;
    text-align: center;
    background-color: transparent;
}

.gallery h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


.project-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: box-shadow 0.3s ease;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    width: 100%;
    aspect-ratio: 18 / 9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-content {
    padding: 1.5rem;
}

.card-content h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.project-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 1rem;
    background-color: var(--dark-background-color); 
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text-color);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links a {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.rights {
    display: block;
    color: #888;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        flex-direction: row;       
        justify-content: center;
        align-items: flex-start;
        margin-top: 3rem;
        text-align: left;       
        min-height: 80vh;     
        gap: 1rem;
    }

    .hero-content {
        flex: 0 1 auto;
        max-width: 600px;
        padding-right: 0;
        order: 1;              
    }

    .hero-image {
        flex: 0 1 auto;
        justify-content: flex-start;
        order: 2;
        margin-top: 3rem;           
    }
    
    .btn-primary {
        margin-left: 0;
    }

    .nav-toggle-label {
        display: none;
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        width: auto;
        gap: 2rem;
        padding-top: 0;
    }
    
    .nav-list li {
        padding: 0;
    }

    .jsm_profile-pic {
        width: 26rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {        
        gap: 5rem;
    }

    .hero-content {
        margin-top: 2.5rem; 
    }
    
    .hero-image {
        margin-top: 0; 
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-wrap: nowrap; 
        width: 100%;
        gap: 0.5rem;
    }

    .btn-primary, 
    .btn-secondary {
        flex: 1;           
        padding: 0.8rem 0.5rem; 
        text-align: center;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}