@import url(https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap);
html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background-color: #0e1116; /* Dark greyish background */
    color: white;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow-x: hidden; /* Allow vertical scrolling */
    scroll-snap-type: y mandatory; /* Enable snapping on scroll */
    scroll-behavior: smooth; /* Smooth scrolling */
}

body::-webkit-scrollbar {
    display: none;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Ensure it stays behind the content */
}

.content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section {
    width: 100%;
    height: 100vh; /* Make each section take full viewport height */
    padding: 20px;
    box-sizing: border-box;
    scroll-snap-align: start; /* Snap each section to the start of the viewport */
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically center content */
}

#about-me, #experience, #projects, #contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

h1, h2 {
    margin-bottom: 20px;
    font-size: 3rem; /* Adjust the value as needed */
    margin-bottom: 20px;
    font-weight: 700;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
}

footer {
    position: relative;
    z-index: 2;
    padding: 20px;
    background-color: #333;
    width: 100%;
    text-align: center;
    color: white;
}

.scroll-btn {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    border-radius: 5px;
}

.up {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.down {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    z-index: 100;
}

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

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

nav ul li a:hover {
    text-decoration: underline;
}


footer {
    text-align: center;
    margin-top: 20px;
}

.about-container {
    display: flex;
    flex-direction: row; /* Align text and image side by side */
    align-items: center;
    justify-content: center;
    max-width: 900px;
    width: 90%;
    gap: 40px;
}

.about-text {
    flex: 1; /* Takes up available space */
    text-align: left;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.exp-text {
    flex: 1; /* Takes up available space */
    text-align: left;
}

.exp-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    align-items: center;
}

#experience {
    padding: 20px;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item .dot {
    position: absolute;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: #4CAF50; /* Green */
    border-radius: 50%;
    border: 2px solid #fff;
    top: 5px;
}

.timeline-item .timeline-content {
    padding-left: 40px;
    padding-top: 10px;
    background: #f4f4f4;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.timeline-item .timeline-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
}

.timeline-item .title {
    font-weight: bold;
}

.timeline-item .date {
    color: #777;
    font-size: 0.9em;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #4CAF50;
}

#repo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.repo-card {
    background: #1e1e2e;
    color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.repo-card:hover {
    transform: scale(1.05);
}

.repo-info {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 14px;
}

.repo-card a {
    display: inline-block;
    text-decoration: none;
    color: #00aaff;
    font-weight: bold;
    margin-top: 10px;
}


.contact-section {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.contact-section h2 {
    margin-bottom: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    /* padding: 10px; */
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background: #333;
    color: white;
}
.contact-form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #007BFF;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
.contact-form button:hover {
    background: #0056b3;
}
.glow-header {
    color: #fff;
    text-shadow: 0 0 2px #93e9ff,
                 0 0 8px #93ffe8
}

.glow-body {
    color: #fff;
    text-shadow: 0 0 2px #fff,
                 0 0 7px #e19dfe
}

.custom-cursor {
    position: fixed;
    width: 25px;
    height: 25px;
    border: 2px solid var(--green); /* or white */
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background-color: rgba(0, 255, 150, 0.2); /* subtle fill */
    box-shadow:
      0 0 10px rgba(0, 255, 150, 0.6),
      0 0 20px rgba(0, 255, 150, 0.4),
      0 0 30px rgba(0, 255, 150, 0.2);
    transition: box-shadow 0.3s ease;
  }