
/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  line-height: 1.7;
  background-color: #fdf6ee;
  color: #4b3d33;
  transition: background-color 0.4s, color 0.4s;
  padding-bottom: 4rem;
  overflow-x: hidden;
}

a {
  color: #876f5b;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header + Nav */
header {
  padding: 2rem;
  text-align: center;
}
nav h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
nav ul li a {
  font-weight: 600;
  position: relative;
}
nav ul li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #c4a484;
  transition: width 0.3s ease;
}
nav ul li a:hover::after {
  width: 100%;
}

/* Navigation (works same on all screen sizes now) */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: none;
  padding: 0;
  position: static;
  border: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}


/* Hero Section */
#hero {
  background: linear-gradient(180deg, #fdf6ee 0%, #faefe2 100%);
  padding-top: 6rem;
  padding-bottom: 5rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.02);
  text-align: center;
}
#hero h2 span {
  color: #c4a484;
  font-weight: bold;
}
#hero p {
  margin-top: 1rem;
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 750px;
  margin: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}
section.fade-in {
  opacity: 1;
  transform: translateY(0);
}
section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #6b5241;
}
@media (max-width: 600px) {
  section {
    padding: 3rem 1rem;
  }
  section h2 {
    font-size: 1.5rem;
  }
}

/* Project Filters */
.project-filters {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #cbb5a0;
  background-color: #fffdf9;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  color: #6b5241;
  min-width: 90px;
  text-align: center;
}

.filter-btn:hover {
  background-color: #f4e8da;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: #e6d3be;
}

@media (max-width: 600px) {
  .filter-btn {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    min-width: auto;
    flex-grow: 1;
  }
}

/* Projects */
.projects-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
.project-card {
  border: 1px solid #e9ded2;
  background: #fffdf9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}
.project-card h3 {
  margin-bottom: 0.5rem;
  color: #a2836e;
}

.edu-block {
  background-color: #fffdf9;
  border: 1px solid #e9ded2;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.edu-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}
.edu-block h3 {
  color: #a2836e;
  margin-bottom: 0.5rem;
}
.edu-block p {
  margin: 0.4rem 0;
}
.edu-note {
  font-style: italic;
  color: #7a6658;
}

/* Quote Section */
.quote-box p {
  margin: 1rem 0;
  font-style: italic;
}
#next-quote {
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  background-color: #f4e8da;
  border: none;
  border-radius: 8px;
  color: #6b5241;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
#next-quote:hover {
  background-color: #e2d1be;
  transform: scale(1.05);
}

/* Contact */
#contact p {
  margin: 0.75rem 0;
}
#contact i {
  margin-right: 0.4rem;
}

/* Resume Button */
.resume-button {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.5rem 1.2rem;
  background: #fffdf9;
  border: 1px solid #cbb5a0;
  border-radius: 30px;
  color: #6b5241;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.resume-button:hover {
  background: #f2e3d3;
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem 4rem;
  font-size: 0.95rem;
  opacity: 0.85;
}
.built-note {
  margin-top: 0.4rem;
  font-style: italic;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Theme Toggle */
#theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #fff3e6;
  border: none;
  border-radius: 50%;
  padding: 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 99;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #fdf6ee;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.loader-text {
  font-size: 1.1rem;
  color: #7d6452;
}
.dots::after {
  content: '';
  animation: dots 1.5s steps(3, end) infinite;
}
@keyframes dots {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { content: '...'; }
}

/* Divider */
.divider {
  height: 2px;
  background-color: #e6d8c9;
  margin: 3rem auto 2.5rem;
  max-width: 80%;
  border-radius: 2px;
  position: relative;
}
.divider span {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fdf6ee;
  padding: 0 0.6rem;
  font-size: 1.2rem;
}

/* Scroll-To-Top Button */
#scrollToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 4.5rem;
  background-color: #f4e8da;
  color: #6b5241;
  border: none;
  border-radius: 50%;
  padding: 0.6rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 98;
}
#scrollToTop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
}

/* Dark Mode Enhancements */
body.dark {
  background-color: #2e2721;
  color: #f6eee4;
}

body.dark a {
  color: #f4d7ba;
}

body.dark nav ul li a {
  color: #f4d7ba;
}

body.dark nav ul li a:hover::after {
  background-color: #f4d7ba;
}

