:root {
  /* Light Mode Variables */
  --background: #d9f6ff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --accent: #0066cc;
  --accent-hover: #004d99;
  --active-color: #00a3e1;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-hover: rgba(0, 0, 0, 0.1);
  --navbar-bg: #d9f6ff;
  --footer-bg: #ffffff;
}

/* Dark Mode Variables */
.dark-mode {
  --background: #121212;
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --accent: #00a3e1;
  --accent-hover: #33adff;
  --active-color: #00a3e1;
  --card-bg: #1e1e1e;
  --border: #333333;
  --shadow: rgba(0, 0, 0, 0.2);
  --shadow-hover: rgba(0, 0, 0, 0.3);
  --navbar-bg: rgba(18, 18, 18, 0.95);
  --footer-bg: #1a1a1a;
}

/* CSS Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--accent-hover);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.primary-btn {
  background-color: var(--active-color);
  color: white;
}

.primary-btn:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow);
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  color: var(--accent);
}

.underline {
  height: 4px;
  width: 60px;
  background-color: var(--active-color);
  margin: 0 auto;
  margin-top: 0.5rem;
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--background);
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  height: 70px;
}

.logo-img {
  height: 100%;
  width: auto;
  padding: 5px 0;
  background: #d9f6ff;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 1rem;
}

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

.nav-links {
  display: flex;
  list-style: none;
  margin-right: 1.5rem;
}

.nav-link {
  margin: 0 1rem;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--active-color);
}

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

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

#theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 10px;
  display: flex;
  align-items: center;
}

#theme-toggle:hover {
  color: var(--active-color);
  transform: rotate(20deg);
}

#theme-toggle .fa-sun {
  display: none;
}

.dark-mode #theme-toggle .fa-moon {
  display: none;
}

.dark-mode #theme-toggle .fa-sun {
  display: inline-block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 30px;
  padding: 0;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--background);
  z-index: 999;
  padding-top: 6rem;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  display: none;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin: 1.5rem 0;
  text-align: center;
}

.mobile-nav-link {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.mobile-nav-link:hover {
  color: var(--accent);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--background) 0%, #b3e7ff 100%);
}

.particle-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: pulse 8s ease-in-out infinite;
}

.hero-content-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
  background: transparent;
}

.hero-content {
  text-align: center;
  padding: 4rem 2rem;
  background: transparent;
  max-width: 1200px;
  margin: 0 auto;
}

.progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--active-color) 100%
  );
  transform: translateX(-100%);
  z-index: 5;
}

.progress-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--active-color) 0%, #00c6ff 100%);
  transform: translateX(-100%);
  animation: progressLine 10s linear;
  animation-play-state: running;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--active-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hero-nav:hover {
  background: var(--active-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
  left: 20px;
}

.hero-nav.next {
  right: 20px;
}

@keyframes progressLine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}

.hero-variation {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.hero-variation.active {
  display: block;
  animation: fadeInUp 1s ease forwards;
}

.main-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--active-color) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  text-transform: uppercase;
}

.subtitle {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.8s ease 0.3s forwards;
}

.tagline {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.6s forwards;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive styles for hero section */
@media (max-width: 768px) {
  .hero-content {
    padding: 1.5rem;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.4rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .tag {
    display: block;
    margin: 0.5rem 0;
  }

  .separator {
    display: none;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .hero-nav.prev {
    left: 10px;
  }

  .hero-nav.next {
    right: 10px;
  }
}

/* About Section */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
  margin-bottom: 3rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: transform 0.3s ease;
}

.highlight-item:hover .highlight-icon {
  transform: rotate(-10deg);
}

/* Unique colors for about section icons */
.experience-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
}

.projects-icon {
  background: linear-gradient(135deg, #4158d0 0%, #c850c0 100%);
}

.clients-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.team-icon {
  background: linear-gradient(135deg, #fa8bff 0%, #2bd2ff 100%);
}

.highlight-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.highlight-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .highlight-item {
    padding: 1.2rem;
    gap: 1rem;
  }

  .highlight-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .highlight-text h3 {
    font-size: 1.1rem;
  }

  .highlight-text p {
    font-size: 0.9rem;
  }
}

/* Services Section */
.services-section {
  background: linear-gradient(135deg, var(--background) 0%, #f8fdff 100%);
  padding: 6rem 0;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--active-color), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.4rem;
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.mern-icon {
  background: linear-gradient(135deg, #61dafb 0%, #764abc 100%);
}

.ecommerce-icon {
  background: linear-gradient(135deg, #7d4cdb 0%, #00873d 100%);
}

.saas-icon {
  background: linear-gradient(135deg, #00c4cc 0%, #0062ff 100%);
}

.ai-icon {
  background: linear-gradient(135deg, #ff4d4d 0%, #7928ca 100%);
}

.api-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #4338ca 100%);
}

.design-icon {
  background: linear-gradient(135deg, #ff9f43 0%, #ff4b2b 100%);
}

.wordpress-icon {
  background: linear-gradient(135deg, #21759b 0%, #464342 100%);
}

.html-icon {
  background: linear-gradient(135deg, #e44d26 0%, #0070ba 100%);
}

.maintenance-icon {
  background: linear-gradient(135deg, #38b2ac 0%, #2c5282 100%);
}

.service-card:hover .service-icon {
  transform: rotate(0deg) scale(1.1);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-detail {
  font-size: 0.95rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }
}

/* Testimonials Section */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  min-width: 100%;
  padding: 1rem;
}

.testimonial-content {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
  text-align: center;
}

.quote-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

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

.testimonial-author h4 {
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
  background: var(--background);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin: 0 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--accent);
  transform: scale(1.2);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.info-item {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.info-item i {
  font-size: 1.2rem;
  color: var(--active-color);
  margin-right: 1rem;
  min-width: 20px;
  margin-top: 0.3rem;
}

.info-item p {
  margin: 0;
  line-height: 1.6;
}

.info-item a {
  color: var(--active-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  margin-top: 2rem;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text-primary);
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--active-color);
  color: white;
  transform: translateY(-5px);
}

.contact-form-container {
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background-color: var(--background);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group.valid input,
.form-group.valid textarea {
  border-color: #28a745;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #dc3545;
}

.success-message,
.error-message {
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

.success-message {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.error-message {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

#form-message {
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 2rem 0;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  margin: 0 0.5rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--active-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--accent);
}

/* Responsive Styles */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    margin-left: 15px;
  }

  .mobile-menu {
    display: block;
  }

  #navbar {
    transition: transform 0.3s ease;
  }

  #navbar.nav-hidden {
    transform: translateY(-100%);
  }

  #theme-toggle {
    padding: 8px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .copyright {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

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

  .hero-content p {
    font-size: 1.2rem;
  }

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

  .contact-form-container {
    padding: 1.5rem;
  }
}

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

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

/* Legal Pages Styles */
.legal-section {
  padding-top: 120px;
}

.legal-section .section-header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--active-color) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
}

.last-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-section-content {
  margin-bottom: 2.5rem;
}

.legal-section-content:last-child {
  margin-bottom: 0;
}

.legal-section-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal-section-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section-content li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-section-content a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-section-content a:hover {
  color: var(--active-color);
}

.footer-links .active {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .legal-section {
    padding-top: 100px;
  }

  .legal-section .section-header h1 {
    font-size: 2.2rem;
  }

  .legal-content {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }

  .legal-section-content h2 {
    font-size: 1.3rem;
  }
}
