/*
 * Nexa‑Bucan Website Stylesheet
 *
 * This stylesheet defines the look and feel of the Nexa‑Bucan
 * one‑page website.  Colours, typography and layout take cues from
 * the supplied corporate identity: a gradient of pink, lavender and
 * cyan paired with clean whites and dark accents.  The design is
 * responsive and adapts gracefully to smaller screens.
 */

/* CSS Variables for easy colour/theme maintenance */
:root {
  --nb-pink: #ff2ea8;
  --nb-lavender: #a9b6e6;
  --nb-cyan: #00baff;
  --nb-gradient: linear-gradient(90deg, var(--nb-pink), var(--nb-lavender), var(--nb-cyan));
  --nb-dark: #0a0a0a;
  --nb-light: #ffffff;
  --section-padding: 6rem;
  --container-width: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--nb-dark);
  background: var(--nb-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--nb-dark);
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size: 1.2rem;
}
p {
  margin-bottom: 1rem;
}

/* Preloader Overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--nb-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Hide the overlapping lines initially.  The stroke-dasharray and
   stroke-dashoffset properties are set dynamically in JS based on the
   computed length of each path. */
#loader-logo path {
  fill: none;
  stroke-linecap: round;
}

/* Navigation Bar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nb-light);
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo img {
  height: 40px;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
nav ul li a {
  font-weight: 500;
  padding: 0.5rem;
}
nav ul li a:hover {
  color: var(--nb-pink);
}
nav .cta-btn {
  background: var(--nb-gradient);
  color: var(--nb-light);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  white-space: nowrap;
}
nav .cta-btn:hover {
  filter: brightness(1.1);
}

/* Generic container wrapper */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--nb-light);
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.7) 100%
    ),
    url('assets/45835443-577d-4b26-b29f-d2b7e8845e95.png') center/cover;
}
#hero .hero-content {
  max-width: 700px;
  padding: 0 1rem;
  z-index: 1;
  color: var(--nb-light);
}
#hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
#hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.btn-primary {
  background: var(--nb-gradient);
  color: var(--nb-light);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* About Section */
#about {
  background: #f9f9f9;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.two-col .text-block {
  flex: 1 1 50%;
  min-width: 280px;
}
.two-col .image-block {
  flex: 1 1 50%;
  min-width: 280px;
}
.two-col .image-block img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Services Section */
#services {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
#services h2 {
  text-align: center;
  margin-bottom: 3rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-card .icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--nb-light), 0 0 12px rgba(0, 0, 0, 0.1);
}
.service-card h3 {
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.9rem;
  color: #555;
}

/* Portfolio Section */
#portfolio {
  background: #f9f9f9;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
#portfolio h2 {
  text-align: center;
  margin-bottom: 3rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.portfolio-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: var(--nb-light);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 600;
}
.portfolio-item:hover img {
  transform: scale(1.1);
}
.portfolio-item:hover .overlay {
  opacity: 1;
}

/* Workflow Section */
#workflow {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
#workflow h2 {
  text-align: center;
  margin-bottom: 3rem;
}
.workflow-list {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.workflow-list li {
  background: #f5f5f5;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.workflow-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nb-gradient);
  color: var(--nb-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.workflow-list h4 {
  margin-bottom: 0.5rem;
}
.workflow-list p {
  font-size: 0.9rem;
  color: #555;
}

/* Contact Section */
#contact {
  background: #f9f9f9;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.contact-info {
  flex: 1 1 40%;
  min-width: 280px;
}
.contact-info h2 {
  margin-bottom: 1rem;
}
.contact-info p a {
  color: var(--nb-pink);
  text-decoration: underline;
}
.contact-info p a:hover {
  color: var(--nb-cyan);
}
form {
  flex: 1 1 50%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group textarea {
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--nb-pink);
  box-shadow: 0 0 0 2px rgba(255, 46, 168, 0.2);
}
#contactForm button {
  align-self: flex-start;
  margin-top: 1rem;
}
#formResponse {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--nb-dark);
}

/* Footer */
footer {
  background: var(--nb-dark);
  color: var(--nb-light);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.2rem;
  }
  nav ul {
    display: none; /* hide nav links on small screens */
  }
  nav .cta-btn {
    display: none; /* hide CTA button on small screens */
  }
  /* A hamburger menu could be implemented here if desired. */
  .two-col {
    flex-direction: column;
  }
  .contact-container {
    flex-direction: column;
  }
}