/*
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  ROOT & VARIABLES
2.  GENERAL & BODY STYLES
3.  REUSABLE COMPONENTS (Buttons, Containers)
4.  HEADER & NAVIGATION
5.  MOBILE NAVIGATION
6.  HERO SECTION
7.  SERVICES SECTION
8.  ABOUT US & STATS SECTION
9.  PROCESS (HOW IT WORKS) SECTION
10. TESTIMONIALS SECTION
11. INTERACTIVE (PROJECT ESTIMATOR) SECTION
12. CTA (CALL TO ACTION) SECTION
13. FOOTER
14. SUBPAGE STYLES (Legal, Contact)
15. CONTACT PAGE SPECIFIC STYLES
16. POPUP STYLES
17. ANIMATIONS & KEYFRAMES
18. RESPONSIVE DESIGN (MEDIA QUERIES)
    - 1200px (Large Desktops)
    - 992px (Tablets)
    - 768px (Small Tablets / Large Mobiles)
    - 576px (Mobiles)
================================================
*/

/* 1. ROOT & VARIABLES */
:root {
  --primary-color: #4a90e2; /* A vibrant blue for primary actions */
  --secondary-color: #50e3c2; /* A fresh teal/mint for highlights */
  --dark-bg-1: #121212; /* Main dark background */
  --dark-bg-2: #1e1e1e; /* Slightly lighter background for cards */
  --dark-bg-3: #2a2a2a; /* Lighter shade for borders, hovers */
  --text-light: #f5f5f7; /* Primary light text */
  --text-medium: #a1a1a6; /* Secondary text, descriptions */
  --text-dark: #1d1d1f; /* For light backgrounds if needed */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  --font-family: "Poppins", sans-serif;
  --header-height: 80px;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition-smooth: all 0.3s ease-in-out;
}

/* 2. GENERAL & BODY STYLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--dark-bg-1);
  color: var(--text-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.5rem;
}
p {
  color: var(--text-medium);
  margin-bottom: 1rem;
}
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: var(--primary-color);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* 3. REUSABLE COMPONENTS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  text-transform: capitalize;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-dark);
}

.btn-primary:hover {
  color: var(--text-dark);
  box-shadow: 0 5px 15px rgba(80, 227, 194, 0.3);
}

.btn-primary:hover i {
  transform: translateX(3px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--dark-bg-3);
}

.btn-secondary:hover {
  background-color: var(--dark-bg-3);
  color: var(--text-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(80, 227, 194, 0.1);
  color: var(--secondary-color);
  border-radius: 50px;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
}

/* 4. HEADER & NAVIGATION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition:
    background-color 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease;
  padding: 0.5rem 0;
}

.header.scrolled {
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.logo {
  height: 45px;
  width: auto;
  filter: invert(1);
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-medium);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1001;
}

.bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 3px;
  position: absolute;
  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: min(75vw, 400px);
  height: 100vh;
  background-color: var(--dark-bg-2);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav a {
  font-size: 1.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.mobile-nav .btn {
  margin-top: 1.5rem;
}

/* 6. HERO SECTION */
.hero {
  padding: calc(var(--header-height) + 6rem) 0 6rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-shape-1 {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(74, 144, 226, 0.2) 0%,
    rgba(74, 144, 226, 0) 70%
  );
  border-radius: 50%;
  animation: pulse 8s infinite alternate;
}
.hero-shape-2 {
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(80, 227, 194, 0.15) 0%,
    rgba(80, 227, 194, 0) 70%
  );
  border-radius: 50%;
  animation: pulse 10s infinite alternate-reverse;
}
.hero-shape-3 {
  position: absolute;
  top: 20%;
  left: 45%;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  animation: pulse 6s infinite;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.hero-3d-cube {
  width: 250px;
  height: 250px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate-cube 30s infinite linear;
}

.face {
  position: absolute;
  width: 250px;
  height: 250px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-bg-3);
  color: var(--text-light);
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(5px);
}

.face span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-medium);
}

.front {
  transform: rotateY(0deg) translateZ(125px);
}
.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);
}

/* 7. SERVICES SECTION */
.services-section {
  padding: 6rem 0;
  background-color: var(--dark-bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--dark-bg-1);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--dark-bg-3);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.service-title {
  margin-bottom: 1rem;
}

.service-description {
  margin-bottom: 2rem;
}

.service-link {
  font-weight: 500;
  color: var(--text-medium);
}

