/* ========================================================
   TOP HEADER & HERO SECTION (Top_class Theme from Image 1 & 3)
   ======================================================== */

:root {
    --bg-dark-green: #063321;
    --card-dark-green: #09432c;
    --card-dark-green-hover: #0c5237;
    --accent-cream: #f1f8b8;
    --badge-lavender: #d7c9f8;
    --badge-text-dark: #27095c;
    --text-white: #ffffff;
    --text-muted: #9bb3a8;
}

/* ========================================================
   STICKY HEADER BAR
   ======================================================== */
.header-sticky-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(6, 51, 33, 0.96);
    box-shadow: 0 4px 18px rgba(6, 51, 33, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s ease, 
                backdrop-filter 0.25s ease;
}

/* When scrolled down or on non-home screen */
.header-sticky-wrapper.scrolled-light-green {
    background-color: rgba(6, 51, 33, 0.96);
    box-shadow: 0 4px 18px rgba(6, 51, 33, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Transparent blend only when at the top of the Home screen hero section */
.header-sticky-wrapper.on-home-top {
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Top Navigation Bar */
.top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    position: relative;
    z-index: 50;
    max-width: 1260px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Brand Name */
.header-brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    text-decoration: none;
    transform: translateX(-24px);
}

.brand-word-sarekam {
    font-size: 1.45rem;
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Circular Action Buttons (Location, Search, Profile) */
.circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.circle-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1.5px);
}

.circle-btn:active {
    transform: scale(0.95);
}

.circle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Location Icon: Completely Still & Stationary */
#locationBtn svg {
    animation: none !important;
    transform: none !important;
}

.circle-btn svg.stroke-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========================================================
   SLIDE-DOWN SEARCH BOX
   ======================================================== */
.search-slide-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                padding 0.35s ease;
    position: relative;
    z-index: 40;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.search-slide-panel.open {
    max-height: 90px;
    opacity: 1;
    padding: 6px 20px 16px 20px;
}

.search-bar-inner {
    width: 100%;
    height: 48px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.search-bar-inner svg.search-input-icon {
    width: 20px;
    height: 20px;
    stroke: #64748b;
    stroke-width: 2.2;
    fill: none;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-bar-inner input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #0f172a;
    background: transparent;
    font-family: inherit;
}

.search-bar-inner input::placeholder {
    color: #8b98a5;
}

.search-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: color 0.2s;
}

.search-close-btn:hover {
    color: #334155;
}

.search-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
}

/* ========================================================
   TOP HERO SECTION (Seamless Dark Green Theme)
   Image 3 Rule: Completely straight bottom edge (border-radius: 0)
   ======================================================== */
.top-hero-section {
    background: radial-gradient(circle at 60% 30%, #0a462e 0%, #063321 80%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    padding-top: 72px;
    padding-bottom: 22px;
    border-radius: 0 !important;
    box-shadow: 0 8px 24px rgba(6, 51, 33, 0.18);
    width: 100%;
    box-sizing: border-box;
}

/* Floating Decorative Circular Rings */
@keyframes floatCircle1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, 20px) scale(1.08); }
}
@keyframes floatCircle2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-28px, -18px) scale(0.92) rotate(40deg); }
}
@keyframes floatCircle3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
    50% { transform: translate(18px, -14px) scale(1.25); opacity: 0.85; }
}

.hero-decor-circle {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.circle-1 { 
    width: 340px; 
    height: 340px; 
    top: -100px; 
    left: -80px; 
    animation: floatCircle1 8s ease-in-out infinite; 
}
.circle-2 { 
    width: 480px; 
    height: 480px; 
    top: 10px; 
    right: -120px; 
    animation: floatCircle2 11s ease-in-out infinite; 
}
.circle-3 { 
    width: 220px; 
    height: 220px; 
    bottom: 40px; 
    left: 35%; 
    animation: floatCircle3 7s ease-in-out infinite; 
}

/* ========================================================
   TOP HERO VISUALS: SOLAR & CCTV ANIMATIONS (Image 2 Design)
   ======================================================== */
.top-hero-section .slider-main-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.slider-track-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 234px;
}

.hero-slides-wrapper {
    display: flex;
    width: 100%;
}

.hero-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px 20px 10px;
    box-sizing: border-box;
}

.sports-hero-canvas {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 216px;
}

/* SOLAR PANEL & RADIANT SUN ANIMATIONS */
@keyframes solarGlowPulse {
    0%, 100% {
        transform: translateY(-30%) rotate(0deg);
        filter: drop-shadow(0 6px 14px rgba(245, 158, 11, 0.25));
    }
    50% {
        transform: translateY(-38%) rotate(-3deg);
        filter: drop-shadow(0 10px 24px rgba(245, 158, 11, 0.6));
    }
}

@keyframes sunRayRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes solarShimmerSweep {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.55; }
}

.graphic-solar-panel {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-30%);
    width: 105px;
    height: 105px;
    pointer-events: none;
    z-index: 5;
    animation: solarGlowPulse 3s ease-in-out infinite;
    transform-origin: bottom left;
}

.anim-sun {
    animation: sunRayRotate 14s linear infinite;
    transform-origin: 36px 36px;
}

.solar-shimmer {
    animation: solarShimmerSweep 2.2s ease-in-out infinite;
}

/* CCTV CAMERA & SURVEILLANCE RADAR ANIMATIONS */
@keyframes cctvCameraPan {
    0%, 100% { transform: translateY(-40%) rotate(0deg); }
    30% { transform: translateY(-46%) rotate(-8deg); }
    70% { transform: translateY(-35%) rotate(7deg); }
}

