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

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --success-color: #51CF66;
    --danger-color: #FF6B6B;
    --warning-color: #FFA94D;
    --info-color: #4DABF7;
    --dark: #2C3E50;
    --light: #ECF0F1;
    --purple: #9B59B6;
    --orange: #FF8C42;
    --pink: #FF6B9D;
    --blue: #6C5CE7;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #F8F9FA;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===========================
   Top Header
=========================== */
.top-header {
    background: linear-gradient(135deg, var(--primary-color), var(--purple));
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-left span, .top-right a {
    margin-right: 20px;
    color: white;
}

.city-name, .city-state{
      color: black !important;
}

.top-right a:hover {
    color: var(--accent-color);
}

.top-left i, .top-right i {
    margin-right: 5px;
}

/* ===========================
   Main Header
=========================== */
.main-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: block;
}

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.logo-day {
    color: var(--primary-color);
}

.logo-2 {
    color: var(--secondary-color);
    font-size: 36px;
}

.logo-deal {
    color: var(--blue);
}

.tagline {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
    font-weight: 500;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-menu {
    display: none;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin: 10px 0;
}

.mobile-menu a {
    display: block;
    padding: 10px;
    color: var(--text-dark);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,122.7C1248,128,1344,160,1392,176L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.search-box {
    background: white;
    border-radius: 50px;
    padding: 10px;
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.search-box button {
    background: linear-gradient(135deg, var(--primary-color), var(--purple));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 15px;
}

/* ===========================
   Categories Section
=========================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: white;
}

.category-card:nth-child(1) .category-icon {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.category-card:nth-child(2) .category-icon {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.category-card:nth-child(3) .category-icon {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

.category-card:nth-child(4) .category-icon {
    background: linear-gradient(135deg, #3498DB, #2980B9);
}

.category-card:nth-child(5) .category-icon {
    background: linear-gradient(135deg, #F39C12, #E67E22);
}

.category-card:nth-child(6) .category-icon {
    background: linear-gradient(135deg, #1ABC9C, #16A085);
}

.category-card:nth-child(7) .category-icon {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}

.category-card:nth-child(8) .category-icon {
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
}

.category-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.category-count {
    font-size: 13px;
    color: var(--text-light);
}

/* ===========================
   Coupon Cards
=========================== */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.coupon-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.coupon-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.coupon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.coupon-card:hover .coupon-image img {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--pink));
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--warning-color), #FFD93D);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.coupon-content {
    padding: 20px;
}

.coupon-category {
    display: inline-block;
    background: var(--light);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.coupon-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.merchant-name {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-info {
    display: flex;
    flex-direction: column;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
}

.discounted-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.validity {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.buy-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--pink));
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

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

.step-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.step-card:nth-child(1) .step-number {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.step-card:nth-child(2) .step-number {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.step-card:nth-child(3) .step-number {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

.step-card:nth-child(4) .step-number {
    background: linear-gradient(135deg, #3498DB, #2980B9);
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-description {
    color: var(--text-light);
    font-size: 14px;
}

/* ===========================
   Footer
=========================== */
.main-footer {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
    margin-top: 60px;
}

.footer-content {
    padding: 50px 0 30px;
}

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

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

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

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

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

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer-bottom i {
    color: var(--primary-color);
}

/* ===========================
   Animations
=========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Responsive Design
=========================== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .top-header-content {
        font-size: 12px;
    }
    
    .top-left span,
    .top-right a {
        margin-right: 10px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .coupons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .search-box button {
        border-radius: 8px;
    }
}

/* ===========================
   City Selector Styles
=========================== */
.city-selector {
    position: relative;
    display: inline-block;
}

.city-selector-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.city-selector-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.city-selector-btn i {
    font-size: 12px;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.city-dropdown.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.city-dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid #E9ECEF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.city-dropdown-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0;
}

.city-dropdown-header h4 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.city-dropdown-close {
    background: none;
    border: none;
    color: #7F8C8D;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.city-dropdown-close:hover {
    background: #F8F9FA;
    color: #2C3E50;
}

.city-search {
    padding: 10px 20px;
    border-bottom: 1px solid #E9ECEF;
    background: white;
}

.city-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    color: #2C3E50;
    background: white;
}

.city-search input::placeholder {
    color: #95A5A6;
}

.city-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.city-list {
    padding: 10px 0;
    max-height: 280px;
    overflow-y: auto;
    background: white;
}

.city-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2C3E50;
    background: white;
}

.city-item:hover {
    background: #F8F9FA;
}

.city-item.selected {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 83, 0.1));
    color: var(--primary-color);
    font-weight: 600;
}

.city-item i {
    color: var(--primary-color);
    font-size: 12px;
}

.city-item.all-india {
    font-weight: 600;
    border-bottom: 1px solid #E9ECEF;
    margin-bottom: 5px;
}

.city-item.all-india i {
    color: #667eea;
}

.city-name {
    flex: 1;
    font-size: 14px;
    color: #2C3E50;
}

.city-state {
    font-size: 12px;
    color: #7F8C8D;
}

.selected-indicator {
    color: var(--primary-color);
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .city-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 0;
        width: 90%;
        max-width: 400px;
        z-index: 9999;
    }
    
    .city-dropdown.active {
        animation: fadeInScale 0.3s ease;
    }
    
    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
    
    .top-left {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }
}