/* Reset and Base Styles */

@font-face {
    font-family: 'HelveticaNeueStdBold';
    src: url('./assets/HelveticaNeueLTStd-Bd.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'ArticulatedBold';
    src: url('./assets/Articulate-Bold.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-behavior: smooth; */
    overflow: hidden; 

    height: 100%;
    /* overflow-x: hidden; */

}

:root {
    --clexane-white: #ffffff;
    --clexane-red: #ED1C24;
    --clexane-red-variant: #ca1a21;
    --clexane-blue: #1A459D;
    --clexane-light-gray: #fdfdfe;
}

body {
    /* overflow: hidden;  */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--clexane-blue);
    background: linear-gradient(to bottom, var(--clexane-light-gray), #f0f0f0);
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* overflow-x: hidden; */
    /* min-height: 100dvh; */
    overflow: hidden;
    height: 100%;
}

/* Header Styles */
.header {
    background: linear-gradient(145deg, var(--clexane-white) 0%, #f8f8f8 100%);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, 
        var(--clexane-red) 0%, 
        var(--clexane-red-variant) 50%, 
        var(--clexane-blue) 100%
    );
    border-image-slice: 1;
}

.logo-container {
    margin-bottom: 1rem;
}

.logo {
    height: 122px;
}

.header h1 {
    background: linear-gradient(45deg, 
        var(--clexane-red) 0%, 
        var(--clexane-blue) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.8rem;
}

/* Main Content Styles */
.main-content {
    flex: 1;

    /* max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem; */

    max-width: 1200px; /* Or any width you prefer */
    margin: 0 auto;     /* Centers it horizontally */
    padding: 1rem;      /* Optional: space inside */
    width: 90%;         /* Optional: makes it responsive */

    max-height: fit-content;
    position: relative;
    overflow: hidden;
    
}

.welcome-section {
    text-align: center;
    /* margin-bottom: 4rem; */
    /* padding: 4rem 1rem; */
    /* position: relative; */
    /* overflow: hidden; */
    /* background: linear-gradient(135deg, 
        var(--clexane-light-gray) 0%,
        rgba(202, 25, 32, 0.05) 20%,
        rgba(44, 45, 138, 0.1) 50%,
        var(--clexane-light-gray) 100%
    ); */
    /* background: linear-gradient(135deg, #7269d4 0%, #abb0f6 20%, rgba(44, 45, 138, 0.1) 50%, #af2c2c 100%); */
    border-bottom-left-radius: 47px;
    border-bottom-right-radius: 47px;
    /* border: 2px solid transparent; */
    /* border-image: linear-gradient(45deg, 
        var(--clexane-red) 0%,
        var(--clexane-blue) 100%
    ); */
    border-image-slice: 1;
    background: white;


    position: fixed;
    top: 0;
}

.welcome-section::before,
.welcome-section::after {
    content: '';
    position: absolute;
    /* background: linear-gradient(45deg, 
        rgba(202, 25, 32, 0.08) 0%, 
        transparent 60%
    ); */
    border-radius: 30px;
    filter: blur(30px);
    z-index: -1;
}

.welcome-section::before {
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
}

.welcome-section::after {
    bottom: -80px;
    right: -50px;
    width: 250px;
    height: 250px;
    /* background: linear-gradient(135deg, 
        rgba(44, 45, 138, 0.1) 0%,
        transparent 70%
    ); */
}

.welcome-section h2 {
    background: linear-gradient(45deg, 
        var(--clexane-blue) 0%,
        var(--clexane-red) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    /* margin-bottom: 2.5rem; */
    position: relative;
    display: inline-block;
    /* padding-bottom: 0.5rem; */

    font-family: 'HelveticaNeueStdBold' ,'Poppins', 'Segoe UI', sans-serif;
    font-weight: 600; /* Emphasizes it's a tagline */
}

/* .welcome-section h3 { */
    /* background: linear-gradient(45deg, 
        var(--clexane-blue) 0%,
        var(--clexane-red) 100%
    ); */
    /* background: #ED1C24; */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    /* color: transparent; */
    /* color: white; */
    /* font-size: 1.5rem; */
    /* margin-bottom: 2.5rem; */
    /* position: relative; */
    /* display: inline-block; */
    /* padding-bottom: 0.5rem; */

    /* font-family: 'Poppins', 'Segoe UI', sans-serif; */
    /* font-weight: 600; Emphasizes it's a tagline */
/* } */


.welcome-section h3.highlighted-text {
    background: #ED1C24;
    color: white;
    display: inline-block;
    padding: 0.5rem 4.2rem;
    /* border-radius: 8px; */
    font-size: 1.85rem; /* size of background area */
    position: relative;
    top: -14px;
    margin-bottom: 2.5rem;
}

.welcome-section h3.highlighted-text .small-text {
    font-size: 0.8em; /* smaller text */
    display: block;
    line-height: 1; /* optional: adjust vertical alignment */
}


/* .welcome-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, 
        transparent 0%,
        var(--clexane-red) 30%,
        var(--clexane-blue) 70%,
        transparent 100%
    );
} */

.welcome-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--clexane-blue);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Updated Primary Button in Welcome Section */
.welcome-section .primary-button {
    background: linear-gradient(135deg, 
        var(--clexane-red) 0%,
        var(--clexane-red-variant) 50%,
        #b3161d 100%
    );
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
}

.welcome-section .primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transition: all 0.6s;
}

.welcome-section .primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(202, 25, 32, 0.2);
}

.welcome-section .primary-button:hover::before {
    left: 100%;
}

.location-permission {
    background: linear-gradient(145deg, 
        var(--clexane-white) 0%, 
        #fafafa 50%, 
        #f5f5f5 100%
    );
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid transparent;
    border-image: linear-gradient(to bottom right, 
        var(--clexane-light-gray) 0%, 
        var(--clexane-red) 50%, 
        var(--clexane-blue) 100%
    );
    border-image-slice: 1;
}

.primary-button {
    /* background: linear-gradient(135deg, 
        var(--clexane-red) 0%, 
        var(--clexane-red-variant) 50%, 
        #b3161d 100%
    ); */
    background: var(--clexane-red);
    color: var(--clexane-white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(202, 25, 32, 0.2);
}

/* .primary-button:hover {
    background: linear-gradient(135deg, 
        var(--clexane-red-variant) 0%, 
        var(--clexane-red) 50%, 
        #a8141a 100%
    );
    transform: translateY(-2px);
} */

/* Loading Indicator */
.loading-indicator {
    /* text-align: center;
    padding: 2rem; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* light overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    
    width: 500px;
    height: 500px;
    margin-bottom: 1rem;
    /* border-radius: 50%;
    margin: 0 auto 1rem; */
    /* animation: spin 1.2s linear infinite;
    background: conic-gradient(
        var(--clexane-red) 0%,
        var(--clexane-red-variant) 30%,
        var(--clexane-blue) 70%,
        var(--clexane-light-gray) 100%
    ); */
    /* -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 4px),#000 0); */
    /* box-shadow: 0 0 10px rgba(44, 45, 138, 0.2); */
}

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

/* Store Results Styles */
.store-results {
    /* background: linear-gradient(145deg, 
        var(--clexane-white) 0%, 
        #fafafa 100%
    ); */
    /* overflow-y: auto; */
    /* max-height: 60vh; */
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.1rem;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */

    position: absolute;
    top: 300px;
    bottom: 100px;
    overflow-y: auto;
}

/* .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
} */

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: #5ba65b;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
}


.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options select {
    padding: 0.5rem;
    border: 1px solid var(--clexane-blue);
    border-radius: 4px;
    color: var(--clexane-blue);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Store Card Styles */
.store-card {
    /* background: linear-gradient(145deg, 
        var(--clexane-white) 0%, 
        #fafafa 100%
    ); */
    /* background: linear-gradient(135deg, #7269d4 0%, #abb0f6 20%, rgba(44, 45, 138, 0.1) 50%, #af2c2c 100%); */
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    position: relative;
    background-clip: padding-box;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    max-width: 500px;
    width: 85%;
    margin: 0 auto 1rem auto;
    font-weight: normal;
    border-radius: 20px;
}

.store-card.visible {
    animation: fadeInUp 0.6s forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.store-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    z-index: -1;
    /* background: linear-gradient(45deg, 
        var(--clexane-red) 0%, 
        var(--clexane-blue) 100%
    ); */
    /* background: linear-gradient(45deg, #bb3e3e 0%, #474aa1 100%) !important; */
    /* background: linear-gradient(135deg, #3929e6 0%, #4752f3 20%, rgba(44, 45, 138, 0.1) 50%, #b51717 100%); */
    border-radius: inherit;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(202, 25, 32, 0.1);
}

.store-card h4 {
    /* color: var(--clexane-blue); */
    color: black;
    margin-bottom: 0.5rem;
    font-family: 'ArticulatedBold','Courier New', Courier, monospace;
}

.store-card p {
    margin-bottom: 0.5rem;
    color: gray;
    /* font-family: 'ArticulatedBold' ,'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; */
}

.store-card.active {
    background: white !important;
    font-style: normal;
    color: gray;
    font-weight: normal;
    border-color: var(--clexane-red);
}


/* .direction-button {
    background: linear-gradient(135deg, #494abc 0%, #1a1b6b 50%, #26298f 100%);
    color: var(--clexane-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: -1rem;
    transition: opacity 0.3s;
}

.direction-button:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(44, 45, 138, 0.2);
} */


.direction-button {
    display: block;
    width: 100%;
    background: #ED1C24; /* red background */
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 999px; /* pill shape */
    cursor: pointer;
    margin: 1rem auto 0 auto; /* spacing from top and center horizontally */
    text-align: center;
    transition: opacity 0.3s, box-shadow 0.3s;
}

.direction-button:hover {
    opacity: 0.95;
    box-shadow: 0 2px 8px rgba(202, 25, 32, 0.3); /* slightly red shadow */
}


/* Notification Styles */
.notifications {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.notification {
    background: linear-gradient(145deg, 
        var(--clexane-white) 0%, 
        #fafafa 100%
    );
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, 
        var(--clexane-red) 0%, 
        var(--clexane-blue) 100%
    );
    border-image-slice: 1;
}

.error-message {
    background: linear-gradient(135deg, 
        var(--clexane-red) 0%, 
        var(--clexane-red-variant) 50%, 
        #b3161d 100%
    );
    color: var(--clexane-white);
}

/* Footer Styles - Enhanced Gradient Version */
.footer {
    /* background: linear-gradient(145deg, 
        var(--clexane-blue) 0%,
        #25277e 15%,
        var(--clexane-red) 35%,
        #1a1b6b 60%,
        #0d0e3d 100%
    ); */
    /* background: linear-gradient(45deg, #bb3e3e 0%, #474aa1 100%) !important;; */
    /* background: linear-gradient(135deg, #7269d4 0%, #abb0f6 40%, rgba(44, 45, 138, 0.1) 50%, #af2c2c 100%); */
    background: #2c2d8a;
    /* color: var(--clexane-white); */
    padding: 0.3rem 1rem 0.1rem;
    /* padding: 1rem 0.5rem; */

    /* margin-top: 3rem; */
    margin-top: auto; /* This pushes footer to bottom */

    /* position: relative; */
    overflow: hidden;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, 
        var(--clexane-red) 0%,
        var(--clexane-blue) 100%
    );
    border-image-slice: 1;


    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: fixed; 
    /* height: 69px; */
    bottom: 0;
    width: 100%;
}


.footer {
    overflow: hidden; /* Clip overflowing pseudo-elements */
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .footer::before,
    .footer::after {
        display: none; /* Remove decorative elements */
    }
    
    .footer {
        padding: 0.5rem; /* Smaller padding on mobile */
    }

    .footer-info p {
        margin-top: 0.7rem;
        font-size: 7px; /* Smaller text */
        color: white;
    }
}

.footer::before,
.footer::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, 
        rgba(202, 25, 32, 0.15) 0%, 
        transparent 60%
    );
    border-radius: 30px;
    transform: rotate(45deg);
    filter: blur(15px);
}

