/* ============================================
   HECTORWINGS SOFTWARE — Styles
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99,102,241,0.15);
  --accent-2: #06b6d4;
  --accent-3: #10b981;
  
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  backdrop-filter: blur(0px);
}
.nav--scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.nav__logo-icon {
  font-size: 22px;
}
.nav__logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--accent-light) !important; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}
.btn--lg { padding: 18px 36px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================
   SECTION COMMON
   ============================================ */
section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.2);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
.text-accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  opacity: 0.15;
}
.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: var(--accent-2);
  bottom: -100px;
  left: -100px;
  opacity: 0.1;
}
.hero__content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 24px;
  padding: 8px 20px;
  background: var(--accent-glow);
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.2);
  animation: fadeInUp 0.8s ease;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero__title--accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero__stats {
  display: flex;
  gap: 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero__stat {
  display: flex;
  flex-direction: column;
}
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__stat-suffix {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-light);
}
.hero__stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--bg-secondary); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.service-card:hover::before { opacity: 1; }
.service-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.05));
  border-color: rgba(99,102,241,0.15);
}
.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent-light);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-card__tags li {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
}

/* ============================================
   PROCESS
   ============================================ */
.process__timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.process__timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), var(--accent-2), transparent);
}
.process__step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}
.process__step.visible {
  opacity: 1;
  transform: translateX(0);
}
.process__number {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-light);
  width: 64px;
  height: 64px;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.process__content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.process__content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   TECHNOLOGIES
   ============================================ */
.tech { background: var(--bg-secondary); }
.tech__categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.tech__category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.tech__category-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  margin-bottom: 20px;
}
.tech__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech__item {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: var(--transition);
}
.tech__item:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-light);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.portfolio__card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
}
.portfolio__image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.portfolio__overlay {
  position: absolute;
  top: 16px;
  left: 16px;
}
.portfolio__category {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}
.portfolio__info { padding: 24px; }
.portfolio__info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.portfolio__info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.portfolio__tech {
  display: flex;
  gap: 8px;
}
.portfolio__tech span {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--bg-secondary); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__content .section-tag { display: inline-block; }
.about__content .section-title { text-align: left; }
.about__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about__values {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about__value-icon {
  color: var(--accent-light);
  font-size: 16px;
  margin-top: 2px;
}
.about__value strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 4px;
}
.about__value p {
  font-size: 14px;
  color: var(--text-secondary);
}
.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
}
.about__card-stack { position: relative; width: 100%; }
.about__floating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--accent-light);
  position: absolute;
  white-space: nowrap;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: float 6s ease-in-out infinite;
}
.about__floating-card--1 {
  top: 20px;
  left: 10%;
  animation-delay: 0s;
}
.about__floating-card--2 {
  top: 120px;
  right: 5%;
  animation-delay: -2s;
  color: var(--accent-2);
}
.about__floating-card--3 {
  top: 220px;
  left: 15%;
  animation-delay: -4s;
  color: var(--accent-3);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.05));
  border-top: 1px solid rgba(99,102,241,0.1);
  border-bottom: 1px solid rgba(99,102,241,0.1);
}
.cta__content { text-align: center; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta__text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CONTACT
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__info .section-tag { display: inline-block; }
.contact__info .section-title { text-align: left; }
.contact__text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}
.contact__details { display: flex; flex-direction: column; gap: 16px; }
.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}
.contact__detail svg { color: var(--accent-light); flex-shrink: 0; }
.contact__detail a {
  color: var(--text-secondary);
  transition: var(--transition);
}
.contact__detail a:hover { color: var(--accent-light); }

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form__group {
  margin-bottom: 20px;
}
.form__group label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--text-muted);
}
.form__group select {
  appearance: none;
  cursor: pointer;
}
.form__group textarea { resize: vertical; min-height: 120px; }
.form__group select option { background: var(--bg-primary); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
}
.footer__links h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer__links a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer__links a:hover { color: var(--accent-light); }
.footer__bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer__bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: span 2; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }
  .nav__links.active { display: flex; }
  .nav__links a { font-size: 22px; color: var(--text-primary); }
  .nav__toggle { display: flex; z-index: 1001; }
  .nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .hero__title { letter-spacing: -1px; }
  .hero__stats { gap: 32px; }
  .hero__stat-number, .hero__stat-suffix { font-size: 32px; }
  
  .services__grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: span 1; }
  
  .tech__categories { grid-template-columns: 1fr; }
  
  .portfolio__grid { grid-template-columns: 1fr; }
  
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { min-height: 280px; }
  .about__floating-card { font-size: 12px; padding: 14px 20px; }
  
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__form { padding: 28px; }
  
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { flex-direction: column; gap: 20px; }
}
