/* ============================================
   Gleizy Machado Cake Design - Redesign 2024
   ============================================ */

/* CSS Variables */
:root {
  /* Colors */
  --darker: #1a1a2e;
  --dark: #16213e;
  --accent: #e94560;
  --accent-light: #ff6b9d;
  --light: #f1f1f1;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Utility Classes */
.dark-bg {
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
  color: var(--white);
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.dark-bg .section-title {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}


/* ============================================
   HEADER COMPONENT
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-fallback {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-secondary);
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  font-family: var(--font-secondary);
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Header Scroll Effect */
.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
}

.header.scrolled .logo {
  height: 40px;
}

.header.scrolled .brand-name {
  font-size: 1.5rem;
}


/* ============================================
   RESPONSIVE DESIGN - HEADER
   ============================================ */

/* Tablet */
@media (max-width: 1023px) {
  .brand-name {
    font-size: 1.5rem;
  }
  
  .logo {
    height: 45px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .header {
    padding: 0.75rem 0;
  }
  
  .logo-container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .brand-name {
    font-size: 1.25rem;
  }
  
  .logo {
    height: 40px;
  }
  
  .header.scrolled {
    padding: 0.5rem 0;
  }
  
  .header.scrolled .logo {
    height: 35px;
  }
  
  .header.scrolled .brand-name {
    font-size: 1.1rem;
  }
}

/* Small Mobile */
@media (max-width: 479px) {
  .brand-name {
    font-size: 1.1rem;
  }
  
  .logo {
    height: 35px;
  }
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  animation-delay: 0.2s;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--light);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  animation-delay: 0.4s;
}

.hero-cta {
  animation-delay: 0.6s;
}

.hero-cta .btn {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

/* Hero Responsive */
@media (max-width: 1023px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 80vh;
    padding: var(--spacing-lg) 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-cta .btn {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
}


/* ============================================
   PRODUCT SLIDER
   ============================================ */

.products-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--light);
}

.slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--darker);
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slider Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--darker);
  transition: all var(--transition-normal);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.slider-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.dot.active {
  background: var(--white);
  border-color: var(--accent);
  transform: scale(1.3);
}

/* Slider Responsive */
@media (max-width: 1023px) {
  .slider {
    max-width: 700px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .slider-btn.prev {
    left: 15px;
  }
  
  .slider-btn.next {
    right: 15px;
  }
}

@media (max-width: 767px) {
  .products-section {
    padding: var(--spacing-lg) 0;
  }
  
  .slider {
    border-radius: var(--radius-lg);
  }
  
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }
  
  .slider-btn.prev {
    left: 10px;
  }
  
  .slider-btn.next {
    right: 10px;
  }
  
  .slider-dots {
    bottom: 15px;
    gap: 8px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}


/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-top: var(--spacing-lg);
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo {
  max-width: 100%;
  width: 350px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-normal);
}

.about-logo:hover {
  transform: scale(1.05);
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
}

.about-intro {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

.about-intro strong {
  color: var(--accent);
}

.about-text p {
  margin-bottom: var(--spacing-md);
}

.about-features {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.about-features .feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.about-features .feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.about-features .feature-item i {
  font-size: 1.25rem;
}

/* About Responsive */
@media (max-width: 1023px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .about-logo {
    width: 300px;
  }
  
  .about-text {
    font-size: 1rem;
  }
  
  .about-intro {
    font-size: 1.125rem;
  }
}

@media (max-width: 767px) {
  .about-section {
    padding: var(--spacing-lg) 0;
  }
  
  .about-logo {
    width: 250px;
  }
  
  .about-features {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .about-features .feature-item {
    justify-content: center;
  }
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: var(--spacing-xl) 0 var(--spacing-md);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-secondary);
}

.footer-logo i {
  font-size: 2rem;
  color: var(--accent-light);
}

.footer-text {
  font-size: 1.125rem;
  color: var(--light);
  max-width: 600px;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.5rem;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: var(--spacing-md) 0 0;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

/* Footer Responsive */
@media (max-width: 767px) {
  .footer {
    padding: var(--spacing-lg) 0 var(--spacing-sm);
  }
  
  .footer-logo {
    font-size: 1.25rem;
  }
  
  .footer-logo i {
    font-size: 1.5rem;
  }
  
  .footer-text {
    font-size: 1rem;
  }
  
  .footer-social a {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
}
