/* Zynextapi - Custom CSS */

/* Import custom fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Custom Properties (variables) */
:root {
  /* Colors */
  --zynextapi-white: #ffffff;
  --zynextapi-orange: #ff6500;
  --zynextapi-blue: #1e3e62;
  --zynextapi-dark-blue: #0b192c;
  --zynextapi-black: #000000;

  /* Spacings */
  --zynextapi-space-xs: 0.5rem;
  --zynextapi-space-sm: 1rem;
  --zynextapi-space-md: 2rem;
  --zynextapi-space-lg: 4rem;
  --zynextapi-space-xl: 6rem;

  /* Font sizes */
  --zynextapi-text-xs: 0.75rem;
  --zynextapi-text-sm: 0.875rem;
  --zynextapi-text-base: 1rem;
  --zynextapi-text-md: 1.125rem;
  --zynextapi-text-lg: 1.25rem;
  --zynextapi-text-xl: 1.5rem;
  --zynextapi-text-2xl: 2rem;
  --zynextapi-text-3xl: 2.5rem;
  --zynextapi-text-4xl: 3rem;
}

/* Reset & Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--zynextapi-dark-blue);
  background-color: var(--zynextapi-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: var(--zynextapi-space-sm);
  color: var(--zynextapi-dark-blue);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: var(--zynextapi-text-4xl);
}

h2 {
  font-size: var(--zynextapi-text-3xl);
}

h3 {
  font-size: var(--zynextapi-text-2xl);
}

h4 {
  font-size: var(--zynextapi-text-xl);
}

p {
  margin-bottom: var(--zynextapi-space-sm);
}

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

a:hover {
  color: var(--zynextapi-blue);
}

ul,
ol {
  margin-left: var(--zynextapi-space-md);
  margin-bottom: var(--zynextapi-space-sm);
}

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

/* Container */
.zynextapi-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--zynextapi-space-sm);
}

/* Header & Navigation */
.zynextapi-header {
  background-color: var(--zynextapi-dark-blue);
  padding: var(--zynextapi-space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.zynextapi-logo {
  width: 180px;
  height: auto;
}

.zynextapi-logo-text {
  color: var(--zynextapi-white);
  font-size: var(--zynextapi-text-xl);
  font-weight: 700;
  letter-spacing: 1px;
}

.zynextapi-nav {
  display: flex;
  align-items: center;
}

.zynextapi-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
}

.zynextapi-nav-item {
  margin-left: var(--zynextapi-space-md);
}

.zynextapi-nav-link {
  color: var(--zynextapi-white);
  font-size: var(--zynextapi-text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--zynextapi-space-xs) 0;
  position: relative;
}

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

.zynextapi-nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.zynextapi-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--zynextapi-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.zynextapi-hero {
  background: linear-gradient(
    135deg,
    var(--zynextapi-blue) 0%,
    var(--zynextapi-dark-blue) 100%
  );
  color: var(--zynextapi-white);
  padding: var(--zynextapi-space-xl) 0;
  position: relative;
  overflow: hidden;
}

.zynextapi-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(255, 101, 0, 0.2) 0%,
    transparent 70%
  );
}

.zynextapi-hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.zynextapi-hero-title {
  font-size: var(--zynextapi-text-4xl);
  margin-bottom: var(--zynextapi-space-md);
  color: var(--zynextapi-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease;
}

.zynextapi-hero-text {
  font-size: var(--zynextapi-text-lg);
  margin-bottom: var(--zynextapi-space-md);
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.zynextapi-btn {
  display: inline-block;
  background-color: var(--zynextapi-orange);
  color: var(--zynextapi-white);
  padding: var(--zynextapi-space-sm) var(--zynextapi-space-md);
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 101, 0, 0.3);
  border: none;
  cursor: pointer;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

.zynextapi-btn:hover {
  background-color: var(--zynextapi-blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(30, 62, 98, 0.4);
  color: var(--zynextapi-white);
}

/* Section styles */
.zynextapi-section {
  padding: var(--zynextapi-space-xl) 0;
}

.zynextapi-section-title {
  text-align: center;
  margin-bottom: var(--zynextapi-space-lg);
  position: relative;
}

.zynextapi-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--zynextapi-orange);
}

/* About section */
.zynextapi-about {
  background-color: var(--zynextapi-white);
}

.zynextapi-about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zynextapi-space-lg);
}

.zynextapi-about-text {
  flex: 1;
  min-width: 300px;
}

.zynextapi-about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.5s ease;
}

.zynextapi-about-image:hover {
  transform: perspective(1000px) rotateY(0);
}

/* Services section */
.zynextapi-services {
  background-color: #f9f9f9;
}

.zynextapi-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--zynextapi-space-md);
}

