:root {
  --bs-body-bg: #0b1020;
  --bs-body-color: #ffffff;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --green: #2e7d32;
  --green-glow: rgba(46, 125, 50, 0.4);
}

/* EXTRAS -> ANIMATIONS & OHTER */
/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll reveal animations with Failsafe */
.fade-up {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-in;
}

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


/* Floating particles background */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* GENERAL STYLES */
body {
  background: radial-gradient(circle at top, #08001b, #0b1020 60%);
  font-family: 'Exo 2', sans-serif;
}

h1,
h2,
.navbar-brand {
  font-family: 'Orbitron', sans-serif;
}

/* TYPOGRAPHY */
h1,
h2 {
  letter-spacing: 2px;
}

h1 {
  font-size: 3rem;
  font-weight: 600;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  /* opacity: 0.85; */
}

/* NAVBAR */
.navbar {
  background: rgba(10, 15, 30, 0.4);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}

/* Navbar Logo Animation*/
.navbar-brand img {
  height:100%;
  max-height: 60px;
  transition: 0.5s ease;
}
.navbar-brand img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(46, 125, 50, 0.5));
}

.navbar,
.navbar-dark {
  padding-top: 0;
  padding-bottom: 0;
}
.navbar-brand {
  padding-top: 3px;
  padding-bottom: 3px;
}

/* BUTTONS */
.btn-main {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  border: 1px outset #020617;
  border-radius: 30px;
  padding: 10px 25px;
  box-shadow: 0 0 20px rgba(46, 125, 50, 0.3);
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.5);
}

/* Button click effect */
.btn:active {
  transform: scale(0.96);
}

/* Subtle floating animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* HERO SECTIONS */
.hero {
  padding-top: 70px;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  animation: float 6s ease-in-out infinite;
}

/* Improve readability on hero backgrounds: stronger black shadow
   to help text stand out against bright or busy image areas. */
.hero h1 {
  text-shadow: 0 8px 30px rgb(0, 0, 0), 0 0 36px rgba(46, 125, 50, 0.32);
}

.hero h2 {
  text-shadow: 0 6px 24px rgb(0, 0, 0), 0 0 26px rgba(95, 252, 103, 0.18);
}

.hero p {
  text-shadow: 0 5px 20px rgb(0, 0, 0);
}

/* Main Page HERO */
.main-hero {
  background: url('../images/main-hero.webp') center/cover no-repeat;
}

/* SMART Page */
.smart-hero {
  background: url('../images/smart-hero.webp') right/cover no-repeat;
}

/* DAY SECTION - Smart Page*/
#dayDetail {
  max-width: 700px;
  margin: auto;
}

/* Output emphasis */
.highlight,
#dayDetail p {
  font-size: 1.1rem;
  color: #a3e635;
  text-shadow: 0 0 10px rgba(163, 230, 53, 0.2);
  transition: 0.5s ease;
}

/* Spaces page */
.spaces-hero {
  background: url('../images/spaces-hero.webp') center/cover no-repeat;
  padding-bottom: 35vh;
}

.space-img {
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
  transition: 0.4s ease;
}

.space-img:hover {
  transform: scale(1.05);
}

/* UPCYCLING PAGE */
.upcycling-hero {
  background: radial-gradient(circle at center, #00000070, transparent 50%), url('../images/upcycling-hero.webp') center/cover no-repeat;
}
.upcycling-hero > div > div > div {
  padding-top: 20vh;
}

/* Select styling */
.form-select {
  border: 1px solid var(--glass-border);
  color: var(--bs-body-color);
  border-radius: 20px;
}
/* Tool styling */
#tool .custom-card {
  max-width: 600px;
  margin: auto;
}
/* Output emphasis */
#ideaOutput {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #a3e635;
  text-shadow: 0 0 10px rgba(163, 230, 53, 0.2);
  transition: 0.5s ease;
}

/* About page HERO*/
.about-hero {
  background: radial-gradient(circle at center, #00000070, transparent 40%), url('../images/about-hero.webp') center/cover no-repeat;
}
/* Contact Form */
form .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  border-radius: 12px;
}

form .form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(46, 125, 50, 0.3);
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Submit Success Modal Styles */
.custom-modal {
  background: rgba(11, 16, 32, 0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  color: white;
}
.custom-modal .modal-title {
  color: white;
}
.custom-modal .modal-body {
  opacity: 0.9;
}
.modal-content {
  box-shadow: 0 0 40px rgba(46, 125, 50, 0.2);
}
.modal-backdrop.show {
  opacity: 0.8;
}


/* SECTIONS */
.container {
  max-width: 1100px;
}

.section {
  padding: 80px 0;
}

.dark-section {
  background: radial-gradient(circle at center, #08001b, #0b1020);
  position: relative;
}

.dark-section img {
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 40px rgba(46, 125, 50, 0.15);
}

/* More breathing room */
.section h2 {
  margin-bottom: 20px;
}

/* Make text feel lighter */
.hero p,
.section p,
.cta p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Glow line separators */
.section::after {
  content: "";
  display: block;
  width: 20%;
  height: 2px;
  margin: 40px auto 0;
  background: linear-gradient(to right, transparent, #2e7d32, transparent);
}


/* CARDS */
.custom-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 25px;
  transition: 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  height: 100%;
}

.custom-card:hover {
  transform: translateY(-8px);
  border-color: rgba(46, 125, 50, 0.5);
  box-shadow: 0 15px 40px rgba(46, 125, 50, 0.2);
}


/* CTA */
.cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 2, 27, 0.7), transparent),
    radial-gradient(circle at 80% 80%, rgba(9, 2, 42, 0.4), transparent),  
    #0b1020 url('../images/aurora.webp') bottom/cover no-repeat;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}


/* FOOTER Section*/
footer {
  background: radial-gradient(circle at top, rgba(46, 125, 50, 0.15), transparent),
    #020617;
  border-top: 1px solid var(--glass-border);
  padding: 20px 0 10px;
}

.footer .h5 {
  margin-bottom: 15px;
}

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

.footer a {
  text-decoration: none;
  color: #fff;
  opacity: 0.8;
  transition: 0.3s;
}

.footer a:hover {
  opacity: 1;
  color: var(--green);
}

/* Style icons*/
i {
  font-size: 1.5rem;
  color: var(--green);
}

.list-unstyled i {
  margin-right: 10px;
}

/* Social icons */
.social-icons i {
  margin-left: 10px;
}

/* Bottom strip */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Focus states for keyboard navigation */
.btn-main:focus,
.btn:focus {
  outline: 2px solid rgba(163, 230, 53, 0.8);
  outline-offset: 2px;
}

a:focus {
  outline: 2px solid rgba(46, 125, 50, 0.8);
  outline-offset: 2px;
}

.navbar-brand:focus img {
  filter: drop-shadow(0 0 8px rgba(46, 125, 50, 0.5));
}

.nav-link:focus {
  color: rgba(163, 230, 53, 0.8);
}


/* Improve mobile responsiveness */
@media (max-width: 768px) {

  /* Improve HERO on mobile */
  h1 {
    font-size: 2.3rem;
  }

  /* Fix spacing for all sections */
  .section {
    padding: 60px 20px;
  }
}