/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #9c42f8;
  --primary-dark: #7a2fd1;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f9f9f9;
  --transition: all 0.3s ease;
  
  /* Light theme variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --shadow: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
}

/* Dark theme variables */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #404040;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #404040;
  --shadow: rgba(0, 0, 0, 0.3);
  --card-bg: #2d2d2d;
}

/* Smooth transitions for theme switching */
body,
.stat-box,
.service-front,
.service-card,
section,
.section-header,
.hero-section,
.our-services,
.stats-section,
.tech-stack-section,
.what-makes-different,
.footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  padding-top: 70px; /* Adjust if navbar height is different */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #2D3436;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-links a:not(.connect-button)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6C1DC5;
  transition: width 0.3s ease;
}

.nav-links a:not(.connect-button):hover::after,
.nav-links a:not(.connect-button).active::after {
  width: 100%;
}

.connect-button {
  display: inline-block;
  background: #6C1DC5;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.connect-button:hover {
  background: #8A2BE2;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 29, 197, 0.3);
}

.hero-connect-button {
  padding: 15px 30px;
  font-size: 18px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #2D3436;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    bottom: 0;
    width: 280px;
    background: white;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links .connect-button {
    margin: 0;
    text-align: center;
    width: 100%;
  }

  .hero-features {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .carousel-track > div {
    animation: scroll 10s linear infinite;
  }

  .tech-logo {
    width: 60px;
  }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 2rem)); }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 2rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('resources/images/hero.jpg') no-repeat center center;
  background-size: cover;
  z-index: -1;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.hero-text {
  max-width: 800px;
}

.typing-text {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.text-button {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.text-button i {
  transition: var(--transition);
}

.text-button:hover {
  color: var(--primary-color);
}

.text-button:hover i {
  transform: translateX(5px);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.feature-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: white;
}

.feature-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 5rem 1rem 2rem;
    text-align: center;
  }

  .typing-text {
    font-size: 2.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }
}

#typed-text {
  color: var(--primary-color);
}

.cursor {
  display: inline-block;
  color: var(--primary-color);
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Stats Section */
.stats-section {
  padding: 4rem 2rem;
  background-color: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.stat-box {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-10px);
}

.stat-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-box h3 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-box p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* Services Section */
.our-services {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
}

.our-services .container {
  max-width: 1400px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin: 0 auto;
  padding: 0;
}

/* Make first 6 items span 2 columns each for 3 per row */
.services-grid .service-box:nth-child(-n+6) {
  grid-column: span 2;
}

/* Center the last 2 items by positioning them in the middle 4 columns */
.services-grid .service-box:nth-child(7) {
  grid-column: 2 / 4;
}

.services-grid .service-box:nth-child(8) {
  grid-column: 4 / 6;
}

.service-box {
  perspective: 1000px;
  height: 400px;
  width: 100%;
}

.service-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.service-box:hover .service-card {
  transform: rotateY(180deg);
}

.service-front,
.service-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(108, 29, 197, 0.08);
}

.service-front:hover {
  box-shadow: 0 12px 35px var(--shadow);
  transform: translateY(-2px);
}

.service-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #6C1DC5 0%, #8A2BE2 100%);
  color: white;
  box-shadow: 0 12px 35px rgba(108, 29, 197, 0.4);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(108, 29, 197, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-front:hover .service-icon {
  background: rgba(108, 29, 197, 0.15);
  transform: translateY(-5px);
}

.service-icon i {
  font-size: 1.8rem;
  color: #6C1DC5;
}

.service-front h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-back h3 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-front p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: center;
}

.service-back p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-back ul {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
  margin-top: auto;
}

.service-back ul li {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0;
  font-size: 0.85rem;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.4;
}

.service-back ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}

