:root {
  --primary-color: #9a3b34;
  --secondary-color: #663333;
  --accent-color: #e85a4f;
  --text-color: #333;
  --light-text: #fff;
  --background-light: #f8f8f8;
  --background-medium: #e6e6e6;
  --background-dark: wheat;
}

/* UPDATED CTA SECTION */
.cta-section1 {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),url("../img/banner/banner3.jpg") center/cover no-repeat fixed;
  color: var(--light-text);
  padding: 6rem 2rem;
  text-align: center;
  margin-top: 3rem;
  position: relative;
}

.cta-section1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-content1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.cta-section1 h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #db4242;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); */
}

.cta-section1 p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  color: var(--light-text);
}

.cta-button1 {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button1:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

        /* -- scroll up or level up animations -- DESKTOP STYLES --- */

        .main-hero-banner {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
        }

        .hero-background-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background-image: url('../img/varahi_blue_print.jpg');
            background-size: cover;
            background-position: center;
            filter: brightness(0.7);
            z-index: 1;
        }

        .animated-color-overlay-container {
            position: absolute;
            inset: 0;
            z-index: 2;
        }

        .animated-color-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, #282928c2, #9e959561);
            /* The transition is back for the fixed-duration animation */
            transition: transform 5s ease-out;
            /* Initial state is set by JS, but this is a good fallback */
            transform: translateY(100%);
        }

        .vision-content-card {
            position: absolute;
            /* Vertically centered */
            top: 50%;
            transform: translateY(-50%);
            /* Positioned on the right */
            right: 250px;
            width: 350px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(3px);
            border-radius: 16px;
            box-shadow: var(--navbar-shadow);
            z-index: 3;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .vision-content-card h1 {
            color: var(--light-text);
            font-size: 42px;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .vision-content-card p {
            color: var(--light-text);
            line-height: 1.7;
            margin-bottom: 25px;
            opacity: 0.9;
        }

        .primary-action-button {
            width: 100%;
            padding: 14px 30px;
            border-radius: 12px;
            background: var(--accent-color);
            border: none;
            color: var(--light-text);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .primary-action-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(232, 90, 79, 0.4);
        }





        /* --- MOBILE RESPONSIVE STYLES --- */
        @media (max-width: 768px) {
            .vision-content-card {
                /* Keep it absolute to overlay on the background image */
                position: absolute;
                /* Center it vertically */
                top: 50%;
                transform: translateY(-50%);
                /* Position it with space on both sides */
                left: 20px;
                right: 20px;
                /* Let left/right define the width */
                width: auto;
                /* Reduce padding to save space */
                padding: 30px;
                /* Center the text for better mobile layout */
                text-align: center;
            }

            .vision-content-card h1 {
                /* Reduce font size for smaller screens */
                font-size: 32px;
            }

            .vision-content-card p {
                /* Ensure paragraph text is a readable size */
                font-size: 16px;
            }
        }



        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }

            10% {
                opacity: 1;
            }

            90% {
                opacity: 1;
            }

            100% {
                transform: translateY(-100vh) rotate(360deg);
                opacity: 0;
            }
        }

        .jv-scroll-container {
            width: 100%;
            overflow: hidden;
            background: linear-gradient(30deg, #1b1a1a, #71001a, #000);
            padding: 20px 0;
            position: relative;
            box-shadow: 0 0 30px rgba(113, 0, 26, 0.8);
            border-top: 1px solid rgba(202, 183, 25, 0.3);
            border-bottom: 1px solid rgba(202, 183, 25, 0.3);
        }

        .jv-scroll-track {
            display: flex;
            width: calc(300%);
            animation: scroll 30s linear infinite;
        }

        .jv-scroll-item {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 50px;
            font-size: 1.5rem;
            font-weight: bold;
            color: #cab719;
            white-space: nowrap;
            text-shadow: 0 0 10px rgba(202, 183, 25, 0.7);
            position: relative;
            animation: glow 2s infinite alternate;
        }

        @keyframes glow {
            from {
                text-shadow: 0 0 10px rgba(202, 183, 25, 0.7);
            }

            to {
                text-shadow: 0 0 20px rgba(202, 183, 25, 0.9), 0 0 30px rgba(202, 183, 25, 0.5);
            }
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-66.66%);
            }
        }

        /* New traditional pooja lamp (diya) shape */
        .pooja-lamp {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0 30px;
            position: relative;
            width: 70px;
        }

        /* Lamp glow effect */
        .lamp-glow {
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, rgba(255, 150, 0, 0.4), rgba(255, 100, 0, 0.2) 40%, transparent 70%);
            position: absolute;
            /* top: -15px; */
            left: 50%;
            transform: translateX(-50%);
            animation: pulse-glow 2s infinite alternate;
            z-index: 0;
        }

        @keyframes pulse-glow {
            0% {
                opacity: 0.6;
                transform: translateX(-50%) scale(0.9);
            }

            100% {
                opacity: 1;
                transform: translateX(-50%) scale(1.2);
            }
        }

        /* Flame container */
        .flame-container {
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 3;
        }

        /* Outer flame */
        .flame-outer {
            width: 12px;
            height: 24px;
            background: linear-gradient(to top, #ff6600, #ffcc00, #fff8e0);
            border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
            position: relative;
            animation: flicker 0.3s infinite alternate;
            filter: blur(0.5px);
        }

        /* Inner flame (blue core) */
        .flame-inner {
            width: 5px;
            height: 10px;
            background: linear-gradient(to top, #3399ff, #66ccff);
            border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
        }

        @keyframes flicker {
            0% {
                transform: scale(1) rotate(-2deg);
                opacity: 0.9;
            }

            50% {
                transform: scale(1.05) rotate(1deg);
                opacity: 1;
            }

            100% {
                transform: scale(0.95) rotate(2deg);
                opacity: 0.85;
            }
        }

        /* Diya bowl - traditional curved shape with spout */
        .diya-bowl {
            position: absolute;
            top: 28px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 18px;
            background: linear-gradient(to bottom, #d4a84b, #b8860b, #8b6914);
            border-radius: 0 0 50% 50% / 0 0 100% 100%;
            z-index: 2;
            box-shadow:
                inset 0 -3px 6px rgba(0, 0, 0, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.4);
        }

        /* Spout/lip of diya */
        .diya-spout {
            position: absolute;
            top: 26px;
            left: 50%;
            transform: translateX(-50%);
            width: 54px;
            height: 8px;
            background: linear-gradient(to bottom, #e6c15a, #d4a84b);
            border-radius: 50%;
            z-index: 2;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        /* Oil inside the lamp */
        .diya-oil {
            position: absolute;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            width: 42px;
            height: 6px;
            background: linear-gradient(to bottom, #8b4513, #654321);
            border-radius: 50%;
            z-index: 2;
            opacity: 0.8;
        }

        /* Stem of lamp */
        .diya-stem {
            position: absolute;
            top: 44px;
            left: 50%;
            transform: translateX(-50%);
            width: 12px;
            height: 12px;
            background: linear-gradient(to right, #8b6914, #d4a84b, #8b6914);
            z-index: 1;
        }

        /* Base/pedestal */
        .diya-base {
            position: absolute;
            top: 54px;
            left: 50%;
            transform: translateX(-50%);
            width: 36px;
            height: 10px;
            background: linear-gradient(to bottom, #d4a84b, #b8860b, #8b6914);
            border-radius: 50%;
            z-index: 1;
            box-shadow:
                0 2px 4px rgba(0, 0, 0, 0.4),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
        }

        /* Enhanced glowing star */
        .star {
            flex: 0 0 auto;
            margin: 0 25px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .star-shape {
            width: 30px;
            height: 30px;
            background: #ffeb3b;
            clip-path: polygon(50% 0%,
                    61% 35%,
                    98% 35%,
                    68% 57%,
                    79% 91%,
                    50% 70%,
                    21% 91%,
                    32% 57%,
                    2% 35%,
                    39% 35%);
            animation: star-glow 1.5s infinite alternate;
            filter: drop-shadow(0 0 15px rgba(255, 235, 59, 1));
            position: relative;
            z-index: 2;
        }

        /* Star glow effect - enhanced */
        .star-glow-effect {
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, rgba(255, 235, 59, 0.8) 0%, rgba(255, 193, 7, 0.4) 40%, transparent 70%);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: star-pulse 1.5s infinite alternate;
            z-index: 1;
        }

        /* Star rays effect */
        .star-rays {
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, rgba(255, 235, 59, 0.2) 0%, transparent 70%);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: star-rotate 10s linear infinite;
            z-index: 0;
        }

        @keyframes star-glow {
            0% {
                transform: scale(1);
                filter: drop-shadow(0 0 15px rgba(255, 235, 59, 1));
            }

            100% {
                transform: scale(1.1);
                filter: drop-shadow(0 0 25px rgba(255, 235, 59, 1.5));
            }
        }

        @keyframes star-pulse {
            0% {
                opacity: 0.6;
                transform: translate(-50%, -50%) scale(0.8);
            }

            100% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.2);
            }
        }

        @keyframes star-rotate {
            0% {
                transform: translate(-50%, -50%) rotate(0deg);
            }

            100% {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }

        @media (max-width: 1024px) {
            .jv-scroll-item {
                font-size: 1.4rem;
                padding: 0 40px;
            }
        }

        @media (max-width: 768px) {
            .jv-scroll-item {
                font-size: 1.2rem;
                padding: 0 30px;
            }

            .pooja-lamp {
                margin: 0 20px;
            }

            .star {
                margin: 0 15px;
            }
        }

        @media (max-width: 480px) {
            .jv-scroll-item {
                font-size: 1rem;
                padding: 0 20px;
            }

            .pooja-lamp {
                margin: 0 15px;
                transform: scale(0.8);
            }

            .star {
                margin: 0 10px;
            }

            .star-shape {
                width: 24px;
                height: 24px;
            }
        }
        
