:root {
  --color-primary: #0a1f44;
  --color-primary-dark: #051127;
  --color-secondary: #0c64f2;
  --color-accent: #17bebb;
  --color-text: #1a1a1a;
  --color-muted: #6b7280;
  --color-white: #ffffff;
  --max-width: 1120px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 60px rgba(10, 31, 68, 0.12);
  --shadow-card: 0 18px 36px rgba(10, 31, 68, 0.1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--color-text);
  background-color: var(--color-white);
}

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

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

.container {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.top-bar {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding-block: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: opacity 0.2s ease;
  padding: 0.5rem 0;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--color-white);
}

.btn-nav {
  background: var(--color-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn-nav:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}

@media (min-width: 1100px) {
  .contact-nav {
    display: none;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--color-white);
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-text {
  font-size: 1.05rem;
  line-height: 1.3;
  display: none;
}

@media (min-width: 768px) {
  .logo-text {
    display: inline;
  }
  
  .logo-img {
    width: 70px;
    height: 70px;
  }
}

.contact-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.contact-nav a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.contact-nav a:hover {
  opacity: 1;
}

.divider {
  opacity: 0.3;
}

.hero {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: radial-gradient(circle at top right, rgba(12, 100, 242, 0.12), transparent 55%),
    radial-gradient(circle at bottom left, rgba(23, 190, 187, 0.12), transparent 45%),
    linear-gradient(to bottom, #ffffff, #f8faff);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-image-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-image-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.hero-image-preview img:hover {
  transform: scale(1.05);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--color-secondary), #1d4ed8);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.btn.primary:hover {
  transform: translateY(-3px);
}

.btn.secondary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.btn.secondary:hover {
  transform: translateY(-3px);
}

.btn.outline {
  border: 2px solid rgba(12, 100, 242, 0.35);
  color: var(--color-primary);
}

.btn.outline:hover {
  background: rgba(12, 100, 242, 0.08);
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.hero-social .link {
  color: var(--color-secondary);
  font-weight: 500;
}

.hero-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10, 31, 68, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-card h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--color-primary);
}

.hero-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.contact-list a {
  font-weight: 600;
  color: var(--color-secondary);
}

.services {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.services h2,
.section-lead {
  text-align: center;
}

.services h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-lead {
  margin: 0 auto 2.5rem;
  max-width: 640px;
  color: var(--color-muted);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}

.service-card {
  padding: 2rem;
  background: #f8faff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 31, 68, 0.07);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(10, 31, 68, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
  font-size: 1.3rem;
}

.service-card p {
  color: var(--color-muted);
  line-height: 1.6;
}

.cta-banner {
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.cta-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-wrapper h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.cta-wrapper p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.why-us {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.why-us h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

.feature {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 31, 68, 0.1);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-secondary);
}

.feature h3 {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 1.2rem;
}

.feature p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.testimonials {
  padding-block: clamp(4rem, 7vw, 6rem);
  background: #f9fbff;
}

.testimonials h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: 3rem;
}

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

.testimonial-card {
  margin: 0;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  color: var(--color-primary-dark);
  border: 1px solid rgba(12, 100, 242, 0.08);
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
}

.testimonial-card figcaption {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding-top: clamp(3rem, 5vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-brand p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.footer-contacts,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer h4 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--color-white);
}

.footer a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.mobile-work-link {
  display: none;
}

@media (max-width: 899px) {
  .main-nav {
    display: none;
  }
  
  .contact-nav {
    display: flex;
  }
  
  .mobile-work-link {
    display: inline-block;
  }
}

@media (min-width: 900px) {
  .mobile-work-link {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .top-bar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .contact-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  
  .contact-nav .divider {
    display: none;
  }
  
  .contact-nav a {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .hero-card {
    order: -1;
  }

  .hero-content {
    text-align: center;
  }

  .hero-image-preview {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .hero-image-preview img {
    height: 180px;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-wrapper {
    justify-content: center;
    text-align: center;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links,
  .footer-contacts {
    align-items: center;
  }
}

.page-header {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--color-white);
}

.page-subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.work-gallery {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.gallery-section {
  margin-bottom: 4rem;
}

.gallery-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--color-white);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(10, 31, 68, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.comparison-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.comparison-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 31, 68, 0.85);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 10;
}

.before-label {
  background: rgba(220, 38, 38, 0.85);
}

.after-label {
  background: rgba(34, 197, 94, 0.85);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img,
  .comparison-container {
    height: 250px;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 50px;
    height: 50px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-image-preview img {
    height: 150px;
  }
  
  .gallery-item img,
  .comparison-container {
    height: 220px;
  }
}