.service-box:nth-child(7) {
  grid-column: 2 / 3;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
  }
  
  /* Reset all grid-column spans for responsive layout */
  .services-grid .service-box:nth-child(-n+6) {
    grid-column: span 1;
  }
  
  .services-grid .service-box:nth-child(7) {
    grid-column: span 1;
  }
  
  .services-grid .service-box:nth-child(8) {
    grid-column: span 1;
  }
  
  /* Center the last card when odd number in 2-column layout */
  .services-grid .service-box:nth-child(odd):last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .service-box {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
  }
  
  /* Reset all grid-column spans for mobile layout */
  .services-grid .service-box:nth-child(-n+6) {
    grid-column: span 1;
  }
  
  .services-grid .service-box:nth-child(7) {
    grid-column: span 1;
  }
  
  .services-grid .service-box:nth-child(8) {
    grid-column: span 1;
  }
  
  .service-box {
    height: 320px;
  }
  
  .service-front,
  .service-back {
    padding: 2rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon i {
    font-size: 1.5rem;
  }
  
  .service-front h3,
  .service-back h3 {
    font-size: 1.2rem;
  }
  
  .service-back p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .service-back ul li {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    padding-left: 1.2rem;
  }
  
  .service-back ul li:before {
    font-size: 0.8rem;
    left: 0;
  }
}

/* Tech Stack Carousel Mobile Styles */
@media (max-width: 768px) {
  .carousel-track > div {
    animation: scroll 18s linear infinite;
  }

  .tech-logo {
    width: 70px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .carousel-track > div {
    animation: scroll 25s linear infinite;
  }

  .tech-logo {
    width: 55px;
    height: 40px;
  }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 2rem)); }
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 2rem;
  background-color: white;
}

.testimonials .container {
  max-width: 1400px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  position: relative;
}

.testimonial-content i {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.testimonial-author {
  margin-top: 1.5rem;
}

.testimonial-author h4 {
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

/* Tech Stack Section */
.tech-stack-section {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-primary);
  background: var(--bg-primary);
}

.tech-stack-section .container {
  max-width: 1400px;
  margin: 0 auto;
}

.tech-stack-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #9c42f8;
}

.tech-stack-section p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 4rem;
}

.carousel-track {
  display: flex;
  gap: 2rem;
}

.carousel-track > div {
  display: flex;
  gap: 2rem;
  animation: scroll 20s linear infinite;
}

.tech-logo {
  width: 120px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.tech-logo:hover {
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 2rem)); }
}

/* WORK TOGETHER SECTION */
.work-together {
  background-color: #f9f9f9;
  padding: 60px 20px;
  font-family: "Segoe UI", sans-serif;
}

.work-together-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.work-text {
  flex: 1 1 500px;
}

.work-text h2 {
  font-size: 32px;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.work-text p {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.work-cta {
  display: inline-block;
  background-color: #9c42f8;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.work-cta:hover {
  background-color: #7c2ae6;
}

.work-image {
  flex: 1 1 400px;
  text-align: center;
}

.work-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* FOOTER */
.footer {
  background-color: #1a1a1a;
  color: #f1f1f1;
  padding: 40px 20px 20px;
  font-family: "Segoe UI", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-brand {
  flex: 1;
}

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

.footer-links {
  flex: 3;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-links > div {
  min-width: 160px;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}

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

.footer-links li {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #9c42f8;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 14px;
  color: #aaa;
}


/* CONTACT US PAGE */
.contact-content.container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  max-width: 1200px; /* New */
  margin: 2rem auto;  /* Center horizontally */
}

/* Left column holding Connect + About */
.left-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  gap: 1.5rem;
}

/* Form side */
.contact-form {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
  margin: 0 auto;
}

/* Connect Box */
.connect-box {
  background-color: #9c42f8;
  color: white;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-height: 200px; /* Reduce height */
}

.connect-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
}

/* More About Box */
.more-about-box {
  background-color: #f4f4f4;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  color: #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.more-about-box h2 {
  margin-bottom: 1rem;
}

.more-about-box p {
  line-height: 1.6;
}

/* OUR BLOG PAGE */
.blog-hero-image {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url('/resources/images/bloghero.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 70px; /* Adjust if navbar height is different */
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hero-content {
    gap: 2rem;
  }

  .hero-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .tech-logo {
    width: 100px;
    margin: 0 1.5rem;
  }

  .carousel-track {
    animation: scroll 15s linear infinite;
  }

  .carousel-track img {
    height: 150px;
    margin-left: 30px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 5rem 1rem 2rem;
    text-align: center;
  }

  .typing-text {
    font-size: 2.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    box-sizing: border-box;
  }
}

#typed-text {
  color: var(--primary-color);
}

.cursor {
  display: inline-block;
  color: var(--primary-color);
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    bottom: 0;
    width: 280px;
    background: white;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links .connect-button {
    margin: 0;
    text-align: center;
    width: 100%;
  }

  .hero-features {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .carousel-track > div {
    animation: scroll 15s linear infinite;
  }

  .tech-logo {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .timeline-content {
    padding: 1.25rem;
  }
  
  .timeline-icon {
    width: 45px;
    height: 45px;
  }
  
  .timeline-icon i {
    font-size: 1rem;
  }
  
  .different-cta {
    padding: 1.5rem;
  }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 2rem)); }
}

