:root {
    --primary-color: #6b46c1;
    --secondary-color: #9f7aea;
    --accent-color: #d6bcfa;
    --light-color: #f7f7fb;
    --dark-color: #1a202c;
    --grey-color: #e2e8f0;
    --footer-color: #1c2533;
    --success-color: #48bb78;
    --error-color: #e53e3e;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --nav-height: 80px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--light-color);
    color: var(--dark-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation Styles */
.nav {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    height: var(--nav-height);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    height: 100%;
    margin-right: 4rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    transition: color 0.3s ease;
    font-size: large;
}

/* .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
} */

/* .nav-links a:hover::after,
.nav-links a.active::after {
    width: 50px;
} */

.logo img {
    height: 50px;
    max-width: 100%;
}

.live-btn {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    animation: pulse 2s infinite;
}

/* Live Banner */
.live-banner {
    background: linear-gradient(135deg, var(--grey-color), #f8f9ff);
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
}

.live-banner h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.live-banner p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.live-banner .story-image {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.live-banner .btn {
    padding: 1.2rem 2.5rem;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.3);
}

.live-banner .btn:hover {
    background: #5a3ebc;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(107, 70, 193, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(107, 70, 193, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(107, 70, 193, 0);
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 25px;
    height: 20px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* Positioning the lines */
.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Transform hamburger to X when active */
.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Hero Section */
.about-hero {
    background: url('./images/DSC09849.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 1rem 4rem;
    margin-top: 0;
    border-radius: 0 0 80px 80px;
    /*box-shadow: var(--shadow);*/
    position: relative;
    overflow: hidden;
}

/*.about-hero::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');*/
/*    opacity: 0.1;*/
/*}*/

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.about-hero p {
    font-size: 1.3rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Story Sections */
.story-section {
    padding: 6rem 1rem;
    background: white;
    position: relative;
}

.story-section:nth-child(even) {
    background: var(--light-color);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.story-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.story-content p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Image Styles */
.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    aspect-ratio: 4/3;
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(107, 70, 193, 0.1), rgba(159, 122, 234, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.story-image:hover::before {
    opacity: 1;
}

/* Image Loading States */
.story-image img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.story-image img.loaded {
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Mission Section */
.mission-section {
    padding: 6rem 1rem;
    background: linear-gradient(135deg, var(--grey-color), #f8f9ff);
    position: relative;
}

.mission-section .story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mission-section .story-content p strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Service Times */
.service-times {
    background: var(--light-color);
    padding: 6rem 1rem;
}

.service-times h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.time-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.time-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.time-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.time-card:hover::before {
    transform: scaleX(1);
}

.time-card h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.time-card p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Enhanced Footer */
.footer {
    background: var(--footer-color);
    color: #eee;
    padding: 4rem 1rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section p,
.footer-section li {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.3rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Lazy Loading Animations */
.lazy-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.lazy-content.loaded {
    opacity: 1;
    transform: translateY(0);
}

.lazy-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.lazy-slide-left.loaded {
    opacity: 1;
    transform: translateX(0);
}

.lazy-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.lazy-slide-right.loaded {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        margin-right: 1rem; /* Reduced from 4rem to 1rem for mobile */
        padding: 1rem 1rem; /* Also reduced horizontal padding for better mobile spacing */
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        /* width: 100%;
        max-width: 100vw;
        height: calc(100vh - var(--nav-height)); */
        width: 300px; 
        height: 375px;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        flex-direction: column;
        border-radius: 4px;
        align-items: center;
        justify-content: flex-start;
        padding: 3rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        width: 100%;
    }

    .about-hero {
        padding: 4rem 1rem 3rem;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-hero p {
        font-size: 1.1rem;
    }

    .story-section {
        padding: 4rem 1rem;
    }

    .story-grid {
        gap: 2.5rem;
    }

    .story-content h2 {
        font-size: 2rem;
    }

    .live-banner h2 {
        font-size: 2.2rem;
    }

    .service-times h2 {
        font-size: 2rem;
    }

    .time-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}