:root {
  --primary: #22a6ff;
  --primary-2: #0A66C2;
  --dark: #07111f;
  --dark-2: #0d1a2f;
  --text: #eaf3ff;
  --muted: #9fb2cc;
  --card: rgba(10, 18, 35, 0.92);
  --border: rgba(80, 150, 255, 0.18);
  --shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34,166,255,0.08), transparent 20%),
    radial-gradient(circle at bottom right, rgba(34,166,255,0.08), transparent 20%),
    linear-gradient(180deg, #050c17 0%, #081120 100%);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.hero-single {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hero-statement {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-subline {
  font-size: 1rem;
  color: #9fb2cc;
  margin-bottom: 12px;
}

.about-banner {
  width: 100%;
  border-radius: 18px;
  margin: 18px 0 20px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .nav-links {
    width: 100%;
    left: 0;
    top: 70px;
  }
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .project-grid,
  .media-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-statement {
    font-size: 1rem;
  }

  .hero-subline {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;   /* 👈 ensures center on mobile */
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 12, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  gap: 20px;
  position: relative;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.nav-links a {
  font-size: 0.96rem;
  font-weight: 600;
  color: #dbeafe;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* HERO */
.hero {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.hero-left,
.hero-right {
  background: linear-gradient(145deg, rgba(14,28,53,0.96), rgba(6,14,28,0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-left {
  padding: 34px;
}

.hero-right {
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 440px;
}

.hero-avatar-wrap {
  margin-bottom: 16px;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2.5rem;
  line-height: 1.08;
}

.hero-statement {
  margin: 0 0 14px;
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-subline {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--muted);
}

.hero-contact {
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 0.96rem;
}

.hero-contact a {
  color: #dbeafe;
}

.hero-buttons {
  display: flex;
  justify-content: center;   /* 👈 THIS FIXES IT */
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.22s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  box-shadow: 0 8px 18px rgba(34, 166, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

.full {
  width: 100%;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  transition: 0.25s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34,166,255,0.4);
}

.video-card video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* MAIN */
.main {
  padding: 14px 0 56px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.35rem;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 10px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
  color: #ffffff;
}

.card p {
  margin-top: 0;
  color: #d9e7fb;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.section-graphic {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.full-banner {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.styled-list {
  margin: 0 0 0 18px;
  padding: 0;
}

.styled-list li {
  margin-bottom: 10px;
  color: #d9e7fb;
}

.project-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card,
.media-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
  transition: 0.25s ease;
}

.project-card:hover,
.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,166,255,0.35);
}

.media-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.experience-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.experience-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font: inherit;
  background: rgba(255,255,255,0.04);
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #95a8c4;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(34,166,255,0.55);
  box-shadow: 0 0 0 3px rgba(34,166,255,0.12);
}

textarea {
  resize: vertical;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.alert.success {
  background: rgba(16, 185, 129, 0.12);
  color: #9ff5cd;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.alert.error {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* DEMO PAGE */
.demo-hero {
  padding: 48px 0 24px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.demo-card h3 {
  margin-top: 0;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .grid-two,
  .project-grid,
  .media-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(6, 14, 28, 0.98);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 14px;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 8px 4px;
  }

  .hero-left {
    padding: 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-statement {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons {
  margin-top: 18px;
}

  .btn {
    width: 100%;
  }

  .card {
    padding: 20px;
  }
}