@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-strong: #f0f2f7;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2b6cb0;
  --primary-soft: #dbeafe;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.navigation {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 18px 32px;
  background: rgba(246, 247, 251, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.logo {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.toggle-dark {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.toggle-dark:hover {
  transform: translateY(-1px);
}

.page {
  padding: 140px 32px 80px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 4.4vw, 4.6rem);
  line-height: 1.02;
  margin: 0;
}

.hero-copy p {
  margin: 24px 0 32px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 660px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(43, 108, 176, 0.18);
}

.preview-grid,
.card-grid,
.gallery-grid {
  display: grid;
  gap: 24px;
}

.preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 40px;
}

.preview-card,
.card,
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.preview-card:hover,
.card:hover,
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.14);
}

.preview-card-content,
.card-content {
  padding: 22px;
}

.preview-card-title,
.card-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.preview-card-text,
.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 28px;
}

.card-content {
  padding: 24px;
}

.footer {
  margin-top: 60px;
  padding: 24px 0 12px;
  text-align: center;
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(43, 108, 176, 0.25);
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .navigation {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .navigation {
    padding: 18px 20px;
  }

  .page {
    padding-top: 120px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

.dark {
  --bg: #0f172a;
  --surface: #111827;
  --surface-strong: #1f2937;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --primary: #60a5fa;
  --primary-soft: rgba(96, 165, 250, 0.16);
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.35);

}
.logo img{height:100px;width:auto;object-fit:contain;}
