@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --color-sand: #fbf9f4;
  --color-sand-dark: #eee8db;
  --color-ocean: #0077b6;
  --color-ocean-deep: #023e8a;
  --color-sun: #f77f00;
  --color-sunset: #d62828;
  --color-text: #2b2d42;
  --color-text-light: #6c757d;
  --color-white: #ffffff;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Lora', serif; /* Serif body for a magazine/lifestyle feel */
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-sand);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-ocean-deep);
}

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

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(251, 249, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-sand-dark);
  transition: all 0.3s ease;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-ocean-deep);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand span {
  color: var(--color-sun);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--color-sun);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-sun);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  background-color: var(--color-sun);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(247, 127, 0, 0.3);
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--color-sunset);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
}

.btn-primary::after {
  display: none !important;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-ocean-deep);
  position: absolute;
  left: 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Space for navbar */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: calc(100vh - 80px);
}

.hero-content {
  padding: 4rem 2rem 4rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 1.5rem;
  color: var(--color-ocean-deep);
}

.hero-content h1 span {
  color: var(--color-sun);
  display: block;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-image {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

/* Natural Organic Shapes */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--color-sand);
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-divider .shape-fill {
  fill: var(--color-ocean);
}

/* Story Section */
.story-section {
  background-color: var(--color-ocean);
  color: var(--color-white);
  padding: 8rem 2rem;
  text-align: center;
}

.story-section h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.story-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.story-container p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.story-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: rotate(-2deg);
  transition: transform 0.5s ease;
}

.story-image:hover {
  transform: rotate(0deg);
}

/* Feature Showcase - non-SaaS layout */
.showcase-section {
  padding: 8rem 2rem;
  background-color: var(--color-white);
}

.showcase-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 6rem;
}

.showcase-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.showcase-header p {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

.showcase-item {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto 8rem;
  align-items: center;
}

.showcase-item:nth-child(even) {
  grid-template-columns: 4fr 5fr;
}

.showcase-item:nth-child(even) .showcase-text {
  order: -1;
}

.showcase-img-wrap {
  position: relative;
}

.showcase-img-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: var(--color-sand);
  border-radius: 30px;
  z-index: 0;
}

.showcase-item:nth-child(even) .showcase-img-wrap::before {
  left: 20px;
  right: -20px;
}

.showcase-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.showcase-text h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--color-sun);
}

.showcase-text p {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-ocean-deep);
  font-size: 1.1rem;
}

.feature-list li::before {
  content: '☼';
  position: absolute;
  left: 0;
  color: var(--color-sun);
  font-size: 1.2rem;
  line-height: 1;
}

/* Lifestyle Gallery Grid */
.gallery-section {
  padding: 6rem 2rem;
  background: var(--color-sand);
}

.gallery-section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 4rem;
}

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

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(to top, rgba(2, 62, 138, 0.9), transparent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

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

/* Products Page specific */
.page-header {
  background: var(--color-ocean-deep);
  color: var(--color-white);
  padding: 12rem 2rem 8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../complete-mobile-gaming-kit-flatlay.jpg') center/cover;
  opacity: 0.15;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-white);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.page-header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
  padding: 6rem 5%;
  max-width: 1600px;
  margin: 0 auto;
}

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

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-img-container {
  height: 300px;
  overflow: hidden;
}

.product-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-img-container img {
  transform: scale(1.05);
}

.product-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-sun);
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-ocean-deep);
}

.product-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--color-sand-dark);
  padding-top: 1.5rem;
}

.product-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
}

.add-to-cart {
  background: none;
  border: 2px solid var(--color-ocean);
  color: var(--color-ocean);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.add-to-cart:hover {
  background: var(--color-ocean);
  color: var(--color-white);
}

/* Philosophy Page */
.editorial-section {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.editorial-section h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}

.editorial-section p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.editorial-section blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--color-sun);
  text-align: center;
  margin: 4rem 0;
  padding: 0 2rem;
  border-left: none;
  position: relative;
}

.editorial-section blockquote::before {
  content: '“';
  font-size: 4rem;
  color: var(--color-sand-dark);
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: serif;
}

.full-width-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  margin: 4rem 0;
}

/* Footer */
footer {
  background: var(--color-ocean-deep);
  color: var(--color-white);
  padding: 6rem 2rem 2rem;
  position: relative;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.footer-wave .shape-fill {
  fill: var(--color-sand);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 4rem auto;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.footer-brand h3 span {
  color: var(--color-sun);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  max-width: 300px;
  margin-bottom: 2rem;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-sun);
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Responsive Overrides (Mobile First approach mostly handled via clamp, these are structural) */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 50vh;
    height: auto;
  }
  
  .hero-image img {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  }
  
  .showcase-item,
  .showcase-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .showcase-item:nth-child(even) .showcase-text {
    order: 0;
  }

  .showcase-img-wrap::before,
  .showcase-item:nth-child(even) .showcase-img-wrap::before {
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 60px; /* Below navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--color-sand);
    flex-direction: column;
    justify-content: flex-start;
    padding: 4rem 2rem;
    gap: 3rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
  }
  
  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-links a {
    font-size: 1.5rem;
  }
  
  .hero-content {
    padding: 4rem 2rem;
    text-align: center;
    align-items: center;
  }
  
  .story-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 0 auto 2rem;
  }
  
  .product-grid {
    padding: 4rem 2rem;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .story-section, .showcase-section, .gallery-section {
    padding: 4rem 1.5rem;
  }
  
  .btn-primary {
    width: 100%;
  }
  
  .product-img-container {
    height: 250px;
  }
}
