@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&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%;
}

body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* ================= DESKTOP NAV ================= */
.desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    color: rgb(0,255,187);
    transition: .3s;
}

.desktop nav a {
    margin-left: 3rem;
    font-size: 1.8rem;
    color: #fff;
    border-bottom: 3px solid transparent;
    transition: .3s;
}

.desktop nav a:hover,
.desktop nav a.active {
    color: rgb(0,255,187);
    border-bottom: 3px solid rgb(0,255,187);
}

/* ================= MOBILE NAV ================= */
.mobile {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    padding: 1rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    z-index: 300;
}

.mobile nav a {
    margin: 0 2rem;
    font-size: 2.4rem;
    color: #fff;
    transition: .3s;
}

.mobile nav a.active,
.mobile nav a:hover {
    color: rgb(0,255,187);
}

/* ================= HOME ================= */
section {
    padding: 12rem 5% 5rem;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.home h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
}

.home h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.home-content p {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    max-width: 600px;
    line-height: 2.3rem;
}

/* ================= SOCIAL ICONS ================= */
.social-icons a {
    display: inline-flex;
    width: 4rem;
    height: 4rem;
    
    border: 2px solid rgb(0,255,187);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    margin: 2.6rem 3rem 1rem 0;
    font-size: 2rem;
    color: rgb(0,255,187);
    transition: .3s;
}

.social-icons a:hover {
    background: rgb(0,255,187);
    color: #000;
    transform: scale(1.2);
    box-shadow: 0 0 25px rgb(0,255,187);
}

/* ================= BUTTON ================= */
.hire {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    border-radius: 3rem;
    border: 2px solid rgb(0,255,187);
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: .2rem;
    transition: .3s;
}

.hire:hover {
    background: rgb(0,255,187);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgb(0,255,187);
}

/* ================= TYPING TEXT ================= */
.typing-text {
    font-size: 3rem;
    font-weight: 600;
    white-space: nowrap;
}

.typing-text span {
    position: relative;
    color: rgb(0,255,187);
}

.typing-text span::before {
    content: "Web Developer";
    animation: words 10s infinite;
}

.typing-text span::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    width: 3px;
    height: 100%;
    background: rgb(0,255,187);
    animation: cursorBlink .7s infinite;
}

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

@keyframes words {
    0%, 20% { content: "Web Designer"; }
    21%, 40% { content: "Software Engineer"; }
    41%, 60% { content: "FullStack Developer"; }
    61%, 80% { content: "Web Developer"; }
    81%, 100% { content: "Graphic Designer"; }
}

/* ================= RESPONSIVENESS ================= */
@media (max-width: 768px) {
    .desktop { display: none !important; }
    .mobile { display: flex !important; }
}

@media (min-width: 769px) {
    .desktop { display: flex !important; }
    .mobile { display: none !important; }
}
