/*
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  GLOBALS & VARIABLES
2.  REUSABLE COMPONENTS (Buttons, Containers)
3.  CUSTOM CURSOR
4.  HEADER & NAVIGATION
5.  MOBILE NAVIGATION
6.  FOOTER
7.  HERO SECTION
8.  SERVICES SECTION
9.  PROCESS SECTION (TIMELINE)
10. STATS SECTION
11. INDUSTRY SECTION
12. TESTIMONIALS SECTION
13. CTA SECTION
14. SUBPAGES (Contact, Legal)
    - Page Header
    - Contact Page
    - Legal Page
    - Form Styling
    - Popup
15. ANIMATIONS & KEYFRAMES
16. RESPONSIVE DESIGN (Media Queries)
================================================
*/

/* ================================================
   1. GLOBALS & VARIABLES
   ================================================ */

:root {
  --color-primary-start: #38bdf8;
  --color-primary-mid: #818cf8;
  --color-primary-end: #f472b6;

  --color-bg: #0d0c1d;
  --color-bg-light: #121029;
  --color-bg-panel: rgba(23, 22, 49, 0.6);
  --color-border: rgba(129, 140, 248, 0.2);
  --color-border-hover: rgba(129, 140, 248, 0.5);

  --color-text: #d1d5db;
  --color-text-dark: #9ca3af;
  --color-heading: #ffffff;

  --font-primary: "Orbitron", sans-serif;
  --font-secondary: "Poppins", sans-serif;

  --gradient-primary: linear-gradient(
    90deg,
    var(--color-primary-start),
    var(--color-primary-mid),
    var(--color-primary-end)
  );
  --shadow-glow:
    0 0 15px rgba(129, 140, 248, 0.2), 0 0 30px rgba(129, 140, 248, 0.1);
  --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  cursor: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-primary);
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary-mid);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-primary-start);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-mid);
  border-radius: 10px;
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-start);
}

/* ================================================
   2. REUSABLE COMPONENTS
   ================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-dark);
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  cursor: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn span {
  z-index: 2;
}

.btn i {
  z-index: 2;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-primary);
  background-size: 200% 100%;
  color: #fff;
}

.btn-primary:hover {
  background-position: 100% 0;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(129, 140, 248, 0.2);
}

.btn-primary:hover i {
  transform: translateX(5px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: var(--color-border-hover);
}

.btn-secondary:hover {
  background: var(--color-primary-mid);
  border-color: var(--color-primary-mid);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* ================================================
   3. CUSTOM CURSOR
   ================================================ */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 2px solid var(--color-primary-start);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    border-color 0.3s,
    background-color 0.3s;
  z-index: 9999;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary-end);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s;
}

body.link-hover .custom-cursor {
  width: 50px;
  height: 50px;
  background-color: rgba(244, 114, 182, 0.2);
  border-color: var(--color-primary-end);
}

/* ================================================
   4. HEADER & NAVIGATION
   ================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-fast);
}

.header.scrolled {
  background-color: rgba(13, 12, 29, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  transition: var(--transition-fast);
}

.header.scrolled .logo {
  height: 40px;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-heading);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
}

.bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.bar-top {
  top: 0;
}

.bar-middle {
  top: 50%;
  transform: translateY(-50%);
}

.bar-bottom {
  bottom: 0;
}

.mobile-nav.open .bar-top {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-nav.open .bar-middle {
  opacity: 0;
}

.mobile-nav.open .bar-bottom {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ================================================
   5. MOBILE NAVIGATION
   ================================================ */

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 1001;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-content nav ul {
  text-align: center;
}

.mobile-nav-content nav ul li {
  margin: 2rem 0;
}

.mobile-nav-content nav ul a {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: #fff;
}

.mobile-nav-content nav ul li .btn {
  margin-top: 1rem;
  font-size: 1.5rem;
}

/* ================================================
   6. FOOTER
   ================================================ */

