/* 
 * Main Stylesheet for Orbicyn
 * Combines styles from styles.css and index.min.css
 */

/* ===== Base Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Exo:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Variables */
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --background: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #000000;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-attachment: fixed;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #010101;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 2.75rem;
  width: auto;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: 'Exo', sans-serif;
}

.mobile-menu-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* ===== Hero Section ===== */
.hero {
  padding: 7rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

@keyframes rotate {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(-360deg);
  }
}

.hero-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}

.hero-logo-wrapper {
  display: inline-block;
}

.hero-logo {
  width: 285px;
  height: 285px;
  border-radius: 1rem;
  animation: 
    rotate 8s linear infinite,
    float 6s ease-in-out infinite;
  transform-style: preserve-3d;
  backface-visibility: visible;
  perspective: 1000px;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  will-change: transform, filter;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.hero-logo:hover {
  animation: 
    rotate 4s linear infinite,
    float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.7));
  transform: scale(1.05);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Exo', sans-serif;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.title-line-1,
.title-line-2 {
  display: block;
}

/* ===== Form Styles ===== */
.form-section {
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-heading {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 2rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Exo', sans-serif;
}

.form-container {
  width: 100%;
  margin: 0 auto;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  width: 100%;
  position: relative;
}

.email-input {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-appearance: none;
  appearance: none;
  height: 54px;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 56px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.submit-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.submit-btn:hover svg {
  transform: translateX(2px);
}

.message {
  position: relative;
  margin: 1.5rem auto 0;
  padding: 0;
  border-radius: 12px;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  pointer-events: none;
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
}

.message.show {
  opacity: 1;
  max-height: 200px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  transform: translateY(0);
  pointer-events: auto;
  animation: messageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
    height: 0;
    padding: 0;
    margin-top: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
  }
}

.message.success {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.message.success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px 2px 0 0;
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(10px);
}

.message.error::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ef4444, #f87171);
  border-radius: 2px 2px 0 0;
}

/* Social Links */
.social-link {
  text-align: center;
  margin-top: 2.5rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 1;
}

.twitter-link {
  color: #1DA1F2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.twitter-link:hover {
  color: #1a8cd8;
}

.twitter-link i {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.twitter-link:hover i {
  transform: scale(1.1);
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Loading Spinner */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-description {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .main-heading {
    font-size: 2rem;
  }
  
  .email-input,
  .submit-btn {
    height: 50px;
  }
  
  .mobile-menu-button {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .main-heading {
    font-size: 1.75rem;
  }
  
  .header-container,
  .hero-container {
    padding: 0 1.25rem;
  }
  
  .logo {
    height: 2.25rem;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
}