/* Contact Page Styles */
.contact-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background: #f8f9fa;
}

.contact-form-side {
  flex: 1.2;
  padding: 50px;
  background: white;
}

.form-header {
  margin-bottom: 40px;
}

.form-header h1 {
  font-size: 36px;
  color: #2D3436;
  margin-bottom: 12px;
  font-weight: 600;
}

.form-header p {
  color: #666;
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  color: #2D3436;
  font-weight: 500;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 15px;
  color: #666;
}

.contact-form-container {
  display: none;
}

.contact-form-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .contact-container {
    padding: 0;
    background: white;
  }
  
  .contact-form-side {
    padding: 30px 20px;
  }
  
  .form-header h1 {
    font-size: 28px;
  }
  
  .form-header p {
    font-size: 16px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .option-tabs {
    flex-direction: column;
  }
  
  .option-tab {
    padding: 15px;
    justify-content: flex-start;
  }
}

.contact-split {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Left side */
.contact-image-side {
  flex: 0.8;
  background: linear-gradient(135deg, #9c42f8 0%, #7a2fd1 50%, #6c1dc5 100%);
  padding: 0;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* Background Elements */
.contact-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.contact-circle-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -150px;
  right: -150px;
  animation: float 6s ease-in-out infinite;
}

.contact-circle-2 {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite reverse;
}

.contact-circle-3 {
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  top: 50%;
  left: -75px;
  animation: float 7s ease-in-out infinite;
}

.contact-dots {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
  background-size: 20px 20px;
  animation: float 10s ease-in-out infinite;
}

.contact-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(156, 66, 248, 0.1) 0%, 
    transparent 50%, 
    rgba(122, 47, 209, 0.1) 100%);
}

/* Content Wrapper */
.contact-content-wrapper {
  position: relative;
  z-index: 2;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Contact Header */
.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

.contact-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.contact-image:hover {
  transform: translateY(-5px);
}

/* Quick Info Redesign */
.contact-quick-info {
  margin-bottom: 2rem;
}

.quick-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.quick-info-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.info-icon i {
  font-size: 1.2rem;
  color: white;
}

.info-text h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: white;
}

.info-text p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

.info-text a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.info-text a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Dark mode override for info-text a */
[data-theme="dark"] .info-text a {
  color: #ffffff !important;
  text-decoration: underline !important;
  opacity: 1 !important;
}

[data-theme="dark"] .info-text a:hover {
  color: #e0e7ff !important;
  opacity: 1 !important;
}

/* Ultra-specific selector for email link */
[data-theme="dark"] .contact-image-side .contact-content-wrapper .contact-quick-info .quick-info-item .info-text p a[href="mailto:info@ide8.co.za"] {
  color: #ffffff !important;
  text-decoration: underline !important;
  opacity: 1 !important;
}

[data-theme="dark"] .contact-image-side .contact-content-wrapper .contact-quick-info .quick-info-item .info-text p a[href="mailto:info@ide8.co.za"]:hover {
  color: #e0e7ff !important;
  opacity: 1 !important;
}

/* General rule for all links in contact-image-side dark mode */
[data-theme="dark"] .contact-image-side a {
  color: #ffffff !important;
  text-decoration: underline !important;
}

[data-theme="dark"] .contact-image-side a:hover {
  color: #e0e7ff !important;
}

/* Email link styling for dark mode */
[data-theme="dark"] .contact-image-side .info-text a {
  color: #ffffff !important;
  background: transparent !important;
  text-decoration: underline !important;
}

