* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f1115;
  color: #eaeaea;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.08); /* subtle divider */
  z-index: 1000;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.5);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #4cc9f0, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #bbb;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  position: relative;
  font-size: 14px;
  transition: 0.3s;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: 0.3s;
}

/* NAV RIGHT + THEME TOGGLE */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 207, 255, 0.18);
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* LIGHT THEME */
[data-theme="light"] body {
  background: #f4f6fb;
  color: #111827;
}

[data-theme="light"] .navbar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .logo-tag {
  color: #64748b;
}

[data-theme="light"] .nav-links a {
  color: #475569;
}

[data-theme="light"] .menu-toggle span {
  background: #0f172a;
}

[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}
[data-theme="light"] .theme-toggle:hover {
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 0 14px rgba(0, 207, 255, 0.18);
}

[data-theme="light"] .hero {
  background: radial-gradient(circle at top, #eef2f7, #f4f6fb);
}

[data-theme="light"] .badge {
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .hero p,
[data-theme="light"] .hero-meta .meta-item span {
  color: #475569;
}

[data-theme="light"] .meta-item p {
  color: #111827;
}

[data-theme="light"] .section.alt {
  background: #e8edf4;
}

[data-theme="light"] .card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .card p,
[data-theme="light"] .card li {
  color: #334155;
}

@media (max-width: 768px) {
  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* LIGHT THEME — OVERRIDE TAILWIND UTILITIES (DATA LAYOUT) */
[data-theme="light"] .bg-gray-900,
[data-theme="light"] .bg-gray-950 {
  background-color: #ffffff !important;
}

[data-theme="light"] .bg-green-900,
[data-theme="light"] .bg-emerald-900 {
  background-color: #ffffff !important;
}

[data-theme="light"] .text-white,
[data-theme="light"] .text-gray-200,
[data-theme="light"] .text-gray-300 {
  color: #111827 !important;
}

[data-theme="light"] .text-gray-400,
[data-theme="light"] .text-gray-500 {
  color: #64748b !important;
}

[data-theme="light"] #home .text-white,
[data-theme="light"] #home .text-gray-200 {
  color: #ffffff !important;
}
[data-theme="light"] #home .hero-meta .meta-item span {
  color: #ffffff !important;
}
[data-theme="light"] #data-source .text-white,
[data-theme="light"] #data-source .text-gray-200,
[data-theme="light"] #data-source .text-gray-300 {
  color: #ffffff !important;
}
[data-theme="light"] #data-source .bg-white\/10 .text-gray-200,
[data-theme="light"] #data-source .bg-white\/10 .text-gray-400 {
  color: #111827 !important;
}

[data-theme="light"] .bg-white\/5,
[data-theme="light"] .bg-white\/10 {
  background-color: #eef2f7 !important;
}

[data-theme="light"] .border-white\/10,
[data-theme="light"] .border-white\/20 {
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .bg-gray-800\/80,
[data-theme="light"] .bg-gray-800 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .bg-gray-800:hover {
  background-color: #eef2f7 !important;
}

[data-theme="light"] .bg-red-500\/10 {
  background-color: #fee2e2 !important;
}
[data-theme="light"] .border-red-500\/30 {
  border-color: #fca5a5 !important;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  background: radial-gradient(circle at top, #1b1f2a, #0f1115);
}

.hero-content {
  max-width: 700px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #333;
  border-radius: 999px;
  margin-bottom: 15px;
  color: #aaa;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 10px;
}

.hero p {
  color: #aaa;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  text-align: center;
  flex-wrap: wrap;
}

.meta-item span {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  color: #aaa;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.meta-item p {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.project-intro {
  padding: 100px 60px;
  background: #f8f9fb;
}

.intro-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.intro-text {
  flex: 1;
}

.intro-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #ff4d4f;
  font-weight: 600;
}

.intro-text h2 {
  font-size: 42px;
  line-height: 1.2;
  margin: 15px 0;
  color: #111827;
}

.intro-text p {
  color: #000000;
  margin-bottom: 15px;
}

.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
}

.feature h4 {
  font-size: 14px;
  margin-bottom: 5px;
  color: #000000;
}

.feature p {
  font-size: 13px;
  color: #000000;
}

.intro-image {
  flex: 1;
  position: relative;
}

.intro-image img {
  width: 100%;
  border-radius: 20px;
}

.highlight-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 250px;
}

.highlight-card span {
  font-size: 12px;
  color: #000000;
}

.highlight-card p {
  font-size: 14px;
  margin-top: 5px;
  color: #000000;
  font-weight: 700;
}

/* SECTION */
.section {
  padding: 80px 10%;
}

.section.alt {
  background: #141824;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* CARD */
.card {
  background: #1a1f2b;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #222;
}

.card.full {
  grid-column: 1 / -1;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.card p, .card li {
  color: #bbb;
  font-size: 14px;
}

.card ul {
  padding-left: 18px;
}

@media (max-width: 768px) {
  .project-intro {
    padding: 80px 25px;
  }

  .intro-container {
    flex-direction: column;
  }

  .intro-text h2 {
    font-size: 28px;
  }

  .intro-features {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    position: static;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {

    /* NAVBAR */
  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    gap: 15px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #111827;
    backdrop-filter: blur(10px);

    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 30px 0;

    transform: translateY(-150%);
    transition: 0.3s;
  }

  .nav-links.active {
    transform: translateY(5.5%);
  }
  .logo {
    gap: 8px;
  }

  .logo-name {
    font-size: 15px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo-tag {
    display: none;
  }
}

/* FOOTER (CONNECT) */
.connect {
  padding: 50px 10%;
  text-align: center;
  background: #0f1115;
  color: #ffffff;
}

.connect h2 {
  font-size: 38px;
  margin-bottom: 10px;
  text-align: center;
  background: linear-gradient(90deg, #4cc9f0, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.connect p {
  color: #94a3b8;
  margin: 0 auto 30px;
  text-align: center;
  max-width: 600px;
}

.connect-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.connect-btn {
  padding: 12px 24px;
  border: 1px solid #334155;
  border-radius: 30px;
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s;
}

.connect-btn:hover {
  background: linear-gradient(90deg, #4cc9f0, #0ea5e9);
  color: #0f172a;
  border-color: transparent;
}

.copyright {
  font-size: 12px;
  color: #64748b;
}

[data-theme="light"] .connect {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .connect p {
  color: #475569;
}

[data-theme="light"] .connect-btn {
  border-color: #94a3b8;
  color: #0f172a;
}

[data-theme="light"] .connect-btn:hover {
  background: linear-gradient(90deg, #4cc9f0, #0ea5e9);
  color: #0f172a;
  border-color: transparent;
}

[data-theme="light"] .copyright {
  color: #64748b;
}
