@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');
*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    background-color: #16161a;
    color: #fff;
    font-family: "Poppins", sans-serif;
    height: 100%;
}

body {
    overflow-x: hidden;
    position: relative;
}

.section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
}

/* Nav Bar */

header {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 100;
}
header nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10px;
    animation: fadeInDown .8s;
}

header nav .header_links ul {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

header nav .header_links ul li, section.main ul li {
    list-style-type: none;
}

header nav .header_links ul li a {
    outline: none;
    text-decoration: none;
    color: #a6a8b8;
    padding: 5px 12px;
    transition: 0.3s all;
    font-size: 15px;
}

header nav .header_links ul li a:hover {
    color: white;
}

header nav .header_logo img {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    object-fit: cover;
    border: 5px solid #3b3d4e93;
    cursor: pointer;
}

/* Responsive nav bar */

@media only screen and (max-width: 630px) {
    header nav {
        display: flex;
        flex-direction: column;
    }
    header nav .header_logo {
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 320px) {
    header nav .header_links ul {
        display: flex;
        justify-content: center;
        text-align: center;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Main */
section.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeInUp .8s;
}

section.main img {
    width: 150px;
    height: 150px;
    border-radius: 100%;
    object-fit: cover;
    border: 10px solid #21222b93;
    cursor: pointer;
    margin-bottom: 10px;
}

section.main span {
    color: #fffffe;
    font-size: 30px;
    font-weight: bold;
}

section.main p {
    position: relative;
    top: 0;
    border-right: 2px solid rgba(255, 255, 255, .75);
    white-space: nowrap;
    overflow: hidden;
    color: #94a1b2;
    font-size: 13px;
    animation: typewriter 4s steps(41) 1s 1 normal both, blinkTextCursor 530ms steps(41) infinite normal;
    margin: 10px 0;
    width: auto;
}

section.main ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section.main ul li a {
    color: #a6a8b8;
    display: flex;
    text-decoration: none;
    margin: 20px 5px;
    font-size: 25px;
    padding: 5px;
    transition: 0.2s all;
}

section.main ul li a:hover {
    transition: 0.2s all;
    color: #fff;
}

/* Projects Section */
.projects {
    background-color: #16161a;
    text-align: center;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fffffe;
}

.projects-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    background-color: #242629;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: #fffffe;
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status {
    font-size: 0.7rem;
    background-color: #7f5af0;
    color: #fffffe;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: normal;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    background-color: #16161a;
    color: #94a1b2;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.project-link:hover {
    background-color: #2cb67d;
    color: #fffffe;
}

.project-link i {
    margin-right: 6px;
    font-size: 1rem;
}

/* Scroll Arrow */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-down span {
    color: #a6a8b8;
    font-size: 12px;
    margin-bottom: 5px;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.scroll-arrow i {
    font-size: 20px;
}

.scroll-arrow.up {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 300px;
    }
}

@keyframes blinkTextCursor {
    from {
        border-right-color: rgba(255, 255, 255, .75);
    }
    to {
        border-right-color: transparent;
    }
}

@keyframes fadeInUp {
    from {
        transform: translate3d(0, 150px, 0)
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1
    }
}

@keyframes fadeInDown {
    from {
        transform: translate3d(0, -150px, 0)
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1
    }
}

a {
    color: #fff;
}
.link {
    padding: 5px;
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}


@media only screen and (max-width: 768px) {
    .section {
        height: auto;
        min-height: 100vh;
        padding: 80px 20px 100px;
    }
    
    /* Better header spacing for mobile */
    header nav {
        background-color: rgba(22, 22, 26, 0.9);
        backdrop-filter: blur(10px);
        padding: 15px;
        width: 100%;
    }
    
    header nav .header_links ul {
        justify-content: center;
        width: 100%;
    }
    
    /* Adjust main section for mobile */
    section.main {
        padding-top: 100px;
    }
    
    section.main p {
        white-space: nowrap;
        overflow: hidden;
        border-right: 2px solid rgba(255, 255, 255, .75);
        animation: typewriterMobile 4s steps(40) 1s 1 normal both, blinkTextCursor 530ms steps(40) infinite normal;
        font-size: 14px;
        text-align: center;
        max-width: 325px;
    }
    
    @keyframes typewriterMobile {
        from {
            width: 0;
        }
        to {
            width: 325px;
        }
    }
    
    /* Projects section mobile styling */
    .projects {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .projects-container {
        width: 95%;
        margin-bottom: 50px;
    }
    
    .project-card {
        padding: 15px;
    }
    
    .project-card h3 {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }
    
    .scroll-down {
        bottom: 20px;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
    }
    
    .projects h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .projects-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .project-card {
        margin-bottom: 0;
    }
}

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