/* Form selector buttons - remove white background in dark mode */
[data-theme="dark"] .contact-form-side .option-tabs .option-tab {
  background: #1a1a1a !important;
  color: #cccccc !important;
  border: 1px solid #444444 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .contact-form-side .option-tabs .option-tab.active {
  background: #9c42f8 !important;
  color: #ffffff !important;
  border: 1px solid #9c42f8 !important;
  box-shadow: none !important;
}



/* Contact CTA */
.contact-cta {
  margin-top: auto;
}

.cta-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 1;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Company Page Styles */
.company-hero {
  max-height: 600px;
  background: linear-gradient(135deg, rgba(108, 29, 197, 0.8) 0%, rgba(138, 43, 226, 0.8) 100%), url('resources/images/standardhero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 80px 0;
  color: white;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 20px;
  line-height: 1.6;
  max-width: 600px;
  opacity: 0.9;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  opacity: 0.8;
}

/* Mission Section */
.mission-section {
  padding: 100px 0;
  background: white;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mission-card {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-10px);
}

.mission-card i {
  font-size: 36px;
  color: #6C1DC5;
  margin-bottom: 20px;
}

.mission-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #2D3436;
}

.mission-card p {
  color: #666;
  line-height: 1.6;
}

.mission-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.mission-card ul li {
  padding: 10px 0;
  color: #666;
  border-bottom: 1px solid #eee;
}

.mission-card ul li:last-child {
  border-bottom: none;
}

/* Story Section */
.story-section {
  padding: 100px 0;
  background: #f8f9fa;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-tag {
  display: inline-block;
  background: #6C1DC5;
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.story-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #2D3436;
}

.story-text p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.story-features {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature i {
  color: #6C1DC5;
  font-size: 20px;
}

.story-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Expertise Section */
.team-section {
  padding: 50px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  color: #2D3436;
  margin-top: 20px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.expertise-card {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 20px;
  transition: all 0.3s ease;
}

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

.expertise-icon {
  width: 80px;
  height: 80px;
  background: #6C1DC5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.expertise-icon i {
  font-size: 32px;
  color: white;
}

.expertise-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2D3436;
}

.expertise-card p {
  color: #666;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #6C1DC5 0%, #8A2BE2 100%);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #6C1DC5;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .story-content {
    grid-template-columns: 1fr;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  .expertise-card {
    padding: 30px 20px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
}

/* What Makes Us Different Section */
.what-makes-different {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
}

.what-makes-different .container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 3rem auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #9c42f8, #7c3aed);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  width: 50%;
}

.timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: 2.5rem;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
  padding-left: 2.5rem;
}

.timeline-content {
  position: relative;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px var(--shadow);
  border: 1px solid rgba(156, 66, 248, 0.1);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(156, 66, 248, 0.15);
  border-color: rgba(156, 66, 248, 0.2);
}

.timeline-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #9c42f8, #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 4px 15px rgba(156, 66, 248, 0.3);
}

.timeline-item.left .timeline-icon {
  right: -2.5rem;
}

.timeline-item.right .timeline-icon {
  left: -2.5rem;
}

.timeline-icon i {
  font-size: 1.5rem;
  color: white;
}

.timeline-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.timeline-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.different-cta {
  text-align: center;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px var(--shadow);
  border: 2px solid rgba(156, 66, 248, 0.1);
}

.cta-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #9c42f8, #7c3aed);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(156, 66, 248, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(156, 66, 248, 0.4);
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* Responsive Design for Timeline */
@media (max-width: 768px) {
  .what-makes-different {
    padding: 3rem 1rem;
  }
  
  .what-makes-different .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .timeline-container {
    max-width: 100%;
    padding: 0;
  }
  
  .timeline-line {
    display: none;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left;
    padding: 0;
    margin-bottom: 2rem;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    left: 0 !important;
    text-align: left;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .timeline-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem;
    position: relative;
  }
  
  .timeline-icon {
    position: static !important;
    display: inline-flex;
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    left: auto !important;
    right: auto !important;
    transform: none;
  }
  
  .timeline-icon i {
    font-size: 1.2rem;
  }
  
  .different-cta {
    padding: 2rem 1rem;
    margin: 0;
  }
  
  .section-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .what-makes-different {
    padding: 2rem 0.5rem;
  }
  
  .timeline-item {
    margin-left: 0;
  }
  
  .timeline-content {
    width: 100%;
    padding: 1.25rem;
  }
  
  .timeline-icon {
    left: auto !important;
    right: auto !important;
    width: 45px;
    height: 45px;
  }
  
  .timeline-icon i {
    font-size: 1rem;
  }
  
  .different-cta {
    padding: 1.5rem 1rem;
    margin: 0;
  }
}

