html,
body {
    height: 100%;
}

body {
    min-height: 100vh;

    /* Gradient overlay + image */
    background-image:
        linear-gradient(to bottom,
            rgba(11, 11, 43, 0.85),
            rgba(27, 39, 53, 0.9) 70%,
            rgba(9, 10, 15, 1)),
        url("../assets/romedigital-mascot.PNG");

    background-size: cover;
    background-repeat: no-repeat;

    /* Keeps image filling screen */
    background-position: center top;

    /* 🔑 Parallax feel */
    background-attachment: fixed;

    animation: parallaxMove 30s linear infinite;
    overflow-x: hidden;
    font-family: "Zen Dots", sans-serif;
}

@keyframes parallaxMove {
    0% {
        background-position: center 0%;
    }

    100% {
        background-position: center 100%;
    }
}

.zen-dots-regular {
    font-family: "Zen Dots", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h1,
h2,
h3 {
    letter-spacing: 2px;
    /* looks cleaner with this font */
}

.stars {
    position: absolute;
    inset: 0;
    width: 1px;
    height: 1px;
    background: white;

    box-shadow:
        2vw 5vh 2px white,
        10vw 8vh 2px white,
        25vw 30vh 1px white,
        50vw 75vh 1px white,
        75vw 78vh 2px white,
        95vw 75vh 2px white;

    animation: starsDrift 80s linear infinite;
}

@keyframes starsDrift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-300px);
    }
}

.shooting-star {
    position: absolute;
    top: 20%;
    left: -150px;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    opacity: 0.8;
    animation: shoot 5s linear infinite;
}

.shooting-star:nth-child(2) {
    top: 30%;
    animation-delay: 1s;
}

.shooting-star:nth-child(3) {
    top: 50%;
    animation-delay: 2s;
}

.shooting-star:nth-child(4) {
    top: 70%;
    animation-delay: 3s;
}

.shooting-star:nth-child(5) {
    top: 85%;
    animation-delay: 4s;
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(25deg);
        opacity: 1;
    }

    100% {
        transform: translateX(140vw) translateY(60vh) rotate(25deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    body,
    .stars,
    .shooting-star {
        animation: none;
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.space-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Navbar */

.navbar {
    background-color: #7A1C7A;
    font-family: "Zen Dots", sans-serif;
}

h1,
h2,
h3,
.nav-link,
.text-muted {
    color: #ffffff !important;
}

/* Hero Section */
.hero {
    background-image: url("../assets/hero-background.jpg");
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    margin-top: 100px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertical centering */
    align-items: center;
    /* horizontal centering */
    text-align: center;
    font-family: "Zen Dots", sans-serif;
}

.animate-hero {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1.2s ease-out forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.hero-content a {
    animation-delay: 0.6s;
}

.hero-content h1,
.hero-content p,
.hero-content a {
    opacity: 0;
    animation: heroFadeUp 1s ease-out forwards;
}

/* Buttons */
.btn {
    background-color: #BE3D88;
    color: white;
    border-color: black;
    font-family: "Zen Dots", sans-serif;
}

.btn:hover {
    background-color: #cfa959;
    font-family: "Zen Dots", sans-serif;
}

/* About Section */
#about {
    margin-top: 60px;
    background-color: #1E003C;
    border-radius: 12px;
    font-family: "Zen Dots", sans-serif;
}

.about-box {
    background-color: #1E003C;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    text-align: center;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Skills Section */
#skills {
    background-color: #1E003C;
    border-radius: 12px;
    margin-top: 60px;
    font-family: "Zen Dots", sans-serif;
}

.skill-box {
    background-color: #BE3D88;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.skill-box:hover {
    transform: translateY(-5px);
    background-color: #cfa959;
    font-family: "Zen Dots", sans-serif;
}

/* Projects Section */
#projects {
    margin-top: 80px;
    margin-bottom: 70px;
    background-color: #1E003C;
    border-radius: 12px;
    font-family: "Zen Dots", sans-serif;
}

.project-card {
    background-color: rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* smooth animation */
    transition: all 0.3s ease;

    /* base shadow */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h5 {
    margin-top: 10px;
    font-weight: 600;
    font-family: "Zen Dots", sans-serif;
}

.project-card p {
    font-size: 0.95rem;
    color: #ddd;
    flex-grow: 1;
}

/* Project Cards Hover Effect */
.project-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);

}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

a img {
    border: none;
    outline: none;
    -webkit-user-drag: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.footer-bar {
    width: 100%;
    background-color: #7A1C7A;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    margin: 0;
    color: white;
    font-family: "Zen Dots", sans-serif;
}

.footer-link {
    color: white;
    /* normal color */
    text-decoration: none;
    /* optional: remove underline */
    transition: color 0.3s;
    /* smooth color change */
}

.footer-link:hover {
    color: #ffdd57;
    /* color on hover */
}