/* Global styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap');
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    height: 100%;
}

body {
    /* display: flex; */
    flex-direction: column;
}

/* TEDx Animation Styles */
.tedx-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.tedx-animation {
    font-size: 50px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    animation: fadeOut 3s forwards, scaleUp 1.5s ease-in-out;
}

.tedx-animation .ted {
    color: red;
    font-size: 70px;
}

.tedx-animation .x {
    color: white;
    font-size: 20px;
    
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(0.5);
    }
    100% {
        transform: scale(1);
    }
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to right, black, #eb0028);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.7);
}

.navbar .logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.navbar .logo img {
    height: 55px;
    margin-right: 10px;
}

.navbar .logo .tedx-text {
    color: #eb0028;
    font-weight: bold;
}

.navbar .logo .imi-delhi-text {
    color: white;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: -10px;
    padding: 30px;
}

.navbar ul li {
    margin: 0 20px;
    position: relative; /* Ensures hover effects apply only to the text */
}

.navbar ul li a {
    text-decoration: none;
    color: white; /* Default text color */
    font-size: 18px;
    text-transform: uppercase;
    transition: all 0.3s ease; /* Smooth hover effect */
    background-color: transparent; /* Ensures no background color interferes */
}

.navbar ul li a:hover {
    color: rgb(0, 0, 0); /* Changes text color to black on hover */
    background-color: transparent; /* No background color on hover */
}


/* Hero section styles */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - -20px); /* Increase the height of the hero section */
    position: relative; /* Ensure proper positioning for the rotating images */
    border-bottom: 1px solid white; /* Thick white border separating the hero section */
    overflow: hidden; /* Prevent images from overflowing the section */
    margin-bottom: -50px; /* Push the border closer to the content section */
}

.hero-image-container {

    width: 100%;
    height: 100%;
    position: relative; /* Required for absolute positioning of images */
}

.hero-image {
    width: 100%;
    height: 650px;
    object-fit: cover; /* Ensures images fit properly */
    position: absolute;
    top: 92px;
    left: 0;
    opacity: 0; /* Images are hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fade effect during rotation */
}

.hero-image.active {
    opacity: 1; /* Only the active image is visible */
}
/* --- HERO OVERLAY STYLES (UPDATED) --- */

/* --- HERO OVERLAY STYLES (UPDATED) --- */

.hero-curve-overlay {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 20;
    pointer-events: none;
}

.curve-svg {
    display: block;
    width: 100%;
    height: 90px; 
    transform-origin: bottom;
}

.curve-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px; 
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 0 5%;
    box-sizing: border-box;
    pointer-events: auto; 
}

/* --- LEFT SIDE: Large Logo --- */
.curve-left-logo {
    display: flex;
    align-items: center; /* Centered vertically */
    transform: translateY(10px); 
    right: 10px;
}

/* Increased size for Left TED text */
.ted-text-large {
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 42px; /* Much Bigger */
    color: #eb0028;
    letter-spacing: -2px;
    margin-right: 0px;
    line-height: 1;
}

/* Increased size for Left X Image */
.x-icon-large {
    height: 46px; /* Bigger to match text */
    width: auto;
    margin-bottom: -10px; /* Align visually with text baseline */
    margin-left: -60px;
}

/* --- RIGHT SIDE --- */
.curve-right-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    justify-content: center;
    gap: 4px; 
    margin-bottom: 5px; 
}

/* --- THE HEADING STYLES --- */
.heading-wrapper {
    overflow: hidden; 
}

.tedx-heading {
    font-family: 'Helvetica', sans-serif;
    font-size: 26px; /* Base font size */
    margin: 0;
    line-height: 1;
    /* Keeping your animation */
    animation: slideFadeLoop 5s ease-in-out infinite;
}

/* 1. TED: Thick and Red */
.ted-bold-red {
    font-weight: 900; /* Extra Thick */
    color: #eb0028;
}