/* WHO ARE WE SECTION */
.who-are-we {
  background-color: var(--bg-secondary);
  padding: 4rem 2rem;
}

.who-are-we .container {
  max-width: 1400px;
  margin: 0 auto;
}

.center-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-header {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section-header.center {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.center-content p {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* OUR SERVICES SECTION */
.our-services {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
}

/* Responsive Design for Timeline */
@media (max-width: 768px) {
  .timeline-line {
    left: 2rem;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left;
    padding-left: 3.5rem;
    padding-right: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .timeline-icon {
    left: 0.5rem !important;
    right: auto !important;
  }
  
  .different-cta {
    padding: 2rem;
  }
  
  .section-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
}

/* Enhanced CTA Section */
.different-cta {
  text-align: center;
  background: linear-gradient(135deg, #9c42f8 0%, #7a2fd1 100%);
  border-radius: 25px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(156, 66, 248, 0.3);
  border: none;
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-background-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.cta-circle-1 {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
}

.cta-circle-2 {
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -75px;
  left: -75px;
  animation: float 8s ease-in-out infinite reverse;
}

.cta-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-icon i {
  font-size: 2rem;
  color: white;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-button {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 160px;
  justify-content: center;
}

.cta-button.primary {
  background: white;
  color: #9c42f8;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
  background: #f8f9ff;
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.cta-feature i {
  color: #4ade80;
  font-size: 1rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Mobile Responsive CTA */
@media (max-width: 768px) {
  .different-cta {
    padding: 2rem 1rem;
    margin: 0;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-text {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 280px;
  }
  
  .cta-features {
    gap: 1rem;
  }
  
  .cta-feature {
    font-size: 0.85rem;
  }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: #666;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  backdrop-filter: blur(10px);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 1);
  color: #9c42f8;
}

.scroll-to-top-btn:active {
  transform: translateY(-1px);
}

.scroll-to-top-btn i {
  font-size: 1.2rem;
}

/* Mobile responsive scroll button */
@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .scroll-to-top-btn i {
    font-size: 1rem;
  }
}

/* File Upload Component Styles */
.file-upload-container {
  margin-top: 0.5rem;
}

.file-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9fafb;
  position: relative;
}

.file-upload-area:hover {
  border-color: #9c42f8;
  background: #f3f4f6;
  transform: translateY(-2px);
}

.file-upload-area.dragover {
  border-color: #9c42f8;
  background: #ede9fe;
}

.upload-icon {
  margin-bottom: 1rem;
}

.upload-icon i {
  font-size: 3rem;
  color: #9c42f8;
  opacity: 0.7;
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upload-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
}

.upload-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.file-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-details i {
  font-size: 1.5rem;
  color: #dc2626;
}

.file-name {
  font-weight: 600;
  color: #374151;
}

.file-size {
  font-size: 0.9rem;
  color: #6b7280;
}

.remove-file {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.remove-file:hover {
  background: #fee2e2;
}

.remove-file i {
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .file-upload-area {
    padding: 1.5rem;
  }
  
  .upload-icon i {
    font-size: 2.5rem;
  }
  
  .upload-title {
    font-size: 1rem;
  }
  
  .upload-subtitle {
    font-size: 0.8rem;
  }
}

/* Form Description Styles */
.form-description {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #9c42f8;
}

.form-description p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Dark mode override for form-description */
[data-theme="dark"] .form-description {
  background: #2d2d2d !important;
  border-left-color: #9c42f8 !important;
}

[data-theme="dark"] .form-description p {
  color: #cccccc !important;
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Tabs */
.option-tabs {
  display: inline-flex;
  gap: 1px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.option-tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  white-space: nowrap;
}

/* Dark mode override for option-tab */
[data-theme="dark"] .option-tab {
  background: #1a1a1a !important;
  color: #cccccc !important;
  border: 1px solid #444444 !important;
}

.option-tab.active {
  background: white;
  color: #6C1DC5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 500;
}

/* Dark mode overrides for option tabs */
[data-theme="dark"] .option-tabs {
  background: #2d2d2d !important;
}

[data-theme="dark"] .option-tab {
  background: #1a1a1a !important;
  color: #cccccc !important;
  border: 1px solid #444444 !important;
}

[data-theme="dark"] .option-tab.active {
  background: #9c42f8 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border: 1px solid #9c42f8 !important;
}

[data-theme="dark"] .option-tab:not(.active):hover {
  background: #2d2d2d !important;
  color: #ffffff !important;
}

/* Checkbox label links in dark mode */
[data-theme="dark"] .checkbox-label a {
  color: #a855f7 !important;
  text-decoration: underline !important;
}

[data-theme="dark"] .checkbox-label a:hover {
  color: #c084fc !important;
}

.option-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Form */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6C1DC5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 29, 197, 0.1);
  background: white;
}

.phone-input {
  display: flex;
  gap: 10px;
}

.country-select {
  width: 100px;
  padding: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #f8f9fa;
}

.submit-button {
  width: 100%;
  padding: 16px;
  background: #6C1DC5;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
}

.submit-button:hover {
  background: #8A2BE2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 29, 197, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-split {
    margin: 0;
    border-radius: 0;
    flex-direction: column;
    box-shadow: none;
  }

  .contact-image-side {
    min-height: 60vh;
  }

  .contact-content-wrapper {
    padding: 30px;
  }

  .contact-header h2 {
    font-size: 2rem;
  }

  .option-tabs {
    width: 100%;
    justify-content: center;
  }

  .option-tab {
    flex: 1;
    justify-content: center;
  }

  .cta-stats {
    flex-direction: column;
  }
}

/* Floating Theme Toggle Button */
.theme-toggle-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(15px);
}

.theme-toggle-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 1);
}

.theme-toggle-btn:active {
  transform: translateY(0);
}

.theme-toggle-icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-icon i {
  position: absolute;
  font-size: 20px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode - show sun */
.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #9c42f8; /* Purple theme color for sun */
  text-shadow: 0 0 8px rgba(156, 66, 248, 0.3);
  filter: drop-shadow(0 0 4px rgba(156, 66, 248, 0.2));
}

.theme-toggle-btn:hover .sun-icon {
  color: #a855f7; /* Brighter purple on hover */
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.3));
  transform: rotate(0deg) scale(1.1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
  color: #666; /* Grey color for moon in light mode */
}

/* Dark mode - show moon */
[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: white; /* White color for moon in dark mode */
}

/* Cool animation on theme change */
[data-theme="dark"] .theme-toggle-btn {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  box-shadow: 0 8px 25px rgba(26, 26, 46, 0.6);
}

/* Pulse animation on theme change */
.theme-toggle-btn.theme-changing {
  animation: themePulse 0.6s ease-out;
}

@keyframes themePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Footer bottom content simplified */
.footer-bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .theme-toggle-btn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    left: 15px;
  }
  
  .theme-toggle-icon i {
    font-size: 18px;
  }
}

/* ===== CONTACT PAGE DARK MODE SUPPORT ===== */

/* Contact Container */
[data-theme="dark"] .contact-container {
  background: #1a1a1a !important;
}

/* Contact Form Side */
[data-theme="dark"] .contact-form-side {
  background: #2d2d2d !important;
}

/* Form Headers */
[data-theme="dark"] .form-header h1 {
  color: #ffffff !important;
}

[data-theme="dark"] .form-header p {
  color: #cccccc !important;
}

/* Form Labels */
[data-theme="dark"] .form-group label {
  color: #ffffff !important;
}

/* Form Inputs */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #1a1a1a !important;
  border: 1px solid #444444 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  background: #2d2d2d !important;
  border-color: #9c42f8 !important;
  box-shadow: 0 0 0 3px rgba(156, 66, 248, 0.2) !important;
}

