:root {
  /* Base colors */
  --color-background: #0f172a;
  --color-surface: #1e293b;
  --color-accent: #60a5fa;
  --color-accent-dark: #3b82f6;
  --color-yellow: #facc15;
  --color-yellow-dark: #eab308;
  --color-text: #ffffff;
  --color-subtext: #cbd5e1;
  --color-border: #334155;
  --color-muted: #94a3b8;
  --color-muted-light: #f1f5f9;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --color-hover: #38bdf8;

  /* Gradients */
  --gradient-hero: linear-gradient(to right, #1e3a8a, #9333ea);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  padding-top: 90px;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a:hover {
  color: var(--color-hover);
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* main */
main {
  flex: 1;
  /* margin: 20px; */
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  /* Ensure it stays above other content */

  background: var(--color-surface);
  /* Darker navy */
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  /* Blue-400 */
}

.navbar nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-end;
}

.navbar .btn {
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  border-radius: 0.375rem;
  color: var(--color-background);
  font-weight: 600;
  transition: background 0.3s;
}

.navbar .btn:hover {
  background: var( --color-accent-dark);
}

/* Nav Flex */
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text);
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  /* Blue to Purple */
  padding: 5rem 0;
  text-align: center;
  color: var(--color-text);
}

.hero h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero .btn.primary {
  background: var(--color-yellow);
  /* Yellow accent */
  color: var(--color-background);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

.hero .btn.primary:hover {
  background: var(--color-yellow-dark);
}


/* Features Section */
.features {
  background: var(--color-background);
  padding: 4rem 0;
  text-align: center;
}

.features h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-muted-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feature h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.feature p {
  color: var(--color-subtext);
}

/* Muk Components */
.components {
  background-color: var(--color-surface);
  padding: 4rem 0;
  text-align: center;
}

.component-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.components h3 {
  font-size: 2rem;
  color: var(--color-muted-light);
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.component-card {
  background: var(--color-background);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* allows children to align better */
  min-height: 350px;
}

.component-card:hover {
  background: var(--color-surface);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* allows children to align better */
  min-height: 350px;
}

.component-card img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  align-self: flex-start;
  /* aligns image to the top */
}

.component-card h5 {
  font-size: 1rem;
  color: var(--color-muted-light);
}


/* Contact */
.contact {
  background: var(--color-background);
  padding: 4rem 0;
  text-align: center;
}

.contact h3 {
  font-size: 2rem;
  color: var(--color-yellow);
  margin-bottom: 1rem;
}

.contact a {
  color: var(--color-accent);
  font-weight: 600;
}

.contact a:hover {
  color: var(--color-hover);
}

/* Footer */
.footer {
  background: var(--color-surface);
  padding: 20px 0;
  color: var(--color-muted);
}

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

.footer-logo {
  height: 40px;
}

.footer-right {
  text-align: right;
  font-size: 0.9rem;
}

.footer-right a {
  color: var(--color-accent);
  margin: 0 0.5rem;
}

.footer-right a:hover {
  color: var(--color-hover);
}
/* for responseive */
@media (max-width: 768px) {
  .component-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .component-grid {
    grid-template-columns: 1fr;
  }
}