/* assets/css/style.css - Nexus Software Development */
:root {
  --bg-primary: #070b14;
  --bg-secondary: #0d1527;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.3);
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gradient-tech: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15), transparent 70%);
  --shadow-glow: 0 10px 30px -10px rgba(6, 182, 212, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background: var(--bg-primary);
  background-image: 
    radial-gradient(at 15% 20%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
    radial-gradient(at 85% 60%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

.gradient-text {
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-tech);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
  filter: brightness(1.1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #0b2413;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  color: #000;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo {
  height: var(--logo-h, 48px);
  max-height: var(--logo-h, 48px);
  width: auto;
  max-width: 170px;
  object-fit: contain;
  flex-shrink: 0;
  transition: var(--transition);
}

.brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Compact & Refined Quote Button in Header */
.btn-nav-quote {
  padding: 0.45rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.btn-nav-quote .quote-text-short {
  display: none;
}

.btn-nav-quote .quote-text-full {
  display: inline;
}

.mobile-nav-cta {
  display: none;
  width: 100%;
  margin-top: 0.5rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 6.5rem 0 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h4 {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Hero Visual Box */
.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: var(--transition);
}

.hero-visual-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.topbar-dots {
  display: flex;
  gap: 6px;
}

.topbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.topbar-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: monospace;
}

.feature-terminal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terminal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.terminal-item strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.terminal-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Clients Showcase */
.clients-section {
  padding: 4.5rem 0;
  background: rgba(13, 21, 39, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

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

.section-subtitle {
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.client-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition);
  height: 140px;
}

.client-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.client-logo-img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(80%) brightness(1.2);
  transition: var(--transition);
}

.client-card:hover .client-logo-img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.06);
}

.client-name-tag {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.7rem;
  font-weight: 500;
}

/* Services / Features */
.services-section {
  padding: 6.5rem 0;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-tech);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
}

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

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.service-features-list svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Skills / Technologies Section */
.skills-section {
  padding: 6.5rem 0;
  background: rgba(13, 21, 39, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

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

.skill-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.skill-category {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.skill-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Why Choose Us / Process */
.process-section {
  padding: 6.5rem 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.88rem;
}

/* Contact / Quotation Section */
.contact-section {
  padding: 6.5rem 0;
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(20px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-details span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.method-details strong {
  font-size: 0.95rem;
  color: #fff;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(13, 21, 39, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.form-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* Footer */
.footer {
  background: #04070d;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
}

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

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

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

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

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

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-wrapper {
    height: 64px;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
    max-width: calc(100% - 138px); /* Reserves exact space for quote button and toggle */
  }

  .brand-logo {
    height: clamp(30px, 8vw, 38px) !important;
    max-height: 38px !important;
    max-width: 95px;
  }

  .brand-info {
    line-height: 1.1;
  }

  .brand-name {
    font-size: clamp(0.92rem, 3.6vw, 1.05rem);
    line-height: 1.15;
  }

  .brand-tag {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  /* Compact button on mobile */
  .btn-nav-quote {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
  }

  .btn-nav-quote .quote-text-full {
    display: none;
  }

  .btn-nav-quote .quote-text-short {
    display: inline;
  }

  .mobile-nav-cta {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.8rem 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

/* Extra small screens (e.g. phones <= 400px) */
@media (max-width: 400px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .nav-wrapper {
    height: 58px;
  }

  .nav-links {
    top: 58px;
  }

  .brand {
    max-width: calc(100% - 118px);
    gap: 0.4rem;
  }

  .brand-logo {
    height: 32px !important;
    max-height: 32px !important;
    max-width: 75px;
  }

  .brand-name {
    font-size: 0.86rem;
  }

  .brand-tag {
    display: none; /* Hide subtitle on tiny screens so brand name stays prominent */
  }

  .btn-nav-quote {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }
}

