:root {
  --primary: #fbbf24;
  --accent: #ff3366;
  --accent-hover: #ff1149;
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #999;
  --bg-dark: #000;
  --light-dark: #2e2e2e;
  --bg-section: #0a0a0a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* Navbar */

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--light-dark);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 26px;
}

.logo-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links .active {
  color: var(--accent);
  text-decoration: underline;
}

.nav-cta {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-cta span {
  display: inline;
  background: transparent;
  padding: 0;
}

.nav-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* ===============================
   RESPONSIVE NAVBAR
================================= */

/* Hide mobile CTA by default */
.mobile-cta {
  display: none;
}

/* Tablet + Mobile */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
  }

  .desktop-cta {
    display: none;
  }

  .nav-container {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 2rem;
    display: none;
    border-bottom: 1px solid var(--light-dark);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.05rem;
    width: 100%;
  }

  /* CTA at bottom */
  .mobile-cta {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
  }

  .mobile-cta .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    font-size: 1rem;
    color: black;
  }
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    padding: 1.5rem;
    gap: 1.2rem;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* Hero Section */

.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;

  --s: 37px; /* control the size */

  --c: #0000, #282828 0.5deg 119.5deg, #0000 120deg;
  --g1: conic-gradient(from 60deg at 56.25% calc(425% / 6), var(--c));
  --g2: conic-gradient(from 180deg at 43.75% calc(425% / 6), var(--c));
  --g3: conic-gradient(from -60deg at 50% calc(175% / 12), var(--c));
  background: var(--g1), var(--g1) var(--s) calc(1.73 * var(--s)), var(--g2),
    var(--g2) var(--s) calc(1.73 * var(--s)), var(--g3) var(--s) 0,
    var(--g3) 0 calc(1.73 * var(--s)) #1e1e1e;
  background-size: calc(2 * var(--s)) calc(3.46 * var(--s));
}

.hero-section p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 62px;
}

.features {
  padding: 6rem 2rem;
  background: var(--bg-section);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-label {
  font-size: 22px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-dark);
  border: 1px solid var(--light-dark);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--light-dark);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  color: var(--bg-dark);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

.view-service-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.view-service-details p {
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
}

.view-service-details svg {
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/*  Services Details */

/* =========================
   Featured Section
========================= */

.featured {
  padding: 120px 50px 100px;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 70%,
    var(--accent) 0%,
    transparent 50%
  );
  opacity: 0.05;
  z-index: 1;
}

.featured-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ===== Hero Layout ===== */

.featured-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

/* ===== Content ===== */

.featured-content .label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  margin-bottom: 20px;
  display: block;
}

.featured-content h2 {
  font-size: 48px;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.featured-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 30px;
}

/* ===== Highlights ===== */

.feature-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.highlight-item {
  padding: 25px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), #ff6690);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.highlight-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.highlight-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== CTA ===== */

.feature-cta {
  display: inline-block;
  padding: 18px 50px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.feature-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 51, 102, 0.4);
}

/* ===== Image Grid ===== */

.featured-image-section {
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.featured-image-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  height: 100%;
}

.featured-img {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-img:first-child {
  grid-row: 1 / 3;
}

.featured-img:hover img {
  transform: scale(1.05);
}

.featured-img:hover {
  transform: scale(1.02);
}

.featured-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 51, 102, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.featured-img:hover::before {
  transform: translateX(100%);
}

/* ===== Testimonials ===== */

.testimonials {
  margin-top: 60px;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 50px;
}

.testimonials-header h3 {
  font-size: 32px;
  letter-spacing: -1px;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.testimonial-rating {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--accent);
  font-size: 14px;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 25px;
}

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

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), #ff6690);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.author-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .featured-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-highlights {
    grid-template-columns: 1fr;
  }

  .featured-image-section {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .featured {
    padding: 80px 20px 50px;
  }

  .featured-content h2 {
    font-size: 32px;
  }

  .testimonial-card {
    padding: 25px;
  }
}

.skills-lists-applications {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0px;
}

.skills-lists-applications p {
  margin-bottom: 0px;
  margin-top: 0px;
}

/* Footer */

/* Footer */
footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Responsive Footer */
@media (max-width: 1024px) {
  .logo {
    justify-content: center;
  }
  .footer-social-icons-row {
    justify-content: center;
  }
  .footer-icons-container button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 1rem auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.footer-icons-container {
  position: relative;
  width: fit-content;
  /*  choose your size */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.footer-icons-container button {
  width: 50px;
  height: 50px;
  border: none;
  background-color: #313638;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.footer-icons-container button:nth-child(1):hover {
  background-color: #2753a7;
}

.title {
  color: gray;
  font-weight: 700;
  font-size: 17px;
  position: absolute;
  top: -35px;
  left: 0;
}

/* Floating Scroll-to-Top Button */
/* Floating Scroll-to-Top Button */
#scrollTopBtn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: fixed; /* Make it float */
  bottom: 30px; /* Distance from bottom */
  right: 30px; /* Distance from right */
  z-index: 1000; /* Always on top */
  overflow: hidden;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(144deg, #af40ff, #5b42f3 50%, #00ddeb);
  transition: width 0.3s, height 0.3s;
  animation: float 2.5s ease-in-out infinite; /* Floating animation */
}

/* Icon */
#scrollTopBtn .sign {
  width: 100%;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

/* Text */
#scrollTopBtn .text {
  position: absolute;
  right: 0;
  width: 0;
  opacity: 0;
  color: white;
  font-size: 1.2em;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

/* Hover expand */
#scrollTopBtn:hover {
  width: 120px;
  border-radius: 25px;
}

#scrollTopBtn:hover .sign {
  width: 30%;
  padding-left: 15px;
}

#scrollTopBtn:hover .text {
  opacity: 1;
  width: 70%;
  padding-right: 15px;
}

/* Click effect */
#scrollTopBtn:active {
  transform: translate(2px, 2px);
}

.footer-social-icons-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

/* Floating keyframes */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