.footer {
  background-color: var(--color-bg-light);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.footer-shape {
  position: absolute;
  background: var(--color-primary-mid);
  opacity: 0.05;
  filter: blur(100px);
  border-radius: 50%;
}

.footer-shape.shape-1 {
  width: 400px;
  height: 400px;
  left: -100px;
  top: 0;
}

.footer-shape.shape-2 {
  width: 300px;
  height: 300px;
  right: -100px;
  bottom: 0;
  background: var(--color-primary-end);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-about-text {
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: #fff;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary-mid);
  border-color: var(--color-primary-mid);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul a {
  color: var(--color-text-dark);
}

.footer-links ul a:hover {
  color: #fff;
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

.contact-info li i {
  color: var(--color-primary-mid);
  margin-top: 5px;
}

.contact-info a {
  color: var(--color-text-dark);
}

.contact-info a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-dark);
}

/* ================================================
   7. HERO SECTION
   ================================================ */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(150px);
}

.hero-shape.shape-1 {
  width: 600px;
  height: 600px;
  top: -10%;
  left: -15%;
  background-color: var(--color-primary-start);
}

.hero-shape.shape-2 {
  width: 500px;
  height: 500px;
  bottom: -15%;
  right: -10%;
  background-color: var(--color-primary-end);
}

.hero-shape.shape-3 {
  width: 400px;
  height: 400px;
  top: 20%;
  right: 5%;
  background-color: var(--color-primary-mid);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1 1 55%;
}

.hero-title {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  max-width: 550px;
  margin-bottom: 2.5rem;
  color: var(--color-text-dark);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.hero-3d-object {
  width: 300px;
  height: 300px;
  position: relative;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate-cube 20s infinite linear;
}

.face {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-primary);
  color: var(--color-heading);
}

.face i {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.face span {
  font-size: 1.2rem;
}

.front {
  transform: rotateY(0deg) translateZ(150px);
}

.back {
  transform: rotateY(180deg) translateZ(150px);
}

.right {
  transform: rotateY(90deg) translateZ(150px);
}

.left {
  transform: rotateY(-90deg) translateZ(150px);
}

.top {
  transform: rotateX(90deg) translateZ(150px);
}

.bottom {
  transform: rotateX(-90deg) translateZ(150px);
}

/* ================================================
   8. SERVICES SECTION
   ================================================ */
.services-section {
  background-color: var(--color-bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--gradient-primary);
  padding: 2px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
}

.service-card-inner {
  background: var(--color-bg-light);
  padding: 40px 30px;
  border-radius: 14px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(129, 140, 248, 0.15) 0%,
    rgba(129, 140, 248, 0) 70%
  );
  transition: transform var(--transition-slow);
  transform-origin: center;
  z-index: -1;
  transform: scale(0);
}

.service-card:hover .service-card-inner::before {
  transform: scale(1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.service-icon i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-title {
  margin-bottom: 1rem;
}

.service-description {
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.service-link {
  font-family: var(--font-primary);
  color: #fff;
  font-weight: 600;
}

.service-link i {
  transition: var(--transition-fast);
  margin-left: 5px;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* ================================================
   9. PROCESS SECTION (TIMELINE)
   ================================================ */

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 25px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 4px solid var(--color-primary-mid);
  z-index: 1;
  box-shadow: 0 0 0 5px rgba(129, 140, 248, 0.2);
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  background-color: var(--color-primary-start);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: var(--color-bg-panel);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  position: relative;
}

.timeline-item:nth-child(even) {
  text-align: left;
}
.timeline-item:nth-child(odd) {
  text-align: right;
}

.timeline-step {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 900;
  position: absolute;
  top: -20px;
  opacity: 0.1;
}

.timeline-item:nth-child(odd) .timeline-step {
  right: 20px;
}
.timeline-item:nth-child(even) .timeline-step {
  left: 20px;
}

.timeline-title {
  margin-bottom: 0.5rem;
  color: var(--color-primary-start);
}

/* ================================================
   10. STATS SECTION
   ================================================ */
.stats-section {
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g fill="%23121029"><circle cx="25" cy="25" r="2.5"/><circle cx="75" cy="75" r="2.5"/><circle cx="25" cy="75" r="2.5"/><circle cx="75" cy="25" r="2.5"/></g></svg>'),
    var(--color-bg-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.stat-item {
  text-align: center;
  padding: 30px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: var(--transition-fast);
}
.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-border-hover);
}
.stat-icon {
  font-size: 2.5rem;
  color: var(--color-primary-mid);
  margin-bottom: 1rem;
}
.stat-value {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-value::after {
  content: "%";
}
.stat-item:nth-child(2) .stat-value::after {
  content: "K+";
}
.stat-item:nth-child(3) .stat-value::after {
  content: "%";
}

.stat-label {
  color: var(--color-text-dark);
}

/* ================================================
   11. INDUSTRY SECTION
   ================================================ */
.industry-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.industry-content {
  flex: 1;
}
.industry-content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.industry-content li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}
.industry-content li i {
  color: var(--color-primary-start);
  margin-right: 10px;
}
.industry-visual {
  flex: 1;
}
.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.industry-icon {
  height: 150px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: var(--transition-fast);
}
.industry-icon:hover {
  transform: scale(1.05) rotate(3deg);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow);
  color: var(--color-primary-end);
}

/* ================================================
   12. TESTIMONIALS SECTION
   ================================================ */

.testimonials-section {
  background-color: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.testimonial-slider-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  min-width: 100%;
  box-sizing: border-box;
  padding: 40px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  text-align: center;
}

.testimonial-quote-icon {
  font-size: 2.5rem;
  color: var(--color-primary-mid);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.author-name {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.author-title {
  color: var(--color-text-dark);
  margin: 0;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  width: 110%;
  left: -5%;
  transform: translateY(-50%);
}

.slider-controls button {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: none;
  transition: var(--transition-fast);
}

.slider-controls button:hover {
  background: var(--color-primary-mid);
  border-color: var(--color-primary-mid);
}

/* ================================================
   13. CTA SECTION
   ================================================ */

.cta-section {
  padding: 80px 0;
}

.cta-wrapper {
  background: var(--gradient-primary);
  padding: 60px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 20px 40px rgba(129, 140, 248, 0.2);
}

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.cta-title .gradient-text {
  background: #fff;
  -webkit-background-clip: text;
  background-clip: text;
}
.cta-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 600px;
}

.cta-action .btn-primary {
  background: #fff;
  color: var(--color-primary-mid);
}
.cta-action .btn-primary:hover {
  background: var(--color-bg);
  color: #fff;
}
/* ================================================
   14. SUBPAGES (Contact, Legal)
   ================================================ */

/* Page Header */
.page-header {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  background-color: var(--color-bg-light);
}
.hologram-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.1) 1px, transparent 1px),
    linear-gradient(to right, rgba(129, 140, 248, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: pan-grid 20s linear infinite;
  opacity: 0.5;
}
.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.page-header .section-description {
  font-size: 1.1rem;
  margin-top: 1rem;
}
.breadcrumbs a,
.breadcrumbs span {
  color: var(--color-text-dark);
  font-family: var(--font-primary);
}
.breadcrumbs a:hover {
  color: #fff;
}
.breadcrumbs i {
  margin: 0 10px;
  font-size: 0.8rem;
}

/* === START: CORRECTED CONTACT PAGE CSS === */

/* Main Wrapper for Info + Form */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  background: var(--color-bg-light);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Left Panel: Contact Info */
.contact-info-panel {
  flex: 1 1 300px;
  min-width: 300px;
}

.contact-info-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 10px;
}

.contact-info-panel h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
}

.contact-info-panel > p {
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.contact-methods {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.method-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary-start);
  transition: var(--transition-fast);
}

.contact-method:hover .method-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.method-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.method-details p,
.method-details a {
  color: var(--color-text-dark);
  margin: 0;
  word-break: break-word;
}

/* Right Panel: Form */
.contact-form-wrapper {
  flex: 2 1 400px;
  min-width: 300px;
}

/* The Form itself */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.form-group {
  flex: 1 1 200px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  width: 100%;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text-dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-size: 1rem;
  transition: var(--transition-fast);
  font-family: var(--font-secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5b6579;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-mid);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.3);
}

