/* CSS Variables */
:root {
  /* Light Mode Colors */
  --background: #e0e8eb;
  --foreground: #141c1f;
  --card: #c1d2d7;
  --card-foreground: #141c1f;
  --primary: #658e9c;
  --primary-foreground: #e0e8eb;
  --muted-foreground: #3c555d;
  --border: #a2bbc3;
  --radius: 0.625rem;
}

.dark {
  /* Dark Mode Colors - Dark Blue/Navy Theme */
  --background: #1a2332;
  --foreground: #e8e8e8;
  --card: #28393e;
  --card-foreground: #ffffff;
  --primary: #658e9c;
  --primary-foreground: #e0e8eb;
  --muted-foreground: #a2bbc3;
  --border: #28393e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  overflow-y: visible;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 3rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 6rem;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  max-width: none;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  width: 100%;
}

/* Floating Background SVGs */
.floating-svg {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  color: #658e9c;
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
  z-index: 0;
}

/* Different shades of air force blue - positioned to be partially visible like business card */
.svg-1 { color: #658e9c; top: -10%; left: -5%; }
.svg-2 { color: #7ba3b0; top: 15%; right: -8%; }
.svg-3 { color: #a2bbc3; top: 70%; left: -10%; }
.svg-4 { color: #8fb0ba; top: 45%; right: -5%; }
.svg-5 { color: #5a7d8a; top: 75%; right: -12%; }
.svg-6 { color: #9bb5c0; top: 65%; left: -8%; }
.svg-7 { color: #6d95a2; top: 80%; left: 20%; }
.svg-8 { color: #7fa8b4; top: 30%; left: 45%; }

/* Floating animations */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -30px) rotate(5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-25px, 25px) rotate(-5deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(15px, 20px) rotate(3deg); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, -20px) rotate(-3deg); }
}

@keyframes float5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, 15px) rotate(4deg); }
}

@keyframes float6 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-15px, -25px) rotate(-4deg); }
}

@keyframes float7 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(25px, 10px) rotate(2deg); }
}

@keyframes float8 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10px, 30px) rotate(-2deg); }
}

.svg-1 { animation: float1 8s ease-in-out infinite; }
.svg-2 { animation: float2 10s ease-in-out infinite; }
.svg-3 { animation: float3 12s ease-in-out infinite; }
.svg-4 { animation: float4 9s ease-in-out infinite; }
.svg-5 { animation: float5 11s ease-in-out infinite; }
.svg-6 { animation: float6 13s ease-in-out infinite; }
.svg-7 { animation: float7 7s ease-in-out infinite; }
.svg-8 { animation: float8 14s ease-in-out infinite; }

/* Intensify on hover */
.content:has(.hero .container:hover) .floating-svg {
  opacity: 0.25;
  filter: brightness(1.4) saturate(1.3);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 6rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--foreground);
  opacity: 0.85;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1.375rem;
  }
}

/* Content Container */
.content {
  position: relative;
  overflow: hidden;
}

/* Bottom SVGs positioning - positioned for features section */
.svg-bottom-1 { color: #658e9c; top: calc(100vh - 8%); right: -5%; }
.svg-bottom-2 { color: #7ba3b0; top: calc(100vh + 25%); left: -8%; }
.svg-bottom-3 { color: #a2bbc3; top: calc(100vh + 70%); right: -12%; }
.svg-bottom-4 { color: #8fb0ba; top: calc(100vh + 50%); right: 10%; }

/* Floating animations for bottom SVGs */
@keyframes float-bottom-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-25px, 20px) rotate(-5deg); }
}

@keyframes float-bottom-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -15px) rotate(4deg); }
}

@keyframes float-bottom-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-15px, -20px) rotate(-3deg); }
}

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

.svg-bottom-1 { animation: float-bottom-1 9s ease-in-out infinite; }
.svg-bottom-2 { animation: float-bottom-2 11s ease-in-out infinite; }
.svg-bottom-3 { animation: float-bottom-3 13s ease-in-out infinite; }
.svg-bottom-4 { animation: float-bottom-4 10s ease-in-out infinite; }

/* Intensify on hover for features section */
.content:has(.features:hover) .floating-svg {
  opacity: 0.25;
  filter: brightness(1.4) saturate(1.3);
}

/* Features Section */
.features {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.features .container {
  width: 100%;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--foreground);
  opacity: 0.85;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Feature Card */
.feature-card {
  position: relative;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background-color: var(--card);
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
}

.feature-card:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  opacity: 0.2;
  pointer-events: none;
}

.feature-icon {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  background-color: var(--card);
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-text {
  text-align: center;
  color: var(--muted-foreground);
}

/* Login Button */
.login-button {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.login-button:focus {
  outline: none;
  border-color: var(--primary);
  color: var(--primary);
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 2px solid #666666;
  background-color: #b8c5d0;
  color: #000000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: #5a6b7a;
  border-color: #6b7a8a;
}

.theme-toggle:focus {
  outline: none;
  border-color: var(--primary);
}

.dark .theme-toggle {
  color: #cacf85;
  background-color: #3a3a2a;
  border-color: #2a2a1f;
}

.dark .theme-toggle:hover {
  background-color: #4a4a3a;
  border-color: #6ba3d3;
  color: #ffffff;
}

.theme-icon {
  width: 1.25rem;
  height: 1.25rem;
}

#theme-icon-sun {
  display: none;
}

#theme-icon-moon {
  display: block;
}

.dark #theme-icon-sun {
  display: block;
}

.dark #theme-icon-moon {
  display: none;
}

/* Down Arrow */
.down-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  color: var(--foreground);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  animation: bounce 2s infinite;
}

.down-arrow:hover {
  opacity: 1;
  transform: translate(-50%, 5px);
}

.down-arrow svg {
  width: 32px;
  height: 32px;
}

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

/* Responsive */
@media (max-width: 640px) {
  .login-button {
    top: 1rem;
    right: 1rem;
    height: 2.25rem;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
  }
  
  .theme-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .theme-icon {
    width: 1.125rem;
    height: 1.125rem;
  }
  
  .down-arrow {
    bottom: 1.5rem;
  }
  
  .down-arrow svg {
    width: 24px;
    height: 24px;
  }
}