/* 2. x: Red and Top Positioned */
.x-super-red {
    font-weight: 700;
    color: #eb0028;
    font-size: 0.7em; /* Smaller relative to TED */
    position: relative;
    top: -0.4em; /* Moves it UP beside the D */
    margin-left: 1px;
}

/* 3. IMIDelhi: Black */
.imi-black {
    color: black;
    font-weight: 600; /* Slightly thinner than TED */
    margin-left: 6px; /* Space after the x */
}

/* Animation Keyframes (Unchanged) */
@keyframes slideFadeLoop {
    0%, 45% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0; transform: translateX(30px); }
    51% { opacity: 0; transform: translateX(-30px); }
    55% { opacity: 1; transform: translateX(0); }
    100% { opacity: 1; transform: translateX(0); }
}

/* --- Action Row (Text + Button) --- */
.action-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
}

.book-now-pill {
    background-color: #eb0028;
    color: white;
    padding: 6px 18px; 
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: 1px solid #eb0028;
    white-space: nowrap;
}

.book-now-pill:hover {
    background-color: transparent;
    color: #eb0028;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .curve-svg { height: 120px; }
    .curve-content { height: 120px; justify-content: center; align-items: flex-end; padding-bottom: 10px; }

    .curve-left-logo {
        position: absolute;
        top: 40px; 
        left: 50%;
        transform: translateX(-50%);
    }
    /* Adjust logo size slightly on mobile so it doesn't break layout */
    .ted-text-large { font-size: 32px; }
    .x-icon-large { height: 28px; }

    .curve-right-action { align-items: center; width: 100%; }
    .action-row { flex-direction: column; gap: 5px; }
    .promo-text { font-size: 10px; }
}


/* --- Content Section & Background --- */
.content-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  margin-top: 54px;
  background: url('Assets/Images/theme_box-bg.png') no-repeat center center / cover;
}

.background-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.theme-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
}
/* Optional: tweak shimmer intensity/speed via CSS variables */
.theme-title {
  --shimmer-opacity: 0.9;     /* 0.5–1.0 */
  --shimmer-duration: 3.6s;   /* speed of L<->R sweep */
}

.science-gothic-theme-title {
  font-family: "Science Gothic", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "CTRS" 0;
}
/* Base title */
.theme-title {
  position: relative;
  font-family: 'Science Gothic', sans-serif;
  font-size: clamp(36px, 7.2vw, 90px);
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  padding: 20px 12px;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  max-width: 95vw;
  z-index: 3;
  opacity: 1;
  isolation: isolate;

  /* Mask used only during intro sweep */
  mask-image: linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 12%,
    rgba(0,0,0,1) 88%,
    rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 12%,
    rgba(0,0,0,1) 88%,
    rgba(0,0,0,0) 100%);
  mask-size: 300% 100%;
  -webkit-mask-size: 300% 100%;
  mask-position: 0% 0%;
  -webkit-mask-position: 0% 0%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.theme-title.is-visible,
.theme-title .char.is-visible {
  opacity: 1 !important;
}

/* Intro gradient (temporary) */
.theme-title.gradient-text {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffb3b3 25%,
    #eb0028 50%,
    #ffb3b3 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: #ffffff;
}

