/* 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, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: white;
    height: 100%;
}
.hamburger {
    display: none; /* Hidden by default, shown in media query */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #000; /* Black background */
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
    box-sizing: content-box;
}
/* Responsive styles for 900px and 600px breakpoints */
@media (max-width: 900px) {
    html, body {
        overflow: auto; /* Allow scrolling on smaller screens */
    }
    header {
        flex-direction: column;
        padding: 1rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .box-outline {
        padding: 16px;
        max-width: 95vw;
    }
    .hamburger {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: #000; /* Black background */
        border: none;
        cursor: pointer;
        z-index: 1100;
        padding: 0;
        box-sizing: content-box;
    }
    .hamburger span {
        display: block;
        height: 4px;
        width: 28px;
        margin: 3px 0; /* Space between lines */
        background: #fff;
        border-radius: 2px;
        transition: 0.3s;
    }
    nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(30,30,47,0.98);
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    nav.open {
        display: flex;
    }
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        padding: 1rem 0;
    }
    nav ul li {
        width: 100%;
        text-align: center;
    }
    .aligned-list {
        flex-direction: column;
        align-items: center;
    }
    h1 {
        margin-top: 120px;
    }
    .hero-content h1 {
        margin-top: 10px;
    }
    .hero-content .box-outline {
        margin-top: 120px;
    }
    .contact h1 {
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .hamburger {
        width: 32px;
        height: 32px;
    }
    nav ul {
        gap: 1rem;
    }
    header {
        flex-direction: column;
        padding: 0.5rem;
    }
    .logo {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    nav ul {
        gap: 0.5rem;
    }
    section, .hero {
        padding: 10px;
        height: auto;
        min-height: 100vh;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

/* 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;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: auto;
    color: #fff;
    letter-spacing: 1px;
    /* transform: perspective(200px) rotateX(8deg); */
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

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;
    min-height: 100vh; /* Full height for each section */
    padding: 20px;
}

section h2, section h3 {
    margin-bottom: 1rem;
}

section p {
    margin-bottom: 1rem;
}
.aligned-list {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.projects .aligned-list {
    margin-top: 0.5rem;
}

.project {
    flex: 1 1 200px;
    max-width: 350px;
    text-align: center;
}

.project img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    min-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;
}

.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;
}

.box-outline {
    border: 4px solid #444;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #8241d8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #c18ffa;
}
.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 */
    background: #6e7dff;
    color: white;
}

.github-section .btn:hover {
    /* background: #6e7dff; /* GitHub Hover Effect */
    background: #464fa5;
}

/* 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);
    }
}

.rain-outline {
    border: 4px solid transparent;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(5px);
    animation: rainbow-border 5s linear infinite;
}

@keyframes rainbow-border {
    0% {
        border-color: #ff0000; /* Red */
    }
    16% {
        border-color: #ff7f00; /* Orange */
    }
    33% {
        border-color: #ffff00; /* Yellow */
    }
    50% {
        border-color: #00ff00; /* Green */
    }
    66% {
        border-color: #0000ff; /* Blue */
    }
    83% {
        border-color: #4b0082; /* Indigo */
    }
    100% {
        border-color: #8b00ff; /* Violet */
    }
}

.flashing-purple {
    color: #a259ff; /* Purple color */
    font-size: 1.5rem; /* Match text size */
    font-weight: bold;
    animation: flash-purple 1s infinite; /* Flash animation */
    vertical-align: middle; /* Align with text */
}

@keyframes flash-purple {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.logo-text {
    font-size: 1.5rem; /* Match flashing-purple size */
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #222, 2px 2px 6px #a259ff, 0 4px 12px rgba(162, 89, 255, 0.5);
    letter-spacing: 1px;
    vertical-align: middle; /* Align with flashing-purple */
}
