/* Main stylesheet - cleaned and consistent */

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

::-webkit-scrollbar-corner {
  background: #ccc;
}

:root {
  --accent: #616161;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f8fafc;
  --linktext: #3d6cb7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #111827;
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

.site-overlay {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Layout wrapper */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid #e6edf3;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.25rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.main-nav a:hover {
  color: var(--accent);
  background: rgba(11, 132, 255, 0.06);
}

/* Site body */
.site-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profile */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  color: var(--accent);
}

.profile h3 {
  margin: 0.5rem 0 0.25rem 0;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
}

.social-links {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.social-links a {
  margin: 0 0.5rem;
  color: var(--muted);
  text-decoration: none;
}

.profile-about {
  max-width: 700px;
  font-size: 20px;
  text-align: justify;
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: rgba(0, 0, 0, 0.06);
  color: #525252;
  padding: 0;
}

.footer-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-credit p {
  margin: 0;
  padding: 0;
}
.footer-credit a {
  text-decoration: none;
  color: var(--linktext);
}
.footer-credit a:hover {
  text-decoration: underline;
}

/* Utilities and small components */
.lead {
  color: var(--muted);
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
}

.cta:hover {
  opacity: 0.95;
}

/* About page */


.about-body{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem; 
}


.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.about-photo .profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid var(--accent);
}

.about-intro h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.lead {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill {
  background: #f1f5f9;
  border: 1px solid #e6eef8;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--accent);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed #eef4fb;
}

.timeline .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-me a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

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

/* Projects page styles */
.projects-hero {
  margin-bottom: 2rem;
  text-align: center;
}

.projects-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.projects-hero .lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.projects-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card img {
  object-fit: cover;
  aspect-ratio: 1.6;
  width: 400px;
  height: 100%;
  border-radius: 8px;
}

.project-card:nth-of-type(even){
  flex-direction: row-reverse;
}

.project-card {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  transition: transform 0.15s, box-shadow 0.15s;
}


.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.project-card p {
  margin: 0 0 1rem 0;
  color: #444;
}

.card-link {
  margin-top: auto;
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s;
}

.card-link:hover {
  background: #333;
}



@media (max-width: 640px) {
  .wrapper {
    padding: 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .main-nav ul {
    gap: 0.5rem;
  }

  .projects-hero h1 {
    font-size: 1.6rem;
  }

  .project-card {
    padding: 1rem;
    flex-direction: column;
  }
  .project-card:nth-of-type(even){
    flex-direction: column;
  }

  .project-card img {
    width: 100%;
    height: auto;
  }
}
