

/* Push page content below fixed navbar */

/* Make hero content centered and not full-bleed (avoids left/right gaps) */
.intro-section {
  width: 100%;
  max-width: 1100px;          /* controls readable line-length */
  margin: 0 auto;             /* centers horizontally */
  padding: 96px 20px 64px;    /* top padding leaves space below nav */
  box-sizing: border-box;
}



/* 2) Prevent page content from hiding under the fixed navbar */
body {
  padding-top: 72px; /* same value as .navbar height */
}

/* 3) If any section has a background or transform that could cover navbar,
   lower their z-index (safety) or ensure they don't overlap */
section, .projects-container, .intro-section, #about, #education, #skills {
  position: relative;
  z-index: 1;
}

/* 4) Safety: disable overflow on direct body children that could clip sticky/fixed */
header, .some-parent, .wrapper {
  overflow: visible !important;
}



:root {
  --bg-page: #2C2C3E; /* change to any hex you want */
}

html, body {
  height: 100%;
  background: var(--bg-page);
  color: #fff; /* optional: change default text color for contrast */
}

html {
  scroll-behavior: smooth;
}
section {
  padding: 100px 20px;
  scroll-margin-top: 80px; /* adjusts for navbar height */
}

:root{
  --nav-height: 72px;        /* tweak if your navbar height differs */
  --accent: #F3B94E;
  --band: #2C2C3E;
}

/* reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: #fff; color: #111; }


.navbar {
  background-color: var(--band);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #bfc0d1;
  font-weight: 600;
  font-size: 16px;
  padding: 6px 8px;
  transition: color .18s ease, transform .08s ease;
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}


.intro-section {
  background-color: #2C2C3E; 
  color: white;
  text-align: center;
  padding: 80px 0; /* space around content */
  position: relative;
  overflow: hidden; /* prevent scroll overflow */
}

/* Heading style */
.intro-section h1 {
  font-size: 3rem;
  margin-bottom: 40px;
}

/* Make the scroll text move full width */
.scroll-container {
  width: 100vw; /* full screen width */
  overflow: hidden;
  position: relative;
}

.scroll-text {
  display: inline-block;
  white-space: nowrap;
  animation: scrollLeft 15s linear infinite;
}

.scroll-text span {
  display: inline-block;
  margin-right: 100px;
  font-size: 1.8rem;
  font-weight: 500;
  color: #F3B94E; /* accent color */
}

/* Keyframes for smooth full-screen scrolling */
@keyframes scrollLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* name highlighting part*/
.name {
  color: #F3B94E;
}

.CTA-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;              /* to give space between buttons */
  margin: 120px auto;  /*adds 80 px above and below the button containing div, auto adds margin left and right automatically centering the buttons*/
  background-color:  #2C2C3E;     
}
.CTA-buttons button {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact_btn {
  background-color: transparent;
  color: white;
  border: 2px solid #bfc0d1;
}
.contact_btn:hover {
  background-color: #bfc0d1;
  color: #2C2C3E; /* contrast with dark background */
}
/* Contact button (tweak to fit navbar/hero) 
.contact-btn{
  background: linear-gradient(90deg,#F3B94E,#E8A84C);
  color: #111;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16,16,24,0.08);
}
.contact-btn:focus{ outline: 3px solid rgba(243,185,78,0.25); outline-offset: 2px; }*/

/* Modal base (hidden) */
.modal{
  position: fixed;
  inset: 0;
  display: none;             /* toggled by JS */
  align-items: center;
  justify-content: center;
  z-index: 200;
  font-family: 'Poppins', sans-serif;
}

/* show state */
.modal[aria-hidden="false"]{ display: flex; }

/* overlay */
.modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(12,12,18,0.6);
  backdrop-filter: blur(4px);
}

/* modal card */
.modal-card{
  position: relative;
  z-index: 5;
  width: min(920px, 94%);
  max-width: 1000px;
  background: linear-gradient(180deg, #1f1f27, #27242f);
  color: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(10,10,20,0.6);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .26s cubic-bezier(.2,.9,.3,1), opacity .22s ease;
}

/* when modal visible, animate card in */
.modal[aria-hidden="false"] .modal-card{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* close top-right */
.modal-close{
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #ddd;
  cursor: pointer;
  padding: 6px;
}
.modal-close:focus{ outline: 3px solid rgba(255,255,255,0.06); border-radius: 6px; }

/* header */
.modal-card h3{
  margin: 6px 0 6px 0;
  color: #F3B94E;
  font-size: 1.45rem;
}
.modal-sub{
  margin-bottom: 16px;
  color: #cfcfd6;
}

/* contact grid */
.contact-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 14px 0 22px 0;
}
.contact-item{
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,0.03);
  padding: 10px 16px;
  border-radius: 10px;
  min-width: 220px;
  text-decoration: none;
  color: #fff;
  transition: transform .14s ease, background .14s ease;
}
.contact-item img{
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(10) invert(1); /* if you use monochrome svgs */
}
.contact-item span{ font-weight: 600; color: #fff; }

/* hover */
.contact-item:hover{ transform: translateY(-6px); background: rgba(255,255,255,0.05); }

/* actions */
.modal-actions{
  display:flex;
  justify-content:center;
  gap: 12px;
}
.btn{
  background: #F3B94E;
  color: #111;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn.ghost{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
}

/* responsive */
@media (max-width:640px){
  .contact-item{ min-width: 160px; padding: 10px; }
  .modal-card{ padding: 18px; border-radius: 10px; }
}
/* === ABOUT SECTION STYLING === */
#about {
  max-width: 800px;
  margin: 80px auto 100px;         /* reduced top margin so it stays below hero */
  background: rgba(191, 192, 209, 0.18); /* slightly lighter for better contrast */
  backdrop-filter: blur(8px);
  border: 2px solid #F3B94E;
  border-radius: 16px;
  padding: 30px 40px;              /* reduced padding to make box smaller */
  color: #ffffff;
  line-height: 1.7;
  letter-spacing: 0.5px;
  text-align: left;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

/* Heading */
#about h2 {
  color: #F3B94E;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

/* Paragraphs */
#about p {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #dcdde1;
}