.theme-title.gradient-ready {
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Character animation baseline */
.theme-title .char {
  display: inline-block;
  opacity: 1;
  transform: translateY(60px);
  color: inherit;
  -webkit-text-fill-color: initial;
  will-change: transform, opacity;
}

@keyframes pop-in {
  0%   { opacity: 0; transform: translateY(60px); }
  60%  { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes collision {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}
@keyframes illusion-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.animate-flow { animation: illusion-flow 6s linear infinite; }

@keyframes mask-pan-ltr {
  0%   { mask-position: 0% 0%; -webkit-mask-position: 0% 0%; }
  100% { mask-position: 100% 0%; -webkit-mask-position: 100% 0%; }
}
@keyframes mask-pan-rtl {
  0%   { mask-position: 100% 0%; -webkit-mask-position: 100% 0%; }
  100% { mask-position: 0% 0%; -webkit-mask-position: 0% 0%; }
}
.theme-title.mask-loop {
  animation:
    mask-pan-ltr 3.2s ease-in-out 0s 1,
    mask-pan-rtl 3.2s ease-in-out 3.2s infinite;
  text-shadow: 0 0 0.5px rgba(255,255,255,0.25);
}

/* FINAL STATE: solid white + infinite red shimmer; mask frozen */
.theme-title.final-solid {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none;
  position: relative;

  /* Kill any running mask/gradient animation and freeze mask mid */
  animation: none !important;
  mask-position: 50% 0% !important;
  -webkit-mask-position: 50% 0% !important;

  /* Ensure no gradient underlay remains */
  background: none !important;
}

/* Red wave shimmer — clipped to glyphs and always visible */
.theme-title.final-solid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* Stronger band so it clearly reads as a wave */
  background: linear-gradient(
    100deg,
    rgba(235, 0, 40, 0) 0%,
    rgba(235, 0, 40, 0) 32%,
    rgba(255, 120, 120, 0.66) 40%,
    rgba(235, 0, 40, 0.98) 50%,
    rgba(255, 120, 120, 0.66) 60%,
    rgba(235, 0, 40, 0) 68%,
    rgba(235, 0, 40, 0) 100%
  );
  background-size: 220% 100%;
  background-position: -60% 50%;

  /* Only inside the text */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Sheen over white; fallbacks below will keep it visible */
  mix-blend-mode: screen;
  opacity: var(--shimmer-opacity);

  animation: red-reflect-wave var(--shimmer-duration) ease-in-out infinite;
  will-change: background-position;
}

/* Fallback: if mix-blend-mode is unsupported or background is dark,
   layer an extra soft glow inside the text for visibility */
.theme-title.final-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(235,0,40,0.15), rgba(235,0,40,0) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.5;
}

/* The continuous back-and-forth wave */
@keyframes red-reflect-wave {
  0%   { background-position: -60% 50%; }
  50%  { background-position: 160% 50%; }
  100% { background-position: -60% 50%; }
}




/* --- Subtitle --- */
.subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: #e0e0e0;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.tedx-highlight {
  color: #eb0028;
  font-weight: 800;
  font-size: 1.2em;
}

/* --- Countdown Timer --- */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.timer-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  min-width: 110px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  perspective: 800px;
  position: relative;
  overflow: hidden;
}

/* Flip uses two layers: top (current) and bottom (next) */
.timer-unit-wrap {
  position: relative;
  height: 1em;
  display: inline-block;
}

.timer-unit {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transform-origin: center top;
  backface-visibility: hidden;
}

/* two faces for the flip */
.unit-face {
  display: block;
  transform-origin: center top;
}
.unit-current { }
.unit-next { position: absolute; inset: 0; }

/* Flip: rotate current up, then reveal next */
@keyframes flip-out-in {
  0%   { transform: rotateX(0deg); }
  49%  { transform: rotateX(90deg); }
  50%  { transform: rotateX(-90deg); }
  100% { transform: rotateX(0deg); }
}
.animate-flip .unit-current { animation: flip-out-in 0.6s ease-in-out; }
.animate-flip .unit-next    { animation: flip-out-in 0.6s ease-in-out; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .theme-title {
    font-size: 45px;
    white-space: normal; /* allow wrapping on small screens so text fits */
  }
  .timer-box { min-width: 70px; padding: 10px; }
  .timer-unit { font-size: 32px; }
  .label { font-size: 10px; }
}

/* --- Theme Section  --- */
.theme-section {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Ensures vertical centering */
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px 20px; /* Added top/bottom padding */
    max-width: 1200px; /* Constraints width on huge screens */
    margin: 0 auto; /* Centers the section */
}
.theme-image img {
    width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
}

