/* --------- Base --------- */
:root{
  --bg: #0b0d10;
  --panel: #12161b;
  --soft: #1a1f26;
  --text: #e7ebf3;
  --muted: #9aa6b2;
  --brand: #6aa6ff;          /* Accent color */
  --brand-2: #9b8cff;        /* Secondary accent */
  --ring: rgba(106,166,255,.45);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #0e1116 40%, var(--bg) 100%);
  color: var(--text);
  line-height:1.6;
}

img{ max-width:100%; display:block; }

/* Container */
.container{
  width:min(1100px, 92%);
  margin-inline:auto;
}

/* --------- Header / Nav --------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background: rgba(11,13,16,.75);
  -webkit-backdrop-filter: blur(8px);
    backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}

.logo{
  color:var(--text);
  font-weight:800; letter-spacing:.5px; text-decoration:none; font-size:1.25rem;
}
.logo span{ color:var(--brand); }

.menu{ display:flex; gap:18px; align-items:center; }
.menu a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  padding:8px 10px;
  border-radius:10px;
  transition: color .2s ease, background .2s ease, transform .1s ease;
}
.menu a:hover{ color:var(--text); background:rgba(255,255,255,.06); }

.btn{
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#0b0d10; font-weight:800; text-decoration:none;
  padding:10px 14px; border-radius:12px; box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.08);
}
.btn:hover{ filter:saturate(1.1) brightness(1.02); }

.btn-sm{ padding:8px 12px; font-size:.95rem; }

.btn-ghost{
  background:transparent; color:var(--text); box-shadow:none;
  border:1px solid rgba(255,255,255,.12);
}
.btn-ghost:hover{ background:rgba(255,255,255,.06); }

.burger{
  display:none; font-size:1.3rem; background:none; border:0; color:var(--text); cursor:pointer;
}

/* --------- Hero --------- */
.hero{
  padding:80px 0 40px;
}

.hero-grid{
  display:grid; align-items:center; gap:36px;
  grid-template-columns: 220px 1fr;
}

.avatar{
  width:220px; aspect-ratio:1/1; border-radius:50%;
  object-fit:cover; border:6px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

.hero-copy h1{
  margin:0 0 8px; font-size:clamp(2rem, 5vw, 3rem);
}
.tagline{
  margin:0 0 18px; color:var(--muted); font-weight:600;
}
.quick-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:14px; }

.links{ color:var(--muted); display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.links a{ color:var(--text); text-decoration:none; border-bottom:1px dashed transparent; }
.links a:hover{ border-bottom-color: var(--brand); }

/* --------- Sections --------- */
.section{ padding:64px 0; }
.section-alt{ background: linear-gradient(180deg, var(--panel), var(--soft)); border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06); }
.section h2{
  margin:0 0 20px; font-size:1.8rem;
}

/* Cards */
.cards{
  display:grid; gap:18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card{
  background: rgba(255,255,255,.04);
  border:2px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding:30px;
  box-shadow: var(--shadow);
}

.card h3{ margin:0 0 6px; }
.card p{ margin:0; color:var(--muted); }

/* Projects */
.project .card-top{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px;
}
.project .project-links{ display:flex; gap:10px; }
.project .project-links a{
  color:var(--text); text-decoration:none; font-weight:600;
  padding:6px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.12);
}
.project .project-links a:hover{ background:rgba(255,255,255,.06); }
.meta{ list-style:none; display:flex; gap:10px; padding:0; margin:12px 0 0; flex-wrap:wrap; }
.meta li{
  font-size:.85rem; color:var(--muted);
  padding:6px 10px; border:1px solid rgba(255,255,255,.1); border-radius:999px; background:rgba(255,255,255,.03);
}

/* Timeline */
.timeline{ position:relative; margin-left:12px; }
.timeline::before{
  content:""; position:absolute; left:8px; top:0; bottom:0; width:2px; background:rgba(255,255,255,.12);
}
.t-item{ position:relative; padding-left:28px; margin:20px 0; }
.t-dot{
  position:absolute; left:0; top:10px; width:16px; height:16px; border-radius:50%;
  background:linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow:0 0 0 4px rgba(106,166,255,.2);
}
.t-content{ background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding:16px; }
.t-content h3{ margin:0 0 6px; }
.t-time{ margin:0 0 8px; color:var(--muted); font-weight:600; }

/* Skills */
.skill-grid{
  display:grid; gap:18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.skill-col{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding:16px;
}
.skill-col h4{ margin:0 0 10px; }
.pill-list{
  list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:10px;
}
.pill-list li{
  padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.03); color:var(--muted); font-weight:600; font-size:.95rem;
}

/* Contact */
.contact-card{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding:20px;
  font-size:1.05rem;
}
.contact-card a{ color:var(--text); text-decoration:none; border-bottom:1px dashed transparent; }
.contact-card a:hover{ border-bottom-color: var(--brand); }

/* Footer */
.site-footer{
  padding:30px 0; text-align:center; color:var(--muted);
  border-top:1px solid rgba(255,255,255,.08);
  background: #0b0d10;
}

