/*
 * 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: 95%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* 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;
  object-fit: contain;
}

.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 h3 a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.product-card h3 a:hover {
  color: var(--color-accent);
}

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

.product-card h3 a:hover::after {
  width: 100%;
}

.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;
}

/* QR Code styles */
.qr-code-section {
  margin-top: 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-code {
  width: auto;
  height: 4.8rem; /* Double the previous size */
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e0e0e0;
}

.qr-code:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Coming soon styles */
.coming-soon {
  display: inline-block;
  background-color: #f0f0f0;
  color: #666;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
  font-style: italic;
}

/* QR Code Modal */
.qr-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.qr-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
}

.qr-modal-content img {
  max-width: 300px;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
}

.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

.qr-modal-close:hover {
  color: #000;
}

/* 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;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design - Mobile First Approach */

/* Base styles (Mobile - 320px and up) */

/* Navigation responsive */
.navbar .container {
  position: relative;
}

.nav-menu {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

/* Hero section responsive */
.hero {
  height: 70vh;
  min-height: 400px;
  padding: 2rem 0;
}

.hero h1 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.hero p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-verse {
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* Product grid responsive */
.product-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  width: 100%;
  max-width: 350px;
  min-height: auto;
  padding: 1.5rem;
  margin: 0 auto;
}

.product-card .icon-wrapper {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.product-card .icon-wrapper .product-icon {
  width: 70px;
  height: 70px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.product-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* About page responsive */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

/* Typography responsive */
.page-title {
  font-size: 1.8rem;
  margin-top: 1.5rem;
  text-align: center;
}

.page-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title {
  font-size: 1.6rem;
}

.section-text {
  font-size: 1rem;
  padding: 0 1rem;
}

/* Footer responsive */
.footer-content {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-brand {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-logo {
  width: 50px;
  height: 50px;
}

/* Logo responsive */
.logo-img {
  height: 35px;
  object-fit: contain;
}

/* Navigation padding */
.navbar .container {
  padding: 0.5rem 0;
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary-dark);
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    width: 100%;
    text-align: center;
  }
  
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }
  
  .hero h1 {
    font-size: 1.3rem;
  }
  
  .hero p {
    font-size: 0.85rem;
  }
  
  .page-title {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .product-card {
    padding: 1.25rem;
  }
  
  .logo-img {
    height: 30px;
    object-fit: contain;
  }
}

/* Tablet Portrait (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    width: 90%;
    padding: 0 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .product-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .product-card {
    width: 300px;
    max-width: 300px;
  }
  
  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .logo-img {
    height: 38px;
    object-fit: contain;
  }
}

/* Tablet Landscape (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: 85%;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .product-grid {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
  
  .product-card {
    width: 320px;
    max-width: 320px;
  }
  
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .footer-brand {
    flex-direction: row;
    text-align: left;
  }
}

/* Desktop (1025px and up) */
@media (min-width: 1025px) {
  .container {
    width: 90%;
    max-width: 1200px;
  }
  
  .hero {
    height: 85vh;
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-verse {
    padding: 1.5rem 2rem;
    font-size: 1rem;
    margin-top: 2rem;
  }
  
  .page-title {
    font-size: 2.2rem;
    margin-top: 2rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-text {
    font-size: 1.1rem;
    padding: 0;
  }
  
  .product-grid {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  
  .product-card {
    width: 350px;
    max-width: 350px;
    min-height: 400px;
    padding: 2rem 1.5rem;
  }
  
  .product-card .icon-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }
  
  .product-card .icon-wrapper .product-icon {
    width: 100px;
    height: 100px;
  }
  
  .product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .product-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .footer-brand {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }
  
  .footer-logo {
    width: 60px;
    height: 60px;
  }
  
  .logo-img {
    height: 40px;
    object-fit: contain;
  }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .section-text {
    font-size: 1.2rem;
  }
}