body {
    background: #0D0D12;
    color: #F5F5F5;
}

.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.intro-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-screen p {
    animation-name: blink;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    padding: 20px;
    box-sizing: border-box;
    z-index: 9998;
} 

.logo {
    text-decoration: none;
    color: #FFFDE4 ;
    font-weight: 500;
    font-size: 1.3rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: #FFFDE4 ;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu {
    display: flex;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0D0D12;
    padding: 10px;
    border-radius: 5px;
    z-index: 9990;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-20px);
}

.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #111118;
    transition: height 0.3s ease;
}


.menu a {
    color: #FFFDE4 ;
    text-decoration: none;
    font-size: 3rem;
    margin: 15px;
    position: relative;
}

.menu a:hover {
    color: #F5F5F5;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background-color: #111118;
}

.menu-toggle.open {
    font-size: 0;
}

.menu-toggle.open::after {
    content: '×';
    font-size: 1.5rem;
    transform: scaleX(0.7);
}

.menu-toggle.open::before {
    height: 100%;
}


.hero {
    height: 550px;
    width: 95%;
    margin: 55px auto 0;
    box-sizing: border-box;
}

.container {
    padding-left: 8%;
    box-sizing: border-box;
    padding-top: 0px;
}

.hero h1 {
    font-size: 5rem;
    color: #FFFDE4 ;
}

.hero p {
    font-size: 2rem;
    color: #FFFDE4 ;

}

.hero a {
    display: inline-block;
    font-size: 1.5rem;
    color: #FFFDE4 ;
    text-decoration: none;
    transition: transform 0.2s ease;
    position: relative;
}

.hero a::after { 
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #FFFDE4;
    transition: width 0.7s ease;
}

.hero a:hover::after {
    width: 100%;
}

.hero a:hover {
    transform: scale(1.05);
}

#typing-text::after {
    content: '|';
    animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink { 
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}

.tech-stack {
    width: 92%;
    margin: 0 auto;
    padding-bottom: 40px;
    text-align: center;
}

.tech-stack p {
    font-size: 1.5rem;
    color: #FFFDE4;
    opacity: 1;
}

.about-container {
    padding-left: 8%;
    box-sizing: border-box;
    padding-top: 0px;
}

.about-container h1 {
    font-size: 4rem;
}

.about-container p {
    font-size: 1.4rem;
}

.about-container h2 {
    font-size: 1.3rem;
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .hero {
        height: auto;
        min-height: 0;
    }
}


.project h2 {
    font-size: 2rem;
    color: #FFFDE4;
    margin-top: 0px;
    margin-bottom: 15px;
}

.project-number {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
    margin-bottom: 10px;
}

.project {
    margin-top: 50px;
    padding: 30px;
    border: 1px solid rgba(255, 253, 228, 0.15);
    border-radius: 4px;
    max-width: 750px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255, 253, 228, 0.15);
    border-radius: 4px;
    margin-bottom: 25px;
}

.project:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 253, 228, 0.5);
}


.project p {
    font-size: 1.3rem;
    color: #FFFDE4;
    max-width: 700px;
}

.project-stack {
    font-size: 1rem;
    color: #FFFDE4;
    margin-top: 25px;
}

.project a {
    display: inline-block;
    position: relative;
    color: #FFFDE4;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.project a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #FFFDE4;
    transition: width 0.9s ease;
}

.project a:hover:after {
    width: 100%;
}

.project a::hover {
    transform: scale(1.05);
}