/* Material Design 3 - Index Page Styles */
@import url('m3-particles.css');

/* Hero Section */
#top-main {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--md-sys-color-surface);
  overflow: hidden;
}

/* Dark mode gradient background for better star visibility */
[data-theme="dark"] #top-main {
  background: linear-gradient(180deg, 
    #0f1835 0%,     /* Slightly brighter than original #0a1228 */
    #1a2545 50%,    /* Mid-tone for depth */
    #0f1835 100%);  /* Return to darker at bottom */
  background-color: #0f1835; /* Fallback */
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  /* Removed background gradient to make stars clearer */
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: var(--md-sys-shape-corner-full);
  filter: blur(40px);
  will-change: transform;
  z-index: 1;
  /* Place shapes behind stars (z-index: 5) */
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 30% 30%,
      var(--md-sys-color-primary) 0%,
      transparent 70%);
  top: -20%;
  left: -10%;
  animation: morphing 25s infinite ease-in-out;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 70% 70%,
      var(--md-sys-color-secondary) 0%,
      transparent 70%);
  top: 50%;
  right: -5%;
  animation: morphing 20s infinite ease-in-out reverse;
  animation-delay: 5s;
}

.shape-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 50% 50%,
      var(--md-sys-color-tertiary) 0%,
      transparent 70%);
  bottom: 10%;
  left: 20%;
  animation: morphing-alt 22s infinite ease-in-out;
  animation-delay: 2s;
}

/* M3 Motion Principle: Expressive animations with sequential choreography */
@keyframes morphing {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: var(--md-sys-shape-corner-full);
    opacity: 0.7;
  }

  20% {
    transform: translate(20px, -30px) scale(1.05) rotate(60deg);
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    opacity: 0.8;
  }

  40% {
    transform: translate(40px, -50px) scale(1.1) rotate(120deg);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.9;
  }

  60% {
    transform: translate(-10px, 20px) scale(0.95) rotate(200deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.85;
  }

  80% {
    transform: translate(-30px, -10px) scale(1.02) rotate(280deg);
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    opacity: 0.75;
  }
}

/* Alternative morphing animation for shape-3 with gentler movements */
@keyframes morphing-alt {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: var(--md-sys-shape-corner-full);
    opacity: 0.6;
  }

  25% {
    transform: translate(30px, -20px) scale(1.08) rotate(45deg);
    border-radius: 45% 55% 50% 50% / 50% 45% 55% 50%;
    opacity: 0.7;
  }

  50% {
    transform: translate(15px, -35px) scale(0.98) rotate(90deg);
    border-radius: 35% 65% 60% 40% / 40% 35% 65% 60%;
    opacity: 0.75;
  }

  75% {
    transform: translate(-20px, -15px) scale(1.05) rotate(180deg);
    border-radius: 55% 45% 35% 65% / 65% 55% 45% 35%;
    opacity: 0.65;
  }
}

