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

:root {
  --header-color: #2c3e50;
  --sub-text: #3498db;
  --text-color: #2c3e50;
  --main-color: #3498db;
  --gradient-start: #3498db;
  --gradient-end: #2c3e50;
  --card-bg: rgba(255, 255, 255, 0.95);
  --section-bg: #f8f9fa;
  --navbar-height: 70px;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Hero section styles for both pages */
.hero-section, #intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + 4rem) 2rem 4rem;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  text-align: center;
}

#intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#intro .logo {
  width: 180px;
  padding: 20px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

#intro .logo:hover {
  transform: scale(1.05);
}

#intro h1 {
  font-size: 4rem;
  font-weight: 800;
  margin: 1rem 0;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--header-color);
  margin: 2rem 0;
  position: relative;
  padding-bottom: 0.5rem;
  text-align: center;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--main-color);
  border-radius: 2px;
}

.header:hover::after {
  width: 100px;
}

.sub-title {
  color: var(--sub-text);
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 1.2rem;
  margin: 1rem 0;
}

.content-box {
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 1.1rem;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
  max-width: 800px;
  margin: 2rem auto;
  text-align: justify;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

#features {
  padding: 4rem 2rem;
  background: var(--section-bg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.feature {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.feature:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature i {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.feature:hover i {
  transform: scale(1.1);
}

.feature h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: var(--header-color);
}

.feature p {
  color: #666;
  line-height: 1.6;
}

#work-flow {
  padding: 4rem 2rem;
  background: white;
}

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

.workflow-container img {
  max-width: 100%;
  height: auto;
}

#app-usage {
  padding: 4rem 2rem;
  background: var(--section-bg);
}

.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.screen-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out;
  background: white;
  padding: 1rem;
  opacity: 1;
  transform: translateY(0);
}

.screen-item.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
}

.screen-item.fade-in-element.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.screen-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.screen-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease;
}

.screen-item:hover img {
  transform: scale(1.02);
}

.screen-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 1.5rem 1rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.screen-item:hover .screen-caption {
  opacity: 1;
  transform: translateY(0);
}

#app-usage img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#app-usage img:hover {
  transform: scale(1.05);
}

.bmc-container {
  padding: 4rem 2rem;
  background: white;
}

table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

thead {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
}

th, td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

tbody tr {
  transition: background-color 0.3s ease;
}

tbody tr:hover {
  background: rgba(52, 152, 219, 0.1);
}

td:first-child {
  font-weight: 600;
  color: var(--main-color);
}

#about-us {
  padding: 4rem 2rem;
  background: var(--section-bg);
  text-align: center;
}

#about-us p {
  max-width: 800px;
  margin: 1rem auto;
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  #intro h1 {
    font-size: 2.5rem;
  }
  
  .header {
    font-size: 2rem;
  }
  
  .content-box {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 1rem;
  }
  
  .screens {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .screen-item {
    padding: 0.5rem;
  }
  
  .screen-caption {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
  }
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Add loading animation for images */
img:not(.hero-logo) {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.loaded:not(.hero-logo) {
  opacity: 1;
}

/* Fade-in animations */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced hover effects */
.feature, .content-box, #app-usage img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-end);
}

/* Selection color */
::selection {
  background: var(--main-color);
  color: white;
}

/* Enhanced focus states for accessibility */
:focus {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

/* Add subtle text shadow to headers for better readability */
h1, h2, h3 {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Add subtle gradient overlay to images */
#work-flow img, #app-usage img {
  position: relative;
}

#work-flow img::after, #app-usage img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

/* Add subtle animation to icons */
.feature i {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Add subtle background pattern to sections */
#features, #about-us {
  background-image: 
    linear-gradient(135deg, var(--section-bg) 0%, #ffffff 100%),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(52, 152, 219, 0.03) 10px, rgba(52, 152, 219, 0.03) 20px);
}

/* Enhanced table styles */
table {
  position: relative;
}

table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  border-radius: 4px 4px 0 0;
}

/* Add subtle hover effect to table rows */
tbody tr {
  position: relative;
  overflow: hidden;
}

tbody tr::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--main-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

tbody tr:hover::after {
  transform: scaleY(1);
}

/* Add subtle animation to the header underline */
.header::after {
  transition: width 0.3s ease;
}

.header:hover::after {
  width: 100px;
}

/* Business Model Canvas Styles */
#bmc {
  padding: 4rem 2rem;
  background: var(--section-bg);
}

.bmc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.bmc-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.bmc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bmc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.bmc-card:hover::before {
  opacity: 1;
}

.bmc-icon {
  font-size: 2rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.bmc-card:hover .bmc-icon {
  transform: scale(1.1);
}

.bmc-card h3 {
  color: var(--header-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.bmc-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--main-color);
  transition: width 0.3s ease;
}

.bmc-card:hover h3::after {
  width: 60px;
}

.bmc-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bmc-card li {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.bmc-card li::before {
  content: '•';
  color: var(--main-color);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* Special styling for value proposition card */
.bmc-card.value-proposition {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
}

.bmc-card.value-proposition h3,
.bmc-card.value-proposition li {
  color: white;
}

.bmc-card.value-proposition .bmc-icon {
  color: white;
}

.bmc-card.value-proposition h3::after {
  background: white;
}

.bmc-card.value-proposition li::before {
  color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .bmc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bmc-card.value-proposition {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bmc-grid {
    grid-template-columns: 1fr;
  }
  
  .bmc-card.value-proposition {
    grid-column: span 1;
  }
  
  .bmc-card {
    padding: 1.5rem;
  }
  
  .bmc-icon {
    font-size: 1.8rem;
  }
  
  .bmc-card h3 {
    font-size: 1.2rem;
  }
}


/* Enhanced mobile styles */
@media (max-width: 768px) {
  .content-box, .feature {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .header::after {
    width: 40px;
  }
  
  .header:hover::after {
    width: 60px;
  }
  
  #intro {
    padding: calc(var(--navbar-height) + 6rem) 1rem 3rem;
    min-height: calc(100vh - var(--navbar-height));
  }
  
  #intro h1 {
    font-size: 2rem;
  }
  
  .sub-title {
    font-size: 1rem;
  }

  .hero-content, #intro > * {
    margin-top: 2rem;
  }

  .navbar {
    padding: 0 1rem;
  }

  .navbar-toggle {
    display: block;
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
  }

  .navbar-toggle i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .navbar-nav {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--navbar-shadow);
    z-index: 1000;
  }

  .navbar-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
  }
}