html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* prevent horizontal scroll */
}

* {
  box-sizing: border-box; /* keeps padding from expanding width */
}

/* ===== Hero (Home) ===== */
.hero{
  position: relative;
  /* full-bleed trick */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* your gradient */
    background:
    radial-gradient(160% 80% at 10% 0%, rgba(0,141,166,.16), transparent 78%),
    linear-gradient(170deg, rgba(0,0,0,.12), transparent 48%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  min-height: clamp(520px, 78vh, 860px);
  display: grid;
  place-items: center;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 1.6fr;
  gap: 36px;
  align-items: center;
  width: 100%;
  padding: 40px 0;
}

.hero-media{
  display: flex; justify-content: center; align-items: center;
}
.hero-ava{
  width: clamp(200px, 30vw, 320px);
  height: clamp(200px, 30vw, 320px);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  border: 1px solid var(--border);
}

.hero-copy{ max-width: 680px; }
.hero-title{
  font-size: clamp(32px, 4.5vw, 60px);
  margin: 0 0 10px;
  letter-spacing: .3px;
}

.hero-roles{
  margin: 0 0 40px;
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--muted);
}
.roles-label{ opacity: .9; margin-right: 6px; margin-left: 15px;}
.roles-text{ color: var(--text); font-weight: 800; }

