/* --- NEW PREMIUM GOLD & BRONZE COLOR THEME --- */
:root {
  --primary-color: #1c78e0; /* Gold */
  --secondary-color: #2d00e3; /* Bronze */
  --primary-glow: rgba(0, 91, 248, 0.35);
  /* --primary-glow: rgba(255, 215, 0, 0.35); */
  --dark-bg: #0d0d0d;
  --secondary-bg: #181818;
  --glass-bg: rgba(24, 24, 24, 0.5);
  --text-color: #dcdcdc;
  --heading-color: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow: 0 0 25px var(--primary-glow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle 400px at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
    var(--primary-glow),
    transparent 80%
  );
  z-index: -1;
  pointer-events: none;
  transition: background 0.1s ease-out;
}

.page-section {
  display: none;
  animation: fadeIn 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-section.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
}
.section-padding {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--heading-color);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.section-title p {
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

/* --- HEADER & NAV --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 1.5rem 0;
  background-color: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  text-decoration: none;
  cursor: pointer;
}
.logo span {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-glow);
}
.nav-button {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--heading-color);
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease-out;
  border: none;
  box-shadow: 0 4px 15px rgba(52, 33, 255, 0.25);
}
.nav-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow);
}

/* --- HERO --- */
.hero {
  text-align: center;
  padding: 7rem 0;
}
.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--heading-color);
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.hero h1 span {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

/* --- STATS SECTION (GREEN COLOR) --- */
.stats-section {
  padding: 4rem 0;
  background: transparent;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item {
  padding: 1rem;
  transition: transform 0.3s;
}
.stat-item:hover {
  transform: translateY(-5px);
}
.stat-item .number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  /* Green Gradient Applied Here */
  background: linear-gradient(90deg, #25d366, #128c7e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}
.stat-item .label {
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}
.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--heading-color);
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(76, 55, 212, 0.3);
}
.btn-primary:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: var(--shadow);
}
.btn-container {
  margin-top: 2rem;
}

/* --- ABOUT SECTION (UPDATED: MORE BEAUTIFUL ROTATING RING) --- */
.about-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  align-items: center;
  gap: 5rem;
}

/* Animation Keyframes for Ring Rotation */
@keyframes rotateBorder {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* New Animation for Ring Pulse Effect */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 40px var(--primary-glow);
  }
  50% {
    box-shadow:
      0 0 60px var(--primary-glow),
      0 0 20px var(--primary-color);
  }
  100% {
    box-shadow: 0 0 40px var(--primary-glow);
  }
}

.about-image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  padding: 5px; /* Increased padding for a slightly thicker ring */
  /* box-shadow: 0 0 40px var(--primary-glow); <-- Removed, now handled by animation */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  z-index: 1;
  animation: glowPulse 3s infinite alternate; /* Added pulse animation */
}

.about-image-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  /* Updated to a more dynamic and colorful conic gradient */
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--primary-color) 45deg,
    var(--secondary-color) 90deg,
    transparent 135deg,
    var(--primary-color) 180deg,
    var(--secondary-color) 225deg,
    transparent 270deg,
    var(--primary-color) 315deg
  );
  /* Animation applied here, slightly slower rotation for better effect */
  animation: rotateBorder 5s linear infinite;
  z-index: -1;
}

.about-image-wrapper:hover {
  transform: scale(1.05);
  /* box-shadow: 0 0 60px var(--primary-glow); <-- Removed, handled by animation */
}

.about-image-inner {
  background: var(--dark-bg);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.about-text h3 {
  font-size: 2.2rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
}
.about-text p {
  margin-bottom: 1rem;
}

.animated-subtitle-container {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #ccc;
  min-height: 1.5em;
}
#animated-subtitle {
  font-weight: 600;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#animated-subtitle::after {
  content: "|";
  animation: blink 0.7s infinite;
  font-weight: 200;
  color: var(--primary-color);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* --- SERVICES & PORTFOLIO CARDS --- */
.service-accordion-item,
.portfolio-card,
.testimonial-card,
.certificate-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease-out;
  position: relative;
}
.service-accordion-item:hover,
.portfolio-card:hover,
.testimonial-card:hover,
.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.service-accordion-item::before,
.portfolio-card::before,
.testimonial-card::before,
.certificate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  border: 2px solid transparent;
  background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    )
    border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.service-accordion-item:hover::before,
.portfolio-card:hover::before,
.testimonial-card:hover::before,
.certificate-card:hover::before {
  opacity: 1;
}

.service-accordion-item:not(:last-child) {
  margin-bottom: 1.5rem;
}
.service-accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.service-accordion-item summary::-webkit-details-marker {
  display: none;
}
.service-accordion-item .service-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}
.service-accordion-item .service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-accordion-item:hover .service-image-container img {
  transform: scale(1.05);
}
.service-accordion-item h3 {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}
.service-accordion-item .short-desc {
  color: var(--text-color);
}
.service-accordion-item .full-desc {
  padding: 0 2rem 2rem 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1.5rem;
}

