/* 
 * SugarlabAI.love - Main Stylesheet
 * A coral-teal gradient color scheme with modern layout
 */

/* ======= Base Styles ======= */
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --accent-color: #f9d423;
  --text-color: #333333;
  --text-light: #666666;
  --background: #ffffff;
  --background-alt: #f8f9fa;
  --gray-light: #f1f3f5;
  --gray: #ced4da;
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 10px base for easier rem calculation */
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img, svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 2rem;
  margin: 0 auto;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* ======= Typography ======= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2.4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
}

.section-title span {
  color: var(--primary-color);
  position: relative;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
}

/* ======= Buttons ======= */
.btn {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(255, 107, 107, 0.1);
  transform: translateY(-3px);
}

.btn-accent {
  background: var(--accent-color);
  color: var(--text-color);
  box-shadow: 0 4px 15px rgba(249, 212, 35, 0.3);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(249, 212, 35, 0.4);
  color: var(--text-color);
}

.btn-lg {
  padding: 1.5rem 3.5rem;
  font-size: 1.8rem;
}

.btn-access {
  background: var(--secondary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
}

.btn-access:hover {
  background: var(--primary-color);
  color: white;
}

/* ======= Header ======= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  width: 4.8rem;
  height: 4.8rem;
}

.site-title h1 {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-title p {
  font-size: 1.4rem;
  color: var(--text-light);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-list a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-list a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 3rem;
  height: 2.1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* ======= Hero Section ======= */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-height) + 2rem) 0 5rem;
  background: var(--background-alt);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-content h2 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
}

.hero-content h2 span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--text-light);
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.bubbles-animation {
  position: relative;
  width: 100%;
  height: 40rem;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.7;
  filter: blur(5px);
  animation: float 6s ease-in-out infinite;
}

.bubble-1 {
  width: 18rem;
  height: 18rem;
  top: 10%;
  left: 10%;
}

.bubble-2 {
  width: 15rem;
  height: 15rem;
  top: 50%;
  left: 50%;
  animation-delay: 1s;
}

.bubble-3 {
  width: 10rem;
  height: 10rem;
  bottom: 20%;
  right: 20%;
  animation-delay: 2s;
}

.bubble-4 {
  width: 8rem;
  height: 8rem;
  bottom: 40%;
  left: 25%;
  animation-delay: 3s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* ======= Features Section ======= */
.features {
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.feature-card {
  background: var(--gray-light);
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

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

.feature-icon {
  display: inline-flex;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.feature-card h3 {
  margin-bottom: 1.5rem;
}

.feature-card p {
  color: var(--text-light);
}

/* ======= Gallery Section ======= */
.gallery {
  background-color: var(--background-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

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

.placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: white;
}

.gallery-note {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  font-size: 1.4rem;
}

/* ======= About Section ======= */
.about {
  background-color: var(--background);
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.6rem;
  color: var(--text-light);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--gray-light);
}

.stat-number {
  display: block;
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-light);
}

/* ======= Access Section ======= */
.access {
  background: var(--gradient);
  color: white;
}

.access .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.access-content h2 {
  font-size: 3.6rem;
  margin-bottom: 2rem;
}

.access-content p {
  margin-bottom: 3rem;
  font-size: 1.8rem;
}

.access-content .btn-accent {
  margin-top: 1rem;
}

.access-graphic {
  width: 100%;
  max-height: 20rem;
}

/* ======= Footer ======= */
.site-footer {
  background-color: #2b2b2b;
  color: #fff;
  padding: 5rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo h3 {
  margin-bottom: 0;
  color: #fff;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.footer-nav a {
  color: #fff;
}

.footer-nav a:hover {
  color: var(--secondary-color);
}

.footer-middle {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
  display: flex;
  gap: 2.5rem;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
}

.legal-links a:hover {
  color: #fff;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

/* ======= Responsive Styles ======= */
@media (max-width: 1024px) {
  html {
    font-size: 60%;
  }
  
  .hero-content h2 {
    font-size: 4rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .access .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 6rem 0;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
    order: 1;
  }
  
  .hero-content p {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    order: 0;
    height: 30rem;
  }
  
  .bubbles-animation {
    height: 30rem;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 200;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 40rem;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    padding: 5rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 150;
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-list li {
    margin: 1.5rem 0;
  }
  
  .footer-top, .footer-nav ul {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .features-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ======= Animations ======= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
