:root{
  --red:#e11b1b;
  --black:#0b0b0b;
  --white:#ffffff;
  --muted:#6b6b6b;
  --light-gray:#f8f8f8; 
  --dark-gray:#333333; 
}

/* --- Safe Fix for Right Side Empty Space --- */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

body {
    height: auto !important;
    min-height: 100vh;
}

/* Global Heading Padding */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif; 
  color: var(--black);
  padding-top: 30px; 
}

/* --- EXCEPTION: Remove padding inside Cards to keep them looking neat --- */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.team-card h1, .team-card h2, .team-card h3, .team-card h4, .team-card h5, .team-card h6,
.speaker-card h1, .speaker-card h2, .speaker-card h3, .speaker-card h4, .speaker-card h5, .speaker-card h6 {
    padding-top: 0 !important;
}

/* General Utilities */
.text-red { color: var(--red) !important; }
.bg-red { background-color: var(--red) !important; }
.bg-black { background-color: var(--black) !important; }
.bg-light-gray { background-color: var(--light-gray) !important; }
.hover-red:hover { color: var(--red) !important; }
.hover-black:hover { color: var(--black) !important; }

/* Buttons */
.btn-primary {
  background-color: var(--red);
  border-color: var(--red);
  color: var(--white);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}
.btn-outline-dark {
  border-color: var(--black);
  color: var(--black);
  transition: all 0.3s ease;
}
.btn-outline-dark:hover {
  background-color: var(--black);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.btn-outline-danger { 
  border-color: var(--red);
  color: var(--red);
  transition: all 0.3s ease;
}
.btn-outline-danger:hover {
  background-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(225,27,27,0.2);
}
.cta-btn {
  background-color: var(--white);
  color: var(--red);
  border-color: var(--white);
  font-weight: 600;
  transition: all 0.3s ease;
}
.cta-btn:hover {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}


/* Navbar visuals */
.navbar{
  backdrop-filter: blur(10px); 
  background:rgba(11,11,11,0.95); 
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 100%;
  right: 0;
  left: 0;
}
.navbar-brand img {
  max-width: 180px; 
  height: auto;
}
.navbar .nav-link{
  color:rgba(255,255,255,0.85); 
  transition:all .3s ease;
  font-weight: 600;
  position: relative;
}
.navbar .nav-link:hover{
  color:var(--red);
  transform:translateY(-2px);
  text-decoration: none; 
}
.navbar .nav-link::after { 
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--red);
  transition: width 0.3s ease;
}
.navbar .nav-link:hover::after {
  width: 100%;
}


/* --- New Hero Section Styles --- */

/* Container */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The Animation Canvas */
#threadsCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Gradient Overlay to make text pop against the busy animation */
.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--black) 90%);
  z-index: 2;
  pointer-events: none;
}

/* Typography & Glows */
.ls-2 { letter-spacing: 4px; text-transform: uppercase; font-size: 1.5rem; }
.hero-title { z-index: 3; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }

.glow-text {
  text-shadow: 0 0 20px rgba(225, 27, 27, 0.6), 0 0 40px rgba(225, 27, 27, 0.3);
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: var(--red);
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 50%;
  z-index: -1;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

/* Buttons */
.shadow-red { box-shadow: 0 10px 30px rgba(225, 27, 27, 0.4); }
.hover-red-border:hover { border-color: var(--red) !important; color: var(--red) !important; background: transparent; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; color: var(--red); }

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
}
.wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  animation: scrollWheel 2s infinite;
}
.arrow-down {
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: scrollArrow 2s infinite;
}

@keyframes scrollWheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}
@keyframes scrollArrow {
  0% { transform: rotate(45deg) translate(0, 0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: rotate(45deg) translate(5px, 5px); opacity: 0; }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .hero-title .display-2 { font-size: 3rem; }
  .ls-2 { font-size: 1rem; }
}


/* Long thread (Decorative) */
.thread-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0; 
  margin: 0;
  background: none !important; 
}

.thread-svg{
  width:150%; 
  height:250px;
  transform:translateX(-15%); 
}
#threadPath{
  filter:drop-shadow(0 10px 25px rgba(225,27,27,0.15)); 
  stroke-dasharray: 2000; 
  stroke-dashoffset: 2000;
}

/* Section Headings */
.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}
.section-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: var(--red);
  border-radius: 2px;
}
.section-heading.text-white::after {
  background-color: var(--white);
}
.section-heading .text-red {
  color: var(--red);
}


