* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    height: 100vh;
    background: url(space2.jpg) no-repeat center / cover;
    padding: 50px 5%;
}

/* Frosted glass container + intro animation */
.container {
    position: relative;
    height: 100%;
    background: rgba(255, 255, 255, .1);
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    backdrop-filter: blur(30px);
    transform: scale(0);
    animation: zoom-in 1s ease forwards;
}

@keyframes zoom-in {
    100% {
        transform: scale(1);
    }
}

/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.animated {
    transform: translateY(30px);
    opacity: 0;
    animation: slide-in .5s forwards;
    animation-delay: .5s;
}

@keyframes slide-in {
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Navbar (desktop baseline) */
.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    position: relative;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
}

/* underline animation */
.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width .3s;
}

/* hover underline */
.navbar a:hover::after {
    width: 100%;
}

/* active page underline stays on */
.navbar a.active::after {
    width: 100%;
}

/* A11y helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 1px, 1px);
    border: 0;
}

/* Mobile toggle button (hidden on desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    line-height: 0;
}

.menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* --- Vertical layout --- */
.home {
    min-height: 100%;
    padding: 110px 5% 60px;
    /* space under header */
    color: #fff;
    display: flex;
    flex-direction: column;
    /* <- vertical stack */
    align-items: center;
    text-align: center;
    gap: 24px;
    animation-delay: .5s;
}

/* Profile image circle */
.home-img .img-box {
    position: relative;
    width: 200px;
    height: 200px;
    /* fixed desktop size */
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.home-img .img-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    /* show the whole image */
    background: #fff;
    /* fill behind transparent parts */
    padding: 10px;
    border-radius: 50%;
}

/* Text sizing */
.home-detail h1 {
    font-size: 32px;
}

.home-detail h2 {
    font-size: 22px;
    opacity: .9;
}

.home-detail p {
    margin: 10px 0 20px;
    max-width: 800px;
}

.home-detail .download-social {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: #fff;
    color: #333;
    border-radius: 40px;
    box-shadow: 0 0 10px #fff;
    text-decoration: none;
    font-weight: 500;
    transition: .5s;
}

.btn:hover {
    background: transparent;
    box-shadow: none;
    color: #fff;
}

.home-detail .social-icons a {
    display: inline-flex;
    padding: 8px;
    border: 2px solid #fff;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    margin: 0 2px;
    transition: .5s;
}

.home-detail .social-icons a:hover {
    background: #fff;
    box-shadow: 0 0 10px #fff;
    color: #333;
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width:1024px) {
    .home-img .img-box {
        width: 150px;
        height: 150px;
    }
}

/* Mobile nav & layout */
@media (max-width:768px) {

    /* show hamburger */
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 18px;
    }

    /* convert navbar to dropdown panel */
    .navbar {
        position: absolute;
        top: 70px;
        right: 5%;
        display: none;
        flex-direction: column;
        gap: 6px;
        padding: 12px 14px;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 12px;
        backdrop-filter: blur(8px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    }

    .navbar.open {
        display: flex;
    }

    .navbar a {
        margin: 6px 0;
        font-size: 16px;
    }

    /* font sizing down */
    .home-detail h1 {
        font-size: 24px;
    }

    .home-detail h2 {
        font-size: 18px;
    }

    .home-detail p {
        font-size: 14px;
        line-height: 1.5;
    }

    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .home {
        padding-top: 100px;
    }
}

/* Small phones */
@media (max-width:480px) {
    .home-img .img-box {
        width: 120px;
        height: 120px;
    }

    .home-detail h1 {
        font-size: 20px;
    }

    .home-detail h2 {
        font-size: 16px;
    }

    .home-detail p {
        font-size: 13px;
    }

    .btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}
