/* General Body Styles */
body {
    background-color: #000000; /* Black background */
    color: #FFFFFF; /* White */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Animated Starry Background */
@keyframes move-stars {
    from {transform: translateY(0px);}
    to {transform: translateY(-2000px);}
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
    z-index: -1; /* Place behind content */
}

.stars {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><circle cx="100" cy="100" r="1" fill="white"/><circle cx="250" cy="300" r="1" fill="white"/><circle cx="500" cy="150" r="1" fill="white"/><circle cx="700" cy="400" r="1" fill="white"/><circle cx="900" cy="200" r="1" fill="white"/></svg>') repeat;
    background-size: 1000px 1000px;
    animation: move-stars 50s linear infinite;
}

.stars2 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><circle cx="150" cy="450" r="1.5" fill="white"/><circle cx="400" cy="50" r="1.5" fill="white"/><circle cx="600" cy="250" r="1.5" fill="white"/><circle cx="800" cy="500" r="1.5" fill="white"/></svg>') repeat;
    background-size: 1500px 1500px;
    animation: move-stars 100s linear infinite;
}

.stars3 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><circle cx="50" cy="200" r="2" fill="white"/><circle cx="300" cy="100" r="2" fill="white"/><circle cx="550" cy="400" r="2" fill="white"/><circle cx="750" cy="150" r="2" fill="white"/></svg>') repeat;
    background-size: 2000px 2000px;
    animation: move-stars 150s linear infinite;
}


/* Header and Navigation */
header {
    background-color: rgba(26, 26, 26, 0.8); /* Semi-transparent */
    backdrop-filter: blur(5px); /* Frosted glass effect */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 20px;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #AAAAAA; /* Lighter Gray */
}

/* Main Content */
main {
    padding: 80px 20px 20px; /* Adjust top padding to account for fixed header */
    max-width: 960px;
    margin: 0 auto;
    position: relative; /* Needed for z-index stacking */
    z-index: 1;
}

section {
    padding: 60px 0;
    border-bottom: 1px solid #333;
    background-color: rgba(18, 18, 18, 0.5); /* Slightly transparent sections */
    border-radius: 10px;
    margin-bottom: 40px;
    padding: 40px;
}

section:last-child {
    border-bottom: none;
}

h1, h2 {
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 2.5rem;
    min-height: 3rem; /* Reserve space for typing effect */
}

h2 {
    font-size: 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 5px;
    background-color: #333;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid #555;
}

.btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* Animation for sections */
.scroll-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: rgba(26, 26, 26, 0.8);
    border-top: 1px solid #333;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul li {
        margin: 0 10px;
    }

    main {
        padding-top: 120px; /* Adjust for smaller screens if nav wraps */
    }
}