/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1a1a1a;
  --color-secondary: #666;
  --color-accent: #0066ff;
  --color-background: #fafafa;
  --color-white: #ffffff;
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --transition-base: all 0.3s ease;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-background);
  color: var(--color-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body > * {
  width: 100%;
  max-width: 800px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-base);
}

.header-logo:hover {
  opacity: 0.8;
}

.header-logo-img {
  height: 50px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 1rem;
}

.header-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-base);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.header-link:hover {
  color: var(--color-accent);
  background-color: rgba(0, 102, 255, 0.1);
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}

/* Content */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1;
  justify-content: center;
}



/* Typography */
.title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--color-accent);
  margin-bottom: 2.5rem;
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Contact Info */
.contact-info {
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.contact-detail {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-link {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition-base);
  position: relative;
}

.contact-link:hover {
  color: var(--color-accent);
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: var(--transition-base);
}

.contact-link:hover::after {
  width: 100%;
}

/* Loader */
.loader {
  display: flex;
  gap: 0.5rem;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.loader-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
  animation-delay: 0s;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
}

/* Services Section */
.services-section {
  background-color: var(--color-white);
  padding: 5rem 2rem;
}

.section-container {
  max-width: 800px;
  margin: 0 auto;
}

.services-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition-base);
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-base);
}

.service-card-header:hover {
  background-color: rgba(0, 102, 255, 0.05);
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.service-card-icon {
  font-size: 1.8rem;
  color: var(--color-accent);
  font-weight: 300;
  transition: transform 0.3s ease;
  line-height: 1;
}

.service-card.active .service-card-icon {
  transform: rotate(45deg);
}

.service-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.service-card.active .service-card-content {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.service-card-short {
  padding: 0 1.5rem;
  color: var(--color-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
  font-weight: 500;
}

.service-card-full {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
}

.service-card-full p {
  color: var(--color-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.service-card-full p:last-child {
  margin-bottom: 0;
}

.service-card-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--color-accent);
}

.service-card-list {
  margin: 1rem 0 0 1.5rem;
  color: var(--color-secondary);
  line-height: 1.8;
}

.service-card-list li {
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--color-background);
  padding: 5rem 2rem;
}

.contact-section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* Footer */
.footer {
  padding: 2rem 0 1rem;
  text-align: center;
  animation: fadeIn 0.8s ease-out 0.8s both;
  max-width: 1200px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-base);
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-secondary);
}

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

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

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

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .header {
    max-width: 100%;
    padding: 1rem 1.5rem;
  }
  
  .header-logo-img {
    height: 45px;
  }
  
  .section-container {
    max-width: 700px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .header-logo-img {
    height: 40px;
  }
  
  .header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }
  
  .header-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .container {
    padding: 1.5rem 1rem;
  }
  
  .subtitle {
    margin-bottom: 2rem;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .services-section {
    padding: 3rem 1rem;
  }
  
  .services-title {
    margin-bottom: 2rem;
  }
  
  .service-card-header {
    padding: 1.2rem 1rem;
  }
  
  .service-card-title {
    font-size: 1.1rem;
  }
  
  .service-card-short {
    padding: 0 1rem;
    font-size: 0.9rem;
  }
  
  .service-card-full {
    padding: 1rem 1rem 1.2rem;
  }
  
  .contact-section {
    padding: 3rem 1rem;
  }
  
  .contact-section-title {
    margin-bottom: 1.5rem;
  }
  
  .footer-nav {
    gap: 1.5rem;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .header-container {
    align-items: center;
  }
  
  .header-nav {
    justify-content: center;
  }
  
  .service-card-title {
    font-size: 1rem;
  }
  
  .service-cards {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
