:root {
  --bg: #060b14;
  --bg-soft: #0e1727;
  --panel: rgba(255,255,255,0.08);
  --text: #f7f9fc;
  --muted: #aeb8c9;
  --accent: #4cc9f0;
  --accent-2: #8b5cf6;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(76, 201, 240, 0.08), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

body::before {
  top: -100px;
  left: -80px;
  background: rgba(76, 201, 240, 0.26);
}

body::after {
  bottom: -120px;
  right: -80px;
  background: rgba(139, 92, 246, 0.22);
  animation-duration: 18s;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  min-height: 100vh;
  padding: 24px 8% 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.025), transparent 45%, rgba(76, 201, 240, 0.03));
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1200;
  box-shadow: 0 0 18px rgba(76, 201, 240, 0.42);
}

.hero-glow {
  position: absolute;
  inset: auto auto -120px -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.25), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  position: sticky;
  top: 10px;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(8, 13, 24, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  margin: 0 auto 20px;
  max-width: 1200px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.16);
  animation: pulse 2.2s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 12px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  padding-top: 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-copy > * {
  animation: fadeUp 0.8s ease both;
}

.hero-copy .eyebrow {
  animation-delay: 0.05s;
}

.hero-copy h1 {
  animation-delay: 0.12s;
}

.hero-copy .hero-subtext,
.hero-copy .hero-text {
  animation-delay: 0.2s;
}

.hero-actions {
  animation-delay: 0.28s;
}

.hero-card {
  animation: fadeUp 0.95s ease both;
  animation-delay: 0.3s;
}

.hero-badge {
  display: inline-block;
  margin-top: 36px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-subtext {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 6px;
  max-width: 640px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  margin-bottom: 12px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.2;
  background: linear-gradient(90deg, var(--text), #dcecff 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.card p,
.drone-info p,
.about-box p,
.contact-box p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 10px 25px rgba(76, 201, 240, 0.25);
}

.btn.secondary {
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

.btn.instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: white;
  box-shadow: 0 10px 25px rgba(221, 42, 123, 0.28);
  border-color: transparent;
}

.btn.instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(221, 42, 123, 0.35);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stats div {
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.stats strong {
  display: block;
  font-size: 1.05rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card,
.card,
.drone-item,
.portfolio-card,
.about-box,
.contact-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-card::before,
.card::before,
.portfolio-card::before,
.about-box::before,
.contact-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: -1;
}

.hero-card:hover::before,
.card:hover::before,
.portfolio-card:hover::before,
.about-box:hover::before,
.contact-box:hover::before {
  transform: translateX(110%);
}

.hero-card ul {
  list-style: none;
  margin-top: 12px;
}

.hero-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-card li:last-child {
  border-bottom: none;
}

.section {
  padding: 90px 8%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 70px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(76, 201, 240, 0.25), transparent);
  opacity: 0.38;
}

.alt-section {
  background: linear-gradient(135deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008));
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.04);
}

.section-heading {
  margin-bottom: 28px;
}

.portfolio-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}

.section-text {
  color: var(--muted);
  max-width: 700px;
  margin-top: 8px;
}

.card-grid,
.portfolio-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.portfolio-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.portfolio-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(76, 201, 240, 0.45);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.24), rgba(139, 92, 246, 0.2));
  color: var(--accent);
  font-size: 1.1rem;
}

.gallery-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 24px;
}

.gallery-pill {
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.04);
}

.work-gallery {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: fadeUp 0.6s ease both;
  min-height: 280px;
  background: #0b1423;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3);
  border-color: rgba(76, 201, 240, 0.45);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.work-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.78) saturate(1.05);
}

.work-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 16, 0.95) 100%);
}

.card-overlay {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 18px 22px;
  text-align: left;
}

.work-card-body h3 {
  margin-bottom: 0;
  font-size: 1rem;
  color: white;
}

.card-hint {
  color: #9fc7ff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.build-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.build-list li {
  color: #e8eef9;
  font-size: 0.9rem;
  line-height: 1.4;
  padding-left: 12px;
  position: relative;
}

.build-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.lightbox-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 14, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-root.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  width: min(1120px, 100%);
  height: min(720px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(8, 14, 24, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  animation: modalIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-media {
  background: #050913;
}

.lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10, 16, 28, 0.98), rgba(8, 14, 24, 0.98));
}

.lightbox-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.lightbox-subtitle {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.gallery-toggle {
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(76, 201, 240, 0.16), rgba(139, 92, 246, 0.16));
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-toggle:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(76, 201, 240, 0.24), rgba(139, 92, 246, 0.24));
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(30px, 30px, 0) scale(1.08);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.work-card.is-hidden {
  display: none;
}

.cv-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.contact-section {
  padding-bottom: 100px;
}

.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-info p {
  margin-bottom: 8px;
}

.footer {
  text-align: center;
  padding: 24px 8% 40px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 20px;
}

.footer a {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .brand-bar {
    border-radius: 20px;
    padding: 12px 14px;
  }

  .hero-content,
  .card-grid,
  .portfolio-grid,
  .work-gallery,
  .cv-list,
  .stats {
    grid-template-columns: 1fr;
  }

  .lightbox-card {
    grid-template-columns: 1fr;
  }

  .lightbox-content {
    padding-top: 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-content {
    padding-top: 40px;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}
