
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  margin: 0;
  padding: 45px;

  
  background-color: var(--bg);
  color: var(--text);

  transition: background-color 0.25s ease, color 0.25s ease;

  margin-top: 130px;
  padding-top: 70px;
}


.hero{
    margin-top: 10px;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 560;
  font-size: 48px;
  letter-spacing: -0.02em;

  margin-left: 45px;
  margin-top: 100px;

}

.name {
  color: #8b6dfb; 
  margin-bottom: 10px;  
}

.logo{
  width: 100px;
  height: auto;
  position: fixed;
  top: 20px;
  left: 45px; 
  z-index: 9999;
  margin: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  
}

.logo.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.logo {
  width: 100px;
  position: fixed;
  top: 20px;
  left: 45px;
  z-index: 9999;
}

.dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .light {
    display: none;
  }

  .dark {
    display: block;
  }
}



.logo-light {
  display: block;
}

.logo-dark{
  display: none;
}


.dark .logo-light {
  display: none;
}

.dark .logo-dark {
  display: block;
}



h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 560;
  font-size: 48px;
  letter-spacing: -0.02em;
  margin-top: 10px;
  margin-left: 45px;
}
.resume-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 22px;
  margin-left: 45px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;

  color: #0b0b0d;
  background-color: #ffffff;

  border: 1px solid #dcdcdc;
  border-radius: 999px;

  text-decoration: none;
  transition: all 0.2s ease;
}

.resume-btn:hover {
  background-color: #f2f2f2;
  transform: translateY(-1px);
}

.theme-btn {
  position: fixed;
  top: 90px;
  right: 90px;
  
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 100%;
  cursor: pointer;

  transition: background-color 0.2s ease, transform 0.2s ease;
}

.theme-btn:hover {
  background-color: #f2f2f2;
  transform: translateY(-1px);
}

:root {
  --bg: #fafafa;
  --text: #0b0b0d;
}

body.dark {
  --bg: #1c1c1e;   
  --text: #e6e6e6;
}


.projects {
  margin-top: -55px;

  font-size: 140px;
  margin-left: 45px;
}

.projects-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #777;
  margin-bottom: 40px;
  left: 45px;
}

.skills {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #777;
  margin-right: 1000px;
  margin-top: -30px;
}

.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: -40px;
}

.projects-list li {
  margin-bottom: 24px;
  margin-top: -40px;
}


.project-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}
h1, h2, h3 {
  margin-top: 0;
}
.type {
  display: inline-block;
  white-space: nowrap;
  border-right: 2px solid currentColor;
  padding-right: 3px;
  animation: caretBlink 0.8s step-end infinite;
}

@keyframes caretBlink {
  50% { border-color: transparent; }
}

.stack {
  margin-left: 45px;
  margin-top: 70px;
}

.stack-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 42px;        
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
}

.marquee {
  position: relative;
  overflow: hidden;
  width: min(900px, 92vw);
  left: 190px;
  margin-top: -65px;

  
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 16px;
  white-space: nowrap;
  will-change: transform;
  animation: scrollLeft 18s linear infinite;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;

  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}


body:not(.dark) .pill {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
}
.pill i {
  font-size: 20px;
}
.experience {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: 45px;
  margin-top: 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 18px;
  border-radius: 999px;

  background: #f3f3f3;
  border: 1px solid #e0e0e0;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #111;
}

.pill i {
  font-size: 20px;
}

.hide-on-scroll{
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}


.logo,
.theme-btn{
  transition: opacity 220ms ease, transform 220ms ease;
}

.type{
  border-right: 3px solid rgba(0,0,0,0.55);
  padding-right: 6px;
}

body.dark .type{
  border-right-color: rgba(255,255,255,0.55);
}



.site-footer{
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  color: rgba(0,0,0,0.6);
}

body.dark .site-footer{
  color: rgba(255,255,255,0.6);
}
.projects-title{
  font-size: 18px;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
  margin: 0 0 1px;
  margin-right: 25px;
}

body.dark .projects-title{
  color: rgba(255,255,255,0.55);
}


#projects {
  text-align: left;
  align-self: flex-start;
  margin-right: -0.5rem;
  margin-top: 15px;
  width: 100%;
}

.socials{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;

  display: flex;
  gap: 10px;
  align-items: center;
}

.social-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 999px;

  text-decoration: none;
  font-weight: 600;


  background: rgba(0,0,0,0.06);
  color: inherit;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.social-link:hover{
  transform: translateY(-1px);
  opacity: 0.95;
}

.social-link i{
  font-size: 20px;
}


@media (max-width: 520px){
  .social-link span{ display: none; }
  .social-link{ padding: 10px; }
}
.top-right-controls{
 opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}


.socials{
  display: flex;
  gap: 8px;
}

.socials a{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 12px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;

  background: rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.socials a:hover{
  transform: translateY(-1px);
  opacity: 0.9;
}

.socials i{
  font-size: 18px;
}

@media (max-width: 520px){
  .socials span{ display: none; }
  .socials a{ padding: 8px; }
}

.about-section {
  margin-top: 40px;
}
.about-text {
  max-width: 700px;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  margin-top: 8px;
  margin-bottom: 24px;
}

.projects-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 90px;
}

.about-text {
  max-width: 600px;
  line-height: 2;
  font-size: 1rem;
  color: #555;
}
/* PROJECTS SECTION */
.projects {
  margin-top: 15px;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 25px;

}

/* Project card */
.project-card {
  display: block;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease
}



/* Title */
.project-card h4 {
  margin: 0 0 6px;
  font-size: 20px;
}

/* Description */
.project-card p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.85;
  margin-right: 45px;
}

/* Tech stack pills */
.tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

/* Dark mode support */
body.dark .project-card {
  background: rgba(255, 255, 255, 0.06);
}

body.dark .tech span {
  background: rgba(255, 255, 255, 0.12);
}

/* === AUTO-SCROLLING PROJECTS === */
.projects-marquee{
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 12px 0 22px;
}

/* moving row */
.projects-track{
  display: inline-flex;
  gap: 20px;
  white-space: nowrap;
  will-change: transform;
  animation: projectsScroll 26s linear infinite;
}

/* project card sizing */
.projects-track .project-card{
  flex: 0 0 320px;
}

/* pause on hover (important UX) */
.projects-marquee:hover .projects-track{
  animation-play-state: paused;
}

/* animation */
@keyframes projectsScroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* mobile tuning */
@media (max-width: 520px){
  .projects-track .project-card{
    flex-basis: 85vw;
  }
}
/* ALIGN PROJECTS WITH HERO TEXT */
.projects-marquee {
  margin-left: -45px;   /* pull it left to match hero */
  padding-left: 45px;   /* keep content readable */
  margin-top: -90px;   /* keep content readable */
}


body.dark .pill {

  border: 1px solid #4a4a4d;
  color: #e6e6e6;
}

