/* =========================
   DESIGN TOKENS
========================= */

:root {
  --primary: #061b3a;
  --primary-light: #123c78;
  --secondary: orange;

  --background: #f5f7fa;
  --background-light: #f8fafd;
  --white: #ffffff;

  --text: #0f1f3d;
  --text-muted: #46546f;
  --border: #edf1f7;

  --success: #16a34a;
  --error: #dc2626;
  --blue: #0050b5;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 50%;

  --shadow-sm: 0 10px 28px rgba(15, 31, 61, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 31, 61, 0.15);
  --shadow-hero: 0 18px 45px rgba(0, 0, 0, 0.25);

  --transition: 0.3s ease;
}

/* =========================
   RESET / BASE
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* removed unused commented img rule */

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* =========================
   HEADER / NAVIGATION
========================= */

header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--secondary);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
}

.nav a {
  position: relative;
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition);
}

.nav a:hover {
  color: var(--secondary);
}

.nav a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
  background: radial-gradient(circle at top left, var(--primary-light), var(--primary) 58%);
  color: var(--white);
  padding: 78px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 250px 1fr 280px;
  align-items: center;
  gap: 52px;
}

.avatar {
  width: 230px;
  height: 230px;
  border-radius: var(--radius-round);
  background-image: url("img/profile.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 5px solid var(--white);
  position: relative;
  box-shadow: var(--shadow-hero);
  transition: transform var(--transition), box-shadow var(--transition);
}

.avatar:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.12),
    0 22px 55px rgba(0, 0, 0, 0.32),
    0 0 35px rgba(255, 193, 7, 0.35);
}

.avatar::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-round);
  background: var(--secondary);
  border: 4px solid var(--white);
}

.hero h4 {
  color: var(--secondary);
  font-size: 20px;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -2px;
  font-weight: 800;
}

.hero h2 {
  font-size: 23px;
  margin-bottom: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.hero p {
  max-width: 560px;
  color: #dbe6f7;
  font-size: 17px;
}

.yellow-line {
  width: 56px;
  height: 4px;
  background: var(--secondary);
  margin: 16px 0 20px;
  border-radius: 20px;
}

.buttons {
  display: flex;
  gap: 18px;
  margin-top: 28px;
}

.btn {
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.25);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary:hover {
  box-shadow: 0 15px 35px rgba(255, 193, 7, 0.35);
}

.contact-box {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 30px;
  display: grid;
  gap: 18px;
  color: #e9eef7;
  font-size: 15px;
}

/* =========================
   SECTIONS / TITLES
========================= */

section {
  padding: 54px 0;
  background: var(--white);
  border-bottom: 1px solid #e8edf5;
}

section:nth-of-type(even) {
  background: var(--background-light);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.icon-circle {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-round);
  background: var(--primary);
  color: var(--secondary);
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 10px 25px rgba(6, 27, 58, 0.18);
}

.icon-circle img {
  width: 40px;
  height: 40px;
}

.section-title h3,
.skills h3 {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================
   ABOUT / SNAPSHOT CARD
========================= */

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-text {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.75;
  color: #24427a;
  letter-spacing: 0.3px;
  text-align: left;
}

.about-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-graphic img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
}

.mock-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mock-graphic img {
  width: 300%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.metric:last-child {
  border-bottom: none;
}

.metric span {
  color: var(--text-muted);
  font-size: 15px;
}

.metric strong {
  color: var(--primary);
  font-size: 18px;
}

.passed {
  color: var(--success) !important;
}

.failed {
  color: var(--error) !important;
}

.coverage-info {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.coverage-bar {
  height: 10px;
  background: #edf1f7;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 18px;
}

.coverage-fill {
  width: 95%;
  height: 100%;
  background: var(--secondary);
  border-radius: 20px;
}

.mailto {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 10px;
}

.mailto img {
  width: 14px;
  height: 14px;
}

.phone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone img {
  width: 14px;
  height: 14px;
}

.location {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location img {
  width: 14px;
  height: 14px;
}

/* =========================
   CARDS
========================= */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 193, 7, 0.45);
}

.card h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.card a {
  color: var(--blue);
  font-weight: 700;
}

/* =========================
   SKILLS / CAROUSELS
========================= */

.skills-wrapper {
  position: relative;
  width: min(1120px, 92%);
  margin: 0 auto;
}

.skills-carousel {
  display: flex;
  gap: 26px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

  padding: 10px 5px 24px;

  scrollbar-width: none;
}

.skills-carousel::-webkit-scrollbar {
  display: none;
}

.expertise-card {
  flex: 0 0 340px;

  scroll-snap-align: center;

  background: #ffffff;
  border: 1px solid #edf1f7;
  border-radius: 24px;

  padding: 34px 28px;
  min-height: 360px;

  box-shadow: 0 16px 35px rgba(15, 31, 61, 0.08);

  transition: all .3s ease;
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(15, 31, 61, 0.14);
}

.expertise-icon {
  width: 92px;
  height: 92px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 24px;
}

.expertise-icon img {
  width: 90px;
  height: 90px;

  object-fit: contain;
}

.testing .expertise-icon {
  background: #e9e7ff;
}

.tools .expertise-icon {
  background: #dff8f1;
}

.automation .expertise-icon {
  background: #fff1d6;
}

.core .expertise-icon {
  background: #ffe1ef;
}

.expertise-card h3 {
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--primary);
}

.expertise-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.expertise-card li {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #33415c;
  font-size: 15px;
}

.expertise-card li::before {
  content: "✓";

  width: 18px;
  height: 18px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 10px;
  font-weight: 700;
}

.testing li::before {
  color: #4f46e5;
  border: 2px solid #4f46e5;
}

.tools li::before {
  color: #14b8a6;
  border: 2px solid #14b8a6;
}

.automation li::before {
  color: #f59e0b;
  border: 2px solid #f59e0b;
}

.core li::before {
  color: #ec4899;
  border: 2px solid #ec4899;
}

.carousel-btn {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  width: 56px;
  height: 56px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, .95);

  color: var(--primary);

  cursor: pointer;

  box-shadow: 0 10px 25px rgba(15, 31, 61, .12);

  z-index: 20;

  transition: all .3s ease;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;

  transform:
    translateY(-50%) scale(1.08);
}

