/* Fylo Deck Landing Page - White & Black Theme */

:root {
  --primary: #000000;
  --secondary: #333333;
  --accent: #000000;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #f0f0f0;
  --text-black: #000000;
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --text-light: #999999;
  --border-light: #e5e5e5;
  --border-dark: #cccccc;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-white);
  color: var(--text-black);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.navbar .btn-ghost {
  color: var(--text-black);
}

.navbar .btn-ghost:hover {
  background: var(--bg-gray);
}

/* Gradient Text Black */
.gradient-text {
  background: linear-gradient(135deg, #000000, #333333, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-hero {
  background: linear-gradient(135deg, #000000, #333333, #666666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero Section */
.hero {
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: #000000;
  top: -200px;
  left: -200px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: #333333;
  bottom: -150px;
  right: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: #666666;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.9); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Badge */
.glow-badge {
  background: var(--bg-black) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Bounce Animation */
@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
  animation: bounceSlow 3s ease-in-out infinite;
}

/* Bobble Button Effect */
.bobble-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--text-black) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bobble-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: #333333 !important;
}

.bobble-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.bobble-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.bobble-btn:hover::before {
  width: 300px;
  height: 300px;
}

.bobble-btn-outline {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid var(--text-black) !important;
  color: var(--text-black) !important;
  background: transparent !important;
}

.bobble-btn-outline:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: var(--text-black) !important;
  color: white !important;
}

.bobble-btn-outline:active {
  transform: translateY(0) scale(0.98);
}

.bobble-btn-small {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bobble-btn-small:hover {
  transform: scale(1.15);
  background: var(--bg-gray);
}

.bobble-btn-small:active {
  transform: scale(0.9);
}

/* Super Prominent CTA */
.btn-super-prominent {
  background: linear-gradient(45deg, #000, #444, #000) !important;
  background-size: 200% auto !important;
  color: white !important;
  animation: shine 3s linear infinite !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* Navigation Links */
.nav-link {
  position: relative;
  transition: color 0.3s;
  color: var(--text-gray);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--text-black);
  transition: all 0.3s;
  transform: translateX(-50%);
}

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

.nav-link:hover {
  color: var(--text-black);
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border-radius: 40px;
  padding: 10px;
  margin: 0 auto;
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid #333;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateX(5deg); }
  50% { transform: translateY(-20px) rotateX(5deg); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0a0a0a, #1a1a1a);
  border-radius: 32px;
  padding: 20px;
  overflow: hidden;
}

.deck-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 40px;
}

.deck-btn-preview {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: buttonPop 2s ease-in-out infinite;
}

.deck-btn-preview:nth-child(1) { animation-delay: 0s; background: #333; }
.deck-btn-preview:nth-child(2) { animation-delay: 0.2s; background: #444; }
.deck-btn-preview:nth-child(3) { animation-delay: 0.4s; background: #555; }
.deck-btn-preview:nth-child(4) { animation-delay: 0.6s; background: #666; }
.deck-btn-preview:nth-child(5) { animation-delay: 0.8s; background: #222; }
.deck-btn-preview:nth-child(6) { animation-delay: 1.0s; background: #333; }
.deck-btn-preview:nth-child(7) { animation-delay: 1.2s; background: #444; }
.deck-btn-preview:nth-child(8) { animation-delay: 1.4s; background: #555; }

@keyframes buttonPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.95); }
}

/* Cards */
.card, .card-hover {
  background: var(--bg-white) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--text-black) !important;
}

/* About Visual */
.about-visual {
  position: relative;
  padding: 40px;
}

.device-pair {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 60px;
}

.device {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background: var(--bg-light);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.device:hover {
  transform: scale(1.05);
  border-color: var(--text-black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.connection-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #000, #666);
  opacity: 0.3;
}

.connection-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--text-black);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: dotMove 2s linear infinite;
}

@keyframes dotMove {
  0% { left: 0; }
  100% { left: calc(100% - 10px); }
}

/* Feature Cards */
.feature-card {
  background: linear-gradient(145deg, var(--bg-white), var(--bg-light));
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--text-black);
  transform: scaleX(0);
  transition: transform 0.4s;
}

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

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: var(--bg-gray);
  color: var(--text-black);
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--text-black);
  color: white;
}

/* Download Cards */
.download-card {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, #000, #333);
  transition: all 0.4s;
}

.download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.download-card-inner {
  background: var(--bg-white);
  border-radius: 22px;
  padding: 40px;
  text-align: center;
  height: 100%;
}

.download-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--text-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.download-icon.mobile {
  background: #333;
}

.download-card:hover .download-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Section Backgrounds */
section {
  background: var(--bg-white);
}

.bg-light-section {
  background: var(--bg-light) !important;
}

/* Collapse / Accordion */
.collapse {
  background: var(--bg-white) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 12px;
}

.collapse-title {
  color: var(--text-black) !important;
}

.collapse-content {
  color: var(--text-gray) !important;
}

.collapse-arrow .collapse-title:after {
  color: var(--text-black) !important;
}

/* Form Inputs */
.input, .textarea {
  background: var(--bg-white) !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-black) !important;
  border-radius: 8px;
}

.input:focus, .textarea:focus {
  border-color: var(--text-black) !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) !important;
}

.input::placeholder, .textarea::placeholder {
  color: var(--text-light) !important;
}

/* Footer */
footer {
  background: var(--bg-light) !important;
  border-top: 1px solid var(--border-light) !important;
}

footer a {
  color: var(--text-gray);
}

footer a:hover {
  color: var(--text-black);
}

/* Badges */
.badge {
  font-weight: 500;
}

.badge-primary {
  background: var(--text-black) !important;
  color: white !important;
}

.badge-secondary {
  background: #333 !important;
  color: white !important;
}

.badge-success {
  background: #22c55e !important;
  color: white !important;
}

.badge-accent {
  background: #666 !important;
  color: white !important;
}

.badge-warning {
  background: #f59e0b !important;
  color: white !important;
}

.badge-info {
  background: #3b82f6 !important;
  color: white !important;
}

/* Buttons */
.btn-primary {
  background: var(--text-black) !important;
  border-color: var(--text-black) !important;
}

.btn-primary:hover {
  background: #333 !important;
  border-color: #333 !important;
}

.btn-secondary {
  background: #333 !important;
  border-color: #333 !important;
  color: white !important;
}

.btn-secondary:hover {
  background: #444 !important;
  border-color: #444 !important;
}

.btn-outline {
  border-color: var(--text-black) !important;
  color: var(--text-black) !important;
}

.btn-outline:hover {
  background: var(--text-black) !important;
  color: white !important;
}

.btn-ghost {
  color: var(--text-gray);
}

.btn-ghost:hover {
  background: var(--bg-gray);
  color: var(--text-black);
}

/* Alert */
.alert-info {
  background: var(--bg-gray) !important;
  border-color: var(--border-light) !important;
  color: var(--text-gray) !important;
}

/* Progress */
.progress-primary {
  background: var(--bg-gray) !important;
}

.progress-primary::-webkit-progress-value {
  background: var(--text-black) !important;
}

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

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

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Custom Cursor Styles */
#cursor-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

#cursor-main {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
  z-index: 9999;
}

#cursor-trail {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out;
  z-index: 9998;
}

/* Cursor effects on interactive elements */
.cursor-active #cursor-main {
  width: 16px;
  height: 16px;
  background: rgba(0, 0, 0, 0.5);
}