.zynextapi-service-card {
  background-color: var(--zynextapi-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.zynextapi-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.zynextapi-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  color: var(--zynextapi-orange);
  font-size: 2.5rem;
  margin-bottom: var(--zynextapi-space-sm);
}

.zynextapi-service-content {
  padding: var(--zynextapi-space-md);
}

.zynextapi-service-title {
  text-align: center;
  margin-bottom: var(--zynextapi-space-sm);
  color: var(--zynextapi-blue);
}

/* Products/Pricing section */
.zynextapi-products {
  background-color: var(--zynextapi-white);
}

.zynextapi-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--zynextapi-space-md);
}

.zynextapi-price-card {
  background-color: var(--zynextapi-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zynextapi-price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.zynextapi-price-card.zynextapi-featured {
  border-color: var(--zynextapi-orange);
}

.zynextapi-featured-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background-color: var(--zynextapi-orange);
  color: var(--zynextapi-white);
  padding: 5px 30px;
  transform: rotate(45deg);
  font-size: var(--zynextapi-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.zynextapi-price-header {
  padding: var(--zynextapi-space-md);
  background-color: var(--zynextapi-dark-blue);
  color: var(--zynextapi-white);
  text-align: center;
}

.zynextapi-price-title {
  margin-bottom: var(--zynextapi-space-xs);
  color: var(--zynextapi-white);
}

.zynextapi-price {
  font-size: var(--zynextapi-text-3xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zynextapi-price-currency {
  font-size: var(--zynextapi-text-lg);
  margin-right: 5px;
  vertical-align: super;
}

.zynextapi-price-period {
  font-size: var(--zynextapi-text-sm);
  opacity: 0.7;
  margin-left: 5px;
}

.zynextapi-price-features {
  list-style: none;
  margin: 0;
  padding: var(--zynextapi-space-md);
}

.zynextapi-feature-item {
  padding: var(--zynextapi-space-xs) 0;
  display: flex;
  align-items: center;
}

.zynextapi-feature-item::before {
  content: '✓';
  color: var(--zynextapi-orange);
  margin-right: 10px;
  font-weight: bold;
}

.zynextapi-price-footer {
  padding: 0 var(--zynextapi-space-md) var(--zynextapi-space-md);
  text-align: center;
}

/* Testimonials section */
.zynextapi-testimonials {
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.zynextapi-testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(30, 62, 98, 0.05) 0%,
    transparent 70%
  );
}

.zynextapi-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--zynextapi-space-md);
}

.zynextapi-testimonial-card {
  background-color: var(--zynextapi-white);
  border-radius: 10px;
  padding: var(--zynextapi-space-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zynextapi-testimonial-text {
  font-style: italic;
  margin-bottom: var(--zynextapi-space-md);
  position: relative;
  z-index: 1;
}

.zynextapi-testimonial-text::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 5rem;
  color: var(--zynextapi-orange);
  opacity: 0.1;
  z-index: -1;
}

.zynextapi-testimonial-author {
  display: flex;
  align-items: center;
}

.zynextapi-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: var(--zynextapi-space-sm);
}

.zynextapi-author-name {
  font-weight: 600;
  margin-bottom: 0;
}

.zynextapi-author-title {
  font-size: var(--zynextapi-text-xs);
  color: #777;
}

/* Gallery section */
.zynextapi-gallery {
  background-color: var(--zynextapi-white);
}

.zynextapi-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--zynextapi-space-sm);
}

.zynextapi-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1 / 1;
}

.zynextapi-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.zynextapi-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 25, 44, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--zynextapi-white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zynextapi-gallery-item:hover .zynextapi-gallery-img {
  transform: scale(1.1);
}

.zynextapi-gallery-item:hover .zynextapi-gallery-overlay {
  opacity: 1;
}

.zynextapi-gallery-title {
  font-size: var(--zynextapi-text-md);
  margin-bottom: var(--zynextapi-space-xs);
  color: var(--zynextapi-white);
}

/* Contact section */
.zynextapi-contact {
  background-color: #f9f9f9;
}
.zynextapi-success-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.zynextapi-contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--zynextapi-space-lg);
}

.zynextapi-contact-info {
  display: flex;
  flex-direction: column;
}

.zynextapi-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--zynextapi-space-md);
}

.zynextapi-contact-icon {
  color: var(--zynextapi-orange);
  font-size: 1.5rem;
  margin-right: var(--zynextapi-space-sm);
}

.zynextapi-contact-text {
  flex: 1;
}

.zynextapi-contact-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.zynextapi-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--zynextapi-space-sm);
}

.zynextapi-form-group {
  display: flex;
  flex-direction: column;
}

.zynextapi-label {
  margin-bottom: 5px;
  font-weight: 500;
}