/* About / Theme */
.about-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05) !important;
}
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.about-card h3{
  font-weight:700;
  color: var(--red); 
}
.bg-dark{
  background:linear-gradient(90deg,var(--black),#1a1a1a); 
}
.theme-badge{
  background:rgba(255,255,255,0.08); 
  padding:12px 20px;
  border-radius:999px;
  color:var(--red);
  font-weight:700;
  border:1px solid rgba(255,255,255,0.1);
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.theme-content {
  border-color: var(--red);
}

/* Venue */
.placeholder-img-large{
  height:380px; 
  background:linear-gradient(135deg,var(--light-gray),#e0e0e0);
  border:2px dashed rgba(0,0,0,0.1);
  border-radius:12px;
  overflow: hidden;
}
.venue-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.venue-details li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.venue-details li i {
  font-size: 1.2rem;
}


.venue-photo video.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}


@media (max-width: 767px) {
  .placeholder-img-large {
    height: auto !important; 
    min-height: auto;        
    padding-bottom: 0;      
  }

  .venue-photo video.hero-video {
    height: auto !important; 
    position: relative;      
    object-fit: contain;     
    border-radius: 12px;     
  }
}

/* Speakers */
.speaker-card {
  background-color: var(--white);
  border-radius: 12px;
  transition:transform .35s ease, box-shadow .35s ease;
  border: 1px solid rgba(0,0,0,0.05) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.speaker-card:hover{
  transform:translateY(-8px);
  box-shadow:0 22px 50px rgba(0,0,0,0.15) !important;
}
.speaker-img{
  height:120px;
  width:120px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--light-gray),#e0e0e0);
  margin:0 auto;
  overflow: hidden;
  border: 3px solid var(--red); 
  box-shadow: 0 0 0 5px rgba(225,27,27,0.1); 
}
.speaker-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.speaker-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--black);
}
.speaker-title {
  color: var(--muted);
  font-size: 0.9rem;
}
.speaker-bio {
  font-size: 0.9rem;
  color: var(--dark-gray);
  flex-grow: 1; 
}

/* Schedule */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: rgba(255,255,255,0.2);
  transform: translateX(-50%);
  border-radius: 2px;
}
.timeline-item {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 50%;
  text-align: right;
}
.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  text-align: left;
}
.timeline-icon {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  z-index: 1;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.1);
}
.timeline-content {
  width: 45%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
}
.timeline-content h4 {
  font-weight: 700;
  font-size: 1.1rem;
}
.timeline-content p {
  font-weight: 600;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
    transform: translateX(0);
  }
  .timeline-item {
    justify-content: flex-start;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    width: calc(100% - 80px);
    text-align: left;
  }
  .timeline-icon {
    left: 20px;
    transform: translateX(-50%);
  }
}


/* Contact */
.contact-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.contact-list li i {
  font-size: 1.2rem;
}
.social-icons a {
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
  transform: translateY(-3px);
}
.map-placeholder {
  border: 1px solid rgba(0,0,0,0.08);
}
.map-placeholder iframe {
  border-radius: 10px;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  border-top: 5px solid var(--red);
}
.footer p,
.footer small,
.footer .small,
.footer ul li,
.footer .footer-link {
  color: var(--white) !important;
}
.footer .footer-link:hover {
  color: var(--red);
  text-decoration: underline;
}

.footer .footer-link{
  color:rgba(255,255,255,0.7);
  text-decoration:none;
  transition:color .3s ease;
}
.footer .footer-link:hover{
  color:var(--red);
  text-decoration:underline;
}
.footer h6 {
  color: var(--red);
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer .social-icons a {
  color: rgba(255,255,255,0.8);
  font-size: 1.5rem;
}
.footer .social-icons a:hover {
  color: var(--red);
}
.btn-red {
  background-color: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--red);
}


/* Accessibility focus */
a:focus,button:focus{outline:3px solid rgba(225,27,27,0.3);outline-offset:3px; border-radius: 5px;}

/* small helper to ensure navbar is above hero */
#mainNav{z-index:1050}

/* Additional thread styles */
#threadPath2 {
  stroke: rgba(225, 27, 27, 0.5);
  stroke-width: 3;
  filter: drop-shadow(0 5px 15px rgba(225, 27, 27, 0.05));
}
#threadPath3 {
  stroke: rgba(200, 20, 20, 0.4);
  stroke-width: 2.5;
  filter: drop-shadow(0 4px 12px rgba(200, 20, 20, 0.04));
}
#threadPath4 {
  stroke: rgba(180, 15, 15, 0.3);
  stroke-width: 2;
  filter: drop-shadow(0 3px 10px rgba(180, 15, 15, 0.03));
}
#threadPath5 {
  stroke: rgba(150, 10, 10, 0.25);
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 8px rgba(150, 10, 10, 0.02));
}

/* Responsive tweaks for non-hero sections */
@media (max-width:991px){
  .thread-wrap{height:180px; bottom:0;}
  .thread-svg{height:180px; width:180%; transform:translateX(-20%);}
  .section-heading { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  .section-heading::after { width: 60px; }
}
@media (max-width:767px){
  .navbar-brand { font-size: 0.9rem; }
  .navbar-nav { gap: 1rem !important; }
  .placeholder-img { height: 200px; }
  .placeholder-img-large { height: 250px; }
  .speaker-card { padding: 20px; }
  .speaker-img { height: 100px; width: 100px; }
  .speaker-name { font-size: 1.1rem; }
  .speaker-bio { font-size: 0.85rem; }
}