/* custom caret (Typed.js cursor disabled in JS) */
.roles-caret{
  display: inline-block; width: 1ch; margin-left: 2px; opacity: .6;
  animation: caretBlink 1.1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.hero-cta{
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero-cta .btn{ padding: 12px 18px; }
.hero-cta .btn.ghost{ border-color: var(--border); }

/* responsive tweaks */
@media (max-width: 1100px){
  .hero-inner{ gap: 28px; }
}
@media (max-width: 960px){
  .hero-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy{ margin: 0 auto; }
  .hero-cta{ justify-content: center; }
}

/* === Skills Section === */
.skills-section {
    background:
    radial-gradient(900px 400px at 50% -10%, rgba(0,0,0,0.18), transparent 60%),
    var(--surface, #232321);
  color: var(--text, #E6EDF2);
  padding: 64px 20px;
  text-align: center;
  border-top: 1px solid var(--border, #2A2F31);
  border-bottom: 1px solid var(--border, #2A2F31);
}

.skills-section .section-title{
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: .4px;
  margin: 0 0 36px;
  color: var(--text, #E6EDF2);
}

/* Grid */
.skills-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
/* Card */
.skill-item {
  background: linear-gradient(145deg, #2d2f33, #232321);
  border: 1px solid rgba(0, 175, 203, 0.15); /* faint brand accent */
  border-radius: 14px;
  padding: 24px 18px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Icon */
.skill-item i {
  font-size: 2.3rem;
  line-height: 1;
  color: var(--brand, #00AFCB);
  filter: drop-shadow(0 2px 8px rgba(0, 175, 203, 0.35));
  transition: transform .2s ease, filter .2s ease;
}

/* Text */
.skill-item span {
  font-size: 1rem;
  font-weight: 600;
  color: #F5F7FA; /* brighter for contrast */
  letter-spacing: .3px;
  text-align: center;
}

/* Hover effect */
.skill-item:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--brand, #00AFCB);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.45),
    0 0 12px rgba(0, 175, 203, 0.25); /* subtle glow */
}

.skill-item:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 10px rgba(0, 175, 203, 0.45));
}


/* Button */
.skills-button-container{
  margin-top: 38px;
}

.btn-primary{
  display: inline-block;
  background: var(--brand, #008DA6);
  color: var(--brand-ink, #FFFFFF);
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid color-mix(in srgb, var(--brand) 70%, #000 30%);
  box-shadow: 0 6px 16px rgba(0, 141, 166, 0.35);
  transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn-primary:hover{
  background: var(--link-hover, #00AFCB);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 175, 203, 0.35);
}
.btn-primary:focus-visible{
  outline: 3px solid var(--link-hover, #00AFCB);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Small screens */
@media (max-width: 520px){
  .skills-section{ padding: 44px 14px; }
  .skills-container{ gap: 16px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .skill-item{ padding: 18px 14px; }
}

/* Utility container (since Bootstrap is removed) */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Portfolio Section ===== */
.portfolio-section{
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(0,0,0,0.18), transparent 60%),
    var(--surface, #232321);
  color: var(--text, #E6EDF2);
  padding: 68px 0;
  border-top: 1px solid var(--border, #2A2F31);
  border-bottom: 1px solid var(--border, #2A2F31);
}

.portfolio-section .section-title{
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: .4px;
  text-align: center;
  margin: 0 0 32px;
}

/* Grid */
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* Card */
.project-card{
  background: color-mix(in srgb, var(--surface) 92%, #000 8%);
  border: 1px solid var(--border, #2A2F31);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
              0 10px 20px rgba(0,0,0,0.25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-card:hover{
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border) 60%);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
}

/* Media block (fixed aspect ratio) */
.project-media{
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;            /* modern browsers */
  background: #111;
  overflow: hidden;
}

.project-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .25s ease, opacity .25s ease;
}

.project-card:hover .project-img{
  transform: scale(1.06);
  opacity: 0.95;
}

/* Fallback placeholder */
.project-placeholder{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted, #9AA6AE);
  background: linear-gradient(135deg, #2a2f31, #202325);
  font-size: .95rem;
}

/* Overlay CTA */
.project-cta{
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
  pointer-events: none;
}
.project-card:hover .project-cta{
  opacity: 1;
  transform: translateY(0);
}

/* Body */
.project-body{
  padding: 16px 16px 18px;
  display: grid;
  gap: 10px;
}

.project-title{
  font-size: 1.1rem;
  margin: 0;
  font-weight: 800;
}
.project-title a{
  color: var(--text, #E6EDF2);
  text-decoration: none;
}
.project-title a:hover{
  color: var(--link-hover, #00AFCB);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Clamp description to ~3 lines */
.project-desc{
  margin: 0;
  color: var(--muted, #9AA6AE);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions */
.project-actions{
  margin-top: 4px;
}

/* Buttons (re-using styles from skills; include if not already present) */
.btn-primary,
.btn-secondary{
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  transition: background .18s ease, transform .12s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary{
  background: var(--brand, #008DA6);
  color: var(--brand-ink, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--brand) 70%, #000 30%);
  box-shadow: 0 6px 16px rgba(0, 141, 166, 0.35);
}
.btn-primary:hover{
  background: var(--link-hover, #00AFCB);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 175, 203, 0.35);
}

.btn-secondary{
  background: transparent;
  color: var(--text, #E6EDF2);
  border: 1px solid var(--border, #2A2F31);
}
.btn-secondary:hover{
  color: var(--brand-ink, #FFFFFF);
  border-color: var(--link-hover, #00AFCB);
  background: color-mix(in srgb, var(--link-hover) 22%, transparent);
}

/* Section CTA */
.portfolio-cta{
  text-align: center;
  margin-top: 28px;
}

/* Small screens */
@media (max-width: 520px){
  .portfolio-section{ padding: 52px 0; }
  .portfolio-grid{ gap: 16px; grid-template-columns: 1fr; }
  .project-body{ padding: 14px; }
}

/* === Education Section === */
.education-section {
  padding: 64px 20px;
  background: var(--surface, #232321);
  color: var(--text, #E6EDF2);
  text-align: center;
  border-top: 1px solid var(--border, #2A2F31);
  border-bottom: 1px solid var(--border, #2A2F31);
}

.education-section .section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 36px;
}

/* Grid layout */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

/* Card */
.edu-card {
  background: #2C2F33; /* solid dark gray */
  color: #F5F7FA;      /* high-contrast text */
  padding: 28px 22px;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid var(--border, #2A2F31);
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
  border-color: var(--brand, #00AFCB);
}

/* Title + metadata */
.edu-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF; /* pure white for contrast */
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-meta {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(245, 247, 250, 0.8);
}

/* Add icons 🎓 📜 */
.edu-title[data-type="degree"]::before {
  content: "🎓";
  font-size: 1.2rem;
}

.edu-title[data-type="certification"]::before {
  content: "📜";
  font-size: 1.2rem;
}

/* Button container */
.education-button-container {
  margin-top: 36px;
  text-align: center;
}

/* === Experience Section === */
.experience-section {
  padding: 64px 20px;
  background: var(--surface, #232321);
  color: var(--text, #E6EDF2);
  text-align: center;
  border-top: 1px solid var(--border, #2A2F31);
  border-bottom: 1px solid var(--border, #2A2F31);
}

.experience-section .section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 32px;
}

/* Accordion container */
.exp-accordion {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 16px;
}

/* Item (card) */
.exp-item {
  background: #2C2F33;
  border: 1px solid var(--border, #2A2F31);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  overflow: clip;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.exp-item[open] {
  border-color: var(--brand, #00AFCB);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

/* Summary header */
.exp-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  position: relative;
}

/* Remove default marker */
.exp-summary::-webkit-details-marker { display: none; }

/* Caret */
.exp-summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid #F5F7FA;
  border-bottom: 2px solid #F5F7FA;
  transform: rotate(-45deg);
  transition: transform .2s ease;
  opacity: .9;
}
.exp-item[open] .exp-summary::after {
  transform: rotate(135deg);
}

/* Title line */
.exp-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  color: #FFFFFF;
}
.exp-role { font-weight: 800; }
.exp-at   { opacity: .9; }

/* Dates */
.exp-dates {
  font-size: .95rem;
  color: rgba(245,247,250,.8);
  white-space: nowrap;
}

/* Body */
.exp-body {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #30343A;
  color: #F5F7FA;
  line-height: 1.7;
}
.exp-desc { margin: 0; }

/* Tags (optional) */
.exp-tags {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exp-tags li {
  font-size: .85rem;
  padding: 6px 10px;
  background: rgba(0,175,203,.12);
  color: var(--brand, #00AFCB);
  border: 1px solid rgba(0,175,203,.25);
  border-radius: 999px;
}

/* Button */
.experience-button-container { margin-top: 28px; text-align: center; }

/* Mobile tweaks */
@media (max-width: 560px) {
  .exp-summary { grid-template-columns: 1fr; }
  .exp-summary::after {
    position: absolute; right: 16px; top: 22px;
  }
}


/* === Testimonials Section === */
.testimonials-section {
  padding: 64px 20px;
  background: var(--surface, #232321);
  color: var(--text, #E6EDF2);
  text-align: center;
  border-top: 1px solid var(--border, #2A2F31);
  border-bottom: 1px solid var(--border, #2A2F31);
}

.testimonials-section .section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 36px;
}

/* Slider */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 24px;
}

/* Card Style */
.testimonial-slide blockquote {
  background: #2C2F33; /* solid dark gray card */
  color: #F5F7FA;      /* crisp light text */
  padding: 32px 24px;
  border-radius: 14px;
  font-style: italic;
  line-height: 1.7;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-slide blockquote:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.testimonial-slide blockquote p {
  font-size: 1.05rem;
  margin: 0;
}

.testimonial-slide blockquote footer {
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand, #00AFCB);
}

.testimonial-slide blockquote a {
  color: var(--brand, #00AFCB);
  text-decoration: underline;
}

/* Controls */
.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  z-index: 2;
}

.testimonial-btn:hover {
  background: var(--brand, #008DA6);
  transform: scale(1.1);
}

/* keep them INSIDE the slider so overflow: hidden doesn't clip */
.testimonial-btn.prev { left: 8px; }
.testimonial-btn.next { right: 8px; }


.testimonial-btn { width: 42px; height: 42px; font-size: 1.4rem; }


/* Progress Bar */
.testimonial-progress {
  margin: 28px auto 0;
  height: 4px;
  max-width: 700px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}

.testimonial-progress-bar {
  height: 100%;
  background: var(--brand, #00AFCB);
  width: 0%;
  transition: width 0.5s ease;
}
