/* --- New Color Palette & Global Styles --- */
/* :root {
    --primary-bg: #0d0d0d;    
    --secondary-bg: #121212;     
    --secondary-bg: #131313;
    --accent-color: #00f5ff;        
    --accent-color: rgba(178, 165, 226, 0.926);
    --second-accent: #2651a6fb;
    --text-color: #e0e0e0;          
    --transition: all 0.3s ease;
    --container-width: 1200px;
  } */

/* REPLACED: color system (removed neon + duplicates), added timeless neutrals + sage accent */
/* === PALETTE 4: Warm Stone + Cocoa === */
/* === PALETTE 3: Bone + Charcoal + Faded Blue === */
:root {
  --bg: #f8f7f3;
  --surface: #ffffff;
  --surface-2: #f0efe9;

  --text: #1f1f1f;
  --muted: #666666;

  --border: rgba(31, 31, 31, 0.10);
  --shadow: 0 12px 30px rgba(31, 31, 31, 0.08);
  --shadow-hover: 0 18px 42px rgba(31, 31, 31, 0.12);

  --accent: #6b7c93;
  --accent-2: #4e5d72;
  --link: #6b7c93;

  --radius: 16px;
  --transition: 220ms ease;
  --container-width: 1120px;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 220ms;
  --dur-med: 520ms;
  --dur-slow: 680ms;
}


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

/*   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }
  
  body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
  } */

/* REPLACED: typography baseline (more editorial + consultancy feel) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  line-height: 1.55;
  letter-spacing: 0.1px;
}

/* ADDED: headline font utility */
h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: 0.2px;
}

/* Remove default link styling for project cards */
.project-card {
  text-decoration: none; /* Removes the default underline */
  color: inherit; /* Keeps text color consistent */
}

.project-card:visited {
  color: inherit; /* Ensures no purple highlighting after clicking */
}

.project-card:focus,
.project-card:active {
  outline: none; /* Removes focus outline */
}

/* --- Loader Animation (unchanged or refined as needed) --- */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s;
}

.loader.fade-out {
  opacity: 0;
}

.loader-circle {
  width: 80px;
  height: 80px;
  border: 5px solid var(--accent-color);
  border-radius: 50%;
  border-top-color: var(--text-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Header & Navigation (sleek, minimal, and interactive) --- */
/*   .header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    padding: 1rem 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background 0.3s, box-shadow 0.3s;
  } */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  padding: 0.9rem 0;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

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

.logo-link {
  text-decoration: none; /* Removes underline */
  display: inline-block; /* Adjusts block behavior */
}

.logo {
  cursor: pointer; /* Shows a pointer when hovering */
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 5px;
  transition: var(--transition);
}

body.menu-open {
  overflow: hidden;
}

/* --- Full-Screen Particle Canvas --- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Behind the content */
  pointer-events: none;
}

/* --- Content Section Helper --- */
/* Global section spacing – tightened */
.content-section {
  padding-top: 90px;
  padding-bottom: 90px;
}


/* --- Container --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

/* --- Hero Section (Modern typography & micro-animations) --- */
.hero {
  position: relative;
  z-index: 2;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  height: 100vh;
  padding: 140px 5% 80px;
  background-image: url("https://cdn.pixabay.com/photo/2024/01/19/13/27/fog-8519078_1280.jpg"),
    linear-gradient(180deg, rgba(248, 247, 243, 0.36) 0%, rgba(248, 247, 243, 0.48) 100%);
  background-image: url("https://cdn.pixabay.com/photo/2023/09/11/06/03/building-8246151_1280.jpg"),
    linear-gradient(180deg, rgba(248, 247, 243, 0.36) 0%, rgba(248, 247, 243, 0.48) 100%);
      background-image: url("https://cdn.pixabay.com/photo/2024/11/11/07/44/woman-9189442_1280.jpg"),
    linear-gradient(180deg, rgba(248, 247, 243, 0.36) 0%, rgba(248, 247, 243, 0.48) 100%);
  background-image: url("https://images.fineartamerica.com/images/artworkimages/mediumlarge/3/sandstone-origin-unknown.jpg"),
    linear-gradient(180deg, rgba(248, 247, 243, 0.36) 0%, rgba(248, 247, 243, 0.48) 100%);
      background-image: url("https://cdn.pixabay.com/photo/2015/04/23/21/59/tree-736875_1280.jpg"),
    linear-gradient(180deg, rgba(248, 247, 243, 0.36) 0%, rgba(248, 247, 243, 0.48) 100%);
      background-image: url("https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?q=80&w=2074&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"),
    linear-gradient(180deg, rgba(248, 247, 243, 0.36) 0%, rgba(248, 247, 243, 0.48) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1.4rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.501);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(31, 31, 31, 0.08);
  box-shadow: 0 8px 26px rgba(31, 31, 31, 0.08);
  animation: fadeInUp 1s ease-out forwards;
  text-align: center;
}

.hero-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #171d28;
  margin-bottom: 0.8rem;
  display: inline-block;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.074);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #171a1f;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.28);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
  color: #2f3742;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  justify-content: center;
}

.hero-primary-cta {
  min-width: 180px;
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.658);
/*   background: rgba(248, 245, 239, 0.72);
 */  color: #323944;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.hero-secondary-link:hover {
  color: #1b2839;
  background: rgba(248, 245, 239, 0.84);
  border-color: rgba(255, 255, 255, 0.658);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff !important;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 10px 18px rgba(47, 107, 79, 0.18);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
  box-shadow: 0 14px 26px rgba(47, 107, 79, 0.22);
}

