/* ============================
   PORTFOLIO ENHANCED STYLES
   ============================ */

/* --- HERO SECTION --- */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 2rem;
  position: relative;
}

.hero__greeting {
  color: #78E2A0;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.hero__name {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero__name span {
  color: #78E2A0;
}

.hero__role {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  min-height: 1.6em;
}

.hero__role .typed-cursor {
  color: #78E2A0;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__description {
  max-width: 560px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  background: #78E2A0;
  color: #1f222a;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid #78E2A0;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: transparent;
  color: #78E2A0;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  background: transparent;
  color: #78E2A0;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid #78E2A0;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: #78E2A0;
  color: #1f222a;
  transform: translateY(-2px);
}

/* --- STATS BAR --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  border: 1px solid rgba(120,226,160,0.2);
}

.stat-item {
  padding: 1.2rem;
  text-align: center;
  border-right: 1px solid rgba(120,226,160,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-item__number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #78E2A0;
  line-height: 1;
}

.stat-item__label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* --- SECTION HEADERS --- */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}

.section-header h2 {
  font-size: 1.1rem;
  color: #78E2A0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(120,226,160,0.2);
}

/* --- TERMINAL WINDOW --- */
.terminal {
  background: #13151a;
  border: 1px solid rgba(120,226,160,0.25);
  border-radius: 0;
  margin: 2rem 0;
  overflow: hidden;
}

.terminal__bar {
  background: rgba(120,226,160,0.1);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal__dot--red   { background: #ff5f57; }
.terminal__dot--yellow{ background: #febc2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
  margin-right: auto;
}

.terminal__body {
  padding: 1.2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
}

.terminal__body .prompt { color: #78E2A0; }
.terminal__body .cmd    { color: #fff; }
.terminal__body .output { color: rgba(255,255,255,0.55); padding-left: 1rem; }
.terminal__body .comment{ color: rgba(120,226,160,0.5); }

/* --- PROJECTS GRID --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 3rem;
}

.project-card {
  border: 1px solid rgba(120,226,160,0.2);
  background: #13151a;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: #78E2A0;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(120,226,160,0.15);
}

.project-card__preview {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #0d0f14;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-card__preview svg {
  width: 100%;
  height: 100%;
}

.project-card__body {
  padding: 1.2rem;
}

.project-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.project-card__desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(120,226,160,0.1);
  color: #78E2A0;
  border: 1px solid rgba(120,226,160,0.25);
  letter-spacing: 0.05em;
}

.project-card__footer {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.78rem;
}

.project-card__link {
  color: #78E2A0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.project-card__link:hover { border-color: #78E2A0; }

.project-card__status {
  margin-left: auto;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-card__status.live {
  color: #28c840;
}

/* --- PROJECT MODAL --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,15,20,0.92);
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; }

.modal {
  background: #1a1d26;
  border: 1px solid rgba(120,226,160,0.3);
  width: 100%;
  max-width: 720px;
  position: relative;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid rgba(120,226,160,0.3);
  color: #78E2A0;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 10;
}
.modal__close:hover { background: rgba(120,226,160,0.1); }

.modal__preview {
  width: 100%;
  height: 260px;
  background: #0d0f14;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__preview svg { width: 100%; height: 100%; }

.modal__body {
  padding: 1.8rem;
}

.modal__title {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.modal__subtitle {
  color: #78E2A0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.modal__description {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.modal__section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.7rem;
}

.modal__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.modal__features li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.modal__features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #78E2A0;
}

.modal__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(120,226,160,0.15);
}

/* --- ABOUT PAGE ENHANCEMENTS --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.about-bio {
  grid-column: 1 / -1;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  border-left: 3px solid #78E2A0;
  padding-left: 1.2rem;
  margin: 1rem 0 2rem;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0;
  width: 1px;
  background: rgba(120,226,160,0.25);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 7px;
  height: 7px;
  border: 1px solid #78E2A0;
  background: #1f222a;
  transform: rotate(45deg);
}

.timeline-item__date {
  font-size: 0.72rem;
  color: #78E2A0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.timeline-item__title {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.timeline-item__org {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.timeline-item__body {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* --- SKILLS GRID --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.skill-badge {
  padding: 0.55rem 0.7rem;
  background: rgba(120,226,160,0.06);
  border: 1px solid rgba(120,226,160,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.skill-badge:hover {
  border-color: #78E2A0;
  background: rgba(120,226,160,0.12);
  color: #78E2A0;
}

.skill-badge__icon {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

/* --- INTEREST CHIPS --- */
.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.interest-chip {
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border: 1px dashed rgba(120,226,160,0.35);
  color: rgba(255,255,255,0.6);
}

/* --- RECENT POSTS SECTION --- */
.recent-posts {
  margin-top: 2rem;
}

.post-item {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed rgba(120,226,160,0.12);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.post-item:hover { opacity: 0.8; }

.post-item__date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  padding-top: 0.1rem;
  min-width: 80px;
}

.post-item__title {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}

.post-item__tags {
  font-size: 0.7rem;
  color: #78E2A0;
  margin-top: 0.2rem;
  opacity: 0.7;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 684px) {
  .projects-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding: 1.5rem 0; }
  .modal { margin: 0; }
  .modal__preview { height: 180px; }
}

/* --- SCROLL BAR --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #1f222a; }
::-webkit-scrollbar-thumb { background: rgba(120,226,160,0.3); }
::-webkit-scrollbar-thumb:hover { background: #78E2A0; }

/* --- TYPING ANIMATION --- */
.typed-text { color: rgba(255,255,255,0.85); }

/* --- HEADER AVATAR --- */
.header-avatar {
  width: 72px;
  height: 72px;
  border-radius: 0;
  border: 2px solid rgba(120,226,160,0.4);
  object-fit: cover;
  display: block;
}

/* --- AVAILABILITY BADGE --- */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(40,200,64,0.3);
}

.availability__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
