/*
  Abazzo Website Custom Styles
  -----------------------------------------------------------------------------
  This stylesheet defines all styles for the Abazzo website. It does not rely
  on external frameworks; instead, it implements responsive layout, utility
  classes and component styles tailored to the design language of the site.
*/

/* -------------------------------------------------------------------------- */
/* Root Variables */
/* -------------------------------------------------------------------------- */
:root {
  --primary: #4f46e5;          /* Deep indigo for buttons and highlights */
  --secondary: #ec4899;        /* Vibrant magenta accent */
  --dark-bg: #0a0f24;          /* Dark background for sections */
  --black-bg: #020817;         /* Footer background */
  --light-bg: #f5f7fa;         /* Light background for contrast */
  --card-bg: #ffffff;          /* Card background colour */
  --card-shadow: rgba(10,10,10,0.08); /* Shadow colour for cards */
  --text-light: #f0f4ff;       /* Light text colour */
  --text-dark: #1f2937;        /* Dark text colour */
}

/* -------------------------------------------------------------------------- */
/* Global Styles */
/* -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light-bg);
  color: var(--text-dark);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--text-dark);
}

p {
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  cursor: pointer;
}

ul {
  padding-left: 1rem;
}

/* Containers */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Typography Helpers */
.display-4 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.lead {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #e0e7ff;
}

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

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

/* Margin Helpers */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1rem; }

/* Button Base */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

/* Primary Button */
.primary-btn {
  background-color: var(--primary);
  color: #fff;
}

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

/* Outline Button (light for hero) */
.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: #fff;
  color: var(--primary);
}

/* Button Size */
.btn-lg {
  font-size: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Navbar */
/* -------------------------------------------------------------------------- */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(2, 8, 23, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo:hover {
  color: var(--secondary);
}

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

.nav-menu .nav-link {
  color: #cbd5e1;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link:focus {
  color: #ffffff;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #ffffff;
  transition: transform 0.3s ease;
  content: '';
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  position: relative;
}

.nav-toggle .hamburger::before { top: -6px; }
.nav-toggle .hamburger::after { top: 6px; }

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(2, 8, 23, 0.95);
    padding: 1rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }
  .nav-menu.show {
    transform: translateY(0);
  }
  .nav-menu .nav-link {
    padding: 0.75rem 0;
    color: #cbd5e1;
  }
  .nav-menu .primary-btn {
    margin-left: 0;
    margin-top: 1rem;
    display:none;
  }
}

