/*
================================================
TABLE OF CONTENTS
================================================
1.  GLOBAL STYLES
    - CSS Custom Properties (Variables)
    - Reset & Base Styles
    - Typography
    - Layout & Helpers
2.  COMPONENTS
    - Preloader
    - Header & Navigation
    - Buttons
    - Forms
    - Cards (Service, Testimonial, etc.)
    - Footer
    - Utility Components (Back to Top, Chat Widget, Popup)
3.  PAGE SECTIONS
    - Hero Section
    - Page Header (for inner pages)
    - Services Section
    - About Section
    - Stats Section
    - Process Section
    - Testimonials Section
    - CTA Section
    - Legal Content Section
    - Contact Page Section
4.  ANIMATIONS & KEYFRAMES
    - Preloader Animations
    - Scroll Animations (Fade, Swoosh)
    - Shape Animations
5.  RESPONSIVE DESIGN (MEDIA QUERIES)
    - Large Desktops (1200px and up)
    - Tablets (up to 992px)
    - Mobile (up to 768px)
    - Small Mobile (up to 576px)
================================================
*/

/* ================================================
   1. GLOBAL STYLES
   ================================================ */

/* --- CSS Custom Properties (Variables) --- */
:root {
  --primary-color: #00aaff;
  --secondary-color: #aa00ff;
  --accent-color: #00d4ff;
  --dark-bg: #0a0f1e;
  --dark-bg-secondary: #12182c;
  --light-bg: #1a223f;
  --text-color: #c0c8e7;
  --heading-color: #ffffff;
  --border-color: rgba(0, 170, 255, 0.2);
  --shadow-color: rgba(0, 170, 255, 0.1);

  --font-primary: "Roboto", sans-serif;
  --font-secondary: "Teko", sans-serif;

  --header-height: 80px;
  --transition-speed: 0.3s;
  --border-radius: 8px;
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  color: var(--heading-color);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 3.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout & Helpers --- */
.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

.highlight {
  color: var(--primary-color);
}

/* ================================================
   2. COMPONENTS
   ================================================ */

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  margin-bottom: 2rem;
  animation: pulse 2s infinite ease-in-out;
}

.preloader-logo img {
  width: 80px;
}

.preloader-text {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  color: var(--heading-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.preloader-bar {
  width: 200px;
  height: 4px;
  background-color: var(--light-bg);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  animation: preloader-progress 2s linear infinite;
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition:
    background-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.header.scrolled {
  background-color: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: 1px;
}

.nav-logo img {
  width: 45px;
  height: 45px;
  margin-right: 15px;
  transition: transform var(--transition-speed) ease;
}

.nav-logo:hover img {
  transform: rotate(360deg);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  text-transform: uppercase;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active,
.nav-link:hover {
  color: var(--heading-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--heading-color);
  border-radius: 2px;
  transition: all var(--transition-speed) ease-in-out;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--heading-color);
}

.btn-primary:hover {
  color: var(--heading-color);
  box-shadow: 0 0 20px var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--heading-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.3rem;
}

/* --- Forms --- */
.contact-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-secondary);
  color: var(--heading-color);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--dark-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition:
    border-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--shadow-color);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300aaff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 1em;
}

/* --- Footer --- */
.footer {
  background-color: var(--dark-bg-secondary);
  padding-top: 80px;
  border-top: 1px solid var(--border-color);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 60px;
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-about .footer-logo img {
  width: 45px;
  margin-right: 15px;
}

.footer-about p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-color);
  transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
  background: var(--primary-color);
  color: var(--heading-color);
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--primary-color);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 0.95rem;
}

.footer-contact ul li i {
  color: var(--primary-color);
  margin-top: 5px;
}

.footer-bottom {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* --- Utility Components --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--heading-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-speed) ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--primary-color);
  color: var(--heading-color);
}

.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--dark-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
}

.chat-widget:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0 20px var(--accent-color);
  color: var(--dark-bg);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
}

.popup.visible {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--dark-bg-secondary);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  width: 90%;
  max-width: 500px;
  transform: scale(0.9);
  transition: transform var(--transition-speed) ease;
}

.popup.visible .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
  line-height: 1;
}

.popup-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1.5rem;
}

.popup-content h3 {
  margin-bottom: 1rem;
}

.popup-content p {
  margin-bottom: 2rem;
}

