:root {
  --bg: #0f1117;
  --surface: #171a23;
  --surface-2: #1f2330;
  --text: #e6e8ee;
  --muted: #9aa3b2;
  --accent: #14b8a6;
}

body, h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", "Montserrat", sans-serif;
}

body.w3-black,
header.w3-black {
  background-color: var(--bg) !important;
  color: var(--text);
}

/* Sidebar (desktop) */
.w3-sidebar {
  background: var(--surface) !important;
}
.w3-sidebar .w3-bar-item.w3-black {
  background: transparent !important;
  color: var(--accent) !important;
}
.w3-hover-black:hover {
  background-color: var(--surface-2) !important;
}

/* Top bar (mobile) */
#myNavbar .w3-bar {
  background-color: var(--surface) !important;
}

/* Text colours */
.w3-text-light-grey {
  color: var(--text) !important;
}
.w3-text-grey {
  color: var(--muted) !important;
}

/* ---------- card n boxes---------- */
:root {
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
}

/* ---------- Skill bars ---------- */
div.w3-white {
  background-color: var(--surface-2) !important;
  border-radius: 999px;
  overflow: hidden;
}
div.w3-white > .w3-dark-grey {
  height: 10px !important;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d9488, var(--accent)) !important;
}

/* ---------- Stats row ---------- */
.w3-row.w3-light-grey {
  background-color: var(--surface) !important;
  color: var(--muted) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.w3-row.w3-light-grey .w3-xlarge {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Services cards ---------- */
ul.w3-ul.w3-white {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 1 !important;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
ul.w3-ul.w3-white:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
ul.w3-ul.w3-white li {
  border-bottom: 1px solid var(--border);
}
ul.w3-ul.w3-white li:last-child {
  border-bottom: none;
}
ul.w3-ul.w3-white li.w3-dark-grey {
  background-color: var(--surface-2) !important;
  color: var(--accent) !important;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.w3-button.w3-light-grey {
  background-color: var(--accent) !important;
  color: #04201c !important;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.w3-button.w3-light-grey:hover {
  background-color: var(--accent) !important;
  color: #04201c !important;
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* CV buttons */
a[href$=".pdf"] {
  border-radius: 10px !important;
  font-weight: 600;
  transition: transform 0.2s ease;
}
a[href$=".pdf"][target="_blank"] {
  background-color: transparent !important;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
}
a[href$=".pdf"][download] {
  background-color: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
a[href$=".pdf"]:hover {
  transform: translateY(-2px);
}

/* WhatsApp button stays green, just rounded */
.w3-button.w3-green {
  border-radius: 10px;
  font-weight: 600;
}

/* ---------- Contact form ---------- */
.w3-input {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px !important;
}
.w3-input::placeholder {
  color: var(--muted);
}
.w3-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* ---------- Images ---------- */
header img.w3-image {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 24px auto 0;
  border-radius: 24px;
  border: 1px solid var(--border);
}
#photos img {
  border-radius: 14px;
  transition: transform 0.25s ease;
}

/* ---------- Hero ---------- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 999px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 20px 0 12px;
}
.gradient-text {
  background: linear-gradient(90deg, #5eead4, #14b8a6, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text);
  margin: 0 0 6px;
}
.hero-sub {
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.hero-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.hero-btn:hover {
  transform: translateY(-2px);
}
header .hero-btn.primary {
  background: var(--accent);
  color: #04201c !important;
}
header .hero-btn.primary:hover {
  filter: brightness(1.1);
}
header .hero-btn.ghost {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
header .hero-btn.ghost:hover {
  border-color: var(--accent);
}
#photos img:hover {
  transform: translateY(-4px);
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
#main {
  margin-left: 0 !important;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 17, 23, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.nav-brand span {
  color: var(--accent);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(15, 17, 23, 0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 12px;
  }
}
/* ---------- Active nav link ---------- */
.nav-links a.active {
  color: var(--accent);
  background: rgba(20, 184, 166, 0.12);
}


/* ---------- Progress bar ---------- */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #14b8a6, #818cf8);
  z-index: 1100;
}

/* ---------- Fade-in on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Typing line ---------- */
.typing-line {
  min-height: 1.6em;
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--accent);
}
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Respect people who turn off animations */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cursor {
    animation: none;
  }
}
/*skils */
/* ---------- Skill tags ---------- */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.skill-tags span {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.skill-tags span:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.skill-tags.learning span {
  color: var(--accent);
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.3);
}