.theme-content {
    flex: 1;
    text-align: left;
}

/* This class is for the poem at the top */
.theme-poem {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 15px; /* Slightly smaller than main text */
    line-height: 1.7;
    text-align: center;
    color: #e0e0e0;
    margin-bottom: 30px;
}

/* This is the new style for "Rhythm of Illusions" */
.theme-subtitle {
    font-family: 'Cinzel', cursive;
    font-weight: 700; /* Bold */
    font-size: 35px;
    color: #eb0028; /* TEDx Red */
    text-align: center;
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5); /* Add a glow */
}

/* Updated style for the main paragraphs */
.theme-content p {
    /* This font comes from the HTML <head> import */
    font-family: 'Poppins', sans-serif;
    font-size: 20px; 
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e0e0e0;
}

blockquote {
    font-size: 20px;
    font-style: italic;
    margin: 20px 0;
    color: #ffffff;
}

blockquote cite {
    font-size: 18px;
    font-weight: bold;
    color: #eb0028;
}

/* Speaker Section */
.speaker-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05); /* Slightly faded background */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
}

.speaker-heading {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
}

.speaker-section p {
    font-size: 25px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Red Dot Animation */
.red-dot-animation-container {
    display: inline-block;
    position: relative;
}

.red-dot-text {
    color: #eb0028; /* Red color for text */
    font-weight: bold;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.red-dot-ball {
    width: 20px;
    height: 20px;
    background-color: #eb0028;
    border-radius: 50%;
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce-and-transform 3s ease-in-out; /* Updated for 3 bounces */
}

/* Bounce Platform */
.bounce-platform {
    width: 60px;
    height: 10px;
    background-color: #ff4d4d; /* Light red for the platform */
    position: absolute;
    bottom: -20px; /* Place it below the ball */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    display: none; /* Only show when ball is visible */
}

/* Animation Keyframes */
@keyframes bounce-and-transform {
    0% {
        transform: translate(-50%, 0) scale(1);
    }
    20% {
        transform: translate(-50%, -50px) scale(1.2);
    }
    40% {
        transform: translate(-50%, 0) scale(1);
    }
    60% {
        transform: translate(-50%, -30px) scale(1.1);
    }
    80% {
        transform: translate(-50%, 0) scale(1);
    }
    100% {
        transform: translate(-50%, 0) scale(1);
        opacity: 0; /* Fade out */
    }
}

/* Nomination Button */
.nomination-ball {
    width: 50px;
    height: 50px;
    background-color: #eb0028; /* Red color */
    border-radius: 50%;
    display: block;
    margin: 20px auto;
    box-shadow: 0px 4px 10px rgba(255, 0, 0, 0.6);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nomination-ball:hover {
    transform: scale(1.2); /* Slightly enlarge on hover */
    background-color: #ff4d4d; /* Lighter red */
}






/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: black;
    color: white;
}

.footer a {
    color: #eb0028;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Global styles*/
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    height: 100%;
    background: radial-gradient(circle, #1f1f1f, #000000, #880202); /* Reddish shiny background */
    color: red;
}
    


/* TEDx Animation Styles */
.tedx-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.tedx-animation {
    font-size: 50px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    animation: fadeOut 3s forwards, scaleUp 1.5s ease-in-out;
}

.tedx-animation .ted {
    color: #eb0028;
}

.tedx-animation .x {
    color: white;
    font-size: 70px;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(0.5);
    }
    100% {
        transform: scale(1);
    }
}

/* Navbar styles */
 .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to right, black, #eb0028);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.7);
}

.navbar ul li a:hover {
    color: black;
} 

/* About Us Section */
.about-us-section {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Changed from flex-start for better alignment */
    padding: 60px 20px; /* Better spacing */
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
}

.about-us-content {
    flex: 3;
    margin-right: 20px;
}

.about-us-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.about-us-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ff4b2b;
}

.about-us-content p {
    font-size: 25px;
    line-height: 1.8;
    color: #e0e0e0;
}

