/* =========================================
   RoyalTech Solutions - One Page Website
   HTML + CSS Only | Responsive | Animated
   ========================================= */

:root {
  --royal-blue: #2563eb;
  --royal-blue-dark: #1e40af;
  --royal-blue-light: #3b82f6;
  --red: #dc2626;
  --red-light: #ef4444;
  --white: #ffffff;
  --dark: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --bg-light: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
  --shadow-red: 0 10px 40px rgba(220, 38, 38, 0.18);
  --radius: 14px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

body:has(#menu-toggle:checked) {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Animations ========== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 25px 10px rgba(37, 99, 235, 0.08);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }
.delay-6 { animation-delay: 0.9s; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-outline {
  background: transparent;
  color: var(--royal-blue);
  border-color: var(--royal-blue);
}

.btn-outline:hover {
  background: var(--royal-blue);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--red);
}

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.btn-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
}

.btn-submit:hover {
  background: var(--red-light);
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  animation: fadeInDown 0.8s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--royal-blue-dark);
}

.logo i {
  color: var(--red);
  font-size: 1.4rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  gap: 25px;
}

.nav-list a {
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: var(--transition);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--royal-blue);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.nav-list a.nav-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--royal-blue);
}

.nav-list a.nav-email::after {
  display: none;
}

.nav-list a.nav-email:hover,
.nav-list a.nav-email:focus-visible {
  color: var(--red);
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1100;
  padding: 8px;
  margin-right: -8px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--royal-blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #fff1f2 100%);
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--royal-blue);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--red);
  bottom: 15%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--royal-blue-light);
  top: 40%;
  right: 30%;
  animation-delay: 4s;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--royal-blue);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.badge i {
  color: var(--red);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

.text-blue {
  color: var(--royal-blue);
}

.text-red {
  color: var(--red);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--royal-blue);
  border-radius: 12px;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

.stat h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

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

.hero-form-wrapper {
  position: relative;
  z-index: 2;
}

.form-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: pulseGlow 3s infinite;
}

.form-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--royal-blue-dark);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.form-card > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup.is-open {
  display: flex;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.popup-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  padding: 36px 28px 28px;
  text-align: center;
  animation: popupIn 0.35s ease;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 8px;
}

.popup-close:hover {
  background: var(--bg-light);
  color: var(--dark);
}

.popup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
}

.popup-icon-success {
  background: #ecfdf5;
  color: #059669;
}

.popup-icon-error {
  background: #fef2f2;
  color: var(--red);
}

.popup-card h3 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.popup-card p {
  color: var(--text-light);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.popup-ok {
  min-width: 140px;
}

body.popup-open {
  overflow: hidden;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group label i {
  color: var(--royal-blue);
  margin-right: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ========== Stats Section ========== */
.stats-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.stat-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-red);
}

.stat-card i {
  font-size: 2.5rem;
  color: var(--royal-blue);
  margin-bottom: 15px;
}

.stat-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 5px;
}

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

