/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: white;
    margin: 0 15px;
}

/* Header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1rem;
}

.logo {
    color: #fff;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation Menu */
nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #4A90E2;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger i {
    color: #fff;
    font-size: 1.5rem;
}

/* Mobile Responsive Styling */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 0.5rem 0;
    }
}
@media (max-height: 800px) {
    .about-me {
        height: auto;
        min-height: 100%;
    }

    .about-container {
        margin: 10px auto 60px auto; /* Add bottom margin for footer */
    }
}
/* Particles.js Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

/* Foreground Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    background-image: linear-gradient(
        to right,
        #990000,
        #FFC72C 50%,
        #fff 50%
    );
    background-size: 200% 100%;
    background-position: -100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;

}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); */
}
.hero-content:hover{
    background-position: 0;
    color: transparent;
}

.hero-content p {
    font-size: 1.5rem;
    margin-top: 10px;
}

/*----------- Footer-------------------------------------------------------- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: transparent;
    color: white;
    z-index: 10;
}

.footer-icons {
    margin-bottom: 10px;
}

.footer-icons a {
    color: #FF8C00;
    margin: 0 15px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-icons a:hover {
    color: #FFA500;
}

footer p {
    font-size: 0.9rem;
    color: #808080;
}
/* ########################################################################### */
/* to make the background blur on small screens */
/* Add Blur to Background */
.blur-background {
    filter: blur(5px); /* Apply blur */
    pointer-events: none; /* Ensure it's not interactive */
}

/* Overlay for Better Readability */
.overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    backdrop-filter: blur(5px); /* Background blur */
    z-index: 999; /* Below the navigation menu */
}

/* Show Overlay when Menu is Active */
.overlay.active {
    display: block;
}
/*##################################################################################*/

/* About Me Page */
/* Particles Background - Blur only on About Me Page */
.about-page #particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* filter: blur(5px); Blurs only on About Me page */
    z-index: 1;
}


/* About Me Section */
.about-me {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 160px); /* Account for header and footer */
    padding: 80px 20px 80px; /* Top padding for header, bottom for footer */
    color: white;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center */
    margin-bottom: 60px; /* Space for footer */
}

/* About Container */
.about-container {
    display: flex;
    align-items: center; /* Center children horizontally */
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    width: 90%;
    position: relative;
    margin: 0 auto;
}

/* About Content */
.about-content {
    direction: flex;
    flex-direction: column;
    padding-bottom: 70px;
    position: relative;
    flex: 1;
    text-align: left;
    font-size: clamp(1.0rem,2vw,1.1rem);
    line-height: 1.6;
}

.about-content h2 {
    font-size: clamp(1.3em, 3vw, 2.5rem); /* Responsive headings */
    margin-bottom: 15px;
    text-align: center;
}

.about-content p {
    margin-bottom: 15px;
}

.about-content ul {
    list-style: none;
    padding: 0;
    font-size: clamp(1.0rem,2vw,1.1rem);
}

/* Circular Image */
.about-image img {
    width: clamp(150px, 20vw, 200px); /* Proportional but capped */
    height: clamp(150px, 20vw, 200px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5);
    margin-left: 20px;
    margin-right: 20px;
}
/* Typewriter Effect Styling */
.typewriter {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    overflow: hidden;
    border-right: 2px solid white;
    white-space: nowrap;
    margin: 0 auto;
    width: fit-content;
    animation: typing 10s steps(1, 9), blink-caret 0.5s step-end 9;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
}

/*#############################################################*/
.download-resume {
    margin-top: auto;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;

}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background-color: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.resume-btn i {
    font-size: 1.1rem;
}

/* Add hover effect to match your theme */
.resume-btn:hover i {
    animation: bounce 0.5s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
   
}
/* Resume Page Styles */
.resume-page #particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* filter: blur(5px); Blur background */
    z-index: 1;
}

.resume-section {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    margin-top: 80px; /* Add space to prevent overlapping with the header */
    color: white;
    text-align: center;
    margin-bottom: 100px;
}

.resume-container {
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.resume-container h1 {
    font-size: 2.5rem;
}

.pdf-viewer iframe {
    width: 100%;
    height: 60vh; /* Adjust height to be proportional to screen */
    border-radius: 10px;
    border: none;
}

/* ###################################################################### */
/* Projects Page */
.projects-page #particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    filter: blur(5px);
    z-index: 1;
}

.projects-section {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 40px 20px;
    min-height: 100vh; /* Ensures it spans the full height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.projects-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.project-card {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: left;
}

.project-card:hover {
    background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%); /* Gradient effect */
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
    color: #ffffff;
}

.project-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #FFC72C;
    transition: color 0.3s ease;
}

.project-card:hover h2 {
    color: black;
}

.project-card p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.project-card a {
    text-decoration: none;
    color: #00aaff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-card a:hover {
    color: #ff6a9d;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
    }
}

/* Small screens */
@media screen and (max-width: 480px) {
    .projects-section h1 {
        font-size: 2rem;
    }

    .project-card h2 {
        font-size: 1.25rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }
}

/* ###################################################################### */