/* Buttons on the Right */
.about-us-buttons {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: left;
}

.about-btn {
    background: transparent;
    border: 2px solid #eb0028;
    color: #eb0028;
    font-size: 20px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.about-btn:hover {
    border-color: #ff0000; /* Neon red glow effect */
    box-shadow: 0px 0px 10px #ff4b2b; /* Glowing effect */
    background: #ff4b2b;
    color: white;
}
/* Fade-in Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px); /* Content starts slightly below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Content moves to its original position */
    }
}
/* Reasons to Attend Section */
.reasons-section {
    padding: 60px 20px;
    background: radial-gradient(circle, #1f1f1f, #000000, #880202); /* Same as About Us background */
    text-align: center;
}

.reasons-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.reasons-description {
    font-size: 20px;
    color: #e0e0e0;
    margin-bottom: 40px;
}

/* Grid Layout for Circular Elements */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Reduced gap slightly for better fit */
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.reason-item {
    position: relative;
    width: 260px; /* size of the circles */
    height: 260px; 
}

/* Main Circle */
.circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white; /* Default white background */
    border: 4px solid #eb0028; /* Reddish border */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 15px rgba(255, 75, 43, 0.8); /* Reddish glow */
    overflow: hidden; /* Ensures background image stays inside circle */
    padding: 15px; /* Added padding for text */
}

.circle:hover {
    box-shadow: 0px 0px 25px rgba(255, 75, 43, 1); /* Stronger glow on hover */
    transform: scale(1.1); /* Slight zoom */
}

/* Number Circle */
.number-circle {
    position: absolute;
    top: -10px;
    left: calc(50% - 25px); /* Center horizontally */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: black;
    border: 3px solid #eb0028; /* Reddish border */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0px 0px 10px rgba(255, 75, 43, 0.8); /* Glowing effect */
    z-index: 1; /* Ensures it stays above the background image */
}

/* Circle Heading */
.circle-heading {
    margin-top: 30px;
    font-size: 18px; /* Adjusted font size */
    font-weight: bold;
    color: black;
    text-align: center;
    padding: 0 10px; /* Added padding to prevent text from touching borders */
    word-wrap: break-word; /* Ensures long text wraps */
    line-height: 1.4; /* Improved spacing between lines */
    transition: opacity 0.3s ease-in-out;
}

/* Circle Subtext */
.circle-subtext {
    font-size: 14px; /* Adjusted font size */
    font-style: italic;
    color: black;
    text-align: center;
    margin-top: 10px;
    padding: 0 10px; /* Added padding to prevent text from touching borders */
    word-wrap: break-word; /* Ensures long text wraps */
    line-height: 1.4; /* Improved spacing between lines */
    transition: opacity 0.3s ease-in-out;
}

/* Background Image on Hover */
.circle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    border-radius: 50%; /* Ensures the image is circular */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out;
    z-index: 0; /* Behind the text */
}

.circle:hover::before {
    opacity: 0.8; /* Image fades in with reduced opacity */
}

.circle:hover .circle-heading,
.circle:hover .circle-subtext {
    opacity: 0; /* Text fades out */
}

/* Background Image for Each Circle */
.reasons-grid .reason-item:nth-child(1) .circle::before {
    background-image: url('Assets/Images/image1.png'); 
}

.reasons-grid .reason-item:nth-child(2) .circle::before {
    background-image: url('Assets/Images/image2.png'); 
}

.reasons-grid .reason-item:nth-child(3) .circle::before {
    background-image: url('Assets/Images/image3.png'); 
}

.reasons-grid .reason-item:nth-child(4) .circle::before {
    background-image: url('Assets/Images/image4.png'); 
}

.reasons-grid .reason-item:nth-child(5) .circle::before {
    background-image: url('Assets/Images/image5.png'); 
}

.reasons-grid .reason-item:nth-child(6) .circle::before {
    background-image: url('Assets/Images/image6.png'); 
}