.service-link i {
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

/* 8. ABOUT US & STATS SECTION */
.about-section {
  padding: 6rem 0;
}

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 4rem;
}

.about-image-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.stats-counter {
  display: flex;
  gap: 2rem;
  margin: 2.5rem 0;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.stat-label {
  color: var(--text-medium);
  font-weight: 500;
}

/* 9. PROCESS (HOW IT WORKS) SECTION */
.process-section {
  padding: 6rem 0;
  background-color: var(--dark-bg-2);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--dark-bg-3),
    var(--dark-bg-3) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 0;
}

.process-step {
  position: relative;
  padding-top: 80px;
}

.process-icon {
  width: 80px;
  height: 80px;
  background-color: var(--dark-bg-1);
  border: 2px solid var(--dark-bg-3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--secondary-color);
  position: absolute;
  top: 0;
  left: 0;
  transition: var(--transition-smooth);
}

.process-step:hover .process-icon {
  background-color: var(--secondary-color);
  color: var(--dark-bg-1);
  transform: scale(1.1);
}

.process-content {
  margin-top: 1.5rem;
}

.process-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
  display: block;
}

.process-title {
  margin-bottom: 0.5rem;
}

/* 10. TESTIMONIALS SECTION */
.testimonials-section {
  padding: 6rem 0;
  position: relative;
}

.testimonial-slider-wrapper {
  position: relative;
}