.portfolio-card,
.certificate-card {
  cursor: pointer;
}
.portfolio-card .portfolio-image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.portfolio-card .portfolio-image-wrapper img,
.certificate-card .certificate-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}
.portfolio-card:hover .portfolio-image-wrapper img,
.certificate-card:hover .certificate-image-wrapper img {
  transform: scale(1.1);
  filter: brightness(1.1);
}
.portfolio-card-content,
.certificate-card-content {
  padding: 1.5rem;
  text-align: center;
}
.portfolio-card-content h3,
.certificate-card-content h3 {
  font-size: 1.2rem;
  color: var(--heading-color);
  transition: color 0.3s;
  margin-bottom: 1rem;
}
.portfolio-card:hover h3,
.certificate-card:hover h3 {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.certificate-card .certificate-image-wrapper {
  aspect-ratio: 1.41 / 1;
  overflow: hidden;
}
.certificate-card .certificate-image-wrapper img {
  object-fit: contain;
  padding: 1rem;
}

/* --- TESTIMONIALS --- */
.testimonials-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}
.testimonials-track {
  display: flex;
  width: calc(420px * 12);
  animation: scroll 60s linear infinite;
}
.testimonials-wrapper:hover .testimonials-track {
  animation-play-state: paused;
}
.testimonial-card {
  width: 400px;
  margin: 10px;
  flex-shrink: 0;
  padding: 2rem;
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.client-image-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  padding: 3px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
}
.client-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--dark-bg);
}
.client-details h4 {
  color: var(--heading-color);
}
.client-details span {
  color: var(--text-color);
  font-size: 0.9rem;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-420px * 6));
  }
}

/* --- CONTACT FORM --- */
.contact-form-wrapper {
  max-width: 800px;
  margin: auto;
  padding: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.service-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
}
.service-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}
.service-tag .fa-check-circle {
  display: none;
}
.service-tag.selected {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--heading-color);
  border-color: transparent;
  font-weight: 700;
}
.service-tag.selected .fa-check-circle {
  display: inline-block;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-control {
  width: 100%;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-color);
  transition: all 0.3s;
}
.form-control::placeholder {
  color: #888;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 10px var(--primary-glow);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--heading-color);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(6, 35, 151, 0.25);
}
.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

/* --- FOOTER & COPYRIGHT --- */
.site-footer {
  background-color: #050604;
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}
.footer-col h4 {
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.footer-col p {
  color: #aaa;
  margin-bottom: 1.5rem;
}
.footer-col h5 {
  font-size: 1.2rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
}
.footer-col .footer-nav,
.footer-col .social-links {
  list-style: none;
  padding: 0;
}
.footer-col .footer-nav li {
  margin-bottom: 0.75rem;
}
.footer-col .footer-nav a {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s;
}
.footer-col .footer-nav a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}
.footer-col .contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-col .contact-item a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col .contact-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
}
.footer-col .contact-item a:hover {
  color: var(--primary-color);
}
.footer-col .social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}
.footer-col .social-links a {
  font-size: 1.5rem;
  color: #aaa;
  transition:
    color 0.3s,
    transform 0.3s;
}
.footer-col .social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.start-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  color: var(--heading-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}
.start-project-btn:hover {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-color: transparent;
  text-shadow: none;
}

/* Copyright Footer Style */
.copyright-footer {
  background-color: #000000;
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.copyright-footer p {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}
.copyright-footer span {
  color: var(--primary-color);
  font-weight: 600;
}

/* --- EXTRAS --- */
.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 50px;
  height: 50px;
  background: var(--secondary-bg);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 0 15px var(--primary-glow);
}
.back-to-top:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-5px);
}
.back-to-top.visible {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.lightbox.visible {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  transition: transform 0.3s;
}
.lightbox-close:hover {
  transform: scale(1.2) rotate(90deg);
}

.certificate-category {
  width: 100%;
  margin-bottom: 3rem;
}
.certificate-category h3 {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: left;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-image-wrapper {
    margin: 0 auto 2rem;
    width: 300px;
    height: 300px;
  }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .section-title h2 {
    font-size: 2.8rem;
  }
  .hero h1 {
    font-size: 3.2rem;
  }

  /* UPDATED: Stats Grid for Mobile - Stacked Vertically */
  .stats-grid {
    grid-template-columns: 1fr; /* Force single column */
    gap: 2.5rem; /* Increased gap between stacked items */
  }
  .stat-item {
    padding: 0.5rem; /* Reduced padding for mobile */
  }

  .grid {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 2rem;
  }
}
