@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Montserrat:wght@700;800&family=Poppins:wght@600;700&display=swap');

:root {
  --primary: #38BDF8;
  --accent: #F472B6;
  --secondary: #0F172A;
  --card-bg: #1E293B;
  --card-bg-glass: rgba(30, 41, 59, 0.6);
  --glow: #22D3EE;
  --text-light: #F8FAFC;
  --text-muted: #94A3B8;
  
  --font-heading: 'Poppins', 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--secondary);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(244, 114, 182, 0.1), transparent 40%);
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--glow), 0 0 20px var(--glow);
  animation: float 10s infinite ease-in-out;
  opacity: 0.5;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 0.8; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3));
}

h2 {
  font-size: 2.2rem;
  color: var(--text-light);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s ease;
}

a:hover {
  color: var(--glow);
  text-shadow: 0 0 8px var(--glow);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation - Top */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--primary);
  filter: drop-shadow(0 0 5px var(--primary));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--glow);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--glow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Navigation - Bottom (Mobile) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  z-index: 1000;
  padding: 0.5rem 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-list {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  gap: 4px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active svg {
  filter: drop-shadow(0 0 8px var(--primary));
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--glow));
  color: var(--secondary);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.6);
  color: var(--secondary);
}

.btn-accent {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--text-light);
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.2), inset 0 0 10px rgba(244, 114, 182, 0.2);
}

.btn-accent:hover {
  background: rgba(244, 114, 182, 0.1);
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.4), inset 0 0 15px rgba(244, 114, 182, 0.4);
  transform: translateY(-3px);
  color: var(--text-light);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: 0.3s;
  cursor: pointer;
}

.btn-icon:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 1.5rem 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 10;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 2.5rem;
  color: var(--text-light);
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.floating-icon {
  position: absolute;
  filter: drop-shadow(0 0 15px var(--glow));
  animation: float-icon 6s infinite ease-in-out alternate;
  opacity: 0.7;
  z-index: 5;
}

.icon-1 { top: 20%; left: 15%; color: var(--primary); animation-delay: 0s; width: 48px; }
.icon-2 { bottom: 25%; right: 15%; color: var(--accent); animation-delay: 2s; width: 64px; }
.icon-3 { top: 30%; right: 20%; color: var(--glow); animation-delay: 1s; width: 40px; }
.icon-4 { bottom: 30%; left: 20%; color: #A855F7; animation-delay: 3s; width: 56px; }

@keyframes float-icon {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-30px) rotate(10deg); }
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-header h2 {
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: -10px;
  left: 25%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 10px var(--primary);
}

/* Glassmorphism Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

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

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

.glass-card {
  background: var(--card-bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5),
              0 0 20px rgba(56, 189, 248, 0.2) inset;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary);
  font-size: 1.8rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  transition: 0.3s;
}

.glass-card:hover .card-icon {
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.card-desc {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Post Cards */
.post-card {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-heading);
}

.author-info h4 {
  margin: 0;
  font-size: 0.9rem;
}

.author-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: 0.3s;
}

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

.action-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-btn.like:hover {
  color: var(--accent);
}

.action-btn.like:hover svg {
  fill: rgba(244, 114, 182, 0.2);
  filter: drop-shadow(0 0 5px var(--accent));
}

/* How It Works */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: dashed 2px rgba(56, 189, 248, 0.3);
    z-index: -1;
  }
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-light);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.8);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Legal Pages Content */
.legal-content {
  background: var(--card-bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 2rem;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15,23,42,1) 0%, rgba(30,41,59,0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Footer */
footer {
  background: #0B1120;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  margin-top: 5rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 15px var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-about p {
  margin-top: 1rem;
  max-width: 300px;
}

.footer-title {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .top-nav .nav-links {
    display: none;
  }
  
  .bottom-nav {
    display: block;
  }
  
  body {
    padding-bottom: 70px;
  }
  
  footer {
    padding-bottom: 100px;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Image styling */
.img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

.featured-img-container {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.glass-card:hover .featured-img {
  transform: scale(1.05);
}

/* Animations Triggered by JS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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