/* ========================================
   ROOM MAKER - PROMOTIONAL SITE
   Design System Light (Devastante)
   ======================================== */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* === ROOT VARIABLES === */
:root {
  /* Colors - Light Theme */
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --primary-light: #3385FF;
  --accent: #00D4FF;
  --accent-glow: rgba(0, 102, 255, 0.2);
  
  --dark: #0A0E27;       /* Used for headings/strong text */
  --text-main: #2D3436;  /* Main body text */
  --text-light: #636E72; /* Secondary text */
  
  --bg-body: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-card: #FFFFFF;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
  --gradient-text: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
  --gradient-hero: linear-gradient(135deg, #F0F7FF 0%, #FFFFFF 100%);
  --gradient-overlay: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #FFFFFF 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 102, 255, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 102, 255, 0.12);
  --shadow-glow: 0 5px 20px rgba(0, 102, 255, 0.25);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* === UTILITY CLASSES === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 102, 255, 0.05);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 102, 255, 0.15);
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: width var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

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

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

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--primary); /* Blue Header */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  color: #FFFFFF !important;
}

.navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  font-weight: 900;
  color: #FFFFFF; /* White Logo */
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-weight: 600;
  color: #FFFFFF; /* White Links */
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
  opacity: 1;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  background: #FFFFFF; /* White underline */
  width: 100%;
}

/* Navbar Button Specifics */
.navbar .btn-primary {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 12px 30px !important; /* Fix padding */
}
.navbar .btn-primary:hover {
  background: #F0F0F0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  position: relative;
  overflow: hidden;
  background: #FFFFFF; /* HERO BIANCA */
  padding-top: 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Abstract Background Shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.03) 0%, transparent 70%); /* Lighter */
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  display: none; /* Removing as requested: SOLO BIANCO */
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.04) 0%, transparent 70%); /* Lighter */
  border-radius: 50%;
  animation: float 6s ease-in-out infinite reverse;
  display: none; /* Removing as requested: SOLO BIANCO */
}

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

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 100%; /* Changed from 900px */
}

.hero-image {
  position: relative;
  z-index: 10;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-image img {
  width: 100%;
  height: auto;
  filter: none; /* Removed drop-shadow */
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-pretitle {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 102, 255, 0.05);
  border-radius: 50px;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem); /* Reduced Size */
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--dark);
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    margin: 0 auto;
    order: 1;
  }
  
  .hero-image {
    order: 2;
    max-width: 80%;
    margin: 0 auto;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === STATS SECTION === */
.stats {
  background: #FFFFFF;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 30px;
  background: var(--bg-light);
  border-radius: 20px;
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 600;
}

/* === FEATURES GRID === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  padding: 40px;
  background: #FFFFFF;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 102, 255, 0.05);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 25px;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: #FFFFFF;
  transform: rotateY(360deg) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.section-pretitle {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--dark);
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* === CONTACT FORM === */
.contact-form {
  max-width: 700px;
  margin: 60px auto 0;
  padding: 60px;
  background: #FFFFFF;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* === FOOTER === */
.footer {
  background: var(--bg-light);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.footer-col p,
.footer-col a {
  color: var(--text-light);
  margin-bottom: 10px;
  display: block;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-light);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: #FFFFFF;
    box-shadow: -5px 0 20px rgba(0,0,0,0.05);
    flex-direction: column;
    padding: 40px;
    transition: right var(--transition-normal);
    align-items: flex-start;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .contact-form {
    padding: 30px;
  }
}

/* === ANIMATIONS === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #FFFFFF;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
