/* 
 * Main CSS file for AVi SaaS website
 * Designed to match avisaas.com
 */

:root {
  /* Colors */
  --primary-color: #D4AF37; /* Gold accent color */
  --background-color: #000000; /* Dark background */
  --text-color: #FFFFFF; /* White text */
  --text-color-light: #CCCCCC; /* Light gray text */
  --accent-color: #00B2CA; /* Teal/Turquoise accent */
  --section-bg-color: #111111; /* Slightly lighter than background for sections */
  --overlay-color: rgba(0, 0, 0, 0.7); /* Overlay for images */
  
  /* Typography */
  --font-primary: 'DM Sans', sans-serif;
  --font-secondary: 'Forum', serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 15px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 5.6rem;
}

h2 {
  font-size: 4.2rem;
}

h3 {
  font-size: 3.2rem;
}

h4 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 2rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 2rem auto 0;
}

/* Preloader */
.preload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-color);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: 0.5s ease;
}

.preload.loaded {
  opacity: 0;
  visibility: hidden;
}

.preload .circle {
  width: 60px;
  height: 60px;
  border: 4px solid var(--text-color-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

.preload .text {
  font-size: 2.4rem;
  font-weight: 700;
  margin-top: 2rem;
  color: var(--primary-color);
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Top Bar */
.topbar {
  background-color: var(--section-bg-color);
  padding: 1rem 0;
  font-size: 1.4rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.topbar-item .icon {
  margin-right: 0.8rem;
  color: var(--primary-color);
}

.separator {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: var(--background-color);
  padding: 2rem 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

.navbar {
  display: flex;
}

.navbar-list {
  display: flex;
  align-items: center;
}

.navbar-item {
  margin: 0 1.5rem;
}

.navbar-link {
  font-size: 1.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.icon-wrapper ion-icon {
  color: var(--primary-color);
  font-size: 2rem;
  margin-right: 0.5rem;
}

.input-field {
  background-color: transparent;
  border: none;
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding-right: 2rem;
}

.input-field:focus {
  outline: none;
}

.input-field option {
  background-color: var(--section-bg-color);
  color: var(--text-color);
}

.nav-open-btn {
  display: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-color);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 7.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.hero-description {
  font-size: 2rem;
  margin-bottom: 4rem;
  color: var(--text-color-light);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

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

.btn-secondary:hover {
  background-color: var(--text-color);
  color: var(--background-color);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

/* Features Section */
.features-section {
  background-color: var(--section-bg-color);
  padding: var(--section-padding);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.feature-card {
  text-align: center;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

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

.feature-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.feature-title {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.feature-description {
  color: var(--text-color-light);
}

/* Products Preview */
.products-preview {
  padding: var(--section-padding);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.product-card {
  background-color: var(--section-bg-color);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

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

.product-title {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.product-excerpt {
  color: var(--text-color-light);
  margin-bottom: 2rem;
}

/* Journey Section */
.journey-section {
  padding: var(--section-padding);
  background-color: var(--section-bg-color);
  text-align: center;
}

.journey-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Special Offer Section */
.special-offer {
  padding: var(--section-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.special-offer-content {
  padding-right: 5rem;
}

.special-offer-title {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.special-offer-description {
  margin-bottom: 3rem;
}

.special-offer-price {
  font-size: 2.4rem;
  margin-bottom: 3rem;
}

.special-offer-price del {
  color: var(--text-color-light);
  margin-right: 1rem;
}

.special-offer-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Testimonials Section */
.testimonials {
  padding: var(--section-padding);
  background-color: var(--section-bg-color);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  text-align: center;
  padding: 3rem;
}

.testimonial-text {
  font-size: 2rem;
  font-style: italic;
  margin-bottom: 3rem;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 5rem;
  color: var(--primary-color);
  position: absolute;
  opacity: 0.3;
}

.testimonial-text::before {
  top: -20px;
  left: -20px;
}

.testimonial-text::after {
  bottom: -40px;
  right: -20px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
}

.testimonial-company {
  color: var(--text-color-light);
}

/* Strengths Section */
.strengths {
  padding: var(--section-padding);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.strength-card {
  text-align: center;
  padding: 3rem;
}

.strength-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.strength-title {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.strength-description {
  color: var(--text-color-light);
}

/* Solutions Section */
.solutions {
  padding: var(--section-padding);
  background-color: var(--section-bg-color);
  text-align: center;
}

.solutions-content {
  max-width: 800px;
  margin: 0 auto 5rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.solution-card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--primary-color);
}

.solution-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.solution-card:hover .solution-image {
  transform: scale(1.1);
}

.solution-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--overlay-color);
  padding: 2rem;
  transform: translateY(100%);
  transition: all 0.5s ease;
}

.solution-card:hover .solution-overlay {
  transform: translateY(0);
}

.solution-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.solution-description {
  color: var(--text-color-light);
  margin-bottom: 2rem;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info {
  padding-right: 5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.contact-icon {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-right: 2rem;
}

.contact-text h4 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-text p {
  color: var(--text-color-light);
}

.contact-form {
  background-color: var(--section-bg-color);
  padding: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 2rem;
}

.form-control {
  width: 100%;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  position: relative;
  padding: 8rem 0 2rem;
  background-color: var(--section-bg-color);
}

.footer.has-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.footer.has-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-color);
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-brand {
  position: relative;
  padding: 0 5rem;
}

.footer-brand.has-before::before,
.footer-brand.has-after::after {
  content: '';
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-brand.has-before::before {
  left: 0;
}

.footer-brand.has-after::after {
  right: 0;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 2rem;
}

.footer-brand address,
.footer-brand .contact-link {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-color-light);
}

.footer-brand .wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.footer-brand .title-1 {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

.footer-list {
  padding-top: 3rem;
}

.footer-list li {
  margin-bottom: 1.5rem;
}

.footer-link {
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: all 0.3s ease;
}

.footer-link.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-link.hover-underline:hover::after {
  width: 100%;
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  color: var(--text-color-light);
  font-size: 1.4rem;
}

/* Back to Top Button */
.back-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--background-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-top-btn.active {
  opacity: 1;
  visibility: visible;
}

.back-top-btn:hover {
  background-color: var(--text-color);
  color: var(--background-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
  
  .special-offer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .special-offer-content {
    padding-right: 0;
    order: 1;
  }
  
  .special-offer-image {
    order: 0;
    margin-bottom: 3rem;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding-right: 0;
    margin-bottom: 5rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  
  .footer-brand {
    padding: 0;
    text-align: center;
  }
  
  .footer-brand.has-before::before,
  .footer-brand.has-after::after {
    display: none;
  }
  
  .footer-list {
    text-align: center;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 55%;
  }
  
  .navbar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--section-bg-color);
    padding: 8rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.5s ease;
    z-index: 1000;
  }
  
  .navbar.active {
    right: 0;
  }
  
  .navbar-list {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar-item {
    margin: 1.5rem 0;
  }
  
  .close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-size: 3rem;
    cursor: pointer;
  }
  
  .nav-open-btn {
    display: block;
    background-color: transparent;
    border: none;
    cursor: pointer;
  }
  
  .line {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    margin: 6px 0;
    transition: all 0.3s ease;
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 999;
  }
  
  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .hero-title {
    font-size: 5rem;
  }
  
  .hero-description {
    font-size: 1.8rem;
  }
  
  .features-grid,
  .products-grid,
  .strengths-grid {
    grid-template-columns: 1fr;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar .container {
    justify-content: center;
  }
  
  .separator {
    display: none;
  }
  
  .topbar-item {
    margin: 0.5rem 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-section {
    height: auto;
    padding: 10rem 0;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 50%;
  }
  
  .hero-title {
    font-size: 3.6rem;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* RTL Support */
html[dir="rtl"] .navbar-link::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .footer-link.hover-underline::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .topbar-item .icon {
  margin-right: 0;
  margin-left: 0.8rem;
}

html[dir="rtl"] .contact-icon {
  margin-right: 0;
  margin-left: 2rem;
}

html[dir="rtl"] .special-offer-content {
  padding-right: 0;
  padding-left: 5rem;
}

html[dir="rtl"] .back-top-btn {
  right: auto;
  left: 20px;
}

/* Visually Hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.grid-list {
  display: grid;
}

.body-4 {
  font-size: 1.4rem;
  line-height: 1.8;
}

.label-2 {
  font-size: 1.8rem;
  font-weight: 500;
}

.title-1 {
  font-size: 3.6rem;
  font-weight: 700;
}