/* Footer Section Container */

.footer-section {
    position: relative;
    background: linear-gradient(to bottom, #330000, #000);
    color: white;
    padding: 50px 20px 0;
    text-align: center;
    
    /* CHANGE THIS LINE */
    overflow: visible; /* Was hidden - needs to be visible for popup to show */
}
.footer-bg-clipper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* CRITICAL for background */
    z-index: 0;
    pointer-events: none;
}

/* Find .animated-background in your CSS and replace it with this */
.animated-background {
    position: absolute;
    top: 0; /* Changed from -50px to cover top edge */
    left: -50%; /* Adjusted center */
    width: 200%;
    height: 100%; /* CHANGED: Was 300px. Now fills the whole footer area */
    background: radial-gradient(circle, #eb0028 60%, transparent 60%);
    animation: background 15s linear infinite; /* Slowed down slightly for elegance */
    border-radius: 40%; /* Gives it that organic 'ball' curve */
}

/* Footer Content Wrapper */
.footer-content {
    position: relative;
    z-index: 2;
}

/* Find this in your CSS and update it */
.footer-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
    
    /* ADD THESE TWO LINES */
    position: relative; 
    z-index: 10; /* Ensures the popup sits on top of the next row */
}

.footer-box {
    text-align: center;
    position: relative;
}

.footer-underline {
    height: 2px;
    width: 80%;
    background: white;
    border-top: 2px dashed white;
    margin: 0 auto 20px;
}

/* Heading Links (if applicable) */
.footer-heading {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.footer-heading a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.footer-heading a:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Whitish transparent background */
}

/* --- SUBTEXT LINKS (Book Ticket / Contact Us) --- */
.footer-subtext {
    font-size: 16px;
    font-weight: 400;
    color: white;
}

.footer-subtext a {
    color: white !important; /* Force white text */
    text-decoration: none !important; /* No underline */
    padding: 5px 12px; /* Add padding so the background looks like a button */
    border-radius: 5px; /* Soft rounded corners */
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* Ensures padding works correctly */
}

/* THE HOVER EFFECT: White text + Translucent Background */
.footer-subtext a:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15); /* The "whitish" background */
    backdrop-filter: blur(2px); /* Optional: adds a slight glass effect */
}

.footer-subtext .arrow {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff; /* Arrow stays red */
    margin-left: 5px;
}

/* Email Section */
.email-section {
    text-align: center;
}

.email-section p {
    font-size: 18px;
    margin-bottom: 20px;
}

.email-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.email-input {
    padding: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    border: none;
    outline: none;
    border-bottom: 2px solid white;
    background: transparent;
    color: white;
    width: 300px;
}

.email-input::placeholder {
    color: white;
    opacity: 0.8;
}

.submit-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background: white;
    color: red;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.submit-button:hover {
    background: red;
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
}

.footer-left {
    text-align: left;
}

.footer-left h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-left p {
    font-size: 14px;
    color: white;
    margin: 5px 0;
}

.social-icons a img {
    width: 24px;
    margin-right: 10px;
    transition: transform 0.3s;
}

.social-icons a img:hover {
    transform: scale(1.2);
}

.footer-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-right ul li {
    display: inline;
}

.footer-right ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-right ul li a:hover {
    color: red;
}

.footer-right p {
    font-size: 14px;
    margin-top: 10px;
    color: white;
}

/* Animation Keyframes */
@keyframes background {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* --- CONTACT TOOLTIP STYLES --- */

/* 1. The Wrapper: anchors the absolute tooltip */
.contact-wrapper {
    position: relative; 
    display: inline-block;
    cursor: pointer;
}

/* 2. The Tooltip Box (Hidden by default) */
.contact-tooltip {
    position: absolute;
    bottom: 140%; /* Positions it above the text initially */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Start slightly lower for animation */
    
    width: 320px;
    padding: 25px;
    
    /* THE SHINY BLACKISH LOOK */
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(40, 0, 0, 0.9));
    backdrop-filter: blur(10px); /* Glass blur effect */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle top border */
    border-bottom: 2px solid #eb0028; /* TED Red accent at bottom */
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    
    /* Animation State: Hidden */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy effect */
    z-index: 100;
    pointer-events: none; /* Prevents clicking when hidden */
}