.testimonial-slider {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-color: var(--dark-bg-2);
  padding: 3rem;
  border-radius: var(--border-radius);
  border-left: 5px solid var(--primary-color);
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-quote-icon {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
}

.author-name {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.author-title {
  color: var(--text-medium);
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--dark-bg-3);
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background: var(--gradient-primary);
  color: var(--dark-bg-1);
}

/* 11. INTERACTIVE (PROJECT ESTIMATOR) SECTION */
.interactive-section {
  padding: 6rem 0;
  background-color: var(--dark-bg-2);
}

.interactive-section .container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.calculator-wrapper {
  background-color: var(--dark-bg-1);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.calculator-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calculator-form .btn {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--dark-bg-2);
  border: 1px solid var(--dark-bg-3);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
}

.calculator-results {
  border-top: 1px solid var(--dark-bg-3);
  padding-top: 2rem;
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.calculator-results p {
  display: none;
}

.result-item h4 {
  color: var(--text-medium);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.result-item span {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* 12. CTA SECTION */
.cta-section {
  padding: 6rem 0;
  background: var(--dark-bg-1)
    url("https://www.transparenttextures.com/patterns/cubes.png");
  text-align: center;
}

.cta-section .container {
  background-color: var(--dark-bg-2);
  padding: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.cta-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* 13. FOOTER */
.footer {
  background-color: var(--dark-bg-2);
  padding: 6rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.footer-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}
.footer-shape.shape-1 {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(74, 144, 226, 0.1) 0%,
    rgba(74, 144, 226, 0) 70%
  );
  border-radius: 50%;
  bottom: -50px;
  right: -50px;
}
.footer-shape.shape-2 {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(80, 227, 194, 0.08) 0%,
    rgba(80, 227, 194, 0) 70%
  );
  border-radius: 50%;
  top: 50px;
  left: -50px;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo-link {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-logo {
  height: 50px;
  filter: invert(1);
}

.footer-about-text {
  max-width: 400px;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--dark-bg-3);
  color: var(--text-medium);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: var(--dark-bg-1);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul a {
  color: var(--text-medium);
}

.footer-links ul a:hover {
  color: var(--text-light);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-info i {
  color: var(--secondary-color);
  margin-top: 5px;
}

.contact-info a,
.contact-info span {
  color: var(--text-medium);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--dark-bg-3);
  padding-top: 2rem;
  color: var(--text-medium);
}

/* 14. SUBPAGE STYLES (Legal, Contact) */
.page-header {
  padding: calc(var(--header-height) + 5rem) 0 5rem;
  text-align: center;
  background: var(--dark-bg-2);
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--text-medium);
}
.breadcrumbs span,
.breadcrumbs i {
  color: var(--text-medium);
  margin: 0 0.5rem;
}

.page-content {
  padding: 5rem 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--dark-bg-3);
}

.content-wrapper ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-wrapper ul li {
  margin-bottom: 0.5rem;
}

/* 15. CONTACT PAGE SPECIFIC STYLES */
.contact-section {
  padding: 5rem 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  background-color: var(--dark-bg-2);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contact-info-panel {
  padding: 3rem;
  background: var(--gradient-primary);
  color: var(--dark-bg-1);
}
.contact-info-panel h2 {
  color: var(--dark-bg-1);
}
.contact-info-panel p {
  color: rgba(0, 0, 0, 0.8);
}
.contact-info-panel a {
  color: var(--dark-bg-1);
  font-weight: 500;
}

.contact-methods {
  margin-top: 2.5rem;
}

.contact-method {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.method-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.method-details h3 {
  margin-bottom: 0.25rem;
  color: var(--dark-bg-1);
}
.method-details p {
  margin: 0;
}

.contact-form-wrapper {
  padding: 3rem;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.form-group {
  flex: 1;
  min-width: calc(50% - 0.75rem);
}

.form-group.full-width {
  width: 100%;
  flex-basis: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--dark-bg-1);
  border: 1px solid var(--dark-bg-3);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: var(--font-family);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-medium);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a1a1a6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.contact-form button[type="submit"] {
  margin-top: 1rem;
}

/* 16. POPUP STYLES */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  backdrop-filter: blur(5px);
}

.popup:target {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--dark-bg-2);
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  position: relative;
  max-width: 500px;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.popup:target .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-medium);
}

.popup-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.popup-content h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.popup-content p {
  margin-bottom: 2rem;
}

/* 17. ANIMATIONS & KEYFRAMES */
@keyframes rotate-cube {
  from {
    transform: rotateX(0) rotateY(0);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.services-section .animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}
.services-section .animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}
.services-section .animate-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}
.services-section .animate-on-scroll:nth-child(5) {
  transition-delay: 0.4s;
}
.services-section .animate-on-scroll:nth-child(6) {
  transition-delay: 0.5s;
}

.process-step.animate-on-scroll:nth-child(1) {
  transition-delay: 0.1s;
}
.process-step.animate-on-scroll:nth-child(2) {
  transition-delay: 0.2s;
}
.process-step.animate-on-scroll:nth-child(3) {
  transition-delay: 0.3s;
}
.process-step.animate-on-scroll:nth-child(4) {
  transition-delay: 0.4s;
}

/* 18. RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .hero-3d-cube {
    width: 200px;
    height: 200px;
  }
  .face {
    width: 200px;
    height: 200px;
    font-size: 1.2rem;
  }
  .front,
  .back {
    transform: translateZ(100px);
  }
  .right,
  .left {
    transform: rotateY(90deg) translateZ(100px);
  }
  .top,
  .bottom {
    transform: rotateX(90deg) translateZ(100px);
  }
  .back {
    transform: rotateY(180deg) translateZ(100px);
  }
  .right {
    transform: rotateY(90deg) translateZ(100px);
  }
  .left {
    transform: rotateY(-90deg) translateZ(100px);
  }
  .top {
    transform: rotateX(90deg) translateZ(100px);
  }
  .bottom {
    transform: rotateX(-90deg) translateZ(100px);
  }

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-col.footer-about {
    grid-column: span 3;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }

  .nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    order: 2;
  }
  .hero-image-wrapper {
    order: 1;
    margin-bottom: 3rem;
  }
  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }
  .hero-actions {
    justify-content: center;
  }

  .about-section .container {
    grid-template-columns: 1fr;
  }
  .about-image-wrapper {
    margin-bottom: 2rem;
  }

  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }
  .process-timeline::before {
    display: none;
  }

  .interactive-section .container {
    grid-template-columns: 1fr;
  }
  .interactive-content {
    text-align: center;
    margin-bottom: 3rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col.footer-about {
    grid-column: span 2;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-counter {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .calculator-form {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 2rem;
  }
  .testimonial-text {
    font-size: 1.1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-about-text {
    margin: 0 auto 1.5rem;
  }
  .social-links {
    justify-content: center;
  }
  .contact-info li {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  h1,
  .page-header h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 3rem);
  }

  .hero-3d-cube {
    display: none;
  } /* Hide complex animation on small devices */

  .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .form-group {
    min-width: 100%;
  }

  .popup-content {
    width: 90%;
    padding: 2rem;
  }

  .page-header {
    padding: calc(var(--header-height) + 3rem) 0 3rem;
  }
  .page-content {
    padding: 3rem 0;
  }
}
