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

:root {
  --primary-navy: #1a2a42;
  --accent-mint: #83d8b3;
  --accent-silver: #b0b5b9;
  --text-light: #f8fafc;
  --text-dark: #1e293b;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1a2a42 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(26, 42, 66, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.logo-text {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-mint);
}

.btn-primary {
  background-color: var(--accent-mint);
  color: var(--primary-navy);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(131, 216, 179, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(131, 216, 179, 0.5);
  background-color: #9cfce0;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-silver);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--accent-silver);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(176, 181, 185, 0.1);
  color: #fff;
  border-color: #fff;
}

/* Hero Section */
.hero {
  padding: 8rem 5% 6rem 5%;
  text-align: center;
  position: relative;
  background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(26, 42, 66, 0.95)), url('./hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-bottom: 1px solid var(--glass-border);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, var(--accent-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  color: var(--accent-silver);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Sections General */
section {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--accent-mint);
}

/* Glass Card Style */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Calculator & Form layout */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent-silver);
}

.form-control {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-mint);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(131, 216, 179, 0.2);
}

/* Calculator Result */
.result-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(131, 216, 179, 0.1);
  border-left: 4px solid var(--accent-mint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-label {
  font-size: 1.2rem;
  font-weight: 600;
}

.result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-mint);
}

/* Success Page */
#success-page {
  display: none;
  max-width: 900px;
  margin: 0 auto;
}

.address-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.address-card:hover {
  transform: translateX(10px);
  border-color: rgba(131, 216, 179, 0.5);
}

.address-title {
  color: var(--accent-mint);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.address-desc {
  color: var(--accent-silver);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.address-content {
  background: rgba(0,0,0,0.3);
  padding: 1rem;
  border-radius: 8px;
  font-family: monospace;
  white-space: pre-wrap;
  color: #fff;
  border-left: 3px solid var(--accent-silver);
}

/* Footer */
footer {
  margin-top: auto;
  padding: 2rem 5%;
  background: #0f172a;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none; /* simple mobile nav */
  }
}

/* Hidden Utility */
.d-none {
  display: none !important;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Feature & Steps Sections */
.features-grid, .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card, .step-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3, .step-card h3 {
  color: var(--accent-mint);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p, .step-card p {
  color: var(--accent-silver);
  line-height: 1.6;
}

.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(131, 216, 179, 0.3);
}

.step-number {
  background: var(--accent-mint);
  color: var(--primary-navy);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 4px 15px rgba(131, 216, 179, 0.4);
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Ensure secondary button in hero looks good on mobile */
@media (max-width: 768px) {
  .hero-buttons .btn-secondary {
    margin-left: 0 !important;
  }
}