.zynextapi-input,
.zynextapi-textarea {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.zynextapi-input:focus,
.zynextapi-textarea:focus {
  outline: none;
  border-color: var(--zynextapi-orange);
  box-shadow: 0 0 0 2px rgba(255, 101, 0, 0.1);
}

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

/* Footer */
.zynextapi-footer {
  background-color: var(--zynextapi-dark-blue);
  color: var(--zynextapi-white);
  padding: var(--zynextapi-space-lg) 0 0;
}

.zynextapi-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--zynextapi-space-lg);
}

.zynextapi-footer-logo {
  color: var(--zynextapi-white);
  font-size: var(--zynextapi-text-xl);
  font-weight: 700;
  margin-bottom: var(--zynextapi-space-sm);
}

.zynextapi-footer-text {
  opacity: 0.7;
  margin-bottom: var(--zynextapi-space-md);
}

.zynextapi-footer-title {
  color: var(--zynextapi-white);
  margin-bottom: var(--zynextapi-space-sm);
  font-size: var(--zynextapi-text-md);
}

.zynextapi-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zynextapi-footer-link {
  margin-bottom: 10px;
}

.zynextapi-footer-link a {
  color: var(--zynextapi-white);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.zynextapi-footer-link a:hover {
  opacity: 1;
  color: var(--zynextapi-orange);
}

.zynextapi-copyright {
  margin-top: var(--zynextapi-space-lg);
  padding-top: var(--zynextapi-space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--zynextapi-text-sm);
  opacity: 0.7;
}

/* Policy pages */
.zynextapi-policy {
  padding: var(--zynextapi-space-xl) 0;
}

.zynextapi-policy-container {
  max-width: 800px;
  margin: 0 auto;
}

.zynextapi-policy-title {
  margin-bottom: var(--zynextapi-space-md);
}

.zynextapi-policy-section {
  margin-bottom: var(--zynextapi-space-lg);
}

.zynextapi-policy-subtitle {
  margin-bottom: var(--zynextapi-space-sm);
  color: var(--zynextapi-blue);
}

/* Success page */
.zynextapi-success {
  padding: var(--zynextapi-space-xl) 0;
  text-align: center;
}

.zynextapi-success-icon {
  font-size: 4rem;
  color: var(--zynextapi-orange);
  margin-bottom: var(--zynextapi-space-md);
}

.zynextapi-success-title {
  margin-bottom: var(--zynextapi-space-sm);
}

.zynextapi-success-text {
  max-width: 600px;
  margin: 0 auto var(--zynextapi-space-md);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.zynextapi-fade-in {
  animation: fadeIn 1s ease;
}

.zynextapi-fade-in-up {
  animation: fadeInUp 1s ease;
}

/* Responsive styles */
@media (max-width: 992px) {
  :root {
    --zynextapi-text-4xl: 2.5rem;
    --zynextapi-text-3xl: 2rem;
    --zynextapi-text-2xl: 1.75rem;
    --zynextapi-text-xl: 1.375rem;
  }

  .zynextapi-section {
    padding: var(--zynextapi-space-lg) 0;
  }
  .zynextapi-nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--zynextapi-dark-blue);
    padding: var(--zynextapi-space-sm) 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
  }

  .zynextapi-nav-list.active {
    display: flex;
  }

  .zynextapi-nav-item {
    margin: 0;
  }

  .zynextapi-nav-link {
    display: block;
    padding: var(--zynextapi-space-xs) var(--zynextapi-space-md);
  }

  .zynextapi-menu-toggle {
    display: block;
  }
  .zynextapi-success-actions {
    gap: 15px;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    --zynextapi-text-4xl: 2.25rem;
    --zynextapi-text-3xl: 1.75rem;
    --zynextapi-text-2xl: 1.5rem;
    --zynextapi-text-xl: 1.25rem;
    --zynextapi-space-xl: 4rem;
    --zynextapi-space-lg: 3rem;
  }

  .zynextapi-about-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  :root {
    --zynextapi-text-4xl: 2rem;
    --zynextapi-text-3xl: 1.5rem;
    --zynextapi-text-2xl: 1.25rem;
    --zynextapi-text-xl: 1.125rem;
    --zynextapi-space-xl: 3rem;
    --zynextapi-space-lg: 2rem;
  }

  .zynextapi-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  :root {
    --zynextapi-text-base: 1.125rem;
    --zynextapi-text-lg: 1.25rem;
    --zynextapi-space-sm: 0.75rem;
    --zynextapi-space-md: 1.5rem;
  }

  .zynextapi-btn {
    width: 100%;
    text-align: center;
  }

  .zynextapi-gallery-grid {
    grid-template-columns: 1fr;
  }
}
