/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0b0f19;
  color: #e6edf3;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5b8cff;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-desc {
  max-width: 620px;
  color: #8b949e;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* fade-in animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(91, 140, 255, 0.08);
}

.navbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e6edf3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #8b949e;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #e6edf3;
}

.nav-links .nav-cta {
  background: #5b8cff;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease;
}

.nav-links .nav-cta:hover {
  background: #4a7bef;
  transform: translateY(-1px);
}

/* mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e6edf3;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #5b8cff;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5b8cff;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #5b8cff 0%, #7da8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #8b949e;
  margin-bottom: 20px;
}

.hero .hero-desc {
  font-size: 1.1rem;
  color: #6e7681;
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #5b8cff;
  color: #fff;
}

.btn-primary:hover {
  background: #4a7bef;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.25);
}

.btn-secondary {
  background: rgba(91, 140, 255, 0.08);
  color: #5b8cff;
  border: 1px solid rgba(91, 140, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(91, 140, 255, 0.14);
  transform: translateY(-2px);
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #484f58;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid #484f58;
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: #484f58;
  border-radius: 2px;
  animation: scroll-anim 1.8s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.about-text p {
  color: #8b949e;
  margin-bottom: 16px;
  line-height: 1.85;
}

.about-text p strong {
  color: #e6edf3;
}

.founder-card {
  background: #121826;
  border: 1px solid rgba(91, 140, 255, 0.08);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5b8cff, transparent);
}

.founder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5b8cff 0%, #3a6aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.founder-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.founder-card .founder-role {
  color: #5b8cff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.founder-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.founder-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #8b949e;
  font-size: 0.9rem;
  line-height: 1.6;
}

.founder-card ul li .check {
  color: #5b8cff;
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ===== PRINCIPLES ===== */
#principles {
  background: #121826;
  border-top: 1px solid rgba(91, 140, 255, 0.05);
  border-bottom: 1px solid rgba(91, 140, 255, 0.05);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.principle-card {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(91, 140, 255, 0.06);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.principle-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(91, 140, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.principle-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.principle-card p {
  color: #8b949e;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: #121826;
  border: 1px solid rgba(91, 140, 255, 0.06);
  border-radius: 14px;
  padding: 36px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.service-card .service-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(91, 140, 255, 0.06);
  line-height: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(91, 140, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: #8b949e;
  font-size: 0.925rem;
  line-height: 1.75;
}

/* ===== PROJECTS ===== */
#projects {
  background: #121826;
  border-top: 1px solid rgba(91, 140, 255, 0.05);
  border-bottom: 1px solid rgba(91, 140, 255, 0.05);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(91, 140, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.project-thumb {
  height: 180px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.12), rgba(91, 140, 255, 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid rgba(91, 140, 255, 0.06);
}

.project-body {
  padding: 28px 24px;
}

.project-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-body p {
  color: #8b949e;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: rgba(91, 140, 255, 0.08);
  color: #5b8cff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
}

/* ===== TECH STACK ===== */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  justify-content: center;
}

.tech-item {
  background: #121826;
  border: 1px solid rgba(91, 140, 255, 0.06);
  border-radius: 12px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tech-item .tech-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(91, 140, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ===== CONTACT ===== */
#contact {
  background: #121826;
  border-top: 1px solid rgba(91, 140, 255, 0.05);
}

.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner .section-desc {
  margin: 0 auto 32px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.15);
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #5b8cff;
  transition: background 0.25s ease, transform 0.2s ease;
}

.contact-email:hover {
  background: rgba(91, 140, 255, 0.14);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(91, 140, 255, 0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand .footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e6edf3;
}

.footer-brand .footer-tagline {
  font-size: 0.8rem;
  color: #484f58;
}

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

.footer-links a {
  color: #8b949e;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #5b8cff;
}

.footer-copy {
  font-size: 0.8rem;
  color: #484f58;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  .hero .hero-desc {
    font-size: 1rem;
  }

  /* mobile nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #121826;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.35s ease;
    border-left: 1px solid rgba(91, 140, 255, 0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* grids */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .tech-grid {
    justify-content: stretch;
  }

  .tech-item {
    flex: 1 1 100%;
    justify-content: center;
  }
}