.cursor-attract #cursor-trail {
  width: 40px;
  height: 40px;
  opacity: 0.2;
  background: rgba(0, 0, 0, 0.1);
}

.cursor-reveal #cursor-trail {
  width: 100px;
  height: 100px;
  opacity: 0.1;
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Hide default cursor on body when custom cursor is active */
body.cursor-active {
  cursor: none;
}

/* Loading Spinner */
.loading {
  border-color: var(--border-light) !important;
  border-top-color: var(--text-black) !important;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Particle Effect */
.particle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--text-black);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: particleFloat 1s forwards;
}

@keyframes particleFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* Modal */
.modal-box {
  background: var(--bg-white) !important;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
}

/* Text Colors */
.text-base-content {
  color: var(--text-black) !important;
}

.text-base-content\/60 {
  color: var(--text-gray) !important;
}

.text-base-content\/70 {
  color: var(--text-gray) !important;
}

.text-base-content\/40 {
  color: var(--text-light) !important;
}

/* Dropdown */
.dropdown-content {
  background: var(--bg-white) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Progress Toast */
.toast {
  z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
  .phone-mockup {
    width: 220px;
    height: 440px;
  }

  .deck-preview {
    gap: 6px;
    padding-top: 30px;
  }

  .deck-btn-preview {
    font-size: 14px;
  }

  .device-pair {
    flex-direction: column;
    gap: 20px;
  }

  .connection-line {
    width: 2px;
    height: 40%;
    top: 30%;
  }
}

/* Smooth transitions for theme elements */
* {
  transition-property: background-color, border-color, color;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

/* Project Cards */
.project-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover {
  border-color: var(--text-black);
}

.project-card .h-48 {
  transition: transform 0.4s;
}

.project-card:hover .h-48 {
  transform: scale(1.05);
}

.project-card:hover .btn-primary {
  background: #333 !important;
}

/* Icon animations on project cards */
.project-card:hover i.text-6xl {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
