:root{
  --bg: #0d1117;
  --bg-elev: #111827;
  --bg-elev-2: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: #2a2f3a;
  --yellow: #facc15;
  --yellow-600: #eab308;
  --yellow-700: #ca8a04;
  --card: #141a22;
  --shadow: rgba(0,0,0,0.4);
}

*{ box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

a {
  color: var(--yellow);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}
a:hover { color: #fde047; }

.page-content{ padding-top: 5rem; min-height: 80vh; }
.section{ padding: 4rem 5%; }
.page-hero{
  padding: 6rem 5% 2rem;
  background: linear-gradient(180deg, rgba(250,204,21,0.06), rgba(0,0,0,0));
  border-bottom: 1px solid var(--line);
}
.page-hero h1{
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin: 0 0 .5rem;
}
.page-hero p{ color: var(--muted); margin: 0; }

.navbar{
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(13,17,23,0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav-container{
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: .9rem 5%;
}
.logo{
  font-weight: 700; letter-spacing: .5px; color: var(--text);
}
.nav-links{ display: flex; gap: 1.25rem; }
.nav-links a{
  color: var(--text);
  opacity: .85;
  padding: .4rem .6rem;
  border-radius: .5rem;
}
.nav-links a:hover{
  opacity: 1;
  background: rgba(250,204,21,0.08);
  color: var(--yellow);
}
.nav-toggle{ display:none; background:none; border:none; font-size:1.8rem; color: var(--text); cursor:pointer; }

@media (max-width: 820px){
  .nav-toggle{ display:block; }
  .nav-links{
    position: absolute; right: 5%; top: 100%;
    display: none; flex-direction: column;
    width: 240px; background: var(--bg-elev);
    border: 1px solid var(--line); border-radius: .75rem; padding: .75rem;
    box-shadow: 0 20px 30px var(--shadow);
  }
  .nav-links.active{ display: flex; }
}

.hero{
  min-height: calc(100vh - 5rem);
  display:flex; align-items:center; justify-content:center; text-align:center;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(250,204,21,.08), transparent 60%),
    radial-gradient(800px 300px at 10% 110%, rgba(250,204,21,.06), transparent 60%);
  padding: 3rem 5%;
}
.hero-title{
  font-size: clamp(2.5rem, 4.5vw + 1rem, 4rem);
  line-height: 1.1;
  margin: 0;
}
.hero-subtext{
  font-size: 1.1rem; color: var(--yellow); font-weight: 600; margin-top: 1rem;
}
.hero-description{
  max-width: 800px; margin: 1rem auto 0; color: var(--muted); line-height: 1.8;
}
.hero-cta{ display:flex; gap: 1rem; justify-content:center; margin-top: 2rem; flex-wrap: wrap; }

.btn{ padding: .8rem 1.2rem; border-radius: .8rem; border:1px solid var(--yellow); font-weight:600; }
.btn-primary{ background: var(--yellow); color: #111; }
.btn-primary:hover{ background: #000000; transform: translateY(-1px); }
.btn-outline{ background: transparent; color: var(--yellow); }
.btn-outline:hover{ background: rgba(250,204,21,.08); transform: translateY(-1px); }


.timeline{ position: relative; max-width: 1000px; margin: 2rem auto; padding: 2rem 0; }
.timeline::before{
  content:''; position:absolute; left: 50%; top:0; transform: translateX(-50%);
  width: 3px; height: 100%; background: linear-gradient(var(--yellow), transparent);
  opacity:.6;
}
.timeline-item{ position:relative; margin: 2.5rem 0; padding: 0 2%; }
.timeline-item h3{ margin: 0 0 .6rem; color: #fff; font-size: 1.25rem; }
.timeline-item p{
  display:inline-block; max-width: 75%;
  background: var(--card); color: var(--text);
  padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .9rem;
  box-shadow: 0 10px 30px var(--shadow);
}
.timeline-item:nth-child(odd){ text-align: left; }
.timeline-item:nth-child(even){ text-align: right; }

.projects-section {
  padding: 2rem;
  background: #0d0d0d;
}

.projects-section h2 {
  font-size: 2.5rem;
  color: #facc15;
}

.projects-intro {
  color: #ccc;  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-left: 2rem;
  margin-right: 2rem;
  margin-bottom: 2rem
}

.project-card {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card i {
  color: #facc15;
  width: 32px;
  height: 32px;
}

.project-card h3 {
  color: #fff;
  font-size: 1.2rem;
}

.project-card p {
  color: #bbb;
  font-size: 0.95rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  background: #facc15;
  color: #000;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.3);
}



.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.98);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Show modal */
.modal.active {
  display: flex;
}

.modal-content {
  padding: 5%;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.modal-content img {
  margin: auto;
  width: 40%;
  display: block;
  max-width: 100% !important;
  object-fit: contain;
}



/* Close button stays visible while scrolling */
.close {
  position: sticky;
  top: 0;
  float: right;
  font-size: 2rem;
  color: var(--yellow, #facc15);
  cursor: pointer;
  padding-left: 0.5rem;
}

/* Modal body styling */
#modal-body {
  color: var(--text, #fff);
}

#modal-body img {
  max-width: 100%;       /* never exceed modal's width */
  height: auto;          /* maintain aspect ratio */
  display: block;        /* remove inline gaps */
  border-radius: 0.6rem;
  border: 1px solid var(--line, #333);
  margin: 1rem 0;
  object-fit: contain;   /* make sure the whole image is visible */
}


#modal-body h3 {
  margin-top: 0;
}

/* Lock page scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Contact cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.contact-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.contact-card:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px var(--shadow);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev-2);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 5%;
  text-align: center;
  color: var(--muted);
}

.footer-inner a {
  color: var(--yellow);
}

/* Selection highlight */
::selection {
  background: rgba(250,204,21,.35);
  color: #111;
}

@media (max-width: 768px) {
  .timeline-item p {
    max-width: 90%;
  }
}


