/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

a {
    color: #333;
    text-decoration: none;
}

/* Promotion Bar */
.promotion-bar {
    background-color: #333333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
    height: 40px;
}

.promotion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.promotion-content {
    flex: 1;
    text-align: center;
    font-weight: 500;
    overflow: hidden;
}

.promotion-slider {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotion-text {
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    white-space: nowrap;
}

.promotion-text.active {
    opacity: 1;
    transform: translateY(0);
}

.promotion-text.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.promotion-nav-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.3s ease;
    position: absolute;
}

.promotion-nav-prev {
    left: 20px;
}

.promotion-nav-next {
    right: 20px;
}

.promotion-nav-btn:hover {
    color: #333;
}

/* Header */
.header {
    background-color: #FFD93D;
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
    margin: 0;
}

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

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #f46a05;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #f46a05;
    transform: translateY(-1px);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: #f46a05;
    font-weight: 600;
}

.nav-link.active::before {
    width: 80%;
}

.cta-button {
    background-color: #333;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #555;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
}

/* Page Header */
.page-header {
    background-color: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.card p {
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #FFD93D;
    color: #333;
}

.btn-primary:hover {
    background-color: #e6c434;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background-color: #333;
    color: white;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background-color: #f8f9fa;
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    color: #f46a05;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: 2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.feature-icon img:hover {
    transform: scale(1.1);
}

.feature-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: #FFD93D;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFD93D;
}

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

.social-media {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #FFD93D;
}

.social-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Keep backward compatibility */
.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: #FFD93D;
}

.instagram-icon {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        background: #FFD93D;
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(0);
    }

    .cta-button {
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

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

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

    /* Promotion Bar Mobile */
    .promotion-nav-btn {
        display: none;
    }
    
    .promotion-text {
        font-size: 0.8rem;
    }
    
    .promotion-slider {
        height: 18px;
    }
}

/* Feature Badges */
.badges-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

/* Single Row Badge Layout */
.badges-container.single-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
}

.badges-container.single-row .feature-badge {
    max-width: 220px;
}

.feature-badge {
    text-align: center;
    max-width: 280px;
    width: 100%;
}

.badge-icon {
    width: 120px;
    height: 120px;
    /*background-color: #f4c2a1;*/
    background-color: #f4c2a1a8;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.badge-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.badge-icon img {
    width: 80px;
    height: 80px;
    filter: opacity(0.8);
    transition: filter 0.3s ease;
}

.badge-icon:hover img {
    filter: opacity(1);
}

.badge-title {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.badge-text {
    font-size: 0.9rem;
    color: #5a6c7d;
    line-height: 1.4;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .badges-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .badges-container.single-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-badge {
        max-width: 250px;
    }
    
    .badge-icon {
        width: 100px;
        height: 100px;
    }
    
    .badge-icon img {
        width: 65px;
        height: 65px;
    }
    
    .badge-title {
        font-size: 1rem;
    }
    
    .badge-text {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .badges-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .badges-container.single-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-badge {
        max-width: 300px;
    }
}

/* Newsletter Signup */
.newsletter-signup {
    background-color: #f8f9fa;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #f5e6d3;
}

.newsletter-tagline {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.newsletter-form {
    margin: 0;
}

.email-input-container {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.email-input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-right: none;
    font-size: 1rem;
    outline: none;
    background-color: white;
    font-family: 'Quicksand', sans-serif;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    border-color: #FFD93D;
}

.email-input::placeholder {
    color: #999;
}

.newsletter-btn {
    background-color: #f46a05;
    color: white;
    border: 2px solid #f46a05;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Quicksand', sans-serif;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: #e55a00;
    border-color: #e55a00;
    transform: translateY(-1px);
}

.newsletter-offer {
    font-size: 0.9rem;
    color: #f46a05;
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

@media screen and (max-width: 480px) {
    .newsletter-signup {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-tagline {
        font-size: 1.1rem;
    }
    
    .email-input-container {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .email-input {
        border-right: 2px solid #e0e0e0;
        border-bottom: none;
        border-radius: 8px 8px 0 0;
    }
    
    .newsletter-btn {
        border-radius: 0 0 8px 8px;
        border-top: none;
    }
    
    .email-input:focus {
        border-right-color: #FFD93D;
    }
}

/* Enhanced Message Notifications */
.message {
    position: fixed !important;
    top: 120px !important;
    right: 20px !important;
    min-width: 350px !important;
    max-width: 450px !important;
    padding: 20px 24px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    z-index: 10000 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    font-family: 'Quicksand', sans-serif !important;
    line-height: 1.4 !important;
    animation: messageSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.message-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.message-success::before {
    content: '🎉 ';
    font-size: 1.2em;
    margin-right: 8px;
}

.message-error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.message-error::before {
    content: '⚠️ ';
    font-size: 1.2em;
    margin-right: 8px;
}

/* Enhanced animations */
@keyframes messageSlideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
        scale: 0.95;
    }
    to {
        transform: translateX(0);
        opacity: 1;
        scale: 1;
    }
}

@keyframes messageSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
        scale: 1;
    }
    to {
        transform: translateX(100px);
        opacity: 0;
        scale: 0.95;
    }
}

/* Mobile responsive messages */
@media screen and (max-width: 768px) {
    .message {
        top: 100px !important;
        right: 10px !important;
        left: 10px !important;
        min-width: auto !important;
        max-width: none !important;
        width: calc(100% - 20px) !important;
        padding: 16px 20px !important;
        font-size: 0.9rem !important;
    }
}

@media screen and (max-width: 480px) {
    .message {
        padding: 14px 18px !important;
        font-size: 0.85rem !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.py-1 { padding: 1rem 0; }
.py-2 { padding: 2rem 0; }
.py-3 { padding: 3rem 0; }
.py-4 { padding: 4rem 0; }

/* Dual Carousel Styles */
.dual-carousel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.carousel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.carousel {
    position: relative;
    max-width: 500px;
    width: 100%;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: #fff;
}

.carousel-inner {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 300%; /* Default: 3 items */
    height: 100%;
}

.carousel-item {
    min-width: 33.33%; /* Default: 100% / 3 items */
    height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2-item carousel */
.carousel-2-items .carousel-inner {
    width: 200%;
}

.carousel-2-items .carousel-item {
    min-width: 50%;
}

/* 3-item carousel (default) */
.carousel-3-items .carousel-inner {
    width: 300%;
}

.carousel-3-items .carousel-item {
    min-width: 33.33%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 1.5rem;
    padding: 0 0.5rem;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    transition: background 0.2s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: #f0f0f0;
}

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

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

/* Responsive Design for Dual Carousel */
@media (max-width: 768px) {
    .dual-carousel-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carousel {
        max-width: 450px;
        height: 350px;
    }

    .carousel-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .carousel {
        max-width: 380px;
        height: 320px;
    }
}

/* First Visit Popup */
.popup-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    animation: slideInRight 0.5s ease-out forwards;
}

.popup-content {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 320px;
    position: relative;
    text-align: center;
    border: 2px solid #f46a05;
}

.close-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-popup-btn:hover {
    color: #333;
}

.popup-body h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.offer-text {
    font-size: 2.5rem;
    color: #f46a05;
    font-weight: 800;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.popup-cta {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
}

.popup-small {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
    margin-bottom: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .popup-overlay {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        animation: slideUp 0.5s ease-out forwards;
    }
    
    .popup-content {
        width: 100%;
        border-radius: 12px 12px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}
