@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-color: #0ea5e9;
    --accent-hover: #0284c7;
    --smart-blue: #1e3a8a;
    --border-color: #e2e8f0;
    --radius: 24px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: radial-gradient(circle at top right, rgba(14, 165, 233, 0.05), transparent 600px),
                      radial-gradient(circle at bottom left, rgba(30, 58, 138, 0.05), transparent 600px);
    background-attachment: fixed;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }

/* Header Elements */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

/* Pulse Logo */
.logo {
    font-size: 1.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    color: var(--smart-blue);
    position: relative;
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent-color); font-weight: 400; }
.logo .pulse-dot {
    width: 6px; height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    margin-left: 5px;
    position: relative;
}
.logo .pulse-dot::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background-color: #10b981; border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* Nav */
.desktop-nav { display: flex; gap: 2.5rem; font-weight: 500; }
.desktop-nav a { color: var(--text-secondary); }
.desktop-nav a:hover { color: var(--accent-color); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-primary); cursor: pointer; }

/* Hero Section */
.hero-glass {
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    margin: 4rem auto;
    max-width: 1200px;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.05);
}
.hero-glass h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--smart-blue), var(--accent-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.search-bar { width: 100%; max-width: 500px; margin: 0 auto; display: flex; gap: 0.5rem; }
.search-input {
    flex: 1; padding: 1.25rem 2rem; border-radius: 99px; border: none; font-size: 1.125rem; font-family: 'Outfit';
    background: rgba(255,255,255,0.9); box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s;
}
.search-input:focus { outline: none; box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2); }
.search-btn { padding: 0 2.5rem; border-radius: 99px; background: var(--smart-blue); color: white; border: none; font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 1.125rem; }
.search-btn:hover { background: #172554; }

/* Categories */
.category-nav { display: flex; justify-content: center; gap: 4rem; margin-bottom: 5rem; flex-wrap: wrap; }
.cat-item { display: flex; flex-direction: column; align-items: center; font-weight: 600; color: var(--text-secondary); transition: transform 0.3s; }
.cat-item:hover { color: var(--accent-color); transform: translateY(-5px); }
.cat-icon { width: 70px; height: 70px; background: white; border-radius: 20px; display: flex; justify-content: center; align-items: center; font-size: 1.75rem; margin-bottom: 1rem; box-shadow: var(--shadow); transition: 0.3s; }
.cat-item:hover .cat-icon { box-shadow: 0 15px 30px rgba(14, 165, 233, 0.15); }

/* Main layout */
.page-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 2.5rem; color: var(--smart-blue); }

/* Deal Cards */
.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem; margin-bottom: 5rem;}
.deal-card {
    background: white; border-radius: var(--radius); box-shadow: var(--shadow);
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.deal-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); }
.deal-image-wrapper { position: relative; width: 100%; height: 260px; overflow: hidden; background: #f1f5f9; }
.deal-image { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.6s ease; }
.deal-card:hover .deal-image { transform: scale(1.08); }
.deal-category { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); padding: 0.5rem 1.25rem; border-radius: 99px; font-size: 0.8rem; font-weight: 700; color: var(--smart-blue); text-transform: uppercase; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.deal-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.deal-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.4; color: var(--text-primary); }
.deal-title a:hover { color: var(--accent-color); }
.deal-price { font-size: 2rem; font-weight: 800; color: var(--smart-blue); margin-bottom: 2rem; margin-top: auto; }

/* Buttons */
.btn {
    display: inline-block; padding: 1.25rem 2rem; background: var(--accent-color); color: white;
    font-weight: 700; font-size: 1.1rem; text-align: center; border-radius: 16px; border: none; cursor: pointer;
    position: relative; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2); text-decoration: none;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 15px 25px rgba(14, 165, 233, 0.3); color: white; }
.btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); animation: shine 5s infinite;
}
@keyframes shine { 0% { left: -100%; } 15%, 100% { left: 200%; } }

/* Footer */
.main-footer { background: #0f172a; color: #fff; padding: 5rem 2rem 2rem; margin-top: 5rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-heading { font-size: 1.25rem; margin-bottom: 1.5rem; font-weight: 700; }
.footer-col a { display: block; color: #9ca3af; margin-bottom: 0.75rem; transition: 0.3s; }
.footer-col a:hover { color: #fff; transform: translateX(5px); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; color: #9ca3af; }

/* Featured */
.featured-deal {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; background: white; border-radius: var(--radius);
    padding: 3rem; margin-bottom: 6rem; position: relative; box-shadow: var(--shadow);
}
.featured-deal::before {
    content: ''; position: absolute; top: -3px; right: -3px; bottom: -3px; left: -3px;
    background: linear-gradient(45deg, var(--smart-blue), var(--accent-color), #3b82f6);
    z-index: -1; border-radius: calc(var(--radius) + 3px);
    animation: border-glow 4s ease-in-out infinite alternate;
}
@keyframes border-glow { 0% { filter: blur(6px); opacity: 0.5; } 100% { filter: blur(12px); opacity: 1; } }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-glass h1 { font-size: 2.5rem; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .featured-deal { grid-template-columns: 1fr; padding: 2rem; }
}