.top-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-lead {
  font-size: var(--md-sys-typescale-display-large-font-size);
  font-weight: var(--md-sys-typescale-display-large-font-weight);
  line-height: var(--md-sys-typescale-display-large-line-height);
  color: var(--md-sys-color-on-surface);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.text-animate {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  animation: heroTextIn var(--md-sys-motion-duration-extra-long2) var(--md-sys-motion-easing-emphasized-decelerate) forwards;
}

.text-animate:nth-child(1) {
  animation-delay: 0.2s;
}

.text-animate:nth-child(2) {
  animation-delay: 0.3s;
}

.text-animate:nth-child(3) {
  animation-delay: 0.5s;
}

.text-animate:nth-child(4) {
  animation-delay: 0.6s;
}

.text-animate.accent {
  background: linear-gradient(135deg,
      var(--md-sys-color-primary) 0%,
      var(--md-sys-color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Underline removed for accent class */

@keyframes heroTextIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes underlineExpand {
  to {
    width: 100%;
  }
}

.scroll-indicator {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--md-sys-typescale-label-medium-font-size);
  opacity: 0;
  animation: scrollIndicatorReveal var(--md-sys-motion-duration-long3) var(--md-sys-motion-easing-emphasized-decelerate) forwards;
  animation-delay: 1.4s;
  cursor: pointer;
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.scroll-indicator:hover {
  color: var(--md-sys-color-primary);
}

.scroll-indicator span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(-5px);
  }
}

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

/* M3 Motion: Scroll indicator reveal with subtle scale */
@keyframes scrollIndicatorReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Section Title */
.section-title {
  font-size: var(--md-sys-typescale-display-small-font-size);
  font-weight: var(--md-sys-typescale-display-small-font-weight);
  line-height: var(--md-sys-typescale-display-small-line-height);
  color: var(--md-sys-color-on-surface);
  text-align: center;
  margin: 0 0 48px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.section-title.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Topics Section */
#topics {
  background-color: var(--md-sys-color-surface);
  padding: 80px 0;
}

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

/* M3 Tabs */
.topics-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.topics-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  padding: 0 24px;
  height: 48px;
  background-color: transparent;
  color: var(--md-sys-color-on-surface-variant);
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: var(--md-sys-typescale-label-large-font-size);
  font-weight: var(--md-sys-typescale-label-large-font-weight);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.tab-btn:hover::before {
  opacity: var(--md-sys-state-hover-opacity);
}

.tab-btn.active {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Topics List */
.topics-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-item {
  background-color: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-medium);
  padding: 20px 24px;
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.topic-item:hover {
  background-color: var(--md-sys-color-surface-container-high);
  transform: translateY(-2px);
}

.topic-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.topic-date {
  font-size: var(--md-sys-typescale-label-medium-font-size);
  color: var(--md-sys-color-on-surface-variant);
}

.topic-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--md-sys-shape-corner-small);
  font-size: var(--md-sys-typescale-label-small-font-size);
  font-weight: var(--md-sys-typescale-label-small-font-weight);
}

.category-news {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.category-press {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.category-ir {
  background-color: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

.category-blog {
  background-color: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface-variant);
}

.topic-title {
  font-size: var(--md-sys-typescale-title-large-font-size);
  font-weight: var(--md-sys-typescale-title-large-font-weight);
  line-height: var(--md-sys-typescale-title-large-line-height);
  margin: 0;
}

.topic-title a {
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  transition: color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.topic-title a:hover {
  color: var(--md-sys-color-primary);
}

.no-topics {
  text-align: center;
  padding: 48px 24px;
  color: var(--md-sys-color-on-surface-variant);
}

/* View All Button */
.topics-more {
  text-align: center;
  margin-top: 32px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-full);
  text-decoration: none;
  font-size: var(--md-sys-typescale-label-large-font-size);
  font-weight: var(--md-sys-typescale-label-large-font-weight);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.view-all-btn:hover {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-color: var(--md-sys-color-primary);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Philosophy Section */
#philosophy {
  background-color: var(--md-sys-color-surface-container-low);
  padding: 80px 0;
}

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

.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.philosophy-card {
  background-color: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 32px;
  /* Elevated card with Material Design 3 elevation level 2 */
  box-shadow:
    0px 1px 2px 0px rgba(0, 0, 0, 0.30),
    0px 2px 6px 2px rgba(0, 0, 0, 0.15);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
}

.philosophy-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.philosophy-card:hover {
  /* Elevated to level 4 on hover for more prominent effect */
  box-shadow:
    0px 2px 3px 0px rgba(0, 0, 0, 0.30),
    0px 6px 10px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px) scale(1.02);
  background-color: var(--md-sys-color-surface-container);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-radius: var(--md-sys-shape-corner-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.philosophy-card h3 {
  font-size: var(--md-sys-typescale-headline-medium-font-size);
  font-weight: var(--md-sys-typescale-headline-medium-font-weight);
  color: var(--md-sys-color-on-surface);
  margin: 0 0 16px 0;
}

.card-lead {
  font-size: var(--md-sys-typescale-body-large-font-size);
  color: var(--md-sys-color-on-surface);
  margin-bottom: 16px;
  font-weight: 500;
}

.card-detail {
  font-size: var(--md-sys-typescale-body-medium-font-size);
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

.card-detail ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.card-detail li {
  padding: 8px 0;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.card-detail li:last-child {
  border-bottom: none;
}

/* Service Section */
#service {
  background-color: var(--md-sys-color-surface);
  padding: 80px 0;
}

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

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.service-card {
  background-color: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-extra-large);
  padding: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized);
  /* Elevated card with Material Design 3 elevation level 2 */
  box-shadow:
    0px 1px 2px 0px rgba(0, 0, 0, 0.30),
    0px 2px 6px 2px rgba(0, 0, 0, 0.15);
  position: relative;
}

.service-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  /* Elevated to level 4 on hover for more prominent effect */
  box-shadow:
    0px 2px 3px 0px rgba(0, 0, 0, 0.30),
    0px 6px 10px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px) scale(1.01);
  background-color: var(--md-sys-color-surface-container);
}

.service-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-radius: var(--md-sys-shape-corner-large);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
}

.service-content h3 {
  font-size: var(--md-sys-typescale-headline-large-font-size);
  font-weight: var(--md-sys-typescale-headline-large-font-weight);
  color: var(--md-sys-color-on-surface);
  margin: 0 0 16px 0;
}

.service-lead {
  font-size: var(--md-sys-typescale-title-large-font-size);
  font-weight: 500;
  color: var(--md-sys-color-primary);
  margin-bottom: 8px;
}

.service-subtitle {
  font-size: var(--md-sys-typescale-body-medium-font-size);
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 24px;
  font-style: italic;
}

.service-description {
  font-size: var(--md-sys-typescale-body-large-font-size);
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  margin-bottom: 32px;
}

.service-feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.feature-card {
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-sys-shape-corner-medium);
  padding: 24px;
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.feature-card:hover {
  background-color: var(--md-sys-color-surface-container-high);
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-radius: var(--md-sys-shape-corner-small);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.feature-card h4 {
  font-size: var(--md-sys-typescale-title-medium-font-size);
  font-weight: var(--md-sys-typescale-title-medium-font-weight);
  color: var(--md-sys-color-on-surface);
  margin: 0 0 8px 0;
}

.feature-card p {
  font-size: var(--md-sys-typescale-body-small-font-size);
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
}

.btn-modern-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-full);
  text-decoration: none;
  font-size: var(--md-sys-typescale-label-large-font-size);
  font-weight: var(--md-sys-typescale-label-large-font-weight);
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.btn-modern-outline:hover {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-color: var(--md-sys-color-primary);
}

/* Company Section */
#company {
  background-color: var(--md-sys-color-surface-container-low);
  padding: 80px 0;
}

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