body.dark .project-card {
  background: #3b312a;
  border-color: #5c4a3d;
}

body.dark .project-card p,
body.dark .edu-block p,
body.dark .quote-box p,
body.dark p,
body.dark #next-quote,
body.dark .resume-button {
  color: #f1e5d6 !important;
}

body.dark .resume-button {
  background-color: #3b312a;
  border-color: #6e5849;
}

body.dark .resume-button:hover {
  background-color: #4e3d30;
}

body.dark #theme-toggle {
  background: #4a3b33;
  color: #f6eee4;
}

body.dark #preloader {
  background: #2e2721;
}

body.dark .divider {
  background-color: #4e3d30;
}

body.dark .divider span {
  background-color: #2e2721;
}

body.dark .filter-btn {
  color: #f4d7ba;
  background-color: #3b312a;
  border-color: #6b5545;
}

body.dark .filter-btn.active {
  background-color: #5c4a3d;
}

body.dark .filter-btn:hover {
  background-color: #6e5849;
}

body.dark #next-quote {
  background-color: #3b312a;
  color: #f1e5d6;
}

body.dark #next-quote:hover {
  background-color: #574539;
}

body.dark #scrollToTop {
  background-color: #4e3d30;
  color: #f6eee4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark #hero {
  background: linear-gradient(180deg, #2e2721 0%, #3b312a 100%);
}

body.dark #hero p {
  color: #f1e5d6;
}

body.dark .edu-block {
  background-color: #3b312a;
  border-color: #5c4a3d;
}

body.dark .edu-note {
  color: #cdb8a4;
}

/* ✨ NEW — Lightened Section Headings for Dark Mode */
body.dark section h2 {
  color: #f8e6d6;
}

/* Optional: other headings */
body.dark .edu-block h3,
body.dark .project-card h3,
body.dark .blog-card a {
  color: #f4d7ba;
}

body.dark .blog-card {
  background-color: #3b312a;
  border-color: #5c4a3d;
}

body.dark .blog-card a {
  color: #f4d7ba;
}

body.dark .skill-pill {
  background-color: #3b312a;
  color: #f4d7ba;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .custom-cursor {
    display: none;
  }

  * {
    cursor: auto !important;
  }
}


  * {
    cursor: auto !important;
  }
}

/* Mobile nav fix: scrollable menu */
@media (max-width: 768px) {
  nav ul.mobile-nav {
    max-height: 60vh;
    overflow-y: auto;
  }
}
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.skill-pill {
  background-color: #f4e8da;
  color: #6b5241;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.skill-pill:hover {
  transform: scale(1.05);
}

body.dark .skill-pill {
  background-color: #3b312a;
  color: #f4d7ba;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.blogs-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.blog-card {
  background-color: #fffdf9;
  border: 1px solid #e9ded2;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.blog-card a {
  color: #6b5241;
  font-weight: 600;
}

body.dark .blog-card {
  background-color: #3b312a;
  border-color: #5c4a3d;
}
body.dark .blog-card a {
  color: #f4d7ba;
}
.avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.avatar-img:hover {
  transform: scale(1.05);
}
body.dark .avatar-img {
  border: 2px solid #5c4a3d;
}

/* --- Achievements Section Styling --- */

#achievements {
  padding: 4rem 1.5rem;
  background-color: var(--bg-color, #fdfcfb);
  color: var(--text-color, #2d2d2d);
}

#achievements h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--accent-color, #5d4037);
}

.achieve-block {
  margin-bottom: 2.5rem;
  background-color: rgba(255, 248, 245, 0.6);
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color, #795548);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.achieve-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--accent-color, #6d4c41);
}

.achieve-block p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.achieve-block a {
  color: var(--accent-color, #6d4c41);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.achieve-block a:hover {
  color: #3e2723;
  text-decoration: underline;
}

#achievements ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

#achievements ul li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  font-size: 0.95rem;
  list-style: disc;
}

body.dark #achievements {
  background-color: #1c1c1c;  /* cozy dark background */
  color: #f0f0f0;
}

body.dark #achievements a {
  color: #add8e6;
  text-decoration: underline;
}

body.dark #achievements a:hover {
  color: #ffd6a5;
}

body.dark #achievements h2,
body.dark #achievements h3 {
  color: #ffffff;
}

body.dark #achievements li {
  color: #e6e6e6;
}
