:root {
  --bg: #080d1a;
  --bg-soft: #0d1e2b;
  --surface: rgba(11, 20, 38, 0.88);
  --surface-strong: rgba(20, 35, 49, 0.98);
  --card: rgba(12, 22, 42, 0.88);
  --card-2: rgba(20, 37, 53, 0.82);
  --text: #f4f8ff;
  --muted: #d3def4;
  --primary: #69d9ff;
  --primary-strong: #7d7cff;
  --accent: #b9abff;
  --border: rgba(124, 186, 255, 0.14);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: #070d1d;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(4, 10, 30, 0.82), rgba(3, 7, 24, 0.68));
  pointer-events: none;
}

body,
main,
.hero,
.hero-grid,
.container {
  max-width: 100%;
}

.hero-copy,
.hero-panel,
.profile-card,
.hero-copy h1,
.hero-text {
  min-width: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.alt-bg {
  background: rgba(12, 23, 34, 0.72);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(142, 195, 255, 0.08);
  border: 1px solid rgba(142, 195, 255, 0.18);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 1.14;
  max-width: 820px;
}

#certifications .section-heading h2 {
  max-width: 100%;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
  white-space: nowrap;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

main {
  position: relative;
  z-index: 3;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 19, 28, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-profile {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}

.brand-profile img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(142, 195, 255, 0.75);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.brand-status {
  position: absolute;
  top: -2px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #58d68d;
  border: 2px solid #07131d;
  box-shadow: 0 0 0 2px rgba(88, 214, 141, 0.2);
}

.brand-details {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 800;
}

.verified-mark {
  width: 21px;
  height: 21px;
}

.brand-location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-location svg {
  width: 18px;
  height: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

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

.nav-btn {
  width: 190px;
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #061822;
  box-shadow: 0 18px 34px rgba(100, 165, 255, 0.35);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 78px);
  padding: 70px 0 48px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 38px;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3rem, 4.2vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  animation: fadeUp 0.8s ease both;
}

.hero-copy h1 span {
  display: block;
  white-space: normal;
  color: var(--text);
}

.hero-copy h1 span:first-child {
  text-shadow: 0 0 36px rgba(105, 217, 255, 0.12);
}

.hero-copy h1 span:last-child {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  animation: fadeUp 1s ease both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp 1.1s ease both;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  backdrop-filter: blur(6px);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  align-self: center;
  animation: floatCard 5s ease-in-out infinite;
  perspective: 1200px;
}

.hire-me-btn {
  width: min(100%, 520px);
  margin-top: 18px;
  border: 0;
  min-height: 52px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.profile-card {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 817 / 768;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 28, 39, 0.9), rgba(10, 18, 26, 0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transform: rotateX(var(--profile-rotate-x, 0deg)) rotateY(var(--profile-rotate-y, 0deg));
  transition: transform 0.12s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.profile-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--profile-light-x, 50%) var(--profile-light-y, 50%), rgba(255, 255, 255, 0.22), transparent 34%);
  transition: opacity 0.25s ease;
}

.profile-card:hover {
  border-color: rgba(105, 217, 255, 0.48);
  box-shadow:
    0 38px 80px rgba(0, 0, 0, 0.48),
    0 18px 45px rgba(105, 217, 255, 0.14);
}

.profile-card:hover::after {
  opacity: 1;
}

.profile-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(142, 195, 255, 0.3), transparent 55%);
  filter: blur(18px);
}

.profile-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.8) contrast(1.08) brightness(0.96);
  transform: translateZ(28px) scale(1.035);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, filter 0.25s ease;
}