/* Country Select */
[data-theme="dark"] .country-select {
  background: #1a1a1a !important;
  border: 1px solid #444444 !important;
  color: #ffffff !important;
}

/* Checkbox Labels */
[data-theme="dark"] .checkbox-label span {
  color: #cccccc !important;
}

[data-theme="dark"] .checkbox-label input[type="checkbox"] {
  border: 2px solid #444444 !important;
  background: #1a1a1a !important;
}

/* Form Description */
[data-theme="dark"] .form-description p {
  color: #cccccc !important;
}

/* Form Description Text - Most Specific */
[data-theme="dark"] .contact-form-side .contact-options .contact-form-container .form-description p {
  color: #cccccc !important;
}

[data-theme="dark"] .contact-form-side .contact-options .contact-form-container p {
  color: #cccccc !important;
}

[data-theme="dark"] .contact-form-side .contact-form-container .form-description p {
  color: #cccccc !important;
}

[data-theme="dark"] .contact-form-side .contact-form-container p {
  color: #cccccc !important;
}

/* Option Tabs - More Specific Selectors */
[data-theme="dark"] .contact-options .option-tabs .option-tab {
  background: #1a1a1a !important;
  color: #cccccc !important;
  border: 1px solid #444444 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .contact-options .option-tabs .option-tab.active {
  background: #9c42f8 !important;
  color: #ffffff !important;
  border: 1px solid #9c42f8 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .contact-options .option-tabs .option-tab:hover {
  background: #2d2d2d !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

[data-theme="dark"] .contact-options .option-tabs .option-tab:not(.active):hover {
  background: #2d2d2d !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Contact Header (Left Side) */
[data-theme="dark"] .contact-header h2 {
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="dark"] .contact-header p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Quick Info Items */
[data-theme="dark"] .info-text h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .info-text p {
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .info-text a {
  color: #a855f7 !important;
  text-decoration: underline !important;
}

[data-theme="dark"] .info-text a:hover {
  color: #c084fc !important;
}

/* Fix email link specifically in quick info - More Specific */
[data-theme="dark"] .contact-image-side .contact-quick-info .quick-info-item .info-text p {
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .contact-image-side .contact-quick-info .quick-info-item .info-text a {
  color: #a855f7 !important;
  text-decoration: underline !important;
  opacity: 1 !important;
}

[data-theme="dark"] .contact-image-side .contact-quick-info .quick-info-item .info-text a:hover {
  color: #c084fc !important;
  opacity: 1 !important;
}

/* Submit Buttons */
[data-theme="dark"] .submit-btn {
  background: #9c42f8 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .submit-btn:hover {
  background: #a855f7 !important;
}

/* File Upload Areas */
[data-theme="dark"] .file-upload-area {
  background: #1a1a1a !important;
  border: 2px dashed #444444 !important;
  color: #cccccc !important;
}

[data-theme="dark"] .file-upload-area:hover {
  border-color: #9c42f8 !important;
  background: #2d2d2d !important;
}

/* File Upload Text */
[data-theme="dark"] .upload-text {
  color: #cccccc !important;
}

[data-theme="dark"] .upload-text strong {
  color: #9c42f8 !important;
}

/* File List Items */
[data-theme="dark"] .file-item {
  background: #2d2d2d !important;
  border: 1px solid #444444 !important;
}

[data-theme="dark"] .file-name {
  color: #ffffff !important;
}

[data-theme="dark"] .file-size {
  color: #cccccc !important;
}

[data-theme="dark"] .remove-file {
  color: #ff6b6b !important;
}

[data-theme="dark"] .remove-file:hover {
  background: rgba(255, 107, 107, 0.1) !important;
}

/* Service Icons Dark Mode */
[data-theme="dark"] .service-icon {
  background: rgba(156, 66, 248, 0.2) !important;
}

[data-theme="dark"] .service-front:hover .service-icon {
  background: rgba(156, 66, 248, 0.3) !important;
}

[data-theme="dark"] .service-icon i {
  color: #a855f7 !important;
}