/* Reset and Base Styles */
/* Reset and Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding-top: 250px;
}

.hero-brand-row {
  display: flex;
  align-items: flex-start; /*  FIX */
  justify-content: flex-start;
  gap: 2.5rem;
  text-align: left;
}


/* Text block next to logo */
.hero-text-block {
  display: flex;
  flex-direction: column;
}

/* Add top padding to account for fixed navbar */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-section h1 {
  font-size: 1em;
  /* Decreases the font size of the "PoolMap" logo */
  margin-bottom: 5px;
  /* Reduces the space below the logo */
}

/* Target the subheading to reduce its spacing */
.hero-section p.sub-heading {
  margin-bottom: 10px;
  /* Reduces the space below the subheading text */
}

/* Adjust the button container spacing */
.hero-section .button-container {
  margin-top: 10px;
  /* Reduces the space above the buttons */
}
.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

  background: linear-gradient(
    135deg,
    #3b82f6,
    #6366f1,
    #06b6d4,
    #10b981,
    #f59e0b
  );

  background-size: 300% 300%;
  animation: gradientMove 10s ease-in-out infinite;
  filter: brightness(1.1) saturate(1.2);
}
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23FFFFFF" fill-opacity="0.1" fill-rule="evenodd"%3E%3Ccircle cx="30" cy="30" r="10"%3E%3C/circle%3E%3C/g%3E%3C/svg%3E');
  animation: move-particles 20s linear infinite;
  z-index: -1;
}

@keyframes move-particles {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100vh);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  /* Wider to accommodate side-by-side */
  margin: 0 auto;
  padding: 0 2rem;
  animation: fadeInUp 1s ease-out;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  text-align: left;
}

.hero-header {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Align left */
  margin-bottom: 0.5rem;
}

.logo-icon {
  font-size: 2em;
  margin-right: 1rem;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #0c0e6b;
   
  text-shadow: #040b6d;
  /* Remove white shadow if present */
    }

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: #041d62;
  
  margin-top: 0.5rem;
  opacity: 1;
  /* Remove opacity */
}

.hero-tagline {
  font-style: italic;
  font-size: 1rem;
  color: #031a65;
  /* Blue */
  margin-top: 1rem;
  opacity: 0.9;
}
/* ================================
   HERO FEATURES 
================================ */

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;                 /* breathing space between pills */
  align-items: flex-start;
}

/* Individual feature pill */
.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  
  padding: 0.75rem 1.5rem;     /* slimmer height */
  min-width: 240px;
  border-radius: 999px;        /* smooth pill shape */

  background: rgb(121, 57, 185); /* lightning */
  /*border: 2px solid #2563eb;*/
  border: transparent;
  color: #fcfcfc;

  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;

  box-shadow: 0 5px 20px rgba(96, 95, 95);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect (calm, not jumpy) */
.hero-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(121, 121, 123, 0.25);
  
}

/* ================================
   HERO CTA BUTTONS
================================ */

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-button {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: rgb(121, 57, 185);
  border: none;
  border-radius: 25px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-button.primary { /* get started*/
  background: rgb(121, 57, 185);
  color: #fbfbfc;
  box-shadow: 0 5px 20px rgba(96, 95, 95);
}

.hero-button.primary:hover {  
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(106, 106, 106, 0.946);
}

.hero-button.secondary { /* view features*/
  background: rgb(121, 57, 185);
  color: white;
  border: 2px;
  box-shadow: 0 5px 20px rgba(96, 95, 95);
}

.hero-button.secondary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(106, 106, 106, 0.946);
}

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

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.8;
}