/* 3. The Hover Effect (Makes it appear) */
.contact-wrapper:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    bottom: 120%; /* Moves up slightly */
    pointer-events: auto; /* Enables clicking links inside */
}

/* Add a tiny triangle pointer at the bottom of the box */
.contact-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #eb0028 transparent transparent transparent; /* Red pointer */
}

/* --- TOOLTIP CONTENT STYLING --- */

.tooltip-content {
    text-align: left; /* Elegant alignment */
    font-family: 'Montserrat', sans-serif;
    color: white;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-row .icon {
    color: #eb0028; /* Red Icons */
    font-size: 18px;
}

.ted-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted #eb0028;
    transition: color 0.3s;
}

.ted-link:hover {
    color: #eb0028;
}

/* Divider Line */
.tooltip-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    margin: 15px 0;
}

/* Thank You Message */
.thank-you-msg {
    text-align: center;
    font-size: 13px;
    font-style: italic;
    color: #ddd;
    line-height: 1.4;
}

.thank-you-msg .highlight {
    color: #eb0028;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    font-size: 14px;
}
/* --- KEEP ALL YOUR GLOBAL STYLES (HEADER, HERO, ETC) THE SAME UNTIL HERE --- */

/* =========================================
   MASTER RESPONSIVE MEDIA QUERIES
   ========================================= */

/* --- TABLETS & SMALL LAPTOPS (Max Width: 1024px) --- */
@media (max-width: 1024px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .theme-title {
        font-size: 60px;
    }
}

