:root {
  --bg: #0f0f0f;
  --text: #dbdbdb;
  --accent: #a08963;
  --highlight: #c9b194;
  --card-bg: #1a1a1a;
  --border: #2a2a2a;
}

a {
  -webkit-tap-highlight-color: transparent;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

#heroCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

main {
  flex: 1;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  background-color: rgba(0, 0, 0, 0.25);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  filter: brightness(200%);
}

.logo h1 {
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--highlight);
}

/* ===== Nav Bar ===== */
nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  transition: right 0.3s ease;
}

nav ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--highlight);
  text-shadow: 0 0 6px rgba(201, 177, 148, 0.6);
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  cursor: pointer;
  z-index: 200;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero-logo {
  width: 160px;
  animation: fadeInScale 2s ease forwards;
  opacity: 0;
}

.hero h2 {
  margin-top: 20px;
  font-size: 2.2rem;
  color: var(--highlight);
  animation: fadeIn 3s ease forwards;
  opacity: 0;
  line-height: 1.3;
  max-width: 900px;
}

.divider {
  width: 80px;
  height: 2px;
  background-color: var(--accent);
  margin: 20px auto;
}

.hero p {
  color: var(--text);
  font-size: 1.05rem;
  opacity: 0.85;
  margin-top: 10px;
  line-height: 1.7;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.hero-cta {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-line {
  margin-top: 25px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--highlight);
  color: #000;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 177, 148, 0.25);
}

.btn-secondary {
  border: 1px solid var(--highlight);
  color: var(--highlight);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(201, 177, 148, 0.08);
  transform: translateY(-2px);
}

/* ===== Section Shared Styles ===== */
section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--highlight);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text);
  opacity: 0.8;
  font-size: 1.05rem;
}

/* ===== Services Section ===== */
.services {
  background-color: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 177, 148, 0.1);
  border-radius: 12px;
}

.service-icon i {
  width: 32px;
  height: 32px;
  stroke: var(--highlight);
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--highlight);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===== Process Section ===== */
.process {
  background-color: rgba(26, 26, 26, 0.3);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 15px;
}

.process-step h3 {
  font-size: 1.4rem;
  color: var(--highlight);
  margin-bottom: 10px;
}

.process-step p {
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===== Why Us Section ===== */
.why-us {
  background-color: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.why-card {
  background: var(--card-bg);
  padding: 35px 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.why-card i {
  width: 36px;
  height: 36px;
  stroke: var(--highlight);
  margin-bottom: 15px;
}

.why-card h3 {
  font-size: 1.2rem;
  color: var(--highlight);
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===== Projects Section ===== */
.projects {
  background-color: rgba(26, 26, 26, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.project-image {
  width: 100%;
  height: 220px;
  background: rgba(160, 137, 99, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image i {
  width: 60px;
  height: 60px;
  stroke: var(--accent);
  opacity: 0.3;
}

.project-info {
  padding: 30px;
}

.project-info h3 {
  font-size: 1.3rem;
  color: var(--highlight);
  margin-bottom: 12px;
}

.project-info p {
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-stack span {
  background: rgba(201, 177, 148, 0.1);
  color: var(--highlight);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== Final CTA Section ===== */
.final-cta {
  background: linear-gradient(135deg, rgba(160, 137, 99, 0.05) 0%, rgba(26, 26, 26, 0.3) 100%);
  text-align: center;
  padding: 120px 20px;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: var(--highlight);
  margin-bottom: 18px;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 35px;
}

/* ===== Footer ===== */
footer {
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .socials {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

footer .socials i[data-lucide] {
  width: 22px;
  height: 22px;
  stroke: var(--highlight);
  transition: 0.3s;
}

footer .socials a {
  color: var(--highlight);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

footer .socials a:hover i[data-lucide] {
  stroke: var(--text);
  transform: scale(1.1);
}

footer .socials a:hover {
  color: var(--text);
  transform: scale(1.2);
}

/* ===== Animations ===== */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ===== Fade-in Animation Classes ===== */
.fade-in-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .hamburger span {
    height: 3px;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 240px;
    height: 100vh;
    background-color: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 25px;
    padding: 40px 20px;
    transition: right 0.4s ease;
    display: flex;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }

  header {
    padding: 18px 25px;
  }

  .hero {
    min-height: 100vh;
    padding: 100px 20px 40px;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 70px 20px;
  }

  .services-grid,
  .process-steps,
  .why-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .btn-primary,
  .btn-secondary {
    min-width: 150px;
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}