/* -------------------------------------------------------------------------- */
/* Hero Section */
/* -------------------------------------------------------------------------- */
.hero-section {
  background-image: linear-gradient(rgba(2, 8, 23, 0.6), rgba(2, 8, 23, 0.8)), url('assets/hero.png');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  padding-top: 6rem; /* offset for fixed nav */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e0e7ff;
  margin-bottom: 2rem;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* About Section */
/* -------------------------------------------------------------------------- */
.about-section {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.about-section h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.about-section p {
  color: #d1d5db;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* -------------------------------------------------------------------------- */
/* Services Section */
/* -------------------------------------------------------------------------- */
.services-section {
  background-color: var(--light-bg);
  color: var(--text-dark);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -8px var(--card-shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px -10px var(--card-shadow);
}

.service-item h5 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

.service-item p {
  margin: 0;
}

.service-item .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-size: 1.5rem;
  position: relative;
}

/* Icon definitions */
/* Code: angle brackets */
.icon-code::before,
.icon-code::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 16px;
  background-color: var(--primary);
  top: 16px;
}
.icon-code::before {
  transform: rotate(45deg);
  left: 14px;
}
.icon-code::after {
  transform: rotate(-45deg);
  right: 14px;
}

/* AI: simple text */
.icon-ai {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

/* Web: monitor */
.icon-web::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  width: 28px;
  height: 18px;
  border: 2px solid var(--primary);
  border-radius: 0.25rem;
}
.icon-web::after {
  content: '';
  position: absolute;
  left: 14px;
  bottom: 6px;
  width: 12px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 1px;
}

/* E-commerce: cart */
.icon-ecommerce::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 14px;
  width: 24px;
  height: 14px;
  border: 2px solid var(--primary);
  border-radius: 0.25rem;
}
.icon-ecommerce::after {
  content: '';
  position: absolute;
  left: 14px;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow: 10px 0 0 0 var(--primary);
}

/* Support: headset */
.icon-support::before,
.icon-support::after {
  content: '';
  position: absolute;
  border: 2px solid var(--primary);
  border-radius: 50%;
}
.icon-support::before {
  width: 26px;
  height: 20px;
  top: 8px;
  left: 11px;
}
.icon-support::after {
  width: 18px;
  height: 14px;
  top: 24px;
  left: 15px;
  border: none;
  border-top: 2px solid var(--primary);
}

/* Marketing: bar chart */
.icon-marketing::before {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: 4px;
  height: 12px;
  background-color: var(--primary);
  box-shadow: 8px -4px 0 0 var(--primary), 16px -8px 0 0 var(--primary);
}

/* UI/UX: pencil and ruler */
.icon-uiux::before,
.icon-uiux::after {
  content: '';
  position: absolute;
}
.icon-uiux::before {
  left: 14px;
  top: 12px;
  width: 20px;
  height: 2px;
  background-color: var(--primary);
  box-shadow: 0 4px 0 0 var(--primary), 0 8px 0 0 var(--primary);
}
.icon-uiux::after {
  left: 14px;
  bottom: 10px;
  width: 0;
  height: 0;
  border-left: 10px solid var(--primary);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* QA: checkmark in circle */
.icon-qa::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  top: 12px;
  left: 12px;
}
.icon-qa::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
  top: 20px;
  left: 20px;
}

/* Architecture: stacked squares */
.icon-architecture::before,
.icon-architecture::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary);
  background-color: rgba(79,70,229,0.05);
}
.icon-architecture::before {
  top: 14px;
  left: 12px;
}
.icon-architecture::after {
  top: 8px;
  left: 18px;
}

/* -------------------------------------------------------------------------- */
/* Partnership Section */
/* -------------------------------------------------------------------------- */
.partners-section {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.partners-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.partners-text {
  flex: 1 1 300px;
}

.partners-text h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.partners-text p {
  color: #d1d5db;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.partners-image {
  flex: 1 1 300px;
  text-align: center;
}

.partners-image img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* Testimonials Section */
/* -------------------------------------------------------------------------- */
.testimonials-section {
  background-color: var(--light-bg);
  color: var(--text-dark);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-item {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -8px var(--card-shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px -10px var(--card-shadow);
}

.testimonial-item p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-item h6 {
  margin-top: 1rem;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-item small {
  color: #64748b;
}

/* -------------------------------------------------------------------------- */
/* Contact Section */
/* -------------------------------------------------------------------------- */
.contact-section {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #d1d5db;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-info ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form-container {
  flex: 1 1 300px;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #f3f4f6;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  background-color: #18223a;
  color: #ffffff;
  font-size: 1rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  background-color: #1e2a47;
}

.contact-form button {
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* Footer */
/* -------------------------------------------------------------------------- */
.footer {
  background-color: var(--black-bg);
  color: #8fa3c7;
  font-size: 0.875rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.footer h5 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer a {
  color: #8fa3c7;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

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

.footer .social a {
  margin-right: 1rem;
  font-size: 1.2rem;
}

/* Navigation links in the footer */
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer ul li {
  margin: 0;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer .social a {
    margin-right: 0.75rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Form Submission Message Popup */
/* -------------------------------------------------------------------------- */
.form-message {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #0a0f24;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-size: 1rem;
}

.form-message.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.show {
    display: flex;
  }
}