select {
  appearance: none;
  -webkit-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='%23d1d5db' 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 1rem center;
  background-size: 1em;
}

.contact-form button[type="submit"] {
  margin-top: 1rem;
  width: auto;
  align-self: flex-start;
}

/* === END: CORRECTED CONTACT PAGE CSS === */

/* Legal Page */
.legal-page .page-content {
  padding: 100px 0;
}
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-bg-light);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}
.content-wrapper h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary-start);
}
.content-wrapper ul {
  list-style: disc;
  padding-left: 20px;
}
.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}
.popup.active {
  opacity: 1;
  visibility: visible;
}
.popup-content {
  background: var(--color-bg-light);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  width: 90%;
  max-width: 500px;
  border: 1px solid var(--color-border);
  transform: scale(0.9);
  transition: var(--transition-fast);
}
.popup.active .popup-content {
  transform: scale(1);
}
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  color: var(--color-text-dark);
}
.popup-content i.fa-check-circle {
  font-size: 4rem;
  color: var(--color-primary-start);
  margin-bottom: 1.5rem;
}
.popup-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.popup-close-btn {
  margin-top: 1.5rem;
}

/* ================================================
   15. ANIMATIONS & KEYFRAMES
   ================================================ */

@keyframes rotate-cube {
  0% {
    transform: rotateX(0) rotateY(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}
@keyframes pan-grid {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-in[data-animation="fade-in-left"] {
  transform: translateX(-50px);
}
.animate-in[data-animation="fade-in-right"] {
  transform: translateX(50px);
}
.animate-in[data-animation="zoom-in"] {
  transform: scale(0.9);
}

.animate-in.visible[data-animation="fade-in-left"],
.animate-in.visible[data-animation="fade-in-right"],
.animate-in.visible[data-animation="zoom-in"] {
  transform: translate(0, 0) scale(1);
}

/* ================================================
   16. RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  .hero-title {
    font-size: 4rem;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    order: 2;
  }
  .hero-visual {
    order: 1;
    margin-bottom: 2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .process-timeline::before {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 20px;
  }
  .timeline-item:nth-child(odd) {
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-step {
    right: auto;
    left: 20px;
  }

  .industry-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }

  .hero-title {
    font-size: 3.2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cube,
  .face {
    width: 250px;
    height: 250px;
  }
  .front,
  .back {
    transform: rotateY(180deg) translateZ(125px);
  }
  .right {
    transform: rotateY(90deg) translateZ(125px);
  }
  .left {
    transform: rotateY(-90deg) translateZ(125px);
  }
  .top {
    transform: rotateX(90deg) translateZ(125px);
  }
  .bottom {
    transform: rotateX(-90deg) translateZ(125px);
  }
  .front {
    transform: rotateY(0deg) translateZ(125px);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }

  .slider-controls {
    display: none;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  .section-padding {
    padding: 60px 0;
  }
  .page-header {
    padding: 140px 0 60px;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .social-links {
    justify-content: center;
  }
  .contact-info li {
    justify-content: center;
  }
  .page-header h1 {
    font-size: 2.8rem;
  }
}