/* Hover effect */
#about:hover {
  box-shadow: 0 0 18px rgba(243, 185, 78, 0.3);
  transition: 0.3s ease-in-out;
}
/* === EDUCATION SECTION === */
#education {
  max-width: 1000px;
  margin: 50px auto 20px;
  padding: 30px 20px;
  text-align: left;
}

#education h2 {
  font-size: 2rem;
  color: #F3B94E;
  margin-bottom: 40px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Container for all cards */
.education-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Individual education cards */
.edu-card {
  background: rgba(191, 192, 209, 0.15);
  backdrop-filter: blur(8px);
  border: 2px solid #F3B94E;
  border-radius: 14px;
  padding: 25px 30px;
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(243, 185, 78, 0.3);
}

.edu-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
}

.edu-card .course {
  color: #bfc0d1;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.edu-card .year {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 10px;
}

.edu-card .highlight {
  font-size: 1rem;
  color: #F3B94E;
  font-weight: 500;
}

/* === SEMESTER BOXES === */
.semester-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.semester-box {
  flex: 1 1 100px;
  min-width: 110px;
  text-align: center;
  border: 1.5px solid #F3B94E;
  border-radius: 10px;
  padding: 12px 0;
  background: rgba(243, 185, 78, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.semester-box:hover {
  background: rgba(243, 185, 78, 0.2);
  transform: translateY(-3px);
}

.semester-box h4 {
  font-size: 1rem;
  color: #F3B94E;
  margin-bottom: 5px;
}

.semester-box p {
  font-size: 0.95rem;
  color: #bfc0d1;
}

/* Responsive */
@media (max-width: 768px) {
  #education {
    padding: 20px;
  }

  .edu-card {
    padding: 20px;
  }

  .semester-container {
    justify-content: space-around;
  }
}
#skills {
  background-color: #2C2C3E;
  padding: 60px 80px;
  color: #ffffff;
}

#skills h2 {
  color: #F3B94E;
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-align: center;
}

.skill-category h3 {
  color: #bfc0d1;
  font-size: 1.6rem;
  margin-bottom: 40px;
  text-align: center;
}

.language-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.language-card {
  display: flex;
  align-items: center;
  background-color: #2C2C3E;
  border: 1.5px solid #F3B94E;
  border-radius: 10px;
  padding: 10px 20px;
  width: 200px;
  transition: 0.3s ease;
}

.language-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 0px 15px rgba(243, 185, 78, 0.3);
}

.language-icon {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}
/* Projects layout: vertical stack centered */
#projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #F3B94E;
}

.projects-container {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center;
  gap: 28px;
  padding: 20px;
}

/* single full-width card up to max */
.project-card {
  background-color: #1e1f2a;
  border: 2px solid #F3B94E;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 980px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

/* hover */
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 34px rgba(243,185,78,0.12);
}

.project-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 22px;
  background: rgba(188, 190, 209, 0.03);
  backdrop-filter: blur(6px);
}

.project-title {
  font-size: 1.5rem;
  color: #F3B94E;
  margin-bottom: 8px;
  font-weight: 700;
}

.project-description {
  color: #bfc0d1;
  font-size: 1rem;
  margin: 6px 0 12px 0;
}

.features-heading {
  color: #F3B94E;
  margin: 8px 0;
  font-size: 1rem;
}

.project-info ul {
  margin: 0 0 8px 18px;
  color: #cfcfd6;
  font-size: 0.95rem;
}

/* tech pills */
.tech-stack {
  margin-top: 12px;
}
.tech-stack span {
  background: #F3B94E;
  color: #000;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  margin-right: 8px;
  display: inline-block;
  margin-bottom: 8px;
}

/* actions (buttons) */
.project-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* base button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, opacity .12s ease;
  border: none;
}

/* GitHub ghost */
.btn-gh {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  padding-left: 12px;
  padding-right: 12px;
}
.btn-gh:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.45); opacity: 0.98; }

/* Live demo primary */
.btn-live {
  background: linear-gradient(90deg,#F3B94E,#E8A84C);
  color: #111;
  box-shadow: 0 8px 28px rgba(243,185,78,0.12);
}
.btn-live:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(232,168,76,0.20); }

/* icon sizing */
.icon { width: 18px; height: 18px; display: inline-block; }

/* responsive */
@media (max-width: 760px) {
  .project-img { height: 200px; }
  .project-info { padding: 16px; }
  #projects h2 { font-size: 2rem; }
  .projects-container { gap: 18px; padding: 12px; }
}
.btn-view {
  display: inline-block;
  background: linear-gradient(90deg, #F3B94E, #E8A84C);
  color: #111;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;  /* removes underline */
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(243, 185, 78, 0.2);
}

.btn-view:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(243, 185, 78, 0.3);
}
/* --- FIX NAVBAR & HERO GAP ISSUE --- */

/* Make navbar fixed instead of sticky */
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Ensure page content starts below the navbar */
body {
  background: #2C2C3E !important; /* remove white strip */
  color: #fff !important;
  padding-top: 72px !important; /* same as navbar height */
}

/* Remove the extra white margin above hero */
.intro-section {
  margin-top: 0 !important;
  padding-top: 40px !important;
  background-color: #2C2C3E !important;
}
