/* Modern, Vibrant Styling for AHM7 TECH - Unique Card Design with Images */

:root {
  /* Dark theme (default) - Exact colors from joinlwf.com */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #0088ffff 0%, #00d8feff 100%);
  --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --warning-gradient: linear-gradient(
    45deg,
    #ffd900ff 0%,
    #ff0062ff 50%,
    #7700d8ff 100%
  );

  --background-primary: #0a0a0a;
  --background-secondary: #1a1a2e;
  --background-card: rgba(26, 26, 46, 0.8);
  --background-hero: radial-gradient(
    ellipse at center,
    rgba(102, 126, 234, 0.15) 0%,
    rgba(10, 10, 10, 0.9) 70%
  );

  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #888888;
  --text-gradient: linear-gradient(
    135deg,
    #ffffff 0%,
    #a855f7 50%,
    #3b82f6 100%
  );
  --text-gradient-lwf: linear-gradient(135deg, #ffffff 0%, #f093fb 100%);

  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(102, 126, 234, 0.5);

  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(102, 126, 234, 0.4);

  /* Neon button colors */
  --neon-purple: #8b5cf6;
  --neon-pink: #ec4899;
  --neon-cyan: #06b6d4;
  --neon-green: #10b981;
  --neon-orange: #f97316;
  --neon-teal: #14b8a6;
  --neon-yellow: #eab308;
  --neon-red: #ef4444;
  --neon-blue: #3b82f6;
  --neon-indigo: #6366f1;
  --neon-lime: #84cc16;
  --neon-violet: #7c3aed;
  --neon-emerald: #059669;
  --neon-rose: #f43f5e;
  --neon-amber: #f59e0b;
}

/* Light theme */
[data-theme="light"] {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --warning-gradient: linear-gradient(
    45deg,
    #ffd900ff 0%,
    #ff0062ff 50%,
    #7700d8ff 100%
  );

  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-card: rgba(255, 255, 255, 0.9);
  --background-hero: radial-gradient(
    ellipse at center,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(255, 255, 255, 0.95) 70%
  );

  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-gradient: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #667eea 50%,
    #764ba2 100%
  );
  --text-gradient-lwf: linear-gradient(135deg, #1a1a2e 0%, #f093fb 100%);

  --border-color: rgba(0, 0, 0, 0.1);
  --border-glow: rgba(102, 126, 234, 0.3);

  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 40px rgba(102, 126, 234, 0.3);
}

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

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background-primary);
  overflow-x: hidden;
  transition: all 0.3s ease;
  position: relative;
}

/* Animated background - matching LWF style */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(102, 126, 234, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(240, 147, 251, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(79, 172, 254, 0.1) 0%,
      transparent 50%
    );
  z-index: -1;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(-20px) translateY(-10px);
  }
  50% {
    transform: translateX(20px) translateY(10px);
  }
  75% {
    transform: translateX(-10px) translateY(20px);
  }
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: var(--background-card);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: var(--border-glow);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.theme-toggle i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover i {
  transform: rotate(180deg);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header/Hero Section - Matching LWF style exactly */
.hero-section {
  background: var(--background-hero);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  border: 2px solid var(--border-color);
  padding: 4rem 3rem;
  margin-bottom: 4rem;
  margin-top: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  animation: rotate 20s linear infinite;
  z-index: -1;
}

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

.hero-section:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-hover);
}

/* Logo */
.logo-container {
  display: inline-block;
  position: relative;
  margin-bottom: 2rem;
}

.logo-container img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid transparent;
  background: var(--primary-gradient);
  padding: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
}

.logo-container:hover img {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* Typography - Matching LWF exactly */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--text-gradient-lwf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
  text-align: center;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 80vw;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Buttons - Exact LWF style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
  left: 100%;
}

/* Neon Buttons - Different colors for each card */
.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-neon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-neon:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.btn-neon:hover::before {
  left: 100%;
}