.carousel-btn.left {
  left: -35px;
}

.carousel-btn.right {
  right: -35px;
}

.carousel-btn.disabled {
  opacity: .3;
  pointer-events: none;
}

/* =========================
  Languages
========================= */
.language-card {
  background: #ffffff;
  border: 1px solid #edf1f7;
  border-radius: 20px;
  text-align: center;
  padding: 34px 28px;
  min-height: 200px;
  box-shadow: 0 16px 35px rgba(15, 31, 61, 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.language-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(15, 31, 61, 0.14);
  border-color: rgba(255, 193, 7, 0.55);
}

.language-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  text-align: left;
  margin: 0 auto;
}

.language-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.language-card p {
  font-size: 15px;
  color: #000000;
  text-align: center;

}

/* =========================
   EXPERIENCE
========================= */

.timeline {
  display: grid;
  gap: 22px;
}

.job {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
}

.date {
  color: var(--blue);
  font-weight: 700;
}

.job-card h4 {
  font-size: 18px;
}

.company {
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}

.job-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  padding-left: 18px;
  color: #33415c;
  font-size: 15px;
}

/* =========================
   PROJECTS / CONTACT
========================= */

.projects-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.project-icon img {
  width: 40px;
  height: 40px;
}

.contact-card {
  text-align: center;
}

/* =========================
   BACK TO TOP / FOOTER
========================= */

.top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  display: none;
  box-shadow: 0 10px 25px rgba(6, 27, 58, 0.2);
  transition: transform var(--transition);
}

.top-btn:hover {
  transform: translateY(-4px);
}

.top-btn.show {
  display: block;
}

footer {
  background: var(--primary);
  color: #cfd9ec;
  text-align: center;
  padding: 26px;
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 220px 1fr;
  }

  .contact-box {
    grid-column: 1 / -1;
    border-left: 0;
    padding-left: 0;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav ul {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  }

  .nav ul.active {
    display: flex;
  }

  .hero-grid,
  .about-grid,
  .job,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 58px 0 70px;
  }

  .avatar {
    width: 210px;
    height: 210px;
  }


  .job-card ul {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  section {
    padding: 44px 0;
  }

  .expertise-card {
    flex-basis: 290px;
  }

  .expertise-grid {
    gap: 18px;
    padding-bottom: 20px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .buttons {
    flex-direction: column;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .avatar {
    width: 190px;
    height: 190px;
  }

  .hero h2 {
    font-size: 20px;
  }

  .section-title {
    align-items: flex-start;
  }

  .section-title h3,
  .skills h3 {
    font-size: 21px;
  }
}

@media (max-width: 576px) {

  .left,
  .right,
  .carousel-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {

  .left,
  .right,
  .carousel-btn {
    display: none !important;
  }
}

@media (max-width: 900px) {

  .left,
  .right,
  .carousel-btn {
    display: none !important;
  }
}