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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #00b3b7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover {
    color: #00b3b7;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00b3b7;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #00b3b7;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 179, 183, 0.3);
}

.btn-primary:hover {
    background-color: #009a9e;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 179, 183, 0.4);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 80px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 60px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 36px;
    color: #555;
    line-height: 1.6;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

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

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-container {
    overflow: hidden;
    position: relative;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.product-cashback {
    background-color: #00b3b7;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Merchants Section */
.merchants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.merchant-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merchant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.merchant-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.merchant-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.merchant-cashback {
    font-size: 14px;
    color: #666;
}

/* Coupons Section */
.coupons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.coupon-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.coupon-header {
    background-color: #00b3b7;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-store {
    display: flex;
    align-items: center;
    gap: 15px;
}

.coupon-store-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
}

.coupon-store h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.coupon-expiry {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    opacity: 0.9;
}

.coupon-content {
    padding: 30px;
}

.coupon-discount {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.coupon-code {
    font-size: 16px;
    font-weight: 700;
    color: #00b3b7;
    margin-bottom: 25px;
    padding: 10px 15px;
    background-color: #f0f9f9;
    border-radius: 6px;
    display: inline-block;
}

.coupon-footer {
    padding: 0 30px 30px;
    text-align: center;
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

.step-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

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

.step-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: #00b3b7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.step-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    padding: 0 10px;
}

/* Connecting lines between steps */
@media (min-width: 768px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 125px;
        right: 125px;
        height: 2px;
        background-color: #e9ecef;
        z-index: 0;
    }
}

/* Login/Register Form */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00b3b7;
    box-shadow: 0 0 0 3px rgba(0, 179, 183, 0.1);
}

.form-footer {
    text-align: center;
    margin-top: 30px;
}

.form-footer a {
    color: #00b3b7;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid #e9ecef;
}

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

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #333;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #00b3b7;
    border-radius: 2px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 10px;
}

.footer-section ul li a:hover {
    color: #00b3b7;
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
    text-align: center;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .products-grid,
    .merchants-grid,
    .coupons-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .auth-form {
        padding: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 179, 183, 0.3);
    border-radius: 50%;
    border-top-color: #00b3b7;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* Error Message */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}