/* Main Navigation */
.main-nav {
  position: fixed;
  width: 100%;
  background: rgba(206, 211, 233, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-brand {
  position: relative;
  z-index: 1001;
  pointer-events: auto;
  cursor: pointer;
}

.nav-container {
  width: 100%;
  margin: 0;
  /*  remove centering */
  padding: 0 2rem;
  /* keep breathing space */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2a5298;
}

.nav-brand {
  cursor: pointer;
}

.nav-brand:hover {
  opacity: 0.9;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-img {
  height: 85px;
  width: auto;
  background: transparent;
  /*  no white */
  padding: 0;
  /*  no box */
  border-radius: 0;
  /*  no rounding */
  box-shadow: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Space between the logo icon and text */
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: rgb(37, 30, 140);
}

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

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

.nav-cta {
  background: #667eea;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* General Section Styles */
main {
  padding-top: 80px;
}

section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2a5298;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Upload Section */
.upload-area {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.upload-area.success {
  background: #e6f7e9;
  border-left: 5px solid #4CAF50;
}

.upload-area.error {
  background: #ffebe6;
  border-left: 5px solid #e45858;
}

.upload-content {
  max-width: 600px;
  width: 100%;
}

.upload-header {
  margin-bottom: 2rem;
}

.upload-header h2 {
  font-size: 2rem;
  color: #2a5298;
  margin-bottom: 0.5rem;
}

.upload-header p {
  color: #666;
}

.upload-zone {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: #fdfdfd;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: #667eea;
  background: #eef1ff;
}

.upload-icon {
  font-size: 3rem;
  color: #667eea;
  opacity: 0.8;
}

.upload-text h3 {
  font-size: 1.5rem;
  color: #2a5298;
}

.upload-text p {
  font-size: 0.9rem;
  color: #888;
}

.upload-zone input[type="file"] {
  display: none;
}

.upload-button {
  background: #667eea;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.upload-button:hover {
  background: #5a6ed1;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.upload-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #888;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-icon {
  color: #4CAF50;
}

/* Output Section */
.output-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.output-header h3 {
  font-size: 1.5rem;
  color: #2a5298;
}

.file-info {
  font-size: 0.9rem;
  color: #666;
}

.tree-container {
  background: #fdfdfd;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  overflow-x: auto;
}

#treeOutput {
  white-space: pre;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}

.watermark {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  color: #ccc;
  font-style: italic;
  pointer-events: none;
}

.action-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.action-btn {
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.copy-btn {
  background: #667eea;
  color: white;
}

.copy-btn:hover:enabled {
  background: #5a6ed1;
  transform: translateY(-3px);
}

.download-btn {
  background: #2a5298;
  color: white;
}

.download-btn:hover:enabled {
  background: #23457a;
  transform: translateY(-3px);
}

.clear-btn {
  background: #e9ecef;
  color: #333;
}

.clear-btn:hover {
  background: #ced4da;
}

.wait-timer {
  background: #fff3e0;
  border: 1px solid #ffcc80;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.timer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-icon {
  font-size: 2rem;
  color: #ff9800;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.timer-options {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.upgrade-link {
  background: #667eea;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.upgrade-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.or-divider {
  font-weight: 500;
  color: #888;
}

.watch-ad-link {
  font-size: 0.9rem;
  color: #2a5298;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.watch-ad-link:hover {
  text-decoration: underline;
}

/* Features Section */
.features-section {
  padding: 5rem 2rem;
  background: white;
}

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

.feature-card {
  background: #f8f8f8;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  color: #ea580c;
  /* Orange-600 to match gradient */
  font-size: 1.2rem;
}

.feature-card h4 {
  font-size: 1.2rem;
  color: #2a5298;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #666;
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 2rem;
  background: #eef1ff;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.pricing-card {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.pricing-card.highlighted {
  background: #2a5298;
  color: white;
  transform: scale(1.05);
}

.pricing-card.highlighted .plan-price {
  color: #667eea;
}

.pricing-card.highlighted .plan-features li {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.plan-header {
  margin-bottom: 2rem;
}

.plan-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
}

.plan-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: #667eea;
  margin-top: 0.5rem;
}

.plan-unit {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.plan-features .fa-check-circle {
  color: #4CAF50;
}

.plan-features .fa-times-circle {
  color: #F44336;
}

.pricing-card.highlighted .plan-features .fa-check-circle {
  color: #4CAF50;
}

.pricing-card.highlighted .plan-features .fa-times-circle {
  color: #ccc;
}

.plan-cta {
  background: #667eea;
  color: white;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.plan-cta:hover {
  background: #5a6ed1;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pricing-card.highlighted .plan-cta {
  background: white;
  color: #2a5298;
}

/* How It Works Section */
.how-it-works {
  background: #fff;
  padding: 5rem 2rem;
}

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

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #667eea;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h5 {
  color: #2a5298;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* About Section */
.about-section {
  background: #f8fafc;
  padding: 5rem 2rem;
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
}

.about-stat {
  text-align: center;
}

.about-stat .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2a5298;
}

.about-stat .stat-label {
  font-size: 0.9rem;
  color: #888;
}

.about-company h2 {
  color: #1c4ebb;
  /* blue */
}

/* Contact Section */
.contact-section {
  background: white;
  padding: 5rem 2rem;
}

.contact-form-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-form-container {
    grid-template-columns: 1.5fr 1fr;
  }
}

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

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.contact-btn {
  background: #2a5298;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-btn:hover {
  background: #23457a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(42, 82, 152, 0.4);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #667eea;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon .fas {
  font-size: 1.5rem;
}

.contact-info h4 {
  font-size: 1.2rem;
  color: #2a5298;
  margin-bottom: 0.2rem;
}

.contact-info p {
  font-size: 0.9rem;
  color: #666;
}

/* Footer Section */
.main-footer {
  background: #2a5298;
  color: white;
  padding: 5rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 3px;
  background: #667eea;
}

.footer-column a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: white;
  text-decoration: underline;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo {
  font-size: 2rem;
}

.footer-title {
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-description {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-social-text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.footer-social-links .social-link {
  font-size: 1.5rem;
  color: white;
  opacity: 0.8;
}

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

.footer-ads {
  text-align: center;
  margin-bottom: 2rem;
}

.ad-banner {
  margin: 1.5rem auto;
  padding: 1rem;
  background: #f4f4f9;
  border: 1px dashed #ccc;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}

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

.footer-bottom-content p {
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: white;
}

.site-logo {
  height: 200px;
  width: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;

  /* breathing effect */
  animation: breathe 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes breathe {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.95;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Offset for fixed navbar when scrolling */
#uploadArea,
#features,
#pricing,
#about,
#contact {
  scroll-margin-top:10px;
}
.hidden {
  display: none;
}
.diagram-container {
  width: 100%;
  overflow-x: auto;
  padding: 1rem;
}

.diagram-container svg {
  max-width: 100%;
  height: auto;
}
/* LOGIN OVERLAY */
.login-overlay {

  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.3);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;

}

/* LOGIN BOX */
.login-box {

  background: white;

  padding: 40px;

  border-radius: 12px;

  text-align: center;

  box-shadow: 0 10px 30px rgba(0,0,0,0.2);

}



.google-login-btn {

  background: #4285F4;
  color: white;

  border: none;

  padding: 12px 20px;

  border-radius: 8px;

  font-size: 16px;

  cursor: pointer;

}

.google-login-btn:hover {

  background: #3367D6;

}

/* BLUR BACKGROUND */
body.locked nav,
body.locked main,
body.locked footer,
body.locked section {

  filter: blur(5px);
  pointer-events: none;

}
.upload-popup {

  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.4);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;

}

.upload-popup-box {

  background: white;
  padding: 30px;

  border-radius: 10px;

  text-align: center;

  width: 350px;

}

.upload-popup-buttons {

  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;

}
/* ================= LOGIN OVERLAY ================= */

#loginOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(14px);

  z-index: 9999;
}


/* ================= LOGIN CARD ================= */

.login-card {

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.96),
    rgba(255,247,240,0.92)
  );

  border-radius: 18px;

  padding: 40px 36px;

  width: 380px;

  text-align: center;

  box-shadow:
    0 0 0 rgba(234, 88, 12, 0.0),
    0 10px 40px rgba(0,0,0,0.18);

  animation: breatheGlow 3.2s ease-in-out infinite;

  transition: all 0.3s ease;
}


/* ================= BREATHING ANIMATION ================= */

@keyframes breatheGlow {

  0% {

    transform: scale(1);

    box-shadow:
      0 0 0 rgba(234, 88, 12, 0.0),
      0 10px 40px rgba(0,0,0,0.18);

  }

  50% {

    transform: scale(1.035);

    box-shadow:
      0 0 45px rgba(234, 88, 12, 0.35),
      0 18px 60px rgba(0,0,0,0.25);

  }

  100% {

    transform: scale(1);

    box-shadow:
      0 0 0 rgba(234, 88, 12, 0.0),
      0 10px 40px rgba(0,0,0,0.18);

  }

}


/* ================= LOGIN BUTTON ================= */

.login-card button {

  margin-top: 18px;

  background: linear-gradient(
    135deg,
    #fb923c,
    #ea580c
  );

  border: none;

  color: white;

  padding: 12px 22px;

  border-radius: 10px;

  font-weight: 600;

  font-size: 15px;

  cursor: pointer;

  transition: 0.25s;
}

.login-card button:hover {

  transform: translateY(-2px);

  box-shadow: 0 8px 25px rgba(234,88,12,0.45);

}
/* LOGIN CARD LOGO SIZE */
.login-card .login-logo {

  height: 200px;   /* increase more */
  width: auto;

  margin-bottom: 20px;

  animation: logoBreath 3s ease-in-out infinite;

}

.hero-right {
  color: #ffffff;
}

.hero-subtitle {
  color: #ffffff;
  font-weight: 600;
}

.hero-tagline {
  color: #ffffff;
  opacity: 0.95;
}
.hero-right {
  color: #f8fafc;   /* soft white */
}

.hero-subtitle {
  color: #ffffff;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-tagline {
  color: #f1f5f9;   /* softer white */
  font-size: 17px;
  line-height: 1.6;
  margin-top: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
/* NAVBAR FIX */
.main-nav {
  padding: 6px 0;   /* reduce top and bottom space */
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;   /* perfect navbar height */
}

/* LOGO SIZE FIX */
.nav-logo-img {
  height: 60px;   /* adjust logo size */
  width: auto;
  display: block;
}

/* NAV LINKS ALIGNMENT */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* BUTTON ALIGNMENT */
.nav-cta {
  padding: 8px 18px;
  font-size: 14px;
}

.legal-page {
  max-width: 900px;
  margin: 80px auto;
  padding: 40px;
}

.legal-page h1 {
  font-size: 32px;
  color: #2563eb; /* blue heading */
  margin-bottom: 20px;
}

.legal-page p {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}
/* ================= POPUP ================= */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 320px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: popupFade 0.2s ease;
}

.popup-box h3 {
  margin-bottom: 10px;
  color: #ea580c;
}

.popup-box p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #444;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.popup-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.popup-btn.primary {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: white;
}

.popup-btn.secondary {
  background: #f3f4f6;
  color: #333;
}

.popup-btn:hover {
  transform: translateY(-2px);
  transition: 0.2s;
}

@keyframes popupFade {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
#authActionBtn {
  transition: 0.3s ease;
}

#authActionBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
#loginOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;   /* force full viewport */
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.login-card {
  width: 380px;
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 22px;
  box-shadow: 
    0 25px 60px rgba(0,0,0,0.25),
    0 8px 20px rgba(0,0,0,0.15);
  text-align: center;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-logo {
  height: 50px;
  margin-bottom: -12px;
}
.login-card {
  width: 360px;
  padding: 24px 26px;   /* reduced */
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.25),
    0 8px 20px rgba(0,0,0,0.15);
  text-align: center;
}
.input-group {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  transition: 0.25s;
  border: 1px solid transparent;
}

.input-group:focus-within {
  background: #ffffff;
  border: 1px solid #4f6df5;
  box-shadow: 0 0 0 3px rgba(79,109,245,0.1);
}

.input-group input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
}
.forgot-password {
  text-align: right;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
  cursor: pointer;
}

.forgot-password:hover {
  color: #4f6df5;
}
.login-btn {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ff7a18, #ff4d00);
  transition: 0.25s ease;
  box-shadow: 0 8px 20px rgba(255,77,0,0.35);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255,77,0,0.45);
}

.login-btn:active {
  transform: translateY(0);
}
.auth-message {
  margin-top: 12px;
  font-size: 14px;
}
body.locked {
  overflow: hidden;
  height: 100vh;
}
.login-card h2 {
  font-size: 18px;
  margin: 12px 0 16px;  /* smaller spacing */
}

.input-group {
  margin-bottom: 10px;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.login-btn {
  margin-top: 10px;
}
/* Make login/register clickable */
#authActionBtn,
#toggleAuthMode {
  cursor: pointer;
}

/* If you also have inline register/login link */
.login-card p,
.login-card a {
  cursor: pointer;
}
.forgot-link {
  cursor: pointer;
  text-align: right;
  font-size: 14px;
  color: #6b7280;
  margin-top: 8px;
}

.forgot-link:hover {
  color: #4f6df5;
  text-decoration: underline;
}