/* Rowell Holdings - Custom Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #06f9f9;
  --background-light: #f5f8f8;
  --background-dark: #0f2323;
  --transition-speed: 0.3s;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #05d9d9;
}

/* Header Animations */
header {
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Logo Hover Effect */
.logo-container {
  transition: transform var(--transition-speed) ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

/* Mobile Menu Styles */
.mobile-menu-button {
  display: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--background-dark);
  padding: 80px 20px 20px;
  transition: right 0.3s ease;
  z-index: 100;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex !important;
  }
  
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-menu {
    display: flex;
    flex-direction: column;
  }
  
  .mobile-menu-overlay {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .mobile-menu-button {
    display: none !important;
  }
  
  .desktop-nav {
    display: flex !important;
  }
}

/* Hero Section Animations */
.hero-content > * {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.6s;
}

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

/* Card Hover Effects */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), transparent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-speed);
  z-index: -1;
}

.product-card:hover::before {
  opacity: 0.3;
}

/* Button Pulse Effect */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6, 249, 249, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(6, 249, 249, 0);
  }
}

.btn-primary:hover {
  animation: pulse 1.5s infinite;
}

/* Form Focus Effects */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(6, 249, 249, 0.1);
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Success Message */
.success-message {
  background: rgba(6, 249, 249, 0.1);
  border: 1px solid var(--primary);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--background-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
  z-index: 50;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(6, 249, 249, 0.4);
}

/* Parallax Effect */
.parallax {
  transition: transform 0.5s ease-out;
}

/* Intersection Observer Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
}

/* Ecosystem Logos Animation */
.ecosystem-logos-container {
  max-width: 100%;
  position: relative;
}

.ecosystem-logos {
  display: flex;
  animation: scrollLogos 20s linear infinite;
  width: max-content;
}

.ecosystem-logos:hover {
  animation-play-state: paused;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ecosystem-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

/* Print Styles */
@media print {
  header {
    position: relative !important;
  }
  
  .mobile-menu,
  .scroll-to-top,
  button {
    display: none !important;
  }
}
