body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: 'Courier New', monospace;
    color: #fff;
    overflow-x: hidden;  /* Only hide horizontal overflow */
    overflow-y: auto;    /* Enable vertical scrolling */
}

#top-nav {
    position: fixed;
    top: 20px;  /* Added margin from top */
    left: 50%;
    transform: translateX(-50%);  /* Center the nav bar */
    padding: 12px 30px;
    text-align: center;
    z-index: 100;
    background: rgba(40, 40, 40, 0.7);  /* Subtle gray background */
    border-radius: 25px;  /* Rounded edges */
    backdrop-filter: blur(5px);  /* Optional: adds a slight blur effect */
}

#top-nav a {
    color: #00ffcc;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: all 0.3s ease;
}

#top-nav a:hover {
    color: #fff;
    text-shadow: 0 0 5px #00ffcc;
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-section h1 {
    font-size: 4rem;
    color: #00ffcc;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);  /* Reduced glow intensity */
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-section p {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 20px;
    opacity: 0.8;
}

/* @keyframes glow {
    from {
        text-shadow: 0 0 2px #00ffcc, 0 0 4px #00ffcc; 
    }
    to {
        text-shadow: 0 0 3px #00ffcc, 0 0 6px #00ffcc;  
    }
} */

#particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow-y: auto;    /* Enable scrolling in the wrapper */
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    scroll-snap-align: start;
    position: relative;  /* Ensure proper stacking */
}

.about-section, .contact-section {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.about-section h2, .contact-section h2 {
    color: #00ffcc;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content, .contact-content {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(40, 40, 40, 0.7);
    backdrop-filter: blur(5px);
}

.about-content p, .contact-content p {
    margin: 1rem 0;
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-content a {
    color: #00ffcc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-content a:hover {
    color: #fff;
    text-shadow: 0 0 5px #00ffcc;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;  /* Changed from mandatory to proximity for smoother scrolling */
    height: 100%;
}

.projects-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.projects-container h1 {
    color: #00ffcc;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.project {
    background: rgba(40, 40, 40, 0.7);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 204, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 204, 0.5);
}

.project h2 {
    color: #00ffcc;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project p {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-links a {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.github-link {
    background: #00ffcc;
    color: #000;
}

.demo-link {
    background: transparent;
    color: #00ffcc;
    border: 1px solid #00ffcc;
}

.github-link:hover {
    background: #00ccaa;
}

.demo-link:hover {
    background: rgba(0, 255, 204, 0.1);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

#ascii-background {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    overflow: hidden;
    height: 300px;
}

@media (max-width: 768px) {
    .projects-container {
        margin: 60px auto;
    }

    .project {
        padding: 1.5rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-links a {
        text-align: center;
    }
}

/* Social buttons in hero section */
.social-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-button {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #000;
    background: #00ffcc;
}

.social-button i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.social-button.linkedin {
    background: #0077b5;
    color: white;
}

.social-button.github {
    background: #333;
    color: white;
}

.social-button.cv {
    background: #00ffcc;
    color: #000;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-button.linkedin:hover {
    background: #0066a1;
}

.social-button.github:hover {
    background: #222;
}

.social-button.cv:hover {
    background: #00e6b8;
}

@media (max-width: 768px) {
    .social-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }
    
    .social-button {
        text-align: center;
        justify-content: center;
    }
}

/* About Section Redesign */
.about-content {
    max-width: 1000px;
    width: 100%;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(40, 40, 40, 0.7);
    backdrop-filter: blur(5px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-content h3 {
    color: #00ffcc;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 204, 0.3);
    padding-bottom: 0.5rem;
}

.about-content h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.institution, .company {
    color: #00ffcc;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.date {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Updated skill tag styling with icons */
.skill-tag {
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tag i {
    font-size: 1rem;
}

.skill-tag:hover {
    background: rgba(0, 255, 204, 0.2);
    transform: translateY(-2px);
}

.about-experience, .about-projects {
    margin-top: 2rem;
}

.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    border-left: 3px solid #00ffcc;
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateX(5px);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-details li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.project-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-item {
    padding: 1.5rem;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.1);
}

.project-item h4 {
    color: #00ffcc;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #fff;
  background-color: #555;
  margin-right: 0.5rem;
}

.hackathon {
  background-color: #ff4500; /* bright orange/red color for hackathon */
  color: #fff;
  font-weight: bold;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .project-items {
        grid-template-columns: 1fr;
    }
}
  