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

:root {
  --primary-color: #FC7D0A;
  --secondary-color: #FFA94D;
  --background-color: #FDFBF8;
  --text-color: #333333;
  --card-background: #FFFFFF;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background-image: subtle-pattern.png;
  scroll-behavior: smooth;
}

header {
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.header-left {
  display: flex;
  align-items: center;
}

#logo {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 2px 2px 4px var(--shadow-color);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  margin-left: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s ease;
}

nav a:hover {
  border-bottom: 2px solid var(--secondary-color);
}

main {
  padding: 2rem;
}

section {
  margin-bottom: 3rem;
  padding-top: 60px; /* Offset for sticky header */
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

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

.app-card {
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 10px 20px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.app-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.app-card-body {
    flex-grow: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.app-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
}

.app-card p {
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.app-card-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: auto;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50%;
  font-size: 1.25rem;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn.disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

#contact {
  text-align: center;
}

#contact p {
  font-size: 1.2rem;
}

footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1rem 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

.tagline {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }

  .header-left {
    margin-bottom: 1rem;
  }

  nav ul {
    justify-content: center;
  }

  nav li {
    margin: 0 1rem;
  }

  header h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2rem;
  }
  
  section {
    padding-top: 120px; /* Adjust offset for taller mobile header */
  }
}
