/*
 * Base styles for the eClicQ landing page.
 *
 * All colours and spacing values are defined as CSS variables
 * at the top of this file so that you can quickly update the
 * look and feel without hunting through the styles. Animations
 * are controlled via classes; simply add `data-animate` to an
 * element in your HTML to have it animate into view on scroll.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  /* Colour palette */
  --primary: #7e5bf5;
  --primary-light: #a38aff;
  --secondary: #4f58a0;
  --background: #080e24;
  --surface: rgba(255, 255, 255, 0.03);
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f5f5;
  --text-secondary: #c9cddc;
  --text-muted: #9197b3;
  --accent: #00cfff;
  /* Spacing */
  --section-padding: 4rem;
  --container-width: 1200px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
}

.container {
  width: min(90%, var(--container-width));
  margin-left: auto;
  margin-right: auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(8, 14, 36, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu .btn {
  margin-left: 1rem;
}

/* Nav toggle for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.btn.primary {
  background-image: linear-gradient(45deg, var(--primary), var(--accent));
  color: #fff;
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn.secondary:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn.cta-btn {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem; /* to offset nav */
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  background: rgba(8, 14, 36, 0.5);
  z-index: -1;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections General */
.section {
  padding: var(--section-padding) 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.section-title .accent {
  color: var(--primary);
}

/* Problem Section */
.problems .problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.problems .card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.problems .card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.problems .card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.problems .card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Services Section */
.services .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.services .service-item {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.services .service-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.services .service-item h3 {
  margin-bottom: 0.6rem;
}

.services .service-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Why Section */
.why .why-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why .why-item {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.why .why-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.why .why-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.why .why-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.portfolio .portfolio-item {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  text-align: center;
}

.portfolio .portfolio-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.portfolio .portfolio-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.portfolio .portfolio-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Founder Section */
.founder-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.founder-text {
  flex: 1 1 350px;
}

.founder-photo {
  flex: 1 1 300px;
  height: 300px;
  background-color: var(--card-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background-size: cover;
  background-position: center;
}

/* CTA Section */
.cta {
  background-image: linear-gradient(45deg, var(--primary), var(--secondary));
  text-align: center;
  padding: 5rem 0;
  color: #fff;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-btn {
  background-color: #fff;
  color: var(--primary);
  border: none;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  background-color: #040917;
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Animation styles */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 200px;
    background-color: rgba(8, 14, 36, 0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1.5rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-menu a {
    font-size: 1rem;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    padding: 1rem;
  }

  .founder-inner {
    flex-direction: column;
    text-align: center;
  }

  .founder-photo {
    width: 200px;
    height: 200px;
    margin-left: auto;
    margin-right: auto;
  }
}