/* --- TABLETS & LARGE PHONES (Max Width: 900px) --- */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .navbar ul {
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    .about-us-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .about-us-content {
        margin-right: 0;
        margin-bottom: 30px;
    }
    .about-us-buttons {
        justify-content: center;
        width: 100%;
    }
    .theme-section {
        flex-direction: column;
        text-align: center;
    }
    .theme-image img {
        width: 100%;
        max-width: 450px;
    }
    .theme-content {
        text-align: center;
    }
    .footer-row {
        flex-direction: column;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-right ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* --- MOBILE PHONES (Max Width: 600px) --- */
@media (max-width: 600px) {
    
    /* 1. Body Padding - Precise Fix for Gap */
    body {
        /* On mobile, your navbar stacks and becomes approx 150px-160px tall. 
           We set padding to exactly clear it without leaving a huge gap. */
        padding-top: 160px; 
    }

    /* 2. Navbar Styling - Big Font & Logo */
    .navbar {
        padding: 15px 10px;
        justify-content: center;
    }

    .navbar .logo {
        flex-direction: row; 
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar .logo img {
        height: 60px; /* Bigger Logo Image */
        margin-right: 15px;
    }

    .navbar .logo .tedx-text {
        font-size: 34px; /* Big Red Text */
    }
    .navbar .logo .imi-delhi-text {
        font-size: 34px; /* Big White Text */
    }

    .navbar ul li { margin: 5px 10px; }
    .navbar ul li a { font-size: 15px; }

    /* 3. Hero Image - Fix "Cut" & Coverage */
    .hero {
        /* Set specific height for mobile hero. 60vh is optimal for mobile */
        height: 60vh; 
        min-height: 400px;
        margin-top: 0; /* Reset margins */
        position: relative;
        overflow: hidden;
    }

    .hero-image {
        height: 100%; 
        width: 100%;  
        /* 'cover' fills space. 'top' ensures heads/faces are visible if cropped */
        object-fit: cover; 
        object-position: center top; 
        top: 0; 
        position: absolute;
    }

    .tedx-heading { font-size: 20px; }
    .ted-text-large { font-size: 28px; }
    .x-icon-large { height: 32px; }

    /* 4. Fix Rhythm of Illusions Text Breaking */
    .theme-title {
        font-size: 24px !important; 
        line-height: 1.3;
        white-space: normal;
        width: 100%;
        display: block;
    }
    
    /* Ensure the word wrapper keeps words together */
    .word-wrapper {
        display: inline-block;
        white-space: nowrap;
    }

    /* 5. Reasons Grid -> Single Column */
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .reason-item {
        width: 240px;
        height: 240px;
    }

    /* 6. About Us Typography */
    .about-us-content h1 { font-size: 32px; }
    .about-us-content h2 { font-size: 28px; }
    .about-us-content p { font-size: 18px; }
    .about-us-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* 7. Footer "Ball" Fix */
    .animated-background {
        width: 350%;
        left: -125%;
        height: 100%;
        border-radius: 0 0 50% 50%;
    }

    .email-form {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .email-input { width: 100%; }
    .submit-button { width: 100%; }
    .contact-tooltip {
        width: 280px;
        left: 50%;
        transform: translateX(-50%);
    }
}
/* =======================================================
   DRONA'S FINAL CONSOLIDATED MASTER FIX
   (Replaces all previous patches)
   ======================================================= */

/* --- 1. HERO SECTION: SMOOTH SCALING --- */
/* The issue was the jump between 650px and larger screens. 
   We will use 'vh' (Viewport Height) for ALL desktop/laptop screens. 
   This ensures the aspect ratio stays consistent. */

@media (min-width: 900px) {
    .hero {
        /* Instead of fixed 650px, we use 85% of the screen height. 
           This breathes with the browser window. */
        height: 85vh !important; 
        
        /* But we set a minimum so it doesn't get too short on small laptops */
        min-height: 650px !important; 
        
        /* And a maximum so it doesn't look weird on giant iMacs */
        max-height: 1080px !important;
        margin-bottom: 0 !important;
    }

    .hero-image {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        
        /* This keeps the HEAD of the person in frame, even if cropped */
        object-position: center 25% !important; 
    }
}

/* --- 2. RHYTHM OF ILLUSIONS: NO DISAPPEARING TEXT --- */
/* The text was disappearing because the container (.theme-box) was 
   capped at 1200px, but the text wanted to be wider. */

.theme-box {
    /* Unlock the width so the text has room to expand */
    max-width: 98% !important; 
    width: 100% !important;
    overflow: visible !important; /* prevent cutting off edges */
}

.theme-title {
    /* Force one line */
    white-space: nowrap !important;
    
    /* Dynamic Sizing: 
       I lowered this slightly to 5.2vw to ensure it stays 
       INSIDE the screen edges at 1200px. */
    font-size: 5.2vw !important; 
    
    text-align: center !important;
    width: 100% !important;
    line-height: 1.2 !important;
    margin: 0 auto !important;
}

/* Prevent the word-wrappers from breaking layout */
.word-wrapper {
    display: inline-block !important;
}

/* --- 3. THEME SECTION: FULL WIDTH ALIGNMENT --- */
/* Ensure the theme image and text cover the screen on wide views */
@media (min-width: 1200px) {
    .theme-section {
        max-width: 95% !important;
        padding: 50px 20px !important;
    }
}

/* --- 4. MOBILE SAFEGUARDS (Phones < 600px) --- */
/* These ensure your phone view remains perfect and doesn't inherit desktop logic */
@media (max-width: 600px) {
    .hero { height: 50vh !important; min-height: 0 !important; }
    
    .theme-title {
        font-size: 26px !important; 
        white-space: normal !important; /* Allow wrapping on phones */
    }
    
    body { padding-top: 100px !important; }
    
    .countdown-timer { gap: 10px !important; }
    .timer-box { min-width: 60px !important; padding: 10px !important; }
    .timer-unit { font-size: 28px !important; }
}
