/* =============================================
   devxois.com — Minimalist Design System
   Colors:
     Primary Text: #373D43 (Anthracite)
     Secondary:    #6C757D (Gray)
     Background:   #FFFFFF (White)
     Accents from logo: #00B4D8 #8B5CF6 #1B4965 #7CB518
   ============================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #373D43;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.938rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn--primary {
  background: #373D43;
  color: #FFFFFF;
}

.btn--primary:hover {
  background: #1a1f24;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(55, 61, 67, 0.3);
}

.btn--outline {
  background: transparent;
  color: #373D43;
  border: 1.5px solid #D1D5DB;
}

.btn--outline:hover {
  border-color: #373D43;
  transform: translateY(-1px);
}

.btn--small {
  padding: 8px 20px;
  font-size: 0.875rem;
  border-radius: 6px;
  background: #373D43;
  color: #FFFFFF;
}

.btn--small:hover {
  background: #1a1f24;
}

.btn--large {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ---------- Text Gradient ---------- */
.text-gradient {
  background: linear-gradient(135deg, #00B4D8, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar--scrolled {
  border-bottom-color: #F0F0F0;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.navbar__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #373D43;
  letter-spacing: -0.03em;
}

.brand-x {
  background: linear-gradient(135deg, #00B4D8, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-dot {
  color: #6C757D;
  font-weight: 400;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.875rem;
  font-weight: 450;
  color: #6C757D;
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: #373D43;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #373D43;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero__label {
  display: inline-block;
  font-size: 0.813rem;
  font-weight: 500;
  color: #6C757D;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: #F8F9FA;
  border-radius: 20px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: #6C757D;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo-img {
  width: 340px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.06));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section--alt {
  background: #FAFBFC;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  font-size: 0.813rem;
  font-weight: 500;
  color: #6C757D;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section__desc {
  font-size: 1.063rem;
  color: #6C757D;
  margin-top: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  transition: all 0.3s ease;
  background: #FFFFFF;
}

.service-card:hover {
  border-color: #E0E0E0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #F8F9FA;
  color: #373D43;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 1.063rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.875rem;
  color: #6C757D;
  line-height: 1.6;
}

/* ---------- Technologies ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  border-radius: 14px;
  border: 1px solid #F0F0F0;
  background: #FFFFFF;
  transition: all 0.3s ease;
}

.tech-item:hover {
  border-color: #E0E0E0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  transform: translateY(-3px);
}

.tech-item__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-item__name {
  font-size: 0.813rem;
  font-weight: 500;
  color: #6C757D;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  padding: 32px;
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  transition: all 0.3s ease;
  background: #FFFFFF;
}

.project-card:hover {
  border-color: #E0E0E0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-card__tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: #00B4D8;
  padding: 4px 12px;
  background: rgba(0, 180, 216, 0.08);
  border-radius: 20px;
}

.project-card__year {
  font-size: 0.75rem;
  color: #ADB5BD;
  font-weight: 500;
}

.project-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.project-card__client {
  font-size: 0.813rem;
  color: #6C757D;
  margin-bottom: 14px;
}

.project-card__desc {
  font-size: 0.875rem;
  color: #6C757D;
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-card__stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-card__stack span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #373D43;
  padding: 4px 10px;
  background: #F8F9FA;
  border-radius: 6px;
}

/* ---------- Clients ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  border-radius: 14px;
  border: 1px solid #F0F0F0;
  background: #FFFFFF;
  transition: all 0.3s ease;
}

.client-card:hover {
  border-color: #E0E0E0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  transform: translateY(-3px);
}

.client-card__logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #373D43, #1B4965);
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
}

.client-card:nth-child(2) .client-card__logo {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.client-card:nth-child(3) .client-card__logo {
  background: linear-gradient(135deg, #00B4D8, #0077B6);
}

.client-card:nth-child(4) .client-card__logo {
  background: linear-gradient(135deg, #7CB518, #55A630);
}

.client-card:nth-child(5) .client-card__logo {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.client-card:nth-child(6) .client-card__logo {
  background: linear-gradient(135deg, #EF4444, #DC2626);
}

.client-card__name {
  font-size: 0.813rem;
  font-weight: 600;
  text-align: center;
}

.client-card__type {
  font-size: 0.75rem;
  color: #ADB5BD;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0 0;
  border-top: 1px solid #F0F0F0;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #373D43;
}

.stat__suffix {
  font-size: 2rem;
  font-weight: 600;
  color: #6C757D;
}

.stat__label {
  display: block;
  font-size: 0.875rem;
  color: #6C757D;
  margin-top: 4px;
}

/* ---------- Contact ---------- */
.contact-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-cta__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-cta__desc {
  font-size: 1.063rem;
  color: #6C757D;
  margin-bottom: 40px;
}

.contact-form {
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.938rem;
  font-family: inherit;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  color: #373D43;
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #ADB5BD;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: #373D43;
  box-shadow: 0 0 0 3px rgba(55, 61, 67, 0.06);
}

.contact-form__textarea {
  margin-bottom: 24px;
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
}

/* ---------- Footer ---------- */
.footer {
  background: #FAFBFC;
  border-top: 1px solid #F0F0F0;
  padding: 64px 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer__tagline {
  font-size: 0.875rem;
  color: #6C757D;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 80px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 0.813rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__col a {
  font-size: 0.875rem;
  color: #6C757D;
}

.footer__col a:hover {
  color: #373D43;
}

.footer__bottom {
  padding: 24px 0;
  border-top: 1px solid #F0F0F0;
}

.footer__bottom p {
  font-size: 0.813rem;
  color: #ADB5BD;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 24px;
    transition: right 0.35s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  }

  .navbar__links--open {
    right: 0;
  }

  .navbar__links a {
    font-size: 1rem;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar__toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__logo-img {
    width: 220px;
  }

  .section {
    padding: 72px 0;
  }

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

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    gap: 48px;
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero__title {
    font-size: 2rem;
  }

  .stat__number {
    font-size: 2.25rem;
  }
}