.company-card {
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 48px;
  box-shadow:
    0px 1px 2px 0px rgba(0, 0, 0, 0.30),
    0px 1px 3px 1px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized);
}

.company-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-radius: var(--md-sys-shape-corner-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.info-content h4 {
  font-size: var(--md-sys-typescale-label-large-font-size);
  font-weight: var(--md-sys-typescale-label-large-font-weight);
  color: var(--md-sys-color-on-surface-variant);
  margin: 0 0 4px 0;
}

.info-content p {
  font-size: var(--md-sys-typescale-body-large-font-size);
  color: var(--md-sys-color-on-surface);
  margin: 0;
}

/* Contact Section */
#contact {
  background-color: var(--md-sys-color-surface);
  padding: 80px 0;
}

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

.contact-card {
  background-color: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 48px;
}

.contact-intro {
  text-align: center;
  margin-bottom: 48px;
}

.contact-intro h3 {
  font-size: var(--md-sys-typescale-headline-medium-font-size);
  font-weight: var(--md-sys-typescale-headline-medium-font-weight);
  color: var(--md-sys-color-on-surface);
  margin: 0 0 16px 0;
}

.contact-intro p {
  font-size: var(--md-sys-typescale-body-large-font-size);
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
}

/* M3 Form Styles */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  position: relative;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 16px;
  font-size: var(--md-sys-typescale-body-large-font-size);
  color: var(--md-sys-color-on-surface);
  background-color: transparent;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-extra-small);
  outline: none;
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.form-field input:focus,
.form-field textarea:focus {
  border-width: 2px;
  border-color: var(--md-sys-color-primary);
  padding: 15px;
}

.form-field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 4px;
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--md-sys-typescale-body-large-font-size);
  pointer-events: none;
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.textarea-field label {
  top: 20px;
  transform: translateY(0);
}

.form-field input:focus~label,
.form-field input:not(:placeholder-shown)~label,
.form-field textarea:focus~label,
.form-field textarea:not(:placeholder-shown)~label {
  top: 0;
  transform: translateY(-50%);
  font-size: var(--md-sys-typescale-body-small-font-size);
  color: var(--md-sys-color-primary);
}

.form-field input:not(:focus):not(:placeholder-shown)~label,
.form-field textarea:not(:focus):not(:placeholder-shown)~label {
  color: var(--md-sys-color-on-surface-variant);
}

.required-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 8px;
  background-color: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
  font-size: var(--md-sys-typescale-label-small-font-size);
  font-weight: var(--md-sys-typescale-label-small-font-weight);
  border-radius: var(--md-sys-shape-corner-small);
  transform: translateY(-50%);
}

.error-message {
  margin-top: 4px;
  font-size: var(--md-sys-typescale-body-small-font-size);
  color: var(--md-sys-color-error);
}

.submit-container {
  text-align: center;
  margin-top: 32px;
}

