:root {
  --bg: #0f1720;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #06b6d4;
  --max: 1100px;
  --gap: 20px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, Arial;
  background: var(--bg);
  color: #e6eef6;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px;
}
.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  z-index: 80;
  background: linear-gradient(
    180deg,
    rgba(3, 7, 14, 0.6),
    rgba(3, 7, 14, 0.15)
  );
  backdrop-filter: blur(6px);
}
.nav .brand {
  font-weight: 700;
}
.nav nav a {
  color: var(--muted);
  margin-left: 18px;
  text-decoration: none;
}
.nav nav a:hover {
  color: var(--accent);
}

.section {
  padding: 120px 0;
  min-height: 60vh;
  position: relative;
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;

  background: url("assets/images/hero-bg.jpeg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed; 
  background-position: center 0; 
}

.hero-inner {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 120px 20px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 12px;
}
.hero-sub {
  color: var(--muted);
  margin: 0 0 18px;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #012;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.parallax-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 140%;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.35;
}
.layer-back {
  background-image: linear-gradient(
    120deg,
    rgba(6, 182, 212, 0.06),
    rgba(12, 74, 110, 0.04)
  );
  transform: scale(1.2);
}
.layer-mid {
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(0, 0, 0, 0.15),
      transparent 20%
    ),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.06), transparent 20%);
}

.about .container p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.project-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
}
.thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.project-card .meta {
  padding: 14px;
}
.project-card h3 {
  margin: 0 0 6px;
}
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact .container p {
  color: var(--muted);
}
.footer {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.section.contact {
  background-color: #f9f9f9;
  padding: 60px 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.section.contact h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #333;
}

.section.contact p {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  line-height: 1.8;
}

.section.contact .social-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin: 0 8px;
}

.section.contact a {
  color: #0077b5; 
  text-decoration: none;
  font-weight: 500;
}

.section.contact a:hover {
  text-decoration: underline;
}
.container {
  color: var(--muted);
}
@media (max-width: 768px) {
  .section.contact {
    padding: 40px 20px;
  }

  .section.contact h2 {
    font-size: 2em;
  }

  .section.contact p {
    font-size: 1em;
  }
}

@media (max-width: 640px) {
  .nav nav a {
    display: none;
  }
  .hero-inner {
    padding: 80px 18px;
  }
}
