:root {
  --bg: #07121d;
  --bg-alt: #0d1b2a;
  --panel: rgba(16, 26, 38, 0.9);
  --panel-strong: #101d2a;
  --card: #0f1d2b;
  --card-soft: #142534;
  --primary: #4ecdc4;
  --primary-strong: #15b2a7;
  --accent: #7bdff2;
  --text: #edf6ff;
  --muted: #b8c7d6;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(78, 205, 196, 0.15), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #0b1725 100%);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(920px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 18, 29, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #061018;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #07121d;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 28px rgba(78, 205, 196, 0.22);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.7rem 1.1rem;
  font-size: 0.92rem;
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.hero {
  padding: 96px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.hero-copy h2 {
  margin: 18px 0 16px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.mini-stats {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mini-stats li {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.mini-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: min(430px, 100%);
  background: linear-gradient(180deg, rgba(20, 37, 52, 0.95), rgba(11, 22, 33, 0.95));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.profile-card img {
  width: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(7, 18, 29, 0.8);
  border: 1px solid rgba(78, 205, 196, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #41d07a;
  box-shadow: 0 0 18px rgba(65, 208, 122, 0.7);
}

.section {
  padding: 92px 0;
}

.alt-bg {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(1.9rem, 2vw, 2.8rem);
  letter-spacing: -0.04em;
}

.about-card,
.education-card,
.service-card,
.skill-card,
.project-card,
.certificate-card,
.contact-card {
  background: rgba(16, 29, 42, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card {
  padding: 28px 30px;
}

.about-card p {
  margin: 0 0 1em;
  color: var(--muted);
  font-size: 1.03rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.education-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px;
}

.education-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #07121d;
  font-weight: 800;
}

.education-card h4 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.education-card p {
  margin: 0;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 24px 22px;
  background:
    linear-gradient(145deg, rgba(20, 44, 59, 0.94), rgba(12, 27, 40, 0.94));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 205, 196, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(78, 205, 196, 0.28);
  border-radius: 13px;
  background: rgba(78, 205, 196, 0.12);
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
}

.service-number {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service-card h4 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.93rem;
}

.service-card a {
  margin-top: auto;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.service-card a span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.service-card a:hover span {
  transform: translateX(4px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.skill-card {
  padding: 24px 22px;
}

.skill-card h4 {
  margin: 0 0 14px;
  font-size: 1.16rem;
}

.skill-card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.skill-card li {
  border-radius: 999px;
  background: rgba(78, 205, 196, 0.08);
  border: 1px solid rgba(78, 205, 196, 0.22);
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 18px;
  padding-left: 0;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 5px solid var(--bg);
  margin-top: 6px;
}

.timeline-content {
  background: rgba(16, 29, 42, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 18px;
}

.timeline-date {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content h4 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.company {
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 600;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  padding: 24px 22px;
}

.project-tag {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(123, 223, 242, 0.12);
  border: 1px solid rgba(123, 223, 242, 0.22);
  color: var(--accent);
  padding: 0.45rem 0.72rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.project-card h4 {
  margin: 18px 0 12px;
  font-size: 1.4rem;
}

.project-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.project-card a,
.certificate-card a,
.contact-card a {
  color: var(--primary);
  font-weight: 600;
}

.certificate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
}

.certificate-label {
  margin: 0 0 6px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
}

.certificate-card h4 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.certificate-card p {
  margin: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  padding: 28px 24px;
}

.contact-card p {
  margin-top: 0;
  color: var(--muted);
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.contact-card li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--muted);
}

.contact-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-card li span {
  color: var(--text);
  font-weight: 600;
}

.whatsapp-btn {
  width: 100%;
  margin-top: 24px;
}

.contact-card .whatsapp-btn {
  color: #07121d;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.portfolio-btn {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 32px;
  background: rgba(6, 11, 16, 0.4);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.footer-wrap p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ai-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #07121d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.ai-toggle-icon {
  font-size: 1.15rem;
}

.ai-chat {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 59;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(550px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid rgba(78, 205, 196, 0.28);
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-chat.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #122636;
}

.ai-chat-header strong,
.ai-chat-header span {
  display: block;
}

.ai-chat-header span {
  color: var(--muted);
  font-size: 0.75rem;
}

.ai-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.ai-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
}

.ai-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ai-message-bot {
  align-self: flex-start;
  background: var(--card-soft);
  color: var(--muted);
}

.ai-message-user {
  align-self: flex-end;
  background: var(--primary);
  color: #07121d;
}

.ai-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.ai-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a1724;
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.ai-form button {
  border: 0;
  border-radius: 10px;
  padding: 0 0.9rem;
  background: var(--primary);
  color: #07121d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .skills-grid,
  .project-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .certificate-card,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn,
  .btn-small {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .ai-toggle {
    right: 16px;
    bottom: 16px;
  }

  .ai-chat {
    right: 16px;
    bottom: 78px;
  }
}
