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

:root {
  --bs-primary: #0d6efd;
  --bs-secondary: #198754;
  --bd-green: #006A4E;
  --bd-red: #F42A41;
  --bs-dark: #212529;
  --bs-light: #f8f9fa;
  --font-family-base: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--bs-light);
  color: var(--bs-dark);
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Typography Customization */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #ffffff;
}

.navbar-brand {
  font-weight: 700;
  color: var(--bd-green) !important;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--bd-red) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bd-green) 0%, #004d38 100%);
  color: #ffffff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.05)" stroke-width="2" fill="none"/></svg>') repeat;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.btn-custom-red {
  background-color: var(--bd-red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-custom-red:hover {
  background-color: #d82035;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(244, 42, 65, 0.4);
}

/* Option Cards */
.option-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  height: 100%;
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
}

.option-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  transition: all 0.4s ease;
}

.option-card:hover .icon-wrapper {
  transform: rotate(360deg);
}

.bg-icon-green {
  background-color: rgba(0, 106, 78, 0.1);
  color: var(--bd-green);
}

.bg-icon-red {
  background-color: rgba(244, 42, 65, 0.1);
  color: var(--bd-red);
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* Statistics Section */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--bs-dark) 0%, #1a1a1a 100%);
  color: #fff;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--bd-green);
  margin-bottom: 10px;
}

/* Fullscreen toggle container */
.prototype-container {
  min-height: 80vh;
  position: relative;
  background-color: #e9ecef;
  border: 2px dashed #adb5bd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Fullscreen mode */
.prototype-container:-webkit-full-screen { width: 100%; height: 100vh; }
.prototype-container:-moz-full-screen { width: 100%; height: 100vh; }
.prototype-container:fullscreen { width: 100%; height: 100vh; min-height: 100vh; border: none; border-radius: 0; background-color: #000; }

.prototype-iframe, .presentation-iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* Footer */
.footer {
  background-color: var(--bd-green);
  color: #ffffff;
  padding: 50px 0 20px;
}

.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  line-height: 40px;
  text-align: center;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--bd-red);
  transform: translateY(-3px);
}

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--bd-green);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background-color: var(--bd-red);
  transform: translateY(-3px);
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Loading Spinner */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: rgba(255,255,255,0.9);
}

.pulse {
  animation: pulse 1.5s infinite;
}

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