/* ==========================================================================
   Corgi Like - Main Stylesheet
   Theme: Dark Cyber Glassmorphism & Modern Luxury Tech
   ========================================================================== */

:root {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette */
  --bg-dark: #080a12;
  --bg-card: rgba(18, 22, 38, 0.65);
  --bg-card-hover: rgba(28, 34, 58, 0.8);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-glow: rgba(0, 242, 254, 0.35);

  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --accent-gold: #ffb703;
  --accent-magenta: #e056fd;
  
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-gold: 0 0 25px rgba(255, 183, 3, 0.25);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --transition-fast: 0.25s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
}

/* Background Layer */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: scale(1.02);
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(8, 10, 18, 0.65), rgba(8, 10, 18, 0.95) 85%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.4;
  animation: orbFloat 14s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-cyan), transparent);
}

.orb-2 {
  bottom: 10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-magenta), transparent);
  animation-delay: -5s;
}

.orb-3 {
  top: 45%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-gold), transparent);
  animation-delay: -8s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.15); }
}

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

/* Typography & General Classes */
h1, h2, h3, h4, h5 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, #a855f7 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glass-glow);
}

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 10, 18, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.logo-img-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-cyan);
}

.brand-name {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-name .highlight {
  color: var(--primary-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-cyan);
}

.btn-nav-contact {
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary-cyan);
}

.btn-nav-contact:hover {
  background: var(--primary-cyan);
  color: #000;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse 1.5s infinite;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: #050b14;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.5);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary-cyan);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.icon-flash {
  color: var(--accent-gold);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

/* Countdown */
.countdown-wrapper {
  background: rgba(15, 20, 35, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 32px;
  max-width: 500px;
}

.countdown-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-width: 64px;
}

.timer-value {
  font-family: var(--font-secondary);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-cyan);
}

.timer-unit {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.timer-colon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.visual-card-wrapper {
  position: relative;
}

.visual-card {
  padding: 36px 28px;
  text-align: center;
}

.visual-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-cyan);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.4);
  margin-bottom: 20px;
  animation: floatLogo 6s infinite ease-in-out;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(220, 86, 253, 0.15);
  border: 1px solid rgba(220, 86, 253, 0.4);
  color: var(--accent-magenta);
  font-size: 0.85rem;
  font-weight: 600;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.badge-top-right {
  top: -20px;
  right: -15px;
}

.badge-bottom-left {
  bottom: -20px;
  left: -15px;
}

.text-cyan { color: var(--primary-cyan); }
.text-gold { color: var(--accent-gold); }

/* Teaser Grid Section */
.teaser-section {
  padding: 80px 0;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.teaser-card {
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.teaser-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(127, 0, 255, 0.15));
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-cyan);
  margin-bottom: 20px;
}

.teaser-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.teaser-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.teaser-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

/* Features Section */
.features-section {
  padding: 40px 0 80px;
}

.features-box {
  padding: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.feature-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact & Proposals Section */
.contact-section {
  padding: 80px 0;
}

.contact-wrapper {
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.required {
  color: var(--primary-cyan);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 44px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrapper textarea {
  padding-left: 16px;
  resize: vertical;
  min-height: 120px;
}

.input-wrapper select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2594a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.input-wrapper select option {
  background: #0d1222;
  color: #ffffff;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon {
  color: var(--primary-cyan);
}

.label-with-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.error-text {
  font-size: 0.8rem;
  color: #ff5252;
  display: none;
}

.form-group.has-error .error-text {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #ff5252;
}

.form-actions {
  margin-top: 10px;
}

.btn-submit {
  width: 100%;
  position: relative;
}

.spinner {
  display: none;
  font-size: 1.2rem;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .spinner {
  display: inline-block;
}

/* Success Box */
.success-box {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.success-box.hidden {
  display: none;
}

.success-icon-wrap {
  font-size: 3.5rem;
  color: var(--primary-cyan);
  margin-bottom: 16px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-box h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.success-box p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ref-code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.highlight-email {
  color: var(--primary-cyan);
  font-weight: 600;
}

.small-note {
  font-size: 0.88rem;
  margin-bottom: 24px;
}

/* Submissions History */
.submissions-history {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.submissions-history h4 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.history-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.history-topic {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
}

.empty-history {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Footer */
.site-footer {
  background: rgba(4, 6, 12, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 380px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

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

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

.footer-col h5 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-col a, .footer-col span {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.gh-pages-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .countdown-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .badge-top-right, .badge-bottom-left {
    position: static;
    margin: 10px auto;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(8, 10, 18, 0.95);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .contact-wrapper {
    padding: 28px 18px;
  }
}