/* ========== Services Section ========== */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--royal-blue-light);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
  color: var(--white);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-card a {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-card a:hover {
  gap: 12px;
}

/* ========== Why Choose Us Section ========== */
.why-section {
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-content .section-title {
  text-align: left;
}

.why-content .section-desc {
  text-align: left;
  margin-bottom: 30px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-list li {
  display: flex;
  gap: 15px;
}

.why-list li > i {
  font-size: 1.5rem;
  color: var(--red);
  margin-top: 3px;
  flex-shrink: 0;
}

.why-list h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.why-list p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.why-image {
  display: grid;
  place-items: center;
}

.image-card {
  background: linear-gradient(135deg, var(--royal-blue-dark), var(--royal-blue));
  color: var(--white);
  padding: 50px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 400px;
  animation: float 6s ease-in-out infinite;
}

.image-card i {
  font-size: 4rem;
  margin-bottom: 20px;
}

.image-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.image-card p {
  opacity: 0.9;
}

/* ========== Process Section ========== */
.process-section {
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 45px 25px 35px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.process-card:hover {
  border-color: var(--royal-blue);
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.process-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.process-card i {
  font-size: 2rem;
  color: var(--royal-blue);
  margin: 15px 0 20px;
}

.process-card h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.process-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========== CTA Section ========== */
.cta-section {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  padding: 80px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
}

/* ========== Footer ========== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 70px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 15px;
}

.footer-brand .logo i {
  color: var(--red);
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: var(--bg-light);
}

.footer-contact p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-contact i {
  color: var(---text-light);
  /* margin-right: 8px; */
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--royal-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ========== Responsive Styles ========== */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    width: 100%;
  }

  .nav .btn {
    width: 100%;
    max-width: 240px;
    text-align: center;
  }

  .menu-toggle:checked ~ .nav {
    max-height: min(70vh, calc(100dvh - 80px));
    padding: 28px 20px 32px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

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

  .hero-desc {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }

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

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

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

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

  .why-content .section-title,
  .why-content .section-desc {
    text-align: center;
  }

  .why-list {
    max-width: 500px;
    margin: 0 auto;
  }

  .why-image {
    order: -1;
  }

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

@media (max-width: 768px) {
  .logo span img {
    width: 120px;
  }

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

  .hero {
    padding: 140px 0 80px;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

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

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand .logo,
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .form-card {
    padding: 25px;
  }

  .btn {
    width: 100%;
  }
}

/* =========================================
   v2 — Fonts, scroll animations, projects,
   feedback slider, logo scroll ring
   ========================================= */

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.1px;
}

h1, h2, h3, .logo span, .section-title, .hero-title, .process-number {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.2px;
}

h4, .btn, .nav-list a, .section-tag, label {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Logo scroll progress ring ---------- */
@property --ring-p {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.logo-img{
  width: 50px;
}

.logo-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 3px;
  background:
    conic-gradient(from -90deg,
      var(--red) 0 var(--ring-p),
      rgba(37, 99, 235, 0.15) var(--ring-p) 100%);
  --ring-p: 0%;
  animation: ringFill linear both;
  animation-timeline: scroll(root block);
}

@keyframes ringFill {
  from { --ring-p: 0%; }
  to { --ring-p: 100%; }
}

.logo-ring-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
  color: var(--royal-blue);
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.logo-ring-mark i { color: var(--royal-blue); }

@supports not (animation-timeline: scroll(root)) {
  .logo-ring {
    background: conic-gradient(from -90deg, var(--red) 0 35%, rgba(37, 99, 235, 0.15) 35% 100%);
    animation: spinRing 6s linear infinite;
  }
  @keyframes spinRing {
    to { transform: rotate(360deg); }
  }
  .logo-ring-mark { animation: spinRingBack 6s linear infinite; }
  @keyframes spinRingBack {
    to { transform: rotate(-360deg); }
  }
}

/* ---------- Scroll-driven section reveals ---------- */
.reveal {
  animation: revealUp 0.9s ease-out both;
  animation-timeline: view();
  animation-range: entry 5% cover 32%;
}

.reveal-up { animation-name: revealUp; }
.reveal-left { animation-name: revealLeft; }
.reveal-right { animation-name: revealRight; }
/* .reveal-zoom { animation-name: revealZoom; } */
.reveal-flip { animation-name: revealFlip; }
.reveal-tilt { animation-name: revealTilt; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: none; }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-70px) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(70px) rotate(3deg); }
  to { opacity: 1; transform: none; }
}
@keyframes revealZoom {
  from { opacity: 0; transform: scale(0.75); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes revealFlip {
  from { opacity: 0; transform: perspective(900px) rotateY(45deg) translateY(30px); }
  to { opacity: 1; transform: perspective(900px) rotateY(0) translateY(0); }
}
@keyframes revealTilt {
  from { opacity: 0; transform: perspective(900px) rotateX(35deg) translateY(50px); }
  to { opacity: 1; transform: perspective(900px) rotateX(0) translateY(0); }
}

/* Section headers glide in too */
.section-header,
.why-content,
.why-image,
.cta-inner,
.stats-grid > .stat-card {
  animation: revealUp 0.9s ease-out both;
  animation-timeline: view();
  animation-range: entry 5% cover 30%;
}

.stats-grid > .stat-card:nth-child(even) { animation-name: revealTilt; }
.why-image { animation-name: revealRight; }
.why-list li { animation-name: revealLeft; }

@supports not (animation-timeline: view()) {
  .reveal,
  .section-header,
  .why-content,
  .why-image,
  .cta-inner,
  .stats-grid > .stat-card {
    animation: fadeInUp 0.8s ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .section-header,
  .why-content,
  .why-image,
  .cta-inner,
  .stats-grid > .stat-card,
  .slider-track {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Services: show more / less ---------- */
.more-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.services-extra {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s ease, opacity 0.5s ease, margin-top 0.5s ease;
  margin-top: 0;
}

.services-extra > .services-grid {
  overflow: hidden;
  min-height: 0;
}

.more-toggle:checked ~ .services-extra {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 28px;
}

.more-toggle:checked ~ .services-extra .service-card {
  animation: fadeInUp 0.6s ease both;
}

.more-toggle:checked ~ .services-extra .service-card:nth-child(2) { animation-delay: 0.08s; }
.more-toggle:checked ~ .services-extra .service-card:nth-child(3) { animation-delay: 0.16s; }
.more-toggle:checked ~ .services-extra .service-card:nth-child(4) { animation-delay: 0.24s; }
.more-toggle:checked ~ .services-extra .service-card:nth-child(5) { animation-delay: 0.32s; }
.more-toggle:checked ~ .services-extra .service-card:nth-child(6) { animation-delay: 0.4s; }

.more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.more-btn { user-select: none; }
.more-label-hide { display: none; }
.more-toggle:checked ~ .more-wrap .more-label-show { display: none; }
.more-toggle:checked ~ .more-wrap .more-label-hide { display: inline-flex; align-items: center; gap: 8px; }
.more-label-show { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Projects ---------- */
.projects-section { background: var(--bg-light); }

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

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.3);
}

.project-thumb {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.project-thumb.thumb-blue { background: linear-gradient(135deg, var(--royal-blue-dark), var(--royal-blue-light)); }
.project-thumb.thumb-red { background: linear-gradient(135deg, #b91c1c, var(--red-light)); }

.project-thumb::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-60%);
  transition: transform 0.7s ease;
}

.project-card:hover .project-thumb::after { transform: translateX(60%); }

.project-body { padding: 22px 24px 26px; }

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--royal-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.project-body h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 8px; }
.project-body p { font-size: 0.93rem; color: var(--text-light); }

/* ---------- Clients feedback slider ---------- */
.testimonials-section {
  padding-top: 60px;
  padding-bottom: 60px;
  overflow: hidden;
}

.section-header.compact { margin-bottom: 26px; }

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.slider-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: slide 32s linear infinite;
}

.slider:hover .slider-track { animation-play-state: paused; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.feedback {
  flex: 0 0 300px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--royal-blue);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.feedback:nth-child(even) { border-left-color: var(--red); }

.stars { color: #f59e0b; font-size: 0.75rem; margin-bottom: 8px; }

.feedback blockquote {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 14px;
}

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

.feedback figcaption > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.feedback strong { font-size: 0.88rem; color: var(--dark); }
.feedback small { font-size: 0.76rem; color: var(--text-light); }

.avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.avatar.blue { background: var(--royal-blue); }
.avatar.red { background: var(--red); }

/* ---------- Projects we built slider ---------- */
#our-projects {
  scroll-margin-top: 90px;
}

.built-section {
  background: var(--white);
  padding-bottom: 80px;
}

.built-section .section-header {
  margin-bottom: 40px;
}

.built-slider {
  position: relative;
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 0 52px;
}

.built-viewport {
  overflow: hidden;
}

.built-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.built-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.built-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

.built-frame {
  background: var(--white);
}

.built-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-bottom: 1px solid var(--border);
}

.built-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.built-chrome span:nth-child(1) { background: #ef4444; }
.built-chrome span:nth-child(2) { background: #f59e0b; }
.built-chrome span:nth-child(3) { background: #22c55e; }

.built-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
  cursor: zoom-in;
}

.built-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s ease;
}

.built-card:hover .built-shot img,
.built-shot:focus-visible img {
  transform: scale(1.18);
}

.built-zoom-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.28);
  color: var(--white);
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.built-card:hover .built-zoom-hint,
.built-shot:focus-visible .built-zoom-hint {
  opacity: 1;
}

.zoom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.zoom-lightbox.is-open {
  display: flex !important;
}

.zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
}

.zoom-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: popupIn 0.35s ease;
}

.zoom-stage {
  width: 100%;
  max-height: calc(90vh - 64px);
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  cursor: zoom-in;
}

.zoom-stage img {
  display: block;
  width: 100%;
  max-height: calc(90vh - 64px);
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.35s ease;
}

.zoom-lightbox.is-open .zoom-stage img {
  transform: scale(1.04);
}

.zoom-stage:hover img,
.zoom-stage.is-zoomed img {
  transform: scale(1.45);
  cursor: zoom-out;
}

.zoom-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.zoom-close:hover {
  background: var(--red);
  color: var(--white);
}

#project-zoom-caption {
  margin-top: 14px;
  color: var(--white);
  font-size: 1.15rem;
  font-family: 'Playfair Display', Georgia, serif;
  text-align: center;
}

@media (max-width: 700px) {
  .zoom-stage:hover img,
  .zoom-stage.is-zoomed img {
    transform: scale(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-stage img {
    transition: none !important;
  }
}

.built-meta {
  padding: 16px 18px 18px;
  text-align: center;
}

.built-meta h3 {
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.3;
}

.built-nav {
  position: absolute;
  top: calc(50% - 28px);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--royal-blue);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  transition: var(--transition);
  z-index: 2;
}

.built-nav:hover {
  background: var(--royal-blue);
  color: var(--white);
  border-color: var(--royal-blue);
}

.built-prev { left: 0; }
.built-next { right: 0; }

.built-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.built-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
}

.built-dots button.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--royal-blue);
}

.built-empty {
  text-align: center;
  color: var(--text-light);
}

@media (max-width: 1100px) {
  .built-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 700px) {
  .built-slider {
    padding: 0 42px;
    width: min(100%, 96%);
  }

  .built-card {
    flex: 0 0 100%;
  }

  .built-nav {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .built-track,
  .built-card,
  .built-shot img {
    transition: none !important;
  }
}

@media (max-width: 600px) {
  .feedback { flex: 0 0 260px; }
  .logo-ring { width: 40px; height: 40px; }
}
