:root {
    /* Dark Theme Colors */
    --background-color: #202328;
    --text-color: #c7cacc;
    --accent-color: #4A90E2;
    --hover-color: #809fff;
    --card-background: #1b1c1d;
    --border-color: rgba(200, 200, 200, 0.1);
    --shadow-color-dark: rgba(67, 63, 63, 0.3);
    --shadow-color-light: rgba(255, 255, 255, 0.05);
    --header-background: #171819;
    --footer-background: #0d0f12;
}

:root.light-theme {
    /* Light Theme Colors */
    --background-color: #f4f4f4;
    --text-color: #1d1e1e;
    --accent-color: #4A90E2;
    --hover-color: #218c7e;
    --card-background: #fff;
    --border-color: #eee;
    --shadow-color-dark: rgba(0, 0, 0, 0.1);
    --shadow-color-light: rgba(0, 0, 0, 0.05);
    --header-background: #fff;
    --footer-background: #fff;
}

/* General Body and Typography */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100%;
    overflow: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

main {
    height: 100vh;
    overflow-y: scroll; /* Keep scroll functional */
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 20px; /* Adjusted padding for fixed header */
    text-align: center;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    height: 100vh;
    scroll-snap-align: start;
    box-sizing: border-box;
    overflow-y: auto;
}

section h1{
    font-size: 40px;
}

/* Specific section styling */
.section-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

#projects .section-content {
    overflow-y: hidden;
}

#hero {
    background-color: var(--background-color);
}

#about {
    background-color: transparent;

}
#about p{
    width: 50rem;
}

.about-content {
    background: rgba(255, 255, 255, 0.1); /* Frosted glass background */
    backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 5px 5px 15px var(--shadow-color-dark), -5px -5px 15px var(--shadow-color-light);
}

#skills {
    background-color: var(--background-color);
}

#projects {
    background-color: var(--card-background);
    overflow: hidden; /* Prevent vertical scroll on the section itself */
}

#blog {
    background-color: var(--background-color);
}

#contact {
    background-color: var(--card-background);
}

main {
    padding-top: 80px;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.1); /* Frosted glass background */
    backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 15px;
}

nav ul {
    
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}


nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    
    color: var(--accent-color);
}

/* Buttons */
.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--hover-color);
}

.resume-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Social Links */
.social-links-about {
    margin-top: 20px;
}

.social-link-about {
    display: inline-block;
    color: #c7cacc;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.social-link-about:hover {
    color: var(--accent-color);
}

.social-link-about i {
    margin-right: 5px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 80%;
    max-width: 1200px;
    margin: 30px auto 0;
    
}

.skill-category {
    background: rgba(255, 255, 255, 0.1); /* Frosted glass background */
    backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: var(--text-color);
}

.skill-category h2 {
    color: var(--accent-color);
    margin-top: 0;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-category ul li:last-child {
    border-bottom: none;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 30px;
    padding-top: 20px;
    padding-left: 20px;
}

.project {
    background: rgba(255, 255, 255, 0.1); /* Frosted glass background */
    backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: left;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 20px var(--shadow-color-dark),
                -8px -8px 20px var(--shadow-color-light);
}

.project h2 {
    color: var(--accent-color);
    margin-top: 0;
}

.project p {
    font-size: 0.95em;
    color: var(--text-color);
    flex-grow: 1;
}

.project-links {
    margin-top: 15px;
}

.project-button {
    margin-right: 10px;
    margin-bottom: 10px; /* For stacking on small screens */
    width: 25%;
    padding: 10px;
    text-align: center;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.scroll-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.scroll-indicator-dot.active {
    background-color: var(--accent-color);
}

/* Blog Section */
#blog article {
    background: rgba(255, 255, 255, 0.1); /* Frosted glass background */
    backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin: 0 auto 20px;
    text-align: left;
    width: 80%;
    max-width: 800px;
    padding: 20px;
    border-radius: 8px;
}

#blog article h2 {
    color: var(--accent-color);
}

/* Contact Section */
.contact-links {
    margin-top: 20px;
}

.contact-link {
    display: inline-block;
    color: #c7cacc;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-link i {
    margin-right: 5px;
}

/* Footer */
footer {
    background-color: var(--footer-background);
    color: var(--text-color);
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.blog-footer {
    background-color: var(--footer-background);
    color: var(--text-color);
    padding: 20px 0;
    text-align: center;
    width: 100%;
    margin-top: auto; /* Pushes the footer to the bottom of the flex container */
}

.blog-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.blog-footer .footer-links a,
.blog-footer .footer-social a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.blog-footer .footer-links a:hover,
.blog-footer .footer-social a:hover {
    color: var(--accent-color);
}

.blog-footer .footer-social i {
    font-size: 1.5em;
}

#theme-toggle-footer {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 15px;
}

#theme-toggle-footer:hover {
    color: var(--accent-color);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    #about p{
    width: 25rem;
}

    #vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  height: 65vh;
  width: 50vw;
  z-index: 0;
}

    nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        background-color: rgba(23, 24, 25, 0.65);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        border-radius: 8px;
    }

    nav.active {
        display: block;
        align-items: end;   
        background-color: rgba(23, 24, 25, 0.65);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        border-radius: 8px;
    }

    nav ul {
            background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(120%) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        flex-direction: column;
        border-radius: 12px;
        align-items: center;
        
    }

    nav ul li {
        margin: 15px 0;
        padding-left: 40px;
        border-bottom: 1px solid var(--text-color);
        width: 90px;
        align-items: center;
        
    }

    .skills-grid {
        grid-template-columns: 1fr;
        width: 95%;
        max-height: 80vh;
        overflow-y: auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        width: 95%;
        grid-auto-flow: row;
        overflow: visible;
    }

    #projects {
        height: auto;
        overflow: visible;
    }

    #projects .section-content {
        overflow: visible;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        width: 95%;
    }

    #projects {
        overflow-y: auto;
    }

    .project-links {
        display: flex;
        justify-content: center;
    }

    .project-button {
        display: block;
        width: 50%;
    }

    #blog article {
        width: 95%;
    }

    .project p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Adjust sections for natural scrolling on small screens */
    section {
        min-height: auto; /* Allow content to define height */
        padding: 10px;
    }

    #sections-container {
        height: auto; /* Allow content to define height */
        overflow-y: auto; /* Enable natural scrolling */
        scroll-snap-type: none; /* Disable scroll snapping */
    }

    .scroll-indicator {
        display: none;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
main::-webkit-scrollbar,
.section-content::-webkit-scrollbar,
.projects-grid::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
main,
.section-content,
.projects-grid {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Make Vanta full screen and behind content */
#vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 0;
}

/* Make your content layered above */
#content {
  position: relative;
  z-index: 1;
}

/* OPTIONAL: Make section backgrounds transparent to reveal Vanta */

section
 {
  background: transparent !important;
}

h1,#contact p,#about p,#hero p{
    color: #c7cacc !important;
}





.vanta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.44); /* Adjust darkness here */
  z-index: 1;
}

#resume-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.resume-content {
    position: relative;
    width: 80%;
    height: 90%;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
}

.close-resume {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #333;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}