.start-button {
  margin-left: 30px;
}


@media screen and (max-width: 600px) {
  .start-button {
    margin-left: 0;
    margin-top: 20px;
  }

  .hero-cta-group {
    align-items: stretch;
    justify-content: center;
  }

  .hero {
    padding-top: 118px;
    padding-bottom: 68px;
  }

  .hero-content {
    padding: 1rem 0.95rem 0.85rem;
  }
}

/* --- Sections (About, Services, etc.) --- */
.section-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
}

.section-text {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Services Grid --- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  width: 320px;
  box-shadow: 0 10px 28px rgba(31, 31, 31, 0.07);
  transition:
    box-shadow var(--dur-slow) var(--ease-premium),
    border-color var(--dur-slow) var(--ease-premium),
    transform var(--dur-slow) var(--ease-premium);
  will-change: transform, box-shadow;
}

.service-card:hover {
  transform: translateY(-1px); /* tiny, not jumpy */
  border-color: rgba(31, 31, 31, 0.16);
  box-shadow: 0 18px 46px rgba(31, 31, 31, 0.10);
}


.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* --- Portfolio Section --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  position: relative;
  z-index: 2 !important;
}

.archived-projects {
  text-align: center;
  margin-top: 4rem;
}

.portfolio-cta-group {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.portfolio-cta-group .btn {
  width: min(100%, 340px);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 31, 31, 0.07);
  transition: box-shadow 220ms ease, border-color 220ms ease;
  will-change: box-shadow;
}

.project-card:hover {
  border-color: rgba(31, 31, 31, 0.2);
  box-shadow: 0 14px 32px rgba(31, 31, 31, 0.1);
}

.project-image img {
  width: 100%;
  display: block;
  transform: none;
  transition: opacity 220ms ease;
}

.project-card:hover .project-image img {
  opacity: 1;
}

.service-card[data-aos],
.project-card[data-aos] {
  transition: box-shadow 220ms ease, border-color 220ms ease !important;
}

.project-info {
  padding: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-width: 100%;
}

.tech-tags h3 {
  flex-basis: 100%;
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.tech-tags span {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
}

.contact {
  background: var(--surface-2);
}

.contact-container {
  max-width: 760px;
}

.contact-container .section-title {
  margin-bottom: 0.85rem;
}

.contact-container .section-text {
  margin-bottom: 1.35rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
}

.contact-actions .btn {
  min-width: 170px;
}

/* --- Footer --- */
footer {
  background: var(--secondary-bg);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-color);
  font-size: 0.9rem;
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    height: auto;
    padding: 112px 1rem 52px;
    align-items: center;
  }

  .hero-content {
    width: min(100%, 640px);
    padding: 1.15rem 1rem 1rem;
    border-radius: 14px;
  }

  .hero-title {
    font-size: clamp(1.95rem, 8vw, 2.6rem);
    max-width: 18ch;
    line-height: 1.16;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 34ch;
  }

  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-primary-cta,
  .hero-secondary-link {
    width: 100%;
    min-width: 0;
  }

  .hero-trust {
    justify-content: flex-start;
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: transparent;
  }

  .burger div {
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
  }

  .burger.toggle {
    background: rgba(255, 255, 255, 0.6);
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 29, 0.14);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 198;
  }

  .nav-links {
    position: fixed;
    top: 62px;
    right: 0.75rem;
    left: 0.75rem;
    display: none;
    flex-direction: column;
    background: rgba(248, 247, 243, 0.98);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(31, 31, 31, 0.1);
    width: auto;
    padding: 0.45rem 0.55rem;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    gap: 0;
    text-align: center;
    z-index: 220;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li+li {
    margin-top: 0.1rem;
  }

  .nav-links a {
    display: block;
    padding: 0.7rem 0.2rem;
    font-size: 0.96rem;
    font-weight: 500;
    letter-spacing: 0;
    border-radius: 6px;
    background: transparent;
    transition: background-color 160ms ease, color 160ms ease;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(107, 124, 147, 0.08);
    color: var(--accent-2);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links.active {
    display: flex;
    animation: mobileMenuIn 170ms ease-out;
  }

  .burger.toggle .line1 {
    transform: translateY(6px) rotate(45deg);
  }

  .burger.toggle .line2 {
    opacity: 0;
  }

  .burger.toggle .line3 {
    transform: translateY(-6px) rotate(-45deg);
  }

  @keyframes mobileMenuIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* --- Spruced Up Footer --- */
footer {
  background: var(--secondary-bg);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-color);
  font-size: 0.9rem;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--accent-color);
}

.footer-copy {
  font-size: 0.85rem;
}

/* Process section */
.process {
  background: var(--surface-2);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  text-align: left;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.process-number {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-trust {
  margin-top: 0.95rem;
  margin-bottom: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
  font-size: 0.88rem;
}

.hero-trust span {
  border: 1px solid rgba(31, 31, 31, 0.12);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  color: #3c4552;
}



/* Philosophy section */
.philosophy {
  background: var(--surface-2);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-text {
  text-align: left;
}

.philosophy-text .section-text {
  max-width: 520px;
}

.philosophy-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

/* Process section */
.process {
  background: var(--surface);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.process-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.process-steps {
  text-align: left;
}

.process-step {
  margin-top: 1.5rem;
}

.process-step span {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.process-step h3 {
  margin: 0.25rem 0;
}

.process-step p {
  color: var(--muted);
}

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

/* Featured project */
.featured-project {
  background: var(--surface-2);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.featured-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.featured-text {
  text-align: left;
}

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