:root {
  --primary: #ff6900;
  --primary-light: #ff8930;
  --primary-dark: #e05500;
  --primary-transparent: rgba(255, 105, 0, 0.1);
  --primary-glow: rgba(255, 105, 0, 0.5);
  --text: #1a1a1a;
  --text-light: #6a6a6a;
  --background: #ffffff;
  --background-alt: #f8f8f8;
  --card-bg: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --primary: #ff6900;
  --primary-light: #ff8930;
  --primary-dark: #e05500;
  --primary-transparent: rgba(255, 105, 0, 0.15);
  --primary-glow: rgba(255, 105, 0, 0.5);
  --text: #f0f0f0;
  --text-light: #a0a0a0;
  --background: #121212;
  --background-alt: #1e1e1e;
  --card-bg: #1e1e1e;
  --border: rgba(255, 255, 255, 0.1);
}

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

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Background Elements */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  animation: float 15s ease-in-out infinite;
}

.gradient-sphere-1 {
  background: radial-gradient(circle, var(--primary) 0%, var(--primary-transparent) 70%);
  width: 80vh;
  height: 80vh;
  top: -20vh;
  left: -20vh;
  animation-delay: 0s;
}

.gradient-sphere-2 {
  background: radial-gradient(circle, var(--primary-light) 0%, rgba(255, 255, 255, 0) 70%);
  width: 60vh;
  height: 60vh;
  bottom: -10vh;
  right: -10vh;
  animation-delay: -7s;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.theme-toggle svg {
  color: var(--text);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: scale(0.5);
  position: absolute;
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: scale(1);
  position: absolute;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: scale(0.5);
}

/* Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  padding: 20px 0;
  height: 10vh;
  min-height: 60px;
  max-height: 80px;
  animation: fadeIn 0.8s ease forwards;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  /* background: var(--primary); */
  color: white;
  box-shadow: 0 5px 15px rgba(255, 105, 0, 0.3);
}

.logo-text {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
}

/* Add these styles for the button text */
.button-text {
  display: inline-block;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  height: 40px;
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.nav-button:hover svg {
  transform: translateX(4px);
}

/* Main Content */
.welcome-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0;
  overflow: hidden;
  height: calc(85vh - 60px); /* Adjusted to leave space for footer */
}

.welcome-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5vh;
  position: relative;
  z-index: 1;
  animation: fadeIn 1s ease forwards;
}

.welcome-text h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2vh;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 10px;
  background: var(--primary-transparent);
  bottom: 5px;
  left: 0;
  z-index: -1;
  border-radius: 4px;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* CTA Buttons */
.cta-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 5vh;
  animation: slideUp 0.8s 0.3s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(5px);
}

.primary {
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 10px 20px rgba(255, 105, 0, 0.3);
}

.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 105, 0, 0.4);
}

.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.secondary:hover {
  background: var(--background-alt);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-transparent) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.6;
}

.e1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation: float 20s infinite alternate;
}

.e2 {
  width: 150px;
  height: 150px;
  top: 60%;
  left: 5%;
  animation: float 25s infinite alternate-reverse;
}

.e3 {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 10%;
  animation: float 18s infinite alternate;
}

.e4 {
  width: 120px;
  height: 120px;
  bottom: 15%;
  right: 15%;
  animation: float 22s infinite alternate-reverse;
}

.e5 {
  width: 60px;
  height: 60px;
  bottom: 40%;
  left: 20%;
  animation: float 15s infinite alternate;
}

/* Mini Footer */
.mini-footer {
  height: 5vh;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
  animation: fadeIn 0.8s 1s ease forwards;
  opacity: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Text Animation */
.animate-text {
  position: relative;
  display: inline-block;
}

.animate-text::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  border-left: 3px solid var(--primary);
  background-color: var(--background);
  animation: typing 3s steps(30) 1s forwards;
}

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

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(5px, 15px) rotate(5deg);
  }
  50% {
    transform: translate(-5px, 10px) rotate(-5deg);
  }
  75% {
    transform: translate(10px, -5px) rotate(3deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

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

@keyframes typing {
  to {
    width: 0;
  }
}

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

.hover-pulse {
  animation: pulse 1.5s infinite;
}

/* Media Queries */
@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 10px;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .welcome-text h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
  }

  .mini-footer {
    height: auto;
    padding: 10px 0;
  }

  /* Keep the header layout consistent but make elements smaller */
  .logo-icon {
    width: 35px;
    height: 35px;
  }

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

  .nav-button {
    font-size: 0.8rem;
    padding: 8px 16px;
    height: 35px;
  }

  .theme-toggle {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  /* Keep the same row layout as desktop */
  .header-content {
    flex-direction: row; /* Keep as row */
    justify-content: space-between;
    align-items: center;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduce gap on small screens */
  }

  .nav-button {
    font-size: 0.75rem;
    padding: 6px 12px;
    height: 32px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px; /* Prevent shrinking */
  }

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

  .welcome-content {
    padding: 0;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .footer-links {
    gap: 10px;
    font-size: 0.8rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .button-text {
    display: none;
  }

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

  .nav-button {
    padding: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-button svg {
    margin: 0;
  }

  .header-actions {
    gap: 6px;
  }
}

/* Height-based adjustments */
@media (max-height: 600px) {
  .welcome-text h1 {
    font-size: clamp(1.5rem, 5vh, 2.5rem);
    margin-bottom: 1vh;
  }

  .subtitle {
    font-size: clamp(0.8rem, 2vh, 1rem);
  }

  .cta-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .cta-container {
    margin-bottom: 3vh;
  }

  .mini-footer {
    min-height: 30px;
  }
}
