/* Reset and Base Styles */
:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 114, 128, 0.5) rgba(17, 24, 39, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #111827 0%, #000000 100%);
  color: white;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111827;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1.25rem 0;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: none;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: white;
}

.mobile-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  z-index: 100;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.hamburger {
  width: 22px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 1rem;
}

.mobile-link {
  color: #d1d5db;
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid #374151;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mobile-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 1rem;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Header Section */
.header-section {
  padding-top: 7rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .header-section {
    padding-top: 10rem;
    padding-bottom: 8rem;
  }
}

.header-content {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.main-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .main-title {
    font-size: 3.75rem;
  }
}

.subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .subtitle {
    font-size: 1.5rem;
  }
}

.description {
  font-size: 1.125rem;
  color: #d1d5db;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .description {
    font-size: 1.25rem;
  }
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeIn 0.8s ease 0.5s forwards;
}

.cta-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Background Elements */
.bg-elements {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.bg-circle-1 {
  top: 5rem;
  left: 2.5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(59, 130, 246, 0.1);
}

.bg-circle-2 {
  bottom: 5rem;
  right: 2.5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(139, 92, 246, 0.1);
}

.bg-circle-3 {
  top: 5rem;
  right: 2.5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(59, 130, 246, 0.1);
}

.bg-circle-4 {
  bottom: 5rem;
  left: 2.5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(139, 92, 246, 0.1);
}

.bg-circle-5 {
  top: 10rem;
  left: 5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(59, 130, 246, 0.1);
}

.bg-circle-6 {
  bottom: 10rem;
  right: 5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(139, 92, 246, 0.1);
}

.bg-gradient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.2) 0%, transparent 100%);
  opacity: 0.3;
}

/* Company Intro Section */
.company-intro-section {
  padding: 5rem 0;
  background: #1e2530;
  position: relative;
  overflow: hidden;
}

.company-intro-section .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.company-intro-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.company-intro-section .section-description {
  font-size: 1.1rem;
  color: #b8c5d1;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.company-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .company-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.company-card {
  background: rgba(45, 55, 72, 0.6);
  border: 1px solid rgba(74, 85, 104, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.company-card:nth-child(1) { animation-delay: 0.3s; }
.company-card:nth-child(2) { animation-delay: 0.4s; }
.company-card:nth-child(3) { animation-delay: 0.5s; }

.company-card:hover {
  transform: translateY(-5px);
  background: rgba(45, 55, 72, 0.8);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgba(96, 165, 250, 0.1);
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.company-card:nth-child(2) .card-icon {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
}

.company-card:nth-child(2) .card-icon .icon {
  color: #a855f7;
}

.card-icon .icon {
  width: 2rem;
  height: 2rem;
  color: #60a5fa;
}

.company-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.company-card p {
  font-size: 0.95rem;
  color: #b8c5d1;
  line-height: 1.6;
}

.company-detail {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(45, 55, 72, 0.4);
  border: 1px solid rgba(74, 85, 104, 0.3);
  border-radius: 1rem;
  padding: 3rem;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

@media (max-width: 768px) {
  .company-detail {
    padding: 2rem;
  }
}

.detail-content p {
  font-size: 1rem;
  color: #e2e8f0;
  line-height: 1.8;
  margin-bottom: 1.8rem;
  text-align: justify;
}

.detail-content p:last-child {
  margin-bottom: 0;
}

.detail-content strong {
  font-weight: 600;
  color: #60a5fa;
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Add subtle background patterns */
.company-intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: #000;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: #d1d5db;
  max-width: 48rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: rgba(31, 41, 55, 0.3);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.5);
  display: flex;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.3s; }
.service-card:nth-child(3) { animation-delay: 0.4s; }
.service-card:nth-child(4) { animation-delay: 0.5s; }

.service-icon {
  margin-right: 1rem;
  padding: 0.75rem;
  background: rgba(31, 41, 55, 0.8);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.service-icon .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #60a5fa;
}

.service-card:nth-child(even) .service-icon .icon {
  color: #a855f7;
}

.service-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-content p {
  color: #9ca3af;
}

.usage-examples {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease 0.6s forwards;
}

.usage-examples h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.usage-examples p {
  font-size: 1.125rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

/* API Section */
.api-section {
  padding: 5rem 0;
  background: rgba(17, 24, 39, 0.5);
}

.api-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .api-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.5) 0%, rgba(17, 24, 39, 0.5) 100%);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.5);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 0.5rem;
  background: #1f2937;
  border-radius: 0.375rem;
  width: fit-content;
}

.feature-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #60a5fa;
}

.feature-card:nth-child(2) .feature-icon .icon {
  color: #a855f7;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #9ca3af;
}

.supported-apis {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease 0.5s forwards;
}

.supported-apis h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.api-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
}

@media (min-width: 768px) {
  .api-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
  }
}

.api-item {
  display: flex;
  align-items: center;
}

.check-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #60a5fa;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.api-item span {
  color: #e5e7eb;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: #000;
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper {
  max-width: 32rem;
  margin: 0 auto;
  background: rgba(31, 41, 55, 0.3);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease 0.2s forwards;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  background: rgba(55, 65, 81, 0.5);
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.error-message {
  display: block;
  color: #fca5a5;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.show {
  opacity: 1;
}

.submit-button {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.submit-button:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  background: #111827;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    gap: 0;
  }
}

.footer-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.contact-info {
  display: flex;
  align-items: center;
  color: #9ca3af;
}

.mail-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.copyright {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Icon styling */
.icon {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}