/* Base Reset / Fundamentals */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f0f0f;
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.4;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  color: #00ffc8;
  margin: 0;
  font-size: 1.5rem;
}

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

nav ul li a {
  text-decoration: none;
  color: #ccc;
  position: relative;
  font-weight: 500;
  transition: color .2s ease;
}

nav ul li a.active,
nav ul li a:hover {
  color: #00ffc8;
}

/* Hero / Projects Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem 1rem;
}

#bgCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 0 1rem;
}

.hero-content h2 {
  font-size: 2.4rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1rem;
}



.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
}

.tag {
  background: rgba(0, 255, 200, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 600;
  color: #00ffc8;
  white-space: nowrap;
}

.card-desc {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  color: #d0d0d0;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.repo-link {
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.repo-link::after {
  content: "→";
  margin-left: 6px;
  font-size: 1rem;
  transform: translateY(1px);
}

/* Optional small label (e.g., stars, status) */
.project-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6rem;
}

/* Profile / Hero reuse (if used elsewhere) */
.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid #00ffc8;
  box-shadow: 0 0 20px #00ffc8;
  margin-bottom: 1rem;
  object-fit: cover;
  margin-left: 70px;
}

/* About section (if on same stylesheet) */
.about-container {
  text-align: center;
  padding: 100px 20px;
  color: white;
}

.section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
}

.about-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #ccc;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  .project-card {
    padding: 1rem;
    min-height: auto;
  }
}
/* Grid overridden to center single row */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  padding: 0 1rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ensure card sizing stays consistent */
.project-card {
  flex: 1 1 300px;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(0, 255, 200, 0.2);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  color: #e6e6e6;
  min-height: 220px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 255, 200, 0.3);
  background: rgba(0, 255, 200, 0.04);
  border-color: #00ffc8;
}
.about-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

.profile-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(0,255,200,0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  position: relative;
}

.profile-card h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
}

.about-intro {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #dcdcdc;
  margin: 0;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: #00ffc8;
  color: #0f0f0f;
  transition: transform .2s ease, filter .2s ease;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn.outline {
  background: transparent;
  border: 2px solid #00ffc8;
  color: #00ffc8;
}

.details-column .section {
  margin-bottom: 1.75rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.skill {
  background: rgba(0,255,200,0.1);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #00ffc8;
  white-space: nowrap;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.time-label {
  min-width: 80px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00ffc8;
  flex-shrink: 0;
}

.time-content {
  font-size: 0.9rem;
  color: #d0d0d0;
}

@media (max-width: 1000px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    order: 1;
  }
  .details-column {
    order: 2;
  }
}
/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(0,255,200,0.2);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  position: relative;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

.stat-label {
  font-size: 0.75rem;
  margin-top: 4px;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 1rem;
}

.intro {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Outer circular frame with glow */
.profile-circle {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #00ffcc 30%, #0f0f1f 80%);
  box-shadow: 0 0 60px rgba(0, 255, 204, 0.8);
}

/* The photo inside, centered & cover */
.profile-circle .profile-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
  margin-left: 0;
  /* override any conflicting transforms or sizing */
  transform: none !important;
  max-width: none !important;
}

/* Optional subtle inner glow layer */
.profile-circle .inner-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.08);
}

/* Text section */
.text-intro h2 {
  margin: 0;
  font-size: 2rem;
  color: #fff;
}
.text-intro .subline {
  margin: 4px 0 0;
  font-size: 1rem;
  color: #ddd;
  opacity: 0.9;
}


.home-content h2 {
  font-size: 2.3rem;
  margin: 0;
}

.subline {
  font-size: 1rem;
  color: #ddd;
  margin-top: 4px;
}

.quiz-container {
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(0,255,200,0.2);
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 900px;
  margin-top: 1rem;
  color: #e6e6e6;
}

.quiz-container h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

#quiz-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#question {
  font-size: 1.1rem;
  font-weight: 600;
}

#options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.option-btn {
  background: rgba(0, 255, 200, 0.08);
  border: 1px solid rgba(0,255,200,0.3);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  flex: 1 1 calc(50% - 1rem);
  min-width: 140px;
  transition: background .2s ease, transform .2s ease;
  color: #fff;
}

.option-btn:hover {
  background: rgba(0,255,200,0.15);
  transform: translateY(-1px);
}

.feedback {
  font-size: 0.9rem;
  min-height: 1.4em;
}

.feedback.good {
  color: #7cffb0;
}

.feedback.bad {
  color: #ff6b6b;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#next-btn, #reset-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: #00ffc8;
  color: #0f0f0f;
  transition: filter .2s ease, transform .2s ease;
}

#next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#next-btn:hover:not(:disabled),
#reset-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.score {
  font-size: 0.95rem;
  font-weight: 600;
}

.try-more {
  margin-top: 0.75rem;
  text-align: right;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}
.social-links a {
  color: #00FFC2; /* Match your portfolio theme */
  font-size: 2.5rem;
  transition: color 0.2s;
}
.social-links a:hover {
  color: #FFFFFF; /* Accent on hover */
}