/* --------- Responsive --------- */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; text-align:center; }
  .hero-media{ display:flex; justify-content:center; }
}

/* Mobile nav */
@media (max-width: 780px){
  .menu{ position:absolute; right:4%; top:64px; background: rgba(18,22,27,.98);
         border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:10px;
         display:none; flex-direction:column; gap:6px; width: min(280px, 92%); }
  .menu.open{ display:flex; }
  .burger{ display:block; }
}
/* Slider container */
.slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: auto;
  
}

/* Track with sliding effect */
.slide-track {
  display: flex;
  gap: 1rem;
  animation: scroll 20s linear infinite;
}

.card {
  flex: 0 0 280px; /* fixed width for cards */
  padding: 1.5rem;
  border-radius: 12px;
  background: #1e1e1e;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Fix Contact button text color */
.menu .btn-sm {
  color: #0b0d10 !important;  /* black text */
}
.menu .btn-sm:hover{
  color: white !important;  /* black text */
}

/* --------- Light Mode --------- */
.light-mode {
  --bg: #f9f9f9;
  --panel: #ffffff;
  --soft: #f1f1f1;
  --text: #111;
  --muted: #555;
  --brand: #0077ff;
  --brand-2: #005fcc;
  --ring: rgba(0,119,255,.3);
  --shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* Fix card background in light mode */
.light-mode .card {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
}

/* Footer in light mode */
.light-mode .site-footer {
  background: #fff;
  color: #555;
  border-top: 1px solid #ddd;
}
/* Navbar links */
header nav ul li a {
  color: #222;  /* dark color for light mode */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #0077b6; /* highlight on hover */
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  header nav ul li a {
    color: #f5f5f5; /* light color for dark mode */
  }

  header nav ul li a:hover {
    color: #90e0ef; /* light blue hover in dark mode */
  }
}
/* Navbar links - default state */
header nav ul li a {
  color: #000;  /* solid black so it’s clearly visible in light mode */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover effect */
header nav ul li a:hover {
  color: #0077b6; /* highlight on hover */
}

/* Dark mode override */
@media (prefers-color-scheme: dark) {
  header nav ul li a {
    color: #fff; /* bright white in dark mode */
  }

  header nav ul li a:hover {
    color: #90e0ef; /* light blue hover in dark mode */
  }
}
/* Light Mode Navbar Fix */
.light-mode .menu a {
  color: #e4dddd;  /* dark gray, clearly visible */
}

.light-mode .menu a:hover {
  color: var(--brand); /* keep the blue highlight on hover */
}
/* Toggle Button Container */
/* Toggle button */
/* Toggle button */
/* Toggle Button */
#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--card-bg);
  border: none;
  border-radius: 50%;
  padding: 12px;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.4s ease;
}

#theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

#theme-toggle:active {
  transform: rotate(-20deg) scale(0.95);
}

body.dark-mode #theme-toggle {
  background: #444;
  color: #ffeb3b; /* Sun bright yellow */
  box-shadow: 0 0 12px rgba(255, 235, 59, 0.7);
}

body.light-mode #theme-toggle {
  background: #eee;
  color: #333;
}
#theme-toggle {
  position: static;
  top: 20px;
  right: 20px;
  
}
/* Theme toggle button inside nav */
.theme-toggle {
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--panel);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover { transform: scale(1.1); }
.nav {
  display: flex;
  align-items: center;   /* vertically center everything */
  justify-content: space-between;
  gap: 1rem;
}

/* Buttons container */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 780px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 4%;
    top: 64px;
    background: var(--panel);
    padding: 12px;
    border-radius: 12px;
    gap: 8px;
    width: min(280px, 92%);
  }

  .menu.open { display: flex; }

  .burger { display: block; }
}
@media (min-width: 781px) {
  .burger { display: none; }
}
/* Achievements section - manual scroll like Projects */
#achievements {
  padding: 2rem;
}

#achievements h2 {
  text-align: center;
  margin-bottom: 1rem;
}

/* Manual scroll container */
#achievements .slider {
  overflow-x: auto;         /* horizontal scroll */
  overflow-y: hidden;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch; /* smooth on mobile */
}

#achievements .slide-track {
  display: flex;
  gap: 1rem;
}

/* Cards inside Achievements */
#achievements .card {
  min-width: 250px;
  padding: 1rem;
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
  text-align: center;
}

/* Scrollbar styling */
#achievements .slider::-webkit-scrollbar {
  height: 8px;
}
#achievements .slider::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}
.project-slider {
 overflow-x: auto;         /* horizontal scroll */
  overflow-y: hidden;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch; /* smooth on mobile */
/* Smooth scroll on mobile */
}

.project-slider .cards {
  display: flex;          /* Place cards in a row */
  gap: 1rem;              /* Space between cards */
}

.project-slider::-webkit-scrollbar {
  height: 8px;
}

.project-slider::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}
#achievements h2 {
  text-align: left; /* Align heading to the left */
  margin-bottom: 1rem;
}
