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

:root {
  --bg-primary: #08090d;
  --bg-secondary: #10121a;
  --accent-red: #ff0055;
  --accent-purple: #8e2de2;
  --accent-gold: #ffb703;
  --text-primary: #ffffff;
  --text-secondary: #a0a5c0;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-glow: rgba(142, 45, 226, 0.15);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-tamil: 'Arima', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Scrollbar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Typography & Layout Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tamil-text {
  font-family: var(--font-tamil);
  color: var(--accent-gold);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-purple) 70%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #ffffff 10%, var(--accent-gold) 60%, #e07a5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Gradients */
.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 45, 226, 0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

#orb-1 { top: -100px; right: -100px; }
#orb-2 { top: 40%; left: -200px; background: radial-gradient(circle, rgba(255, 0, 85, 0.12) 0%, rgba(0,0,0,0) 70%); }
#orb-3 { bottom: 10%; right: -100px; }

/* Header / Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 9, 13, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo i {
  color: var(--accent-red);
  font-size: 1.8rem;
  animation: pulse-glow 2s infinite alternate;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-btn .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-red));
  transition: var(--transition-smooth);
}

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

.subscribe-btn {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  color: var(--text-primary);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 85, 0.5);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  z-index: 1;
}

.hero-content {
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-tag {
  display: inline-block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-tag i {
  color: var(--accent-gold);
  margin-right: 6px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-red));
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(142, 45, 226, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(142, 45, 226, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Floating Elements in Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-img {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 50px rgba(142, 45, 226, 0.3));
  animation: float 6s ease-in-out infinite;
  z-index: 2;
  border-radius: 24px;
}

.floating-icon {
  position: absolute;
  background: rgba(16, 18, 26, 0.85);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 3;
  animation: float-icon 4s ease-in-out infinite alternate;
}

.floating-icon.fi-1 {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.floating-icon.fi-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 1.5s;
}

.floating-icon.fi-3 {
  bottom: 10%;
  left: 5%;
  animation-delay: 0.7s;
}

.floating-icon i {
  font-size: 1.8rem;
}

.floating-icon.fi-1 i { color: var(--accent-red); }
.floating-icon.fi-2 i { color: var(--accent-gold); }
.floating-icon.fi-3 i { color: #00f0ff; }

/* Dialog Marquee */
.marquee-container {
  background: var(--bg-secondary);
  border-y: 1px solid var(--glass-border);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 10;
}

.marquee-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
}

.marquee-item {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-right: 60px;
  text-transform: uppercase;
}

.marquee-item span {
  color: var(--accent-red);
}

.marquee-item.tamil {
  font-family: var(--font-tamil);
  color: var(--accent-gold);
}

/* Sections Base Styling */
section {
  position: relative;
  padding: 100px 0;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(142, 45, 226, 0.4);
  box-shadow: 0 12px 30px var(--glass-glow);
}

/* VJ Siddhu Stats Card Grid */
.channel-stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

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

/* Madurai Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.highlight-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.highlight-img-container {
  height: 220px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.highlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.highlight-card:hover .highlight-img {
  transform: scale(1.1);
}

.highlight-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.highlight-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.highlight-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.highlight-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.highlight-link {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.highlight-link:hover {
  gap: 10px;
}

/* Vlog Challenge Generator */
.challenge-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.challenge-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-red), var(--accent-gold));
}

.challenge-placeholder {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 40px 0;
  color: var(--text-secondary);
  font-style: italic;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-display {
  display: none;
  animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.challenge-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--glass-border);
  padding: 30px;
  border-radius: 16px;
  margin: 30px 0;
  position: relative;
}

.challenge-card-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-red);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.challenge-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 15px;
}

.challenge-dialogue {
  font-family: var(--font-tamil);
  color: var(--accent-gold);
  font-size: 1.6rem;
  font-weight: 700;
}

.spinner-animation {
  animation: shuffle 0.15s linear infinite;
}

/* Virtual Guestbook */
.guestbook-section {
  position: relative;
}

.guestbook-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(142, 45, 226, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

textarea.form-input {
  resize: none;
  height: 120px;
}

.comments-feed-container {
  height: 480px;
  overflow-y: auto;
  padding-right: 12px;
}

.comments-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-card {
  display: flex;
  gap: 16px;
  animation: fade-in-up 0.5s ease-out;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.comment-bubble {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 16px 20px;
  border-radius: 0 16px 16px 16px;
  flex-grow: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.comment-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.comment-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.comment-bubble.tamil-comment .comment-text {
  font-family: var(--font-tamil);
  font-size: 1.1rem;
  color: var(--accent-gold);
}

/* Footer styling */
footer {
  background: #040507;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px 0;
  z-index: 10;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-red));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(142, 45, 226, 0.35);
}

.footer-divider {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Animations Definitions */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes float-icon {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes pulse-glow {
  0% { text-shadow: 0 0 5px rgba(255, 0, 85, 0.3); }
  100% { text-shadow: 0 0 15px rgba(255, 0, 85, 0.8); }
}

@keyframes scale-up {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shuffle {
  0% { transform: scale(0.98) translateY(1px); opacity: 0.85; filter: blur(0.5px); }
  50% { transform: scale(1.02) translateY(-1px); opacity: 0.9; filter: blur(0.2px); }
  100% { transform: scale(0.98) translateY(1px); opacity: 0.85; filter: blur(0.5px); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media Queries (Responsive) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-description {
    max-width: 600px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .channel-stats {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .guestbook-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo i {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  header .subscribe-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent-red);
  }
  
  .mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent-red);
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(8, 9, 13, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 24px;
    margin: 0;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
  }
  
  .nav-links a::after {
    bottom: -4px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
