/* Design tokens */
:root {
  --bg: #0b0f1a; /* 0b0f1a */
  --bg-elev: #0f172a; /* 0f172a */
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #863cf5;  /* 35116b */
  --accent-strong: #c4b5fd;
  --card: #0b1220; /*0b1220 */
  --border: #1f2937;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  scroll-behavior: smooth;
  overscroll-behavior: none;
  height: 100%;
  margin: 0;
  font-family: Segoe UI, system-ui, -apple-system; /* 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif */
  color: var(--text);

  /* background: radial-gradient(1200px 600px at 20% -10%, rgba(167,139,250,0.08), transparent),
              radial-gradient(800px 400px at 80% 10%, rgba(34,197,94,0.05), transparent),
              linear-gradient(180deg, #05070d, #0b0f1a 20%, #0b0f1a 100%);  35116b   */ 

  background: linear-gradient(135deg, #000000 50%, #120622 80%, #35116b 110%);
  background-attachment: fixed;
  overflow: hidden;
}

.padding-sm { padding: 1rem; }
.padding-md { padding: 2rem; }
.padding-lg { padding: 4rem; }
.padding-xl { padding: 16rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(5, 7, 13, 0.65);
  border-bottom: 1px solid var(--border);
}

.site-header .brand {
  padding-left: 20px; /* adjust as needed */
}

.header-image {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;   /* vertically center image + text */
  gap: 8px;              /* spacing between image and text */
  font-weight: bold;     /* make text bold */
  color: var(--text);    /* keep your theme color */
  text-decoration: none; /* remove underline */
}

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: 
  space-between; 
  height: 64px; 
}

.nav-construction {
  margin-left: auto;
  color: var(--muted);
  padding-right: 2rem;
}

.nav-links { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: rgba(167,139,250,0.08); }
.nav-toggle { display: none; background: transparent; color: var(--text); border: 0; font-size: 22px; }

/* Hero */


.scroll-down-arrow {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.scroll-down-arrow.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-down-arrow:hover {
  transform: translateX(-50%) translateY(5px); /* small hover bounce */
}


.hero { 
  /* padding: 120px 0 80px;  */
  text-align: center; 
}
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; margin: 0 0 8px; }
h1 { font-size: 40px; margin: 6px 0 12px; line-height: 1.1; }

.hero-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 30px;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.accent { color: var(--accent); }
.subtitle { color: var(--muted); max-width: 760px; margin: 0 auto 24px; font-size: 18px; }
.cta-row { display: flex; gap: 12px; justify-content: center; }
.button { display: inline-block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid var(--border); }
/* .button.primary { 
  background: var(--accent); 
  color: #0a0a0a; 
  border-color: transparent; 
  align-items: center; 
  font-size: 18px;   
  font-weight: 600;  
  padding: 0.75rem 1.5rem; /
  border-radius: 8px; 
  cursor: pointer;
}*/

.button.primary {
  background: var(--accent); 
  color: #0a0a0a; 
  border: none;
  display: inline-flex;        /* make it a flex container */
  align-items: center;         /* center text vertically */
  justify-content: center;     /* center text horizontally */
  font-size: 1.125rem;         /* ~18px */
  font-weight: 600;
  padding: 0.75rem 1.5rem;     /* vertical + horizontal padding */
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;              /* prevent extra spacing */
}

.button.ghost { color: var(--text); }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }


/* Hero Buttons Container */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Social Buttons */
.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-button:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.social-button .icon {
  width: 24px;
  height: 24px;
  stroke: var(--text);
  transition: all 0.3s ease;
}

.social-button:hover .icon {
  stroke: var(--accent);
  transform: scale(1.1);
}

/* Layout helpers */
.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.aside-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.meta-list li { display: flex; justify-content: space-between; color: var(--muted); }
.meta-list strong { color: var(--text); }

/* Skills */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { background: #0d1526; border: 1px solid var(--border); color: var(--text); padding: 6px 10px; border-radius: 999px; font-size: 13px; }

/* Projects */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; margin-bottom: 8px; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.pill-list li { background: rgba(167,139,250,0.12); color: var(--accent-strong); border: 1px solid var(--border); padding: 4px 8px; border-radius: 999px; font-size: 12px; }

/* Experience */
.timeline { 
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item { 
  position: relative;
  margin-bottom: 32px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  z-index: 1;
}

.timeline-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-content h3 { 
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Experience row layout */
.experience-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.experience-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.experience-text {
  flex: 1;
}


/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; color: var(--text); text-decoration: none; }
.contact-card:hover { background: #0f1528; box-shadow: var(--shadow); }

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  padding: 18px 0; 
  color: var(--muted); 
}

.footer-content {
  /* max-width: 1200px; */
  margin: 0;
  /* padding: 0 2rem; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* gap: 1rem; */
}

.footer-content p {
  color: var(--text-secondary);
  margin: 0;
  justify-content: space-between; 
  flex-wrap: wrap;  
}

/* .footer-content {
  display: flex;
  align-items: center;       
  justify-content: space-between; 
  flex-wrap: wrap;          
  gap: 1rem;               
} */

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

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.social-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-content {
      flex-direction: column;
      text-align: center;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 0 12px; justify-content: space-between; }
  .nav-construction {
    margin-left: auto;
    padding-right: 0;
    text-align: right;
    white-space: nowrap;
    font-size: 12px;
  }
  .nav-toggle { display: inline-block; }
  .nav-links { position: absolute; right: 20px; top: 64px; background: rgba(5,7,13,0.92); border: 1px solid var(--border); padding: 10px; border-radius: 10px; flex-direction: column; gap: 8px; display: none; }
  .nav-links.open { display: flex; }
  h1 { font-size: 32px; }
  .grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: row; }
  
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }

  .social-button {
      width: 60px;
      height: 60px;
  }

  .social-button .icon {
      width: 28px;
      height: 28px;
  }

  /* Timeline mobile adjustments */
  .timeline { padding-left: 20px; }
  .timeline::before { left: 6px; }
  .timeline-item { padding-left: 16px; margin-bottom: 24px; }
  .timeline-item::before { left: -12px; width: 10px; height: 10px; }
  .experience-row { flex-direction: column; gap: 12px; }
  .experience-image { width: 50px; height: 50px; }
}
.hero-buttons {
    flex-direction: row;
    gap: 1rem;
}

.social-button {
    width: 50px;
    height: 50px;
}

.social-button .icon {
    width: 24px;
    height: 24px;
}


.maincontainer {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory; /* snap vertically */
}

.section {
  height: 100vh; /* full viewport height */
  scroll-snap-align: start; /* align each section */
  display: flex;
  padding: 80px 0;
  /* font-size: 3rem; */
  /* color: white; */
}

.section.hero { 
  align-items: center;
  justify-content: center;
  margin-top: -4rem;
}

.section.about { 
  align-items: center;
  justify-content: center;
}

.section.projects { 
  align-items: center;
  justify-content: center;
}


.section.contact {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes footer to the bottom */
  min-height: 100vh; /* ensures full viewport height */
  padding: 78px 0;
}

.horizontal-stack {
  display: flex;
  gap: 1rem; /* space between items */
}

.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 
    "title github"
    "description description"
    "pills pills";
  gap: 0.5rem 1rem;
}

.title { grid-area: title; }
.github-link { 
  grid-area: github; 
  color: var(--text);
}

.github-link:hover { 
  grid-area: github; 
  color: var(--accent);
  transform: translateY(-1px);
}

.description { grid-area: description; }
.pill-list { grid-area: pills; }
