/* Base Styles */
:root {
  --primary-color: #66a5a1;
  --secondary-color: #00ff7f;
  --accent-color: #001408;
  --text-color: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --bg-gradient: linear-gradient(to bottom, #66a5a1, #001408, #001408);
  --card-gradient: linear-gradient(145deg, rgba(102, 165, 161, 0.1), rgba(0, 255, 127, 0.05));
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow: 0 8px 32px rgba(102, 165, 161, 0.1);
  --glow-shadow: 0 0 25px rgba(102, 165, 161, 0.4);
  --section-spacing: 100vh;
  --blur-amount: 10px;
  --scroll-offset: 0px;

  /* Adding missing color variables */
  --color-primary: #66a5a1;
  --color-primary-dark: #4a8278;
  --color-background: #001408;
}

/* Navigation Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem;
  background: transparent;
  backdrop-filter: none;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

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

.logo-text {
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.menu-container {
  position: relative;
  z-index: 1000;
}

.menu-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1001;
  display: block;
  width: 100%;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(14, 41, 44, 0.95);
  backdrop-filter: blur(10px);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 8px;
  z-index: 1002;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: dropdownFadeIn 0.3s ease forwards;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00ff7f;
  padding-left: 20px;
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  font-weight: 300;
  letter-spacing: 2px;
}

html {
  scroll-behavior: auto !important;
  scroll-padding-top: 20px;
  font-size: 16px;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  min-height: 100vh;
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  overscroll-behavior-y: contain;
  scroll-snap-type: none;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-scrolling {
  pointer-events: none;
}

body.is-scrolling * {
  pointer-events: none !important;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/></svg>');
  z-index: 1;
  pointer-events: none;
}

/* Layout Components */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.page-section.active,
.page-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding-bottom: 80px;
}

/* Title and Description Styles */
.title {
  text-align: center;
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  margin-bottom: 30px;
}

