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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #f0f9ed 0%, #e8f5e3 25%, #f8f9fa 50%, #e9ecef 75%, #f0f9ed 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  color: #212529;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(56, 182, 27, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(56, 182, 27, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 60px;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 182, 27, 0.3) 50%, transparent 100%);
}

nav {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 32px;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #495057;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

nav a {
  color: #495057;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
}

nav a:hover {
  color: #38b61b;
  background: linear-gradient(135deg, rgba(56, 182, 27, 0.1) 0%, rgba(56, 182, 27, 0.05) 100%);
}

nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #38b61b 0%, #2d9516 100%);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(56, 182, 27, 0.3);
}

.widget-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  padding: 0;
  padding-top: 70px; /* Space for header - will be adjusted by JS */
}

.widget-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: transparent;
  margin-top: 0;
}

/* Mobile styles */
@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
  }
  
  .hamburger {
    display: flex;
  }
  
  nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 4rem 2rem 2rem;
    gap: 0;
    z-index: 1000;
    overflow-y: auto;
  }
  
  nav.mobile-open {
    display: flex;
  }
  
  nav a {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
  }
  
  .widget-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    padding: 8px;
    padding-top: 70px; /* Space for header on mobile */
    box-sizing: border-box;
  }
  
  .widget-container iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .home-content {
    padding-top: 2rem;
    padding: 2rem 1rem;
  }
  
  .home-content h1 {
    font-size: 2rem;
  }
  
  .widget-links {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .widget-link {
    padding: 1.5rem;
  }
}

/* Home page styles */
.home-content {
  padding-top: 100px;
  padding: 100px 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(135deg, #38b61b 0%, #2d9516 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.widget-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.widget-link {
  display: block;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(56, 182, 27, 0.15);
  border-radius: 12px;
  text-decoration: none;
  color: #212529;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.widget-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38b61b 0%, #2d9516 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.widget-link:hover::before {
  transform: scaleX(1);
}

.widget-link:hover {
  border-color: rgba(56, 182, 27, 0.3);
  box-shadow: 0 8px 24px rgba(56, 182, 27, 0.2);
  transform: translateY(-4px);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ed 100%);
}

.widget-link h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
}

.widget-link p {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
}