/* ================================================
   3. PAGE SECTIONS
   ================================================ */

/* --- Hero Section & Page Header --- */
.hero,
.page-header {
  position: relative;
  background: var(--dark-bg);
  color: var(--heading-color);
  padding: 180px 0 100px;
  text-align: center;
  overflow: hidden;
}

.page-header {
  padding: 160px 0 80px;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(80px);
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: -100px;
  left: -100px;
  animation: move-shape-1 20s infinite alternate;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary-color);
  bottom: -150px;
  right: -150px;
  animation: move-shape-2 25s infinite alternate;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-color);
  bottom: 50%;
  right: 50%;
  transform: translate(50%, 50%);
  animation: move-shape-3 15s infinite alternate;
}

.hero .container,
.page-header .container {
  position: relative;
  z-index: 2;
}

.hero-title,
.page-header h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: 4.5rem;
}

.hero-subtitle,
.page-header p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: var(--text-color);
  line-height: 1.6;
}

.page-header p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- Services Section --- */
.services-section {
  background-color: var(--dark-bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--light-bg);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-10px) perspective(1000px) rotateX(0) rotateY(0)
    scale3d(1.05, 1.05, 1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.card-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius);
  background: conic-gradient(
    from 180deg at 50% 50%,
    var(--secondary-color),
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  animation: spin 4s linear infinite;
  z-index: -1;
}

.service-card:hover .card-border {
  opacity: 1;
}

.service-card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: var(--primary-color);
  transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.1);
}

