/* Modern CSS for YY Digital Website */

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

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
}
.clients {
    padding: 6rem 0;
    background: #f8fafc;
  }

.clients-scroll-container {
  overflow: hidden;
  margin-top: 3rem;
  width: 100%;
}

.clients-scroll {
  display: flex;
  animation: clientsHorizontalScroll 15s linear infinite;
  width: max-content;
  will-change: transform;
  transform: translateZ(0); /* Force hardware acceleration */
}

.client-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 2rem;
  min-width: 150px;
}

.client-logo-item a {
  display: block;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.client-logo-item a:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.client-logo-item img {
  height: 60px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.client-logo-item:hover img {
  filter: grayscale(0%);
}

@keyframes clientsHorizontalScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

  /* Pause animation on hover */
  .clients-scroll-container:hover .clients-scroll {
    animation-play-state: paused;
  }

  /* Force hardware acceleration */
  .clients-scroll {
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
  }

  /* Typography */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 2rem;
  }
  h4 {
    font-size: 1.5rem;
  }

  p {
    margin-bottom: 1rem;
    color: #4a5568;
  }

  a {
    color: #2192e3;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  a:hover {
    color: #0891b2;
  }

  /* Container and Layout */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }

  .section-header h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
  }

  .clients .section-header h2 {
    color: #2192e3;
  }

  .about .section-header h2 {
    color: #2192e3;
  }

  .section-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
  }

  /* Navigation */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
  }

  .brand-link {
    font-size: 1.8rem;
    font-weight: 400;
    text-decoration: none;
    font-family: "Lustria", serif;
  }

  .brand-yy {
    color: #2192e3;
  }

  .brand-digital {
    color: #1a1a1a;
  }

  .nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a1a1a;
  }

  .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    position: relative;
    transition: 0.3s;
  }

  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: #1a1a1a;
    transition: 0.3s;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    top: 8px;
  }

  .nav-menu {
    display: flex;
    gap: 2rem;
  }

  .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    background-color: #f3f4f6;
    color: #2192e3;
  }

  /* Hero Section */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
      135deg,
      #0f172a 0%,
      #1e293b 25%,
      #334155 50%,
      #475569 75%,
      #64748b 100%
    );
    color: white;
  }

  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 80%,
        rgba(59, 130, 246, 0.15) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 80% 20%,
        rgba(139, 92, 246, 0.15) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 50% 50%,
        rgba(16, 185, 129, 0.1) 0%,
        transparent 50%
      );
  }

  .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.8) 0%,
      rgba(30, 41, 59, 0.6) 50%,
      rgba(51, 65, 85, 0.4) 100%
    );
  }

  .hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }

  .hero-highlight {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
  }

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

  .btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
  }

  .btn-primary {
    background: linear-gradient(90deg, #2192e3, #3b82f6);
    color: white;
    box-shadow: 0 10px 25px rgba(33, 146, 227, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(33, 146, 227, 0.5);
  color: white;
  background: linear-gradient(90deg, #1d4ed8, #2192e3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}.btn-full {
  width: 100%;
}

/* Hero Visual */
.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.card-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  display: flex;
  align-items: center;
}

.card-dots {
  display: flex;
  gap: 0.5rem;
}

.card-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.card-dots span:nth-child(1) {
  background: #ff5f57;
}
.card-dots span:nth-child(2) {
  background: #ffbd2e;
}
.card-dots span:nth-child(3) {
  background: #28ca42;
}

.card-content {
  padding: 2rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  line-height: 1.8;
}

.code-line {
  margin-bottom: 0.5rem;
}

.code-keyword {
  color: #ff79c6;
}
.code-function {
  color: #50fa7b;
}
.code-string {
  color: #f1fa8c;
}
.code-bracket {
  color: #8be9fd;
}
.code-semicolon {
  color: #f8f8f2;
}
.code-indent {
  color: transparent;
}

/* Clients Section */
.clients {
  padding: 6rem 0;
  background: #f8fafc;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.client-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.client-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.client-card:hover .client-logo {
  transform: scale(1.1);
}

.client-logo img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  display: block;
}

.logo-text {
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: "Lustria", serif;
}

.client-info {
  flex: 1;
}

.client-info h4 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.client-info p {
  color: #6b7280;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.client-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.client-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #f3f4f6;
  color: #2192e3;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.client-links a:hover {
  background: #2192e3;
  color: white;
}

.client-info h4 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.client-info p {
  color: #6b7280;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

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

.client-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  color: #2192e3;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.client-links a:hover {
  background: #2192e3;
  color: white;
}

.client-links i {
  font-size: 0.9rem;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
}

.why-list {
  margin: 3rem 0;
}

.why-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 1rem;
  border-left: 4px solid #2192e3;
}

.why-item i {
  color: #2192e3;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.why-item h4 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.why-item p {
  color: #6b7280;
  margin-bottom: 0;
}

.about-philosophy {
  font-weight: 500;
  color: #2192e3;
  background: rgba(37, 99, 235, 0.05);
  padding: 1.5rem;
  border-radius: 1rem;
  border-left: 4px solid #2192e3;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: #f8fafc;
}

.contact-grid {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.contact-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h4 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.contact-details a,
.contact-details p {
  color: #6b7280;
  margin-bottom: 0;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #2192e3;
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Wisdom Quote */
.wisdom-quote {
  text-align: center;
  margin-top: 4rem;
}

.wisdom-quote blockquote {
  font-size: 1.5rem;
  font-style: italic;
  color: #6b7280;
  border-left: 4px solid #2192e3;
  padding-left: 2rem;
  margin: 0 auto;
  max-width: 600px;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 400;
  font-family: "Lustria", serif;
}

.footer-brand .brand-yy {
  color: #2192e3;
}

.footer-brand .brand-digital {
  color: #9ca3af;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9ca3af;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero,
  .about,
  .clients,
  .contact {
    padding: 4rem 0;
  }
}

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

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    padding: 0.875rem 1.5rem;
  }

  .stats-grid {
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

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

.hero-content > * {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.2s;
}
.hero-content > *:nth-child(2) {
  animation-delay: 0.4s;
}
.hero-content > *:nth-child(3) {
  animation-delay: 0.6s;
}

/* Smooth scroll enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