/* Individual neon button colors */
.btn-neon-purple {
  background: var(--neon-purple);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.btn-neon-pink {
  background: var(--neon-pink);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}
.btn-neon-cyan {
  background: var(--neon-cyan);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}
.btn-neon-green {
  background: var(--neon-green);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.btn-neon-orange {
  background: var(--neon-orange);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}
.btn-neon-teal {
  background: var(--neon-teal);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
}
.btn-neon-yellow {
  background: var(--neon-yellow);
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.4);
}
.btn-neon-red {
  background: var(--neon-red);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}
.btn-neon-blue {
  background: var(--neon-blue);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}
.btn-neon-indigo {
  background: var(--neon-indigo);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-neon-lime {
  background: var(--neon-lime);
  box-shadow: 0 4px 20px rgba(132, 204, 22, 0.4);
}
.btn-neon-violet {
  background: var(--neon-violet);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-neon-emerald {
  background: var(--neon-emerald);
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
}
.btn-neon-rose {
  background: var(--neon-rose);
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
}
.btn-neon-amber {
  background: var(--neon-amber);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-neon-purple:hover {
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}
.btn-neon-pink:hover {
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.6);
}
.btn-neon-cyan:hover {
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
}
.btn-neon-green:hover {
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}
.btn-neon-orange:hover {
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.6);
}
.btn-neon-teal:hover {
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.6);
}
.btn-neon-yellow:hover {
  box-shadow: 0 8px 30px rgba(234, 179, 8, 0.6);
}
.btn-neon-red:hover {
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.6);
}
.btn-neon-blue:hover {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}
.btn-neon-indigo:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}
.btn-neon-lime:hover {
  box-shadow: 0 8px 30px rgba(132, 204, 22, 0.6);
}
.btn-neon-violet:hover {
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}
.btn-neon-emerald:hover {
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.6);
}
.btn-neon-rose:hover {
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.6);
}
.btn-neon-amber:hover {
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

/* Cards Grid - Unique design with images */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.channel-card {
  background: var(--background-card);
  border: 2px solid var(--border-color);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 2;
}

.channel-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.channel-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-glow);
}

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

.channel-card:hover::after {
  opacity: 1;
  animation: rotate 10s linear infinite;
}

/* Card Image */
.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.channel-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.8));
  pointer-events: none;
}

/* Card Content */
.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-transform: capitalize;
  line-height: 1.6;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Icons - Exact LWF style */
.channel-icon {
  font-size: 2.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: block;
  transition: all 0.3s ease;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.channel-card:hover .channel-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.7));
}

/* Section Divider */
.section-divider {
  height: 2px;
  background: var(--primary-gradient);
  margin: 4rem 0;
  border-radius: 1px;

  opacity: 0.3;
}

/* Fixed Elements */
.fixed-btn {
  position: fixed;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  z-index: 50;
  backdrop-filter: blur(10px);
}

.scroll-top-btn {
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--accent-gradient);
  color: white;
  opacity: 0;
  transform: scale(0);
}

.fa-arrow-up {
  font-size: 1.5rem;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: scale(1);
}

.scroll-top-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.instagram-btn {
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--warning-gradient);
  color: white;
  font-size: 2rem;
}

.instagram-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Show More/Less Functionality */
.channel-card:nth-child(n + 4) {
  display: none;
}

.show-more-btn,
.show-less-btn {
  display: inline-flex;
  gap: 0.75rem;
  background: var(--success-gradient);
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  cursor: pointer;
  border: none;
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.show-more-btn::before,
.show-less-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.show-more-btn:hover,
.show-less-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.show-more-btn:hover::before,
.show-less-btn:hover::before {
  left: 100%;
}

.show-less-btn {
  display: none;
}

/* Footer */
footer {
  text-align: center;
  padding-bottom: 2rem;
  color: var(--text-secondary);
  margin-top: 2rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer i {
  color: #ff1a1a;
  margin: 0px 2px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}

/* Selection */
::selection {
  background: rgba(102, 126, 234, 0.3);
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .logo-container img {
    width: 120px;
    height: 120px;
  }

  .hero-section {
    padding: 3rem 2rem;
    margin-bottom: 3rem;
  }

  .channels-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .channel-card {
    min-width: 0;
  }

  .card-image {
    height: 180px;
  }

  .card-content {
    padding: 1.5rem;
  }

  .fixed-btn {
    width: 3rem;
    height: 3rem;
  }

  .scroll-top-btn {
    bottom: 1rem;
    right: 1rem;
  }

  .instagram-btn {
    bottom: 1rem;
    left: 1rem;
    font-size: 1.8rem;
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .theme-toggle i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .channels-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-image {
    height: 160px;
  }

  .card-content {
    padding: 1.25rem;
  }

  .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .btn-neon {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
  * {
    transition-duration: 0.3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  body::before {
    animation: none;
  }

  .hero-section::before {
    animation: none;
  }
}

/* Focus styles for accessibility */
.btn-primary:focus,
.btn-neon:focus,
.fixed-btn:focus,
.theme-toggle:focus {
  outline: 2px solid rgba(102, 126, 234, 0.5);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .fixed-btn,
  .show-more-btn,
  .show-less-btn,
  .theme-toggle {
    display: none !important;
  }

  .channel-card:nth-child(n + 4) {
    display: block !important;
  }

  body::before,
  .hero-section::before,
  .channel-card::after {
    display: none !important;
  }
}