@keyframes recBlink {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 6px #ef4444);
    }
    50% {
        opacity: 0.15;
        filter: none;
    }
}

@keyframes cctvScanSweep {
    0%, 100% {
        opacity: 0.25;
        transform: scaleX(0.85);
    }
    50% {
        opacity: 0.75;
        transform: scaleX(1.15);
    }
}

.graphic-cctv-camera {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-40%);
    width: 110px;
    height: 110px;
    pointer-events: none;
    z-index: 5;
    animation: cctvCameraPan 3.6s ease-in-out infinite;
    transform-origin: 96px 60px;
}

.cctv-rec-dot {
    animation: recBlink 1s infinite ease-in-out;
}

.anim-cctv-scan-cone {
    animation: cctvScanSweep 2.4s infinite ease-in-out;
    transform-origin: 36px 80px;
}

/* SMART ENERGY & DATA WIRE LOOP */
@keyframes wireDashFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -36; }
}

.graphic-smart-loop {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.smart-energy-wire {
    animation: wireDashFlow 2.5s linear infinite;
}

/* Central Typography */
@keyframes floatingTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.sports-title-group {
    text-align: center;
    position: relative;
    z-index: 10;
    user-select: none;
    animation: floatingTitle 3.2s ease-in-out infinite;
}

.sports-title-sup {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

@keyframes fitnessTextPulse {
    0%, 100% {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
        filter: brightness(1);
    }
    50% {
        text-shadow: 0 4px 28px rgba(0, 0, 0, 0.7), 0 0 18px rgba(241, 248, 184, 0.45);
        filter: brightness(1.08);
    }
}

.sports-title-main {
    font-family: 'Anton', Impact, sans-serif;
    font-size: 4.5rem;
    letter-spacing: 3px;
    color: var(--accent-cream);
    text-transform: uppercase;
    line-height: 0.95;
    margin: 3px 0 8px 0;
    animation: fitnessTextPulse 2.8s ease-in-out infinite;
}

@keyframes badgeShinePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 22px rgba(241, 248, 184, 0.4);
    }
}

.sports-title-badge {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    font-size: 1.05rem;
    font-weight: 900;
    padding: 5px 20px;
    border-radius: 6px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    animation: badgeShinePulse 2.4s ease-in-out infinite;
}

/* Floating Twinkling Sparkles */
.hero-sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 6;
}

@keyframes sparkleTwinkle1 {
    0%, 100% { transform: translateY(0) scale(0.7) rotate(0deg); opacity: 0.35; }
    50% { transform: translateY(-8px) scale(1.25) rotate(45deg); opacity: 1; }
}

@keyframes sparkleTwinkle2 {
    0%, 100% { transform: translateY(0) scale(1.1) rotate(0deg); opacity: 0.9; }
    50% { transform: translateY(7px) scale(0.65) rotate(-35deg); opacity: 0.25; }
}

.sparkle-1 { top: 16%; left: 32%; animation: sparkleTwinkle1 2.2s ease-in-out infinite; }
.sparkle-2 { bottom: 18%; right: 28%; animation: sparkleTwinkle2 2.7s ease-in-out infinite 0.5s; }
.sparkle-3 { top: 40%; right: 18%; animation: sparkleTwinkle1 3s ease-in-out infinite 1s; }
.sparkle-4 { bottom: 25%; left: 22%; animation: sparkleTwinkle2 2.5s ease-in-out infinite 1.2s; }

/* Content Below Hero Section */
.categories-section-wrapper {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
}

.categories-section-wrapper .categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

/* Screen 2 Top Padding for Fixed Header */
#screen-sub {
    padding-top: 76px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

/* Bottom Nav Active Color — Dark Green */
.mobile-nav-item.active,
.mobile-nav-item.active i {
    color: #0a462e !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-hero-section {
        padding-top: 64px;
        padding-bottom: 16px;
    }
    .top-navbar {
        padding: 10px 14px;
    }
    .brand-word-sarekam {
        font-size: 1.25rem;
    }
    .circle-btn {
        width: 38px;
        height: 38px;
    }
    .circle-btn svg {
        width: 19px;
        height: 19px;
    }
    .navbar-right {
        gap: 8px;
    }
    .search-slide-panel {
        padding: 0 14px;
    }
    .search-slide-panel.open {
        padding: 4px 14px 12px 14px;
    }
    .categories-section-wrapper {
        margin: 14px auto 30px;
        padding: 0 12px;
    }
    .categories-section-wrapper .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .top-hero-section .slider-main-container {
        padding: 0 12px;
    }
    #screen-sub {
        padding-top: 68px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .slider-track-wrap {
        min-height: 215px;
    }
    .sports-hero-canvas {
        min-height: 198px;
    }
    .sports-title-sup {
        font-size: 1.2rem;
    }
    .sports-title-main {
        font-size: 3.4rem;
        letter-spacing: 1.5px;
    }
    .sports-title-badge {
        font-size: 0.85rem;
        padding: 4px 16px;
        letter-spacing: 1.5px;
    }
    .graphic-solar-panel {
        width: 82px;
        height: 82px;
        left: -10px;
    }
    .graphic-cctv-camera {
        width: 86px;
        height: 86px;
        right: -10px;
    }
    /* Hide old header placeholder if present */
    #sarekam-header-placeholder {
        display: none !important;
    }
}

/* Full width layout for hero with centered lower sections */
.main-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 0 !important;
}

.spotlight-section,
.home-s3-cards-section,
#spotlightSection,
#homeS3CardsSection {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .spotlight-section,
    .home-s3-cards-section,
    #spotlightSection,
    #homeS3CardsSection {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

