html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #000000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 1.1rem;
  line-height: 1.6;
}

p {
  margin-bottom: 1rem;
  color: #444;
}

header {
  padding: 2rem 3rem 3rem;
  background-color: transparent;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: #111;
  margin-bottom: 0.5rem;
}

button, input, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Basic navbar layout */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: auto;
}

.nav-logo a {
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: #222;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #0077cc;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #800080;
}

input:checked + .slider::before {
  transform: translateX(22px);
}

/* Resume Document Formatting */
.resume-document {
  background-color: #fdfdfd;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  padding: 4rem;
  max-width: 850px;
  margin: 5rem auto;
  border-radius: 8px;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.resume-name h1 {
  font-size: 4.2rem;
}

.resume-contact {
  text-align: right;
  font-size: 1rem;
}

.resume-contact a {
  text-decoration: none;
}

.resume-section {
  margin: 3rem 0;
}

.resume-section h3 {
  margin-bottom: 1rem;
}

.divider {
  height: 3px;
  margin-bottom: 1.5rem;
  width: 100%;
}

.resume-section ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.resume-section ul li {
  margin-bottom: 0.5rem;
}

.job {
  margin-bottom: 2rem;
}

.intro {
  display: flex;
  background-color: #000000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: left;
  padding-top: 6rem;
  animation: fadeIn 1s ease;
}

.about-center p{
  color: #ffffff;
  font-size: xx-large;
}

.about-center {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.large-section-gap {
  height: 10rem;
}

/* Tech Stack Section */
.tech-stack {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  animation: fadeIn 1.5s ease;
}

.tech-stack h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.stack-item {
  background-color: #f0f0f0;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
}

.stack-item:hover {
  transform: scale(1.1);
  background-color: #eaeaea;
}

/* Timeline Section */
.timeline {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  animation: fadeIn 1.5s ease;
}

.timeline h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.timeline-container {
  position: relative;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #800080, #800080);
  transform: translateX(-50%);
}

.timeline-item {
  width: 50%;
  padding: 1rem 2rem;
  position: relative;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item .content {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.timeline-item .content:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Projects Page */
.projects {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  animation: fadeIn 1.5s ease;
}

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

.project-category {
  margin-bottom: 5rem;
}

.project-category h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.project-card {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  padding: 1.5rem 2rem;
  margin-top: auto;
  background-color: #000000;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.socials {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.socials a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
}

.socials a:hover {
  transform: scale(1.2);
}

.trademark {
  font-size: 0.9rem;
}

.trademark p{
  color: #ffffff
}

/* Responsive */
@media (max-width: 768px) {
  nav { gap: 20px; }
  .footer-content { flex-direction: column; text-align: center; }
  .socials { margin-bottom: 1rem; flex-direction: column; }
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    left: 0 !important;
    text-align: center !important;
  }
  .timeline-container::before { left: 50%; }
  .resume-header { flex-direction: column; align-items: flex-start; }
}

.auth-popup button {
  padding: 0.8rem;
  background-color: #800080;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.admin-container {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.admin-form {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form input,
.admin-form textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.admin-form button {
  padding: 0.8rem;
  background-color: #800080;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.admin-form button:hover {
  background-color: #5f005f;
}

.admin-hidden {
  display: none;
}

#blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  backdrop-filter: blur(15px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-popup {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  z-index: 10000; 
  position: relative;
}

.auth-popup input {
  width: 100%;
  padding: 0.8rem;
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.auth-popup button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.8rem;
  background: #800080;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  transform: scale(0.96);
  transition: transform 0.05s ease;
}
