/* Main Styles for Liferil Website */

:root {
    --primary-color: #2980b9;
    --secondary-color: #3498db;
    --accent-color: #1abc9c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --white: #ffffff;
    --sidebar-width: 16.666667%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    /* padding-top: 60px; Add padding for fixed mobile header */
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    padding: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 60px;
    display: flex;
    align-items: center;
    color: #fff;
}

.mobile-header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.mobile-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 5px 0;
}

.mobile-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.mobile-logo img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make logo white on gradient */
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    height: 100%;
}

.hamburger-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    z-index: 1002;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hamburger-btn:active {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.25);
}

.hamburger-btn span {
    width: 22px;
    height: 2px;
    background-color: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.hamburger-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.hamburger-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: 1001;
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: #fff;
}

.mobile-sidebar.open {
    transform: translateX(0);
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-sidebar-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.close-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.close-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-sidebar-nav {
    padding: 15px 0;
    flex-grow: 1;
}

.mobile-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-sidebar-nav li {
    margin: 5px 0;
}

.mobile-sidebar-nav a {
    display: block;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-sidebar-nav a:hover,
.mobile-sidebar-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: #fff;
    padding-left: 30px;
}

.mobile-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-sidebar-footer .btn {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-sidebar-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: #f8f9fa;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Adjust main content for mobile header */
.main-content {
    margin-top: 70px;
}

/* Hide sidebar on mobile */
@media (max-width: 767.98px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 768px) {
    .mobile-header,
    .mobile-sidebar,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
}

/* Adjust main content for mobile */
.main-content {
    margin-top: 60px; /* Height of mobile header */
}

/* Hide mobile menu on desktop */
@media (min-width: 768px) {
    .mobile-header,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
}

/* Sidebar Styles */
.sidebar {
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    color: var(--white);
    min-height: calc(100vh - 0px);
    position: fixed;
    width: var(--sidebar-width);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    /* top: 60px; */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile sidebar styles */
@media (max-width: 767.98px) {
    :root {
        --sidebar-width: 280px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        top: 0;
        height: 100vh;
        padding-top: 70px;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .overlay.show {
        display: block;
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
}

.logo-container {
    padding: 2rem 0;
}

.logo {
    max-width: 80px;
    margin-bottom: 1rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.sidebar-motto {
    padding: 1rem;
    font-style: italic;
}

.motto-line {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.navigation {
    margin-top: 2rem;
}

.nav-link {
    color: var(--white);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-login {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    background-color: var(--dark-color);
    color: var(--white);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-text {
    padding: 3rem 4rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-join {
    background-color: var(--accent-color);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-join:hover {
    background-color: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Offer Section */
.offer-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.section-title {
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.title-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.75rem auto 1.5rem;
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Offer Section Styling */
.offer-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.offer-section .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.offer-cards {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 1rem 0;
    gap: 1.5rem;
}

.offer-cards::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.offer-cards-container {
    position: relative;
    padding: 0 1rem;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

.offer-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 0 0 auto;
    width: 280px;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.offer-card.active {
    border: 2px solid var(--accent-color);
    transform: translateY(-10px);
}

.offer-card img {
    height: 180px;
    object-fit: cover;
}

.offer-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 0.5rem 0;
}

/* Download App Section */
.download-app-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.mobile-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-mockup img {
    max-height: 500px;
    transition: all 0.3s ease;
}

.mobile-mockup img:hover {
    transform: translateY(-10px);
}

.download-content {
    padding: 2rem;
}

.download-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.download-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.download-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.app-badges {
    display: flex;
    gap: 1rem;
}

.app-badge img {
    height: 40px;
    transition: all 0.3s ease;
}

.app-badge:hover img {
    transform: translateY(-5px);
}

/* Feature Detail Section */
.feature-detail-section {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.feature-detail-row {
    min-height: 400px;
}

.feature-text {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-video {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-container {
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button i {
    color: var(--accent-color);
    font-size: 2rem;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Get Started Section */
.get-started-section {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 4rem 0;
}

.get-started-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.get-started-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 20px 0;
}

.footer .credits {
    margin-top: 15px;
    color: #495057;
    font-size: 0.9rem;
}

.footer .credits strong {
    color: var(--accent-color);
    font-weight: 600;
}

.footer .google-play-badge {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.google-play-badge {
    height: 50px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 25%;
    }
    
    .hero-text, .feature-text {
        padding: 2rem;
    }
    
    .hero-text h1, .feature-text h2 {
        font-size: 2rem;
    }
    
    .offer-cards {
        flex-wrap: nowrap;
    }
    
    .offer-card {
        width: 220px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }
    
    .sidebar {
        position: relative;
        min-height: auto;
        width: 100%;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .hero-section .row, .feature-detail-row {
        flex-direction: column;
    }
    
    .hero-text, .feature-text {
        order: 2;
        text-align: center;
    }
    
    .hero-image, .feature-video {
        order: 1;
    }
    
    .offer-card {
        width: 85%;
    }
    
    .offer-cards-container {
        padding: 0 0.5rem;
    }
    
    .scroll-arrow {
        width: 30px;
        height: 30px;
    }
    
    .download-app-section .row {
        flex-direction: column;
    }
    
    .mobile-mockup {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .download-content {
        order: 2;
        text-align: center;
        padding: 1rem;
    }
    
    .download-content h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .app-badges {
        justify-content: center;
    }
}

/* Testimonials Carousel */
.testimonials-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 2.5rem;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.2;
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin-right: 1rem;
}

.author-info h5 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.author-info span {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ced4da;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--accent-color);
    opacity: 1;
    transform: scale(1.2);
}

/* Hover Effects */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: -15px;
    }
    
    .carousel-control-next {
        right: -15px;
    }
}