/*
 * Core stylesheet for Sweet Silver Technologies website.
 * Defines a pastel green, white and gold colour palette and
 * implements modern layouts with smooth animations.
 */

/* Colour variables */
:root {
  --color-primary: #b7e0c5; /* pastel green */
  --color-primary-dark: #0d3b2e; /* dark green for contrast */
  --color-secondary: #ffffff; /* white */
  --color-accent: #d4af37; /* gold */
  --color-light: #f7fbf7; /* very light greenish white */
  --color-text: #232323; /* dark text */
}

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-weight: 800;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Navigation bar */
.navbar {
  background-color: var(--color-primary-dark);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo {
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-secondary);
  padding: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-bottom 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
}

/* Hero section */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 59, 46, 0.6);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  /* manually darkened gold colour for hover */
  background-color: #b8902d;
  transform: translateY(-2px);
}

.hero-verse {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--color-accent);
  border-right: 3px solid var(--color-accent);
  border-radius: 8px;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-light {
  background-color: var(--color-light);
  color: var(--color-text);
}

.section-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-secondary);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.section-text {
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.8;
}

/* Product page styles */
.page-title {
  font-size: 2.2rem;
  text-align: center;
  margin-top: 2rem;
}

.page-subtitle {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary-dark);
}

.product-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-card {
  background-color: var(--color-secondary);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 350px;
  min-height: 400px;
  min-width: 350px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.product-card .icon-wrapper {
  background-color: transparent;
  color: var(--color-primary-dark);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

/* Ensure icons inside product cards are visible */
.product-card .icon-wrapper i {
  font-size: 2rem;
  color: var(--color-primary-dark);
}

/* Emoji icons inside product cards */
.product-card .icon-wrapper .emoji {
  font-size: 2rem;
  line-height: 1;
}

/* Product icon images */
.product-card .icon-wrapper .product-icon {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.product-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.product-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

.product-website {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.product-website:hover {
  background-color: #b8902d;
  transform: translateY(-1px);
}

.product-card .app-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  width: 100%;
}

.product-card .app-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  width: 100%;
  text-align: center;
}

.app-store {
  background-color: #000;
  color: #fff;
}

.app-store:hover {
  background-color: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.google-play {
  background-color: #01875f;
  color: #fff;
}

.google-play:hover {
  background-color: #016b4f;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(1, 135, 95, 0.3);
}

.app-link i {
  font-size: 1rem;
}

/* About page */
.about-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

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

.about-text h2,
.about-founder h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.about-text p,
.about-founder p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.values-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.values-list li {
  margin-bottom: 0.5rem;
}

.values-list li strong {
  color: var(--color-accent);
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-secondary);
  padding-top: 2rem;
  padding-bottom: 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 400px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-secondary);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Animation classes */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers for sequential appearance */
.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.delay-4 {
  transition-delay: 0.8s;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .page-title {
    font-size: 1.8rem;
  }
  .product-card {
    width: 300px !important;
    min-height: 450px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    padding: 1.5rem 1rem !important;
  }
  .logo-img {
    height: 32px !important;
    width: auto !important;
  }
  .navbar .container {
    padding: 0.25rem 0 !important;
  }
  .nav-links {
    gap: 1rem !important;
  }
  .nav-links a {
    font-size: 0.9rem !important;
    padding: 0.25rem !important;
  }
  .product-card .icon-wrapper {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 1.5rem !important;
  }
  .product-card .icon-wrapper .product-icon {
    width: 70px !important;
    height: 70px !important;
  }
  .product-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }
  .product-card p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  .page-subtitle {
    font-size: 1rem !important;
    margin-bottom: 2.5rem !important;
  }
  .footer-brand {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
  .footer-logo {
    width: 50px !important;
    height: 50px !important;
  }
  .footer-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}

@media (min-width: 601px) {
  .product-card {
    width: 350px !important;
    min-height: 400px !important;
    min-width: 350px !important;
    max-width: 350px !important;
  }
}