.footer::before {
    top: -80px;
    right: -100px;
    width: 250px;
    height: 250px;
    opacity: 0.6;
}

.footer::after {
    bottom: -120px;
    left: -80px;
    width: 300px;
    height: 300px;
    opacity: 0.4;
    background: linear-gradient(135deg, 
        rgba(44, 45, 138, 0.2) 0%,
        transparent 70%
    );
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* .footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
} */

/* .footer-links-group {
    text-align: center;
} */

.footer-links h3 {
    background: linear-gradient(to right, 
        var(--clexane-white) 0%,
        #e0e0ff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, 
        var(--clexane-red) 0%,
        var(--clexane-blue) 100%
    );
}

.footer-links a {
    color: var(--clexane-white);
    text-decoration: none;
    padding: 0.3rem 0;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, 
        var(--clexane-red) 0%,
        var(--clexane-white) 100%
    );
    transition: width 0.3s ease;
}

.footer-links a:hover {
    transform: translateX(8px);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-info {
    text-align: center;
    /* margin-top: 1rem; */
    /* padding-top: 2rem; */
    /* border-top: 1px solid rgba(255,255,255,0.1); */
}

.footer-logo {
    height: 30px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    /* transition: all 0.3s ease; */
}

.footer-logo1 {
    height: 30px;
    object-fit: contain;
    margin-top: 0.2rem;
    margin-bottom: -0.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    /* transition: all 0.3s ease; */
}

.footer-logos {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.footer-text {
    color: white;
    margin: 0;
    z-index: 11;
    position: relative;
    font-size: 0.9rem;
}

/* 
.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
} */

/* .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
} */

.social-links a:hover {
    background: linear-gradient(145deg, 
        var(--clexane-red) 0%,
        var(--clexane-blue) 100%
    );
    transform: translateY(-3px);
}

/* Utility Classes */
.hidden {
    display: none;
}
/* new style changes */
/* .footer {
    background: linear-gradient(45deg, var(--clexane-red) 0%, var(--clexane-blue) 100%) !important;
} */

/* .store-card:hover h4, */
/* .store-card:hover p { */
    /* color: var(--clexane-white); */
    /* color: black; */
/* } */

/* .store-card:hover a,
.store-card:hover span {
    /* color: var(--clexane-white);
} */



/* Responsive Design */
@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-card {
        padding: 1.2rem;
    }

    /* .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    } */
}


/* Video Background Styles */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: var(--video-opacity, 0.3); /* Control opacity here (0.3 = 30%) */
    overflow: hidden;
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

/* Add to body */
body {
    position: relative;
}

/* Add to main content */
.main-content {
    position: relative;
    background: rgba(253, 253, 254, 0.85); /* Add slight transparency to content background */
}