@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html { font-size: 62.5%; scroll-behavior: smooth; }
body { background-color: black; color: white; overflow-x: hidden; }
span { color: #8B0000; }

header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo { font-size: 3rem; color: #8B0000; font-weight: 800; }
.logo:hover { transform: scale(1.1); }

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}
nav a:hover, nav a.active { color: #8B0000; border-bottom: 3px solid #8B0000; }

section {
    min-height: 100vh;
    padding: 10rem 9% 5rem;
    scroll-margin-top: 80px;
}
section h2 { font-size: 4rem; font-weight: 700; margin-bottom: 3rem; }
section p { font-size: 1.6rem; color: #ccc; margin-bottom: 1.5rem; line-height: 1.8; }

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: black;
}
.home-img img {
    width: 32vw;
    border-radius: 50%;
    border: 3px solid #8B0000;
    box-shadow: 0 0 25px #8B0000;
    transition: 0.3s ease;
}
.home-img img:hover { box-shadow: 0 0 50px #8B0000; }
.home-content h1 { font-size: 6rem; font-weight: 700; line-height: 1.3; }
.home-content h3 { font-size: 4rem; font-weight: 700; margin-bottom: 1rem; }
.home-content p { font-size: 1.6rem; color: white; }

/* TYPING ANIMATION */
.typing-text span {
    position: relative;
    color: #8B0000;
}

.typing-text span::before {
    content: "Software Developer";
    animation: words 6s infinite;
}

.typing-text span::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 0;
    width: 3px;
    height: 100%;
    background: #8B0000;
    animation: cursor 0.6s infinite;
}

@keyframes cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes words {
    0%,  49% { content: "Software Developer"; }
    50%, 100% { content: "Web Developer"; }
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 0.2rem solid #8B0000;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    color: #8B0000;
    transition: 0.3s ease;
}
.social-icons a:hover {
    color: black;
    background: #8B0000;
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px #8B0000;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #8B0000;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #8B0000;
    transition: 0.3s ease;
    cursor: pointer;
}
.btn:hover { background: #8B0000; color: black; box-shadow: 0 0 25px #8B0000; }

#services, #projects { background: #0a0a0a; }
#skills, #contact    { background: #111; }
#education           { background: black; }

footer {
    background: #0a0a0a;
    border-top: 2px solid #8B0000;
    padding: 3rem 9%;
    text-align: center;
    font-size: 1.5rem;
}
footer p { color: #aaa; margin-bottom: 1rem; }
footer a { color: white; margin: 0 0.5rem; transition: 0.3s; }
footer a:hover { color: #8B0000; }

@media (max-width: 995px) {
    nav { display: none; }
    .home { flex-direction: column; padding-top: 14rem; gap: 4rem; }
    .home-img img { width: 70vw; }
    .home-content h1 { font-size: 4rem; }
    .home-content h3 { font-size: 2.5rem; }
}