.title h1 {
  font-size: 3.2em;
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 50px rgba(102, 165, 161, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 600;
}

.title h1:hover {
  text-shadow: 0 0 70px rgba(0, 255, 127, 0.5);
}

.description-wrapper {
  max-width: 700px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.3s;
  margin: 40px auto;
}

.description {
  font-size: 1.4em;
  line-height: 1.8;
  color: var(--text-secondary);
  padding: 0 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Feature Cards */
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.6s;
  perspective: 1000px;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.feature-card {
  background: rgba(102, 165, 161, 0.05);
  padding: 30px;
  border-radius: 16px;
  width: calc(33% - 27px);
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  transition: var(--transition-smooth);
  transform-style: preserve-3d;
  cursor: pointer;
  border: 1px solid rgba(102, 165, 161, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin: 10px 0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(102, 165, 161, 0.15);
}

.feature-icon {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  transition: transform 0.6s ease;
  display: inline-block;
}

.feature-card:hover .feature-icon {
  transform: rotate(360deg) scale(1.2);
  color: var(--secondary-color);
}

.feature-card h3 {
  color: var(--primary-color);
  margin: 15px 0;
  font-size: 1.4em;
  transition: color 0.3s ease;
  font-weight: 500;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.1em;
  margin-top: 10px;
}

/* Contact Form Styles */
.contact-section {
  width: 100%;
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-description {
  margin-bottom: 50px !important;
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 700px;
  text-align: center;
  color: var(--text-secondary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-form {
  width: 100%;
  max-width: 600px;
  padding: 40px;
  border-radius: 20px;
  background: rgba(31, 75, 72, 0.373);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid rgba(102, 165, 161, 0.2);
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(102, 165, 161, 0.1);
  transition: var(--transition-smooth);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 1em;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(31, 75, 72, 0.373);
  border: 1px solid rgba(102, 165, 161, 0.08);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.4;
  transition: var(--transition-smooth);
  backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.484);
  transition: var(--transition-smooth);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(52, 107, 103, 0.373);
  border-color: rgba(102, 165, 161, 0.1);
  box-shadow: 0 0 20px rgba(102, 165, 161, 0.03);
  transform: scale(1.01);
}

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

/* Button Styles */
.submit-button,
.cta-button {
  width: 100%;
  padding: 16px 32px;
  border: 1px solid rgba(102, 165, 161, 0.08);
  border-radius: 12px;
  background: rgba(102, 165, 161, 0.03);
  color: var(--text-color);
  font-size: 1.1em;
  font-weight: 300;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  will-change: transform, background-color, border-color, box-shadow;
}

.submit-button .button-text,
.submit-button .send-icon,
.submit-button .success-icon,
.submit-button .error-icon {
  transition: var(--transition-smooth);
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-3px);
  background: rgba(102, 165, 161, 0.05);
  border-color: rgba(102, 165, 161, 0.1);
  box-shadow: 0 0 30px rgba(102, 165, 161, 0.05);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-button .spinner,
.submit-button .success-icon,
.submit-button .error-icon {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.submit-button:hover:not(:disabled) .send-icon {
  transform: translateX(5px);
}

.submit-button.loading .button-text,
.submit-button.loading .send-icon,
.submit-button.success .button-text,
.submit-button.success .send-icon,
.submit-button.error .button-text,
.submit-button.error .send-icon {
  opacity: 0;
  transform: translateY(10px);
}

.submit-button.loading .spinner {
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--text-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-button.success .success-icon {
  display: block;
  color: var(--secondary-color);
  animation: scaleIn 0.3s ease forwards;
}

.submit-button.error .error-icon {
  display: block;
  color: #ff4c4c;
  animation: scaleIn 0.3s ease forwards;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  font-size: 0.95em;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  will-change: opacity, transform;
}

.form-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-message.error {
  background: rgba(255, 76, 76, 0.1);
  border: 1px solid rgba(255, 76, 76, 0.2);
  color: #ff4c4c;
}

.form-message.success {
  background: rgba(0, 255, 127, 0.1);
  border: 1px solid rgba(0, 255, 127, 0.2);
  color: var(--secondary-color);
}

.form-message .success-icon,
.form-message .error-icon {
  display: none;
  font-size: 1.2em;
}

.form-message.success .success-icon,
.form-message.error .error-icon {
  display: inline-block;
  animation: scaleIn 0.3s ease;
}

@keyframes spin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes scaleIn {
  from {
    transform: translateX(-50%) scale(0);
  }
  to {
    transform: translateX(-50%) scale(1);
  }
}

/* Scroll Indicators */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.2em;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  text-shadow: 0 0 25px rgba(102, 165, 161, 0.5);
  margin-top: 30px;
}

.scroll-indicator.active {
  transform: translateX(-50%) translateY(10px);
  opacity: 0.7;
}

/* Intersection Observer Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor Glow Effect */
.cursor-glow {
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, rgba(102, 165, 161, 0.5) 0%, rgba(102, 165, 161, 0) 70%);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: var(--transition-smooth);
}

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

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

/* Media Queries */
@media (max-width: 1024px) {
  .features {
    gap: 30px;
  }

  .feature-card {
    width: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .page-section {
    padding: 40px 20px;
    min-height: 100vh;
    height: auto;
  }

  .title h1 {
    font-size: 2em;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .feature-card {
    background: rgba(102, 165, 161, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    transform-style: flat;
    margin: 10px auto;
  }

  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(102, 165, 161, 0.15);
  }

  .back-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
  }

  .back-link span {
    display: none;
  }

  :root {
    --section-spacing: 100vh;
  }

  .section-content {
    padding: 15px;
  }

  .scroll-indicator {
    bottom: 15px;
    font-size: 1.8em;
    width: 40px;
    height: 40px;
  }

  .section-content {
    padding-bottom: 60px;
  }

  .contact-section {
    padding: 40px 20px;
  }

  .contact-form {
    padding: 30px;
  }

  .section-title {
    font-size: 2em;
  }

  .section-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1em;
  }

  .contact-description {
    margin-bottom: 40px !important;
    font-size: 1.1em;
  }

  .menu-container {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    right: 0;
    min-width: 180px;
  }

  .menu-button {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .dropdown-menu a {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .page-section {
    padding: 30px 15px;
  }
  .title h1 {
    font-size: 1.7em;
  }
  .description {
    font-size: 1em;
  }
  .contact-form {
    width: 95%;
    padding: 25px;
  }

  .combined-section .section-content {
    gap: 30px;
    padding: 30px 10px;
  }

  .section-title {
    font-size: 1.6em;
  }

  .features {
    padding: 0 15px;
    gap: 20px;
  }

  .feature-card {
    padding: 25px;
  }

  .section-title {
    font-size: 1.8em;
  }

  .section-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1em;
  }

  .contact-description {
    margin-bottom: 30px !important;
    font-size: 1em;
  }

  .menu-button {
    padding: 7px 12px;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  .dropdown-menu {
    min-width: 160px;
  }

  .dropdown-menu a {
    padding: 10px 12px;
    letter-spacing: 1.5px;
  }
}

@media (max-height: 600px) {
  .scroll-indicator {
    bottom: 10px;
    font-size: 1.5em;
    width: 35px;
    height: 35px;
  }

  .section-content {
    padding-bottom: 50px;
  }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
  .page-section {
    min-height: -webkit-fill-available;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }

  .features-section,
  .contact-section {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 12px;
  }
}

/* Safari Specific Fixes */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    .page-section,
    .features-section,
    .contact-section {
      transform: translate3d(0, 0, 0);
      -webkit-transform: translate3d(0, 0, 0);
      transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  :root {
    scroll-behavior: auto;
  }

  .scroll-indicator.down {
    animation: none;
  }

  .page-section {
    transition: none;
  }
}

/* Combined Section Styles */
.combined-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  position: relative;
}

.combined-section .section-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.features-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  padding: 40px 20px;
}

.features-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  width: 100%;
  max-width: 1200px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(102, 165, 161, 0.4);
}

.section-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  padding: 0 20px;
}

/* Contact section adjustments */
.contact-section {
  margin-top: 0;
  padding-top: 60px;
}

@media (max-width: 768px) {
  .combined-section {
    height: auto;
    min-height: 100vh;
  }

  .combined-section .section-content {
    padding: 20px;
  }

  .features-section {
    padding: 20px;
  }

  .features {
    gap: 25px;
    margin: 20px 0;
  }

  .section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .combined-section {
    padding: 15px;
  }

  .combined-section .section-content {
    padding: 15px;
  }

  .features-section {
    padding: 15px;
  }

  .features {
    gap: 20px;
    margin: 15px 0;
  }

  .section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
}

/* Thank You Page Styles */
.thank-you-section {
  text-align: center;
  padding: 4rem 2rem;
}

.thank-you-section .title h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-primary);
  margin: 2rem 0;
  animation: scaleIn 0.5s ease-out;
}

.thank-you-section .description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-background);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.home-button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(102, 165, 161, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 165, 161, 0.2);
  color: var(--text-color);
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(102, 165, 161, 0.1);
}

