/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
  --primary: #1A56DB;
  --primary-dark: #1040A0;
  --accent: #0EA5E9;
  --bg-dark: #0F172A;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-primary: #0F172A;
  --text-body: #475569;
  --text-light: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", monospace;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

/* ========================================
   Container
   ======================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 86, 219, 0.4);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

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

.btn--full {
  width: 100%;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  transition: all 0.3s ease;
}

.navbar--scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.navbar__logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo__main {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.logo__sub {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__menu a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.navbar__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar__menu a:hover {
  color: #fff;
}

.navbar__menu a:hover::after {
  width: 100%;
}

.navbar__lang {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.navbar__lang:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

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

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

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

/* ========================================
   Hero
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 50%, #0f2044 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 6rem 0 4rem;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   Section Shared
   ======================================== */
.section {
  padding: 5rem 0;
}

.section--light {
  background: var(--bg-light);
}

.section--white {
  background: var(--bg-white);
}

.section--dark {
  background: var(--bg-dark);
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__title--light {
  color: #fff;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
}

.section__subtitle--light {
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   About
   ======================================== */
.about__content {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about__content p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.stat__number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================================
   Services
   ======================================== */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.service-card__desc {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   Portfolio
   ======================================== */
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-card__color {
  height: 8px;
}

.portfolio-card__body {
  padding: 1.5rem;
}

.portfolio-card__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.portfolio-card__body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.portfolio-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent);
  font-weight: 500;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials__slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.testimonials__slider::-webkit-scrollbar {
  height: 6px;
}

.testimonials__slider::-webkit-scrollbar-track {
  background: transparent;
}

.testimonials__slider::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.testimonial-card {
  min-width: 320px;
  max-width: 400px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.testimonial-card__quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testimonial-card__author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================
   Team
   ======================================== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card__avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.team-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.team-card__bio {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================================
   Contact
   ======================================== */
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact__item p {
  font-size: 1rem;
  color: var(--text-body);
}

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

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: var(--text-muted);
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-dark);
  padding-top: 4rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.footer__links h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

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

.footer__bottom {
  padding: 1.5rem 0;
}

.footer__bottom p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   Responsive — Tablet (640px+)
   ======================================== */
@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact__wrapper {
    grid-template-columns: 1fr 1.5fr;
  }

  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .hero__title {
    font-size: 3rem;
  }
}

/* ========================================
   Responsive — Tablet Landscape (768px+)
   ======================================== */
@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }

  .hero__title {
    font-size: 3.2rem;
  }

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

  .testimonial-card {
    min-width: 360px;
  }
}

/* ========================================
   Responsive — Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .navbar__hamburger {
    display: none !important;
  }

  .navbar__menu {
    display: flex !important;
  }

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

  .hero__title {
    font-size: 3.5rem;
  }

  .hero__content {
    padding: 8rem 0 6rem;
  }

  .section {
    padding: 7rem 0;
  }

  .section__title {
    font-size: 2.4rem;
  }
}

/* ========================================
   Mobile Menu (below 1024px)
   ======================================== */
@media (max-width: 1023px) {
  .navbar__hamburger {
    display: flex;
    order: 3;
  }

  .navbar__lang {
    order: 2;
    margin-left: auto;
    margin-right: 0.75rem;
  }

  .navbar__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
    gap: 0;
  }

  .navbar__menu.active {
    display: flex;
  }

  .navbar__menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .navbar__menu a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

  .navbar__menu a::after {
    display: none;
  }

  .about__stats {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
  }
}