.submit-btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: var(--md-sys-typescale-label-large-font-size);
  font-weight: var(--md-sys-typescale-label-large-font-weight);
  cursor: pointer;
  transition: all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.submit-btn-modern:hover {
  box-shadow:
    0px 2px 3px 0px rgba(0, 0, 0, 0.30),
    0px 6px 10px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.submit-arrow {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.form-messages {
  margin-top: 24px;
}

.alert {
  padding: 16px;
  border-radius: var(--md-sys-shape-corner-small);
  font-size: var(--md-sys-typescale-body-medium-font-size);
}

.alert-success {
  background-color: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

.alert-error {
  background-color: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}

/* Responsive Design */
@media (max-width: 839px) {
  .service-card {
    flex-direction: column;
    padding: 32px;
    gap: 24px;
  }

  .philosophy-cards {
    grid-template-columns: 1fr;
  }

  .service-feature-cards {
    grid-template-columns: 1fr;
  }

  .company-card {
    padding: 32px 24px;
  }

  .contact-card {
    padding: 32px 24px;
  }
}

@media (max-width: 599px) {
  .top-lead {
    font-size: var(--md-sys-typescale-display-medium-font-size);
    line-height: var(--md-sys-typescale-display-medium-line-height);
  }

  .section-title {
    font-size: var(--md-sys-typescale-headline-large-font-size);
    margin-bottom: 32px;
  }

  section {
    padding: 48px 0;
  }
}

/* Animation Utilities */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile optimizations for hero */
@media (max-width: 599px) {
  .shape-1 {
    width: 300px;
    height: 300px;
  }

  .shape-2 {
    width: 200px;
    height: 200px;
  }

  .shape-3 {
    width: 150px;
    height: 150px;
  }

  /* Underline removed for accent class on mobile */
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  .parallax-bg,
  .shape,
  .top-content {
    animation: none !important;
    transition: none !important;
  }

  .text-animate {
    animation: fadeIn 0.5s ease-out forwards;
  }
}

/* Remove old floating particle styles - now in m3-particles.css */

/* Remove old keyframes - now in m3-particles.css */

/* Dark Theme Adjustments */
[data-theme="dark"] .parallax-bg {
  /* Removed background gradient to avoid interference with #top-main gradient */
  /* Stars should be visible against the #top-main gradient background */
  opacity: 1; /* Full opacity to show stars clearly */
}

/* Dark mode particle styles moved to m3-particles.css */

[data-theme="dark"] .shape {
  filter: blur(60px);
}

[data-theme="dark"] .shape-1 {
  background: radial-gradient(circle at 30% 30%,
      var(--md-sys-color-primary) 0%,
      transparent 60%);
}

[data-theme="dark"] .shape-2 {
  background: radial-gradient(circle at 70% 70%,
      var(--md-sys-color-secondary) 0%,
      transparent 60%);
}

[data-theme="dark"] .shape-3 {
  background: radial-gradient(circle at 50% 50%,
      var(--md-sys-color-tertiary) 0%,
      transparent 60%);
}

[data-theme="dark"] .top-lead {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-field label {
  background-color: var(--md-sys-color-surface-container);
}

/* Philosophy Cards - Enhanced elevation in dark mode */
[data-theme="dark"] .philosophy-card {
  background-color: var(--md-sys-color-surface-container-high);
  /* Stronger shadows for better visibility in dark mode */
  box-shadow:
    0px 2px 4px 0px rgba(0, 0, 0, 0.50),
    0px 4px 8px 3px rgba(0, 0, 0, 0.30);
}

[data-theme="dark"] .philosophy-card:hover {
  box-shadow:
    0px 4px 6px 0px rgba(0, 0, 0, 0.50),
    0px 8px 12px 6px rgba(0, 0, 0, 0.30);
  background-color: var(--md-sys-color-surface-container-highest);
}

/* Service Cards - Enhanced elevation in dark mode */
[data-theme="dark"] .service-card {
  background-color: var(--md-sys-color-surface-container-high);
  /* Stronger shadows for better visibility in dark mode */
  box-shadow:
    0px 2px 4px 0px rgba(0, 0, 0, 0.50),
    0px 4px 8px 3px rgba(0, 0, 0, 0.30);
}

[data-theme="dark"] .service-card:hover {
  box-shadow:
    0px 4px 6px 0px rgba(0, 0, 0, 0.50),
    0px 8px 12px 6px rgba(0, 0, 0, 0.30);
  background-color: var(--md-sys-color-surface-container-highest);
}