@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #0a0a0c;
  --bg-card: #15151a;
  --bg-card-hover: #1e1e24;
  --text-main: #f5f5f7;
  --text-muted: #a0a0ab;
  
  /* Accents */
  --accent-gold: #d4af37;
  --accent-purple: #9b5de5;
  --accent-blue: #00f5d4;
  
  /* Gradients */
  --grad-premium: linear-gradient(135deg, var(--accent-gold), #fff);
  --grad-vibrant: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  
  /* Settings */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  background-image: linear-gradient(rgba(10, 10, 12, 0.90), rgba(10, 10, 12, 0.98)), url('../images/nexagroup1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Typography classes */
.text-gold {
  color: var(--accent-gold);
}
.text-gradient {
  background: var(--grad-premium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.text-vibrant {
  background: var(--grad-vibrant);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 12, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo img {
  height: 60px;
  width: auto;
  transition: var(--transition-fast);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition-fast);
  color: var(--text-main);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  background: #e6c55e;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-vibrant {
  background: var(--grad-vibrant);
  color: #fff;
  box-shadow: 0 4px 15px rgba(155, 93, 229, 0.3);
}

.btn-vibrant:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(155, 93, 229, 0.5);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(155, 93, 229, 0.15) 0%, rgba(10, 10, 12, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.1) 0%, rgba(10, 10, 12, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 1s ease forwards;
}

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

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Default Section */
.section {
  padding: 6rem 0;
  position: relative;
}

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

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.service-card, .pricing-card, .portfolio-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before, .pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(10, 10, 12, 0) 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover, .pricing-card:hover, .portfolio-card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before, .pricing-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.service-card h3, .pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p, .pricing-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Specific Portfolio Styles */
.portfolio-card {
  padding: 0;
  text-align: left;
}

.portfolio-img {
  width: 100%;
  height: 250px;
  background: #2a2a35;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Pricing Page Styles */
.pricing-card {
  padding: 3rem;
}

.price {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0;
}

.price span {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.pricing-features {
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: bold;
}

.badge-popular {
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--accent-gold);
  color: var(--bg-dark);
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.pricing-card.featured {
  border-color: var(--accent-gold);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

/* Testimonials */
.testimonials-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
}

.testimonials-grid::-webkit-scrollbar {
  height: 6px;
}
.testimonials-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}
.testimonials-grid::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 10px;
}

.testimonial-card {
  flex: 0 0 400px;
  scroll-snap-align: center;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.test-stars {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.test-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.test-author h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
}

.test-author p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

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

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.5rem;
}

.contact-form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

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

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background: #050506;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about img {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   Utility / Page-specific classes
   ============================================ */

/* Page headers (Services, Portfolio, Contact) */
.page-header {
  padding-top: 150px;
  padding-bottom: 3rem;
  text-align: center;
}

.page-header-sm {
  padding-top: 150px;
  padding-bottom: 2rem;
  text-align: center;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Section modifiers */
.section-no-top {
  padding-top: 0;
}

.section-sm-top {
  padding-top: 2rem;
}

.section-dark {
  background-color: #0d0d10;
}

/* Intro / "About" block */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.intro-heading {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.intro-body {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.intro-link {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.intro-visual-wrap {
  position: relative;
}

.intro-visual {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #1e1e24 0%, #0a0a0c 100%);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.intro-visual-icon {
  /* Make sure it always fits inside the intro card */
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.4;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}


.intro-blob {
  position: absolute;
  width: 200px;
  height: 200px;
  filter: blur(100px);
  opacity: 0.2;
}

.intro-blob-purple {
  background: var(--accent-purple);
  top: -50px;
  left: -50px;
}

.intro-blob-blue {
  background: var(--accent-blue);
  bottom: -50px;
  right: -50px;
}

/* Services CTA wrap */
.section-cta {
  text-align: center;
  margin-top: 4rem;
}

/* Pricing card full-width button */
.btn-block {
  width: 100%;
}

/* Pricing featured card bg override */
.pricing-card-featured-bg {
  background: var(--bg-card-hover);
}

/* Portfolio image variants */
.portfolio-img-gold {
  background: linear-gradient(135deg, rgba(212,175,55,0.2) 0%, #15151a 100%);
}

.portfolio-img-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 1.25rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}



.portfolio-img-purple {
  background: linear-gradient(135deg, rgba(155,93,229,0.2) 0%, #15151a 100%);
}

.portfolio-img-teal {
  background: linear-gradient(135deg, rgba(0,245,212,0.2) 0%, #15151a 100%);
}

.portfolio-img-icon {
  font-size: 3rem;
  color: rgba(255,255,255,0.1);
}

.btn-sm {
  padding: 0.5rem 1.5rem;
}

/* Contact page */
.contact-info-title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.contact-info-text {
  margin: 0;
}

.contact-info-link {
  color: var(--text-main);
}

.wa-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.wa-icon {
  margin-right: 8px;
}

/* Form labels */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Footer icons */
.footer-icon {
  margin-right: 10px;
}

.footer-social {
  display: flex;
  gap: 15px;
  font-size: 1.5rem;
}

/* ============================================
   Animations
   ============================================ */

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

.fade-in-section {
  opacity: 0;
  transform: translateY(5vh);
  visibility: hidden;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-10px); }
  .badge-popular { right: -40px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: var(--transition-smooth);
    z-index: 999;
  }

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

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

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 { font-size: 2.8rem; }
  .hero-btns { flex-direction: column; }
  .section { padding: 4rem 0; }
  .testimonial-card { flex: 0 0 300px; }
}

/* ============================================
   Formspree Ajax feedback styles
   ============================================ */

/* Success banner shown after submission */
.fs-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 200, 120, 0.08);
  border: 1px solid rgba(0, 200, 120, 0.3);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  color: #00c878;
}

.fs-success i {
  font-size: 3rem;
}

.fs-success p {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
}

/* Form-level error banner */
.fs-error-banner {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Per-field error messages */
.fs-field-error {
  display: block;
  color: #ff6b6b;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}

/* Highlight invalid fields */
.form-control[aria-invalid="true"] {
  border-color: rgba(220, 53, 69, 0.6);
}

/* Disable button appearance while submitting */
[data-fs-submit-btn]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
