/* General Styles */
html, body {
    height: 100%; /* Ensure full height */
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrollbars */
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #2d2d4a); /* Gradient background */
    color: white;
    height: 100%;
}

/* Navigation */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

/* Ensure logo and nav stay aligned in the center */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
}

nav li {
    display: inline;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: 0.3s;
    font-size: 1rem;
}

nav a:hover, .active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Centering Content for Hero, About, Projects, and Contact */
section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Center content vertically */
    text-align: center;
    height: 100vh; /* Full height for each section */
    padding: 20px;
}

section h2, section h3 {
    margin-bottom: 1rem;
}

section p {
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://source.unsplash.com/1600x900/?technology') center/cover;
    background-size: cover;
    padding-top: 0; /* Remove the padding top */
}

.hero-content {
    position: absolute; /* Positioning the content absolutely within the hero section */
    top: 50%;
    transform: translateY(-50%); /* Ensuring it's centered vertically */
    text-align: center;
    padding: 0 2rem;
}

.hero-content h1 {
    margin-bottom: 0.2em;
}

.hero-content h2 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    font-size: 1.25rem;
    margin: 1rem 0;
}

.about-box {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #f0a500;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #ffcc33;
}
.btn.linkedin {
    background: #0077b5; /* LinkedIn Blue */
}
.btn.linkedin:hover {
    background: #005582; /* LinkedIn Darker Blue */
}
/* GitHub Section */
.github-section {
    margin-top: 2rem;
    text-align: center;
}

.github-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.github-section p {
    margin-bottom: 1rem;
}

.github-section .btn {
    background: #24292f; /* GitHub Dark Gray */
    color: white;
}

.github-section .btn:hover {
    background: #6e7dff; /* GitHub Hover Effect */
}

/* Sparkle Background */
#sparkle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: none;
    opacity: 0.8;
    filter: blur(0.5px) brightness(1.7);
    pointer-events: none;
    z-index: 0;
}

.sparkle::before, .sparkle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 1px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 6px 2px white;
    transform: translate(-50%, -50%) rotate(0deg);
}
.sparkle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Optional: Add more rays for a star effect */
.sparkle.star-4::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.sparkle.star-4::after {
    transform: translate(-50%, -50%) rotate(135deg);
}

@keyframes sparkle-move {
    0% {
        opacity: 0.8;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) translateY(-10px);
    }
    100% {
        opacity: 0.6;
        transform: scale(1) translateY(0);
    }
}