.scroll-to-top:hover {
  background: rgba(102, 165, 161, 0.2);
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(102, 165, 161, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top i {
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
  transform: translateY(-2px);
}

/* Override autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px rgba(31, 75, 72, 0.373) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.footer {
  position: relative;
  padding: 2rem 0;
  text-align: center;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  html {
    font-size: 18px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .menu-button {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .dropdown-menu a {
    font-size: 1rem;
    padding: 14px 20px;
  }
}

/* Desktop and Laptop (1024px to 1439px) */
@media (max-width: 1024px) {
  html {
    font-size: 16px;
  }
}

/* Tablet Landscape (768px to 1023px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .logo-text {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }

  .menu-button {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .dropdown-menu {
    min-width: 180px;
  }

  .dropdown-menu a {
    font-size: 0.85rem;
    padding: 10px 14px;
  }
}

/* Tablet Portrait (481px to 767px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .logo-text {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  .menu-button {
    font-size: 0.8rem;
    padding: 7px 12px;
    letter-spacing: 1.5px;
  }

  .dropdown-menu {
    min-width: 160px;
  }

  .dropdown-menu a {
    padding: 10px 12px;
    letter-spacing: 1.5px;
  }
}

/* Mobile (320px to 480px) */
@media (max-width: 320px) {
  html {
    font-size: 13px;
  }

  .logo-text {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .menu-button {
    font-size: 0.75rem;
    padding: 6px 10px;
    letter-spacing: 1px;
  }

  .dropdown-menu {
    min-width: 140px;
  }

  .dropdown-menu a {
    font-size: 0.75rem;
    padding: 8px 10px;
    letter-spacing: 1px;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
  .menu-button {
    padding: 6px 12px;
  }

  .dropdown-menu {
    max-height: 60vh;
    overflow-y: auto;
  }

  .dropdown-menu a {
    padding: 8px 12px;
  }
}