.profile-card:hover .profile-image {
  filter: saturate(0.95) contrast(1.08) brightness(1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: start;
}

.about-copy {
  color: var(--muted);
  font-size: 1.04rem;
}

.about-copy p + p {
  margin-top: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 18px;
}

.stat-card {
  background: linear-gradient(180deg, rgba(20, 36, 52, 0.9), rgba(9, 18, 28, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 195, 255, 0.2);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  color: var(--primary);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.expertise-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 36, 52, 0.9), rgba(10, 18, 28, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.expertise-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 195, 255, 0.45);
  background: linear-gradient(180deg, rgba(24, 42, 61, 0.95), rgba(12, 19, 28, 0.95));
  box-shadow: 0 24px 48px rgba(12, 25, 38, 0.5);
}

.expertise-card:hover::before,
.expertise-card.is-selected::before {
  opacity: 1;
}

.expertise-card.is-selected {
  border-color: rgba(142, 195, 255, 0.8);
  background: linear-gradient(180deg, rgba(22, 42, 64, 1), rgba(12, 19, 28, 1));
  box-shadow: 0 20px 42px rgba(92, 148, 255, 0.2);
}

.expertise-card.is-selected h3 {
  color: var(--primary);
}

.expertise-card h3 {
  margin-bottom: 16px;
  font-size: 1.22rem;
  transition: color 0.2s ease;
}

.expertise-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.expertise-card li {
  position: relative;
  padding-left: 18px;
  transition: color 0.2s ease;
}

.expertise-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  transition: background 0.2s ease;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  background: linear-gradient(180deg, rgba(20, 36, 52, 0.9), rgba(10, 18, 28, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.timeline-item:hover {
  transform: translateY(-3px);
  border-color: rgba(142, 195, 255, 0.2);
}

.timeline-date {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-top: 4px;
}

.timeline-content h3 {
  margin-bottom: 6px;
  font-size: 1.32rem;
}

.company {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-content ul {
  list-style: none;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.timeline-content li {
  position: relative;
  padding-left: 18px;
}

.timeline-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-card {
  background: linear-gradient(180deg, rgba(20, 36, 52, 0.9), rgba(10, 18, 28, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 195, 255, 0.5);
  background: linear-gradient(180deg, rgba(25, 44, 63, 0.96), rgba(12, 18, 28, 0.96));
  box-shadow: 0 20px 42px rgba(92, 148, 255, 0.18);
}

.portfolio-card:hover h3 {
  color: var(--primary);
}

.project-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(142, 195, 255, 0.08);
  border: 1px solid rgba(142, 195, 255, 0.2);
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.25s ease;
}

.portfolio-card:hover .project-tag {
  background: rgba(142, 195, 255, 0.18);
  border-color: rgba(142, 195, 255, 0.7);
  color: #dfeeff;
  box-shadow: 0 0 0 1px rgba(142, 195, 255, 0.2);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cert-card {
  background: linear-gradient(180deg, rgba(20, 36, 52, 0.9), rgba(10, 18, 28, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 195, 255, 0.2);
}

.cert-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.cert-card p {
  color: var(--muted);
}

.cta-section {
  padding: 36px 0;
}

#contact {
  padding-top: 36px;
  padding-bottom: 80px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 36px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(20, 36, 52, 0.96), rgba(10, 18, 28, 0.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-box > div {
  flex: 1 1 auto;
  min-width: 0;
}

.cta-box > .btn {
  flex: 0 0 auto;
  align-self: center;
  min-width: 240px;
  white-space: nowrap;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  line-height: 1.2;
  max-width: 760px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.contact-info h2 {
  font-size: clamp(2rem, 2.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.contact-list li {
  display: grid;
  gap: 6px;
}

.label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(20, 36, 52, 0.9), rgba(10, 18, 28, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 17, 26, 0.54);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(142, 195, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(142, 195, 255, 0.1);
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.message-word-count {
  justify-self: end;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.contact-form-status {
  min-height: 24px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25d366, #1abf62);
  color: white;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(37, 211, 102, 0.42);
}

.site-footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--border);
  background: rgba(5, 13, 24, 0.94);
  padding: 24px 0 36px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-document-link {
  color: #ffffff;
  font-weight: 600;
}

.footer-links a:hover,
.footer-document-link:hover {
  color: var(--primary);
}

.footer-document-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
}

.projects-page .site-header {
  background: rgba(7, 19, 28, 0.72);
}

.projects-main {
  padding-top: 40px;
}

.projects-hero {
  padding-top: 80px;
}

.project-carousel {
  position: relative;
  height: 410px;
  margin: 48px 0 28px;
  overflow: hidden;
  perspective: 1100px;
  cursor: grab;
  border-radius: 28px;
  border: 1px solid rgba(142, 195, 255, 0.12);
  background:
    radial-gradient(circle at 50% 55%, rgba(105, 217, 255, 0.13), transparent 25%),
    linear-gradient(180deg, rgba(16, 31, 49, 0.58), rgba(6, 12, 27, 0.82));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-carousel:active {
  cursor: grabbing;
}

.project-carousel-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.project-carousel-track {
  position: relative;
  width: 300px;
  height: 210px;
  transform-style: preserve-3d;
  transform: rotateY(var(--carousel-rotation, 0deg));
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.project-carousel-track.is-animating {
  transition: none;
}

.project-carousel-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(142, 195, 255, 0.32);
  background: #101827;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.48), 0 0 28px rgba(105, 217, 255, 0.08);
  transform: rotateY(calc(var(--carousel-index) * var(--carousel-angle))) translateZ(var(--carousel-radius));
  backface-visibility: hidden;
}

.project-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-carousel-fade {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 18%;
  pointer-events: none;
}

.project-carousel-fade-left {
  left: 0;
  background: linear-gradient(90deg, rgba(5, 9, 23, 0.94), transparent);
}

.project-carousel-fade-right {
  right: 0;
  background: linear-gradient(-90deg, rgba(5, 9, 23, 0.94), transparent);
}

.project-carousel-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(210, 225, 255, 0.28);
  box-shadow: 0 0 10px transparent;
}

.carousel-dot.is-active {
  width: 18px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(105, 217, 255, 0.8);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: block;
  background: linear-gradient(180deg, rgba(20, 36, 52, 0.9), rgba(10, 18, 28, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.project-card-preview {
  display: block;
  height: 220px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.project-card-no-image {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-no-image .project-card-preview {
  display: none;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(142, 195, 255, 0.7);
  background:
    linear-gradient(135deg, rgba(142, 195, 255, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.03);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 195, 255, 0.5);
  background: linear-gradient(180deg, rgba(25, 44, 63, 0.96), rgba(12, 18, 28, 0.96));
  box-shadow: 0 20px 42px rgba(92, 148, 255, 0.18);
}

.project-card h3 {
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 1.35;
  margin: 0;
  text-align: center;
  transition: color 0.25s ease;
}

.project-card:hover h3 {
  color: var(--primary);
}

.project-card p {
  color: var(--muted);
  font-size: 0.94rem;
  word-break: break-word;
  margin-bottom: 18px;
}

.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
}

.project-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(142, 195, 255, 0.08);
  border: 1px solid rgba(142, 195, 255, 0.2);
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.25s ease;
}

.project-card:hover .project-tag {
  background: rgba(142, 195, 255, 0.18);
  border-color: rgba(142, 195, 255, 0.7);
  color: #dfeeff;
  box-shadow: 0 0 0 1px rgba(142, 195, 255, 0.2);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.project-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 16, 0.88);
  backdrop-filter: blur(12px);
}

.project-modal-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #0a1721;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.project-modal-header {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.project-modal-header > div {
  display: none;
}

.project-modal-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.project-modal-tag {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.modal-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-preview-overlay {
  position: relative;
  grid-column: 1 / -1;
  min-height: 520px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #08131d;
}

.project-preview-image-link,
.project-preview-image-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-preview-image-link {
  z-index: 0;
}

.project-preview-image-link img {
  object-fit: cover;
  object-position: center;
  cursor: pointer;
}

.project-preview-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(4, 10, 18, 0.68);
  backdrop-filter: saturate(0.7);
}

.project-preview-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.project-whatsapp-link {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-whatsapp-link:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.48);
}

.project-whatsapp-link svg {
  width: 31px;
  height: 31px;
}

.project-preview-content h3 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.project-technologies span {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(8, 18, 29, 0.28);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.project-gallery-item {
  min-height: 280px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery-empty {
  grid-column: 1 / -1;
  min-height: 280px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
  border-radius: 16px;
  border: 1px dashed rgba(142, 195, 255, 0.3);
  color: var(--muted);
}

.project-gallery-empty strong {
  font-size: 1.5rem;
  color: var(--text);
}

.modal-visit-link {
  margin-top: 20px;
}

body.modal-open {
  overflow: hidden;
}

.document-access-btn {
  margin-top: 22px;
}

.document-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.document-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.document-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 8, 14, 0.88);
  backdrop-filter: blur(12px);
}

.document-modal-panel {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 36, 52, 0.98), rgba(10, 18, 28, 0.98));
  padding: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.document-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.document-modal-header h2 {
  font-size: 1.8rem;
}

.document-modal-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

.document-password-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
}

.document-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.document-password-row input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(4, 12, 20, 0.9);
  color: var(--text);
  padding: 0.95rem 1rem;
}

.document-access-error {
  min-height: 20px;
  margin-top: 8px;
  color: #ff8b8b;
}

.document-folder {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.document-company h3 {
  margin-bottom: 4px;
}

.document-company-note {
  color: var(--muted);
  margin-bottom: 14px;
}

.document-links {
  display: grid;
  gap: 8px;
}

.document-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(7, 17, 26, 0.54);
  color: var(--text);
  font-weight: 600;
}

.document-links a:hover {
  border-color: rgba(105, 217, 255, 0.55);
  color: var(--primary);
}

@media (max-width: 560px) {
  .document-modal {
    padding: 12px;
  }

  .document-modal-panel {
    padding: 20px;
  }

  .document-password-row {
    grid-template-columns: 1fr;
  }
}

.active-link {
  color: var(--primary);
}

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

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    align-items: center;
  }

  .expertise-grid,
  .portfolio-grid,
  .cert-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #certifications .section-heading h2 {
    white-space: normal;
    font-size: 1.25rem;
  }

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

  .project-carousel {
    height: 320px;
    margin-top: 32px;
    border-radius: 20px;
  }

  .project-carousel-track {
    width: 210px;
    height: 145px;
  }

  .project-carousel-fade {
    width: 9%;
  }


  .brand-profile,
  .brand-profile img {
    width: 52px;
    height: 52px;
  }

  .brand-profile {
    flex-basis: 52px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-location {
    max-width: 220px;
    font-size: 0.68rem;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(7, 19, 28, 0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-btn {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .expertise-grid,
  .portfolio-grid,
  .cert-grid,
  .stats-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-preview-overlay {
    min-height: 420px;
  }

  .project-modal {
    padding: 10px;
  }

  .project-modal-panel {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .hero-copy h1 span {
    white-space: normal;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
  }
}