@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #1e68d5;
  --primary-dark: #0f4fb5;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Header */
header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo img {
  height: 52px;
  width: auto;
  transition: all 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(30, 104, 213, 0.2));
}

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

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(30, 104, 213, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(30, 104, 213, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 104, 213, 0.3);
}

.btn-outline:active {
  transform: translateY(0);
}

.mobile-nav-toggle {
  display: none;
  padding: 8px 16px;
  font-size: 20px;
  background: transparent;
  color: var(--text);
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(30, 104, 213, 0.1), transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.05); }
}

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

.hero-text h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text);
  animation: slideInLeft 0.8s ease-out;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
  animation: slideInLeft 0.8s ease-out 0.1s backwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.hero-image {
  position: relative;
  animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.hero-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 20px 20px 0 0;
  transition: height 0.3s ease;
}

.hero-card:hover::before {
  height: 8px;
}

.hero-card img {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 16px rgba(30, 104, 213, 0.15));
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Stats Section */
.stats-section {
  background: var(--primary);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 20px;
}

.stat-item {
  animation: fadeIn 0.6s ease-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  padding: 16px;
  border-radius: 12px;
}

.stat-item:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
}

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

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

/* About Section */
.about-section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.section-title:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title:hover::after {
  width: 100%;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 700px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.about-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.about-card:hover::after {
  transform: scaleX(1);
}

.about-card p {
  color: var(--text-light);
  line-height: 1.8;
}

.about-card p::first-line {
  font-weight: 600;
  color: var(--text);
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

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

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

.service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }

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

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

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

.service-card:hover h3 {
  color: var(--primary);
  transform: translateX(4px);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card h3::before {
  content: "→";
  color: var(--primary);
  font-weight: 900;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.service-card:hover h3::before {
  transform: translateX(6px);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 15px;
  transition: color 0.3s ease;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.cta-section h2:hover {
  transform: scale(1.03);
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.cta-section p:hover {
  opacity: 1;
}

.cta-section .btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: none;
  position: relative;
  z-index: 1;
}

.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
}

.contact-card {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  max-width: 720px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(30, 104, 213, 0.15);
  border-color: var(--primary);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 18px rgba(30, 104, 213, 0.3);
  font-size: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover .contact-card__icon {
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 12px 24px rgba(30, 104, 213, 0.4);
}

.contact-card__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-card__link {
  display: inline-block;
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 6px;
}

.contact-card__link:hover {
  text-decoration: underline;
}

.contact-card__note {
  color: var(--text-light);
  font-size: 14px;
}

@media (max-width: 640px) {
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Footer */
footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
}

.footer-content a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-content a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text);
}

.modal p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
  .mobile-nav-toggle {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .about-section,
  .services-section,
  .contact-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .hero-content {
    gap: 32px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-card img {
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  
  header {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  
  .header-content {
    padding: 12px 0;
  }
  
  .logo img {
    height: 40px;
  }
  
  .hero {
    padding: 40px 0 50px;
  }
  
  .hero-buttons {
    gap: 12px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-item {
    padding: 20px 16px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .stat-label {
    font-size: 14px;
  }
  
  .services-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .service-card,
  .about-card {
    padding: 24px;
  }
  
  .service-card h3 {
    font-size: 17px;
  }
  
  .service-card h3::before {
    font-size: 20px;
  }
  
  .service-card p {
    font-size: 14px;
  }
  
  .hero-card {
    padding: 24px;
  }
  
  .hero-card img {
    max-width: 240px;
  }
  
  .about-section,
  .services-section,
  .contact-section,
  .cta-section {
    padding: 50px 0;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .contact-card {
    padding: 20px;
    gap: 14px;
  }
  
  .contact-card__icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .contact-card__link {
    font-size: 16px;
  }
  
  .contact-card__note {
    font-size: 13px;
  }
  
  .modal {
    padding: 28px;
    margin: 0 16px;
  }
  
  .modal h3 {
    font-size: 20px;
  }
  
  .modal p {
    font-size: 15px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .footer-content p {
    font-size: 13px;
  }
}