.service-card-title {
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.service-card-description {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-card-link {
  font-family: var(--font-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card-link i {
  margin-left: 5px;
  transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-card-link i {
  transform: translateX(5px);
}

/* --- About Section --- */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
}

.about-image-content {
  position: relative;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-image img {
  border-radius: var(--border-radius);
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid var(--primary-color);
  border-radius: var(--border-radius);
  top: 20px;
  left: 20px;
  z-index: -1;
  transition: all 0.5s ease;
}

.about-image-content:hover .about-image-shape {
  top: -10px;
  left: -10px;
}

.about-text-content .section-header {
  text-align: left;
  margin-bottom: 30px;
}

.about-text-content .section-title::after {
  left: 0;
  transform: translateX(0);
}

/* --- Stats Section --- */
.stats-section {
  background:
    url("https://www.transparenttextures.com/patterns/cubes.png"),
    var(--dark-bg-secondary);
  background-size: auto, auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.stat-item {
  background-color: var(--light-bg);
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-align: center;
  transition: all var(--transition-speed) ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.stat-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-number {
  font-family: var(--font-secondary);
  font-size: 3.5rem;
  color: var(--heading-color);
  font-weight: 700;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Process Section --- */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 1;
}

.process-step {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.process-step:nth-child(odd) {
  left: 0;
  text-align: right;
}

.process-step:nth-child(even) {
  left: 50%;
}

.process-step-number {
  position: absolute;
  width: 60px;
  height: 60px;
  line-height: 60px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
  background-color: var(--dark-bg-secondary);
  border: 3px solid var(--primary-color);
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  z-index: 2;
  text-align: center;
  font-family: var(--font-secondary);
  transition: all var(--transition-speed) ease;
}

.process-step:hover .process-step-number {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-50%) scale(1.1);
}

.process-step:nth-child(odd) .process-step-number {
  right: -30px;
}

.process-step:nth-child(even) .process-step-number {
  left: -30px;
}

.process-step-content {
  padding: 30px;
  background: var(--dark-bg-secondary);
  border: 1px solid var(--border-color);
  position: relative;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.process-step:hover .process-step-content {
  border-color: var(--primary-color);
}

.process-step-content h3 {
  margin-bottom: 0.5rem;
}

/* --- Testimonials Section --- */
.testimonials-section {
  background-color: var(--dark-bg-secondary);
}

.testimonial-slider-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slider {
  position: relative;
  height: 300px; /* Adjust height as needed */
  overflow: hidden;
}

.testimonial-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 40px;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition:
    opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
  transform: scale(0.95);
}

.testimonial-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.testimonial-content p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
}

.author-info h4 {
  margin: 0;
  font-size: 1.3rem;
}

.author-info span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.slider-btn {
  pointer-events: all;
  background: rgba(26, 34, 63, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.slider-btn:hover {
  background-color: var(--primary-color);
  color: var(--heading-color);
}

.prev-btn {
  margin-left: -70px;
}

.next-btn {
  margin-right: -70px;
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
}
.cta-wrapper {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 60px;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.cta-content {
  flex: 1 1 500px;
}
.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-text {
  font-size: 1.1rem;
  color: var(--heading-color);
  opacity: 0.9;
  margin-bottom: 0;
}
.cta-action {
  flex-shrink: 0;
}
.cta-action .btn-primary {
  background: var(--heading-color);
  color: var(--dark-bg);
  border-color: var(--heading-color);
}
.cta-action .btn-primary:hover {
  background: transparent;
  color: var(--heading-color);
  box-shadow: none;
}

/* --- Legal & Contact Page Sections --- */
.legal-content .content-wrapper,
.contact-page-wrapper {
  background-color: var(--dark-bg-secondary);
  padding: 50px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.legal-content h2 {
  font-size: 2.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1rem;
}
.legal-content ul li {
  margin-bottom: 0.5rem;
}

.contact-page-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info-block h3,
.contact-form-block h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 2rem;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 5px;
}

.info-text h4 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}
.info-text p {
  margin-bottom: 0;
}

/* ================================================
   4. ANIMATIONS & KEYFRAMES
   ================================================ */

@keyframes preloader-progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes move-shape-1 {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(50px, 100px) rotate(360deg);
  }
}

@keyframes move-shape-2 {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(-100px, -50px) rotate(180deg);
  }
}

@keyframes move-shape-3 {
  from {
    transform: translate(50%, 50%) scale(1);
  }
  to {
    transform: translate(40%, 60%) scale(1.2);
  }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.animate-on-scroll[data-animation="fade-in"] {
  transform: translateY(20px);
}

.animate-on-scroll[data-animation="swoosh-in-up"] {
  transform: translateY(50px);
}
.animate-on-scroll[data-animation="swoosh-in-left"] {
  transform: translateX(-50px);
}
.animate-on-scroll[data-animation="swoosh-in-right"] {
  transform: translateX(50px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ================================================
   5. RESPONSIVE DESIGN (MEDIA QUERIES)
   ================================================ */

@media (max-width: 1200px) {
  .prev-btn {
    margin-left: -20px;
  }
  .next-btn {
    margin-right: -20px;
  }
}

@media (max-width: 992px) {
  h1,
  .hero-title,
  .page-header h1 {
    font-size: 3.5rem;
  }
  h2,
  .section-title {
    font-size: 2.8rem;
  }
  .section-padding {
    padding: 80px 0;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    flex-direction: column;
    background-color: var(--dark-bg-secondary);
    width: 100%;
    height: calc(100vh - var(--header-height));
    text-align: center;
    transition: 0.3s;
    gap: 2rem;
    padding-top: 2rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1rem 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hamburger {
    display: block;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .about-wrapper {
    grid-template-columns: 1fr;
  }
  .about-image-content {
    max-width: 500px;
    margin: 0 auto;
  }
  .about-text-content {
    text-align: center;
  }
  .about-text-content .section-header {
    text-align: center;
  }
  .about-text-content .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-page-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1,
  .hero-title,
  .page-header h1 {
    font-size: 2.8rem;
  }
  h2,
  .section-title {
    font-size: 2.2rem;
  }
  .hero,
  .page-header {
    padding: 140px 0 60px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .process-timeline::after {
    left: 30px;
  }
  .process-step {
    width: 100%;
    padding-left: 80px;
    padding-right: 15px;
  }
  .process-step:nth-child(even) {
    left: 0;
  }
  .process-step:nth-child(odd) {
    text-align: left;
  }
  .process-step-number {
    left: 0;
  }
  .process-step:nth-child(odd) .process-step-number,
  .process-step:nth-child(even) .process-step-number {
    left: 0;
  }

  .testimonial-slide {
    padding: 25px;
  }
  .slider-controls {
    display: none;
  } /* Hide on mobile for simplicity */

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-about .footer-logo,
  .footer-social {
    justify-content: center;
  }
  .footer-links h3::after,
  .footer-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-contact ul li {
    justify-content: center;
    text-align: left;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 15px;
  }
  h1,
  .hero-title,
  .page-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }
  h2,
  .section-title {
    font-size: 1.8rem;
  }

  .legal-content .content-wrapper,
  .contact-page-wrapper {
    padding: 30px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
