/* ============================================
   MAHALLE MARKET - Modern Blue Theme
   ============================================ */

:root {
    --blue-50: #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-200: #BFDBFE;
    --blue-300: #93C5FD;
    --blue-400: #60A5FA;
    --blue-500: #3B82F6;
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-800: #1E40AF;
    --blue-900: #1E3A8A;

    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-blue: 0 8px 30px rgba(59, 130, 246, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 100px;
    --transition: 0.25s ease;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
}

.navbar.scrolled .nav-logo {
    color: var(--gray-900);
}

.logo-icon { font-size: 1.4rem; }

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

.nav-links a {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.navbar.scrolled .nav-links a {
    color: var(--gray-600);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.navbar.scrolled .nav-links a:hover {
    background: var(--blue-50);
    color: var(--blue-600);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--blue-500);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--blue-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
    color: var(--white);
}

.cta-icon { font-size: 0.9rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 4px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--gray-700);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(30, 64, 175, 0.8) 50%,
        rgba(59, 130, 246, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 140px 24px 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: var(--blue-200);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
    animation: fadeUp 0.6s ease 0.1s both;
}

.badge-icon { font-size: 1rem; }

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    animation: fadeUp 0.6s ease 0.2s both;
}

.title-accent {
    background: linear-gradient(135deg, var(--blue-300), var(--blue-100));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeUp 0.6s ease 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 56px;
    animation: fadeUp 0.6s ease 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--blue-700);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    color: var(--blue-700);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    color: var(--white);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 36px;
    animation: fadeUp 0.6s ease 0.5s both;
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    right: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeUp 0.6s ease 0.6s both;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   SECTION SHARED
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius-full);
    color: var(--blue-600);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.accent { color: var(--blue-600); }

.section-desc {
    margin-top: 12px;
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-100);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: inline-block;
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.about-card p {
    color: var(--gray-500);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 100px 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--white);
    border-color: var(--blue-200);
}

.product-icon-wrap {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover .product-icon-wrap {
    box-shadow: var(--shadow-sm);
}

.product-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-icon-img {
    transform: scale(1.08);
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.product-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 14px;
}

.product-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-cta {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    border: none;
}

.product-card-cta h3,
.product-card-cta p {
    color: var(--white);
}

.product-card-cta p {
    color: rgba(255, 255, 255, 0.75);
}

.cta-wrap {
    background: rgba(255, 255, 255, 0.12) !important;
}

.product-card-cta:hover .cta-wrap {
    background: rgba(255, 255, 255, 0.2) !important;
}

.product-card-cta:hover {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
    border-color: transparent;
}

.product-cta-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--white);
    color: var(--blue-700);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.product-cta-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    color: var(--blue-700);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 80px 0;
    background: var(--gray-900);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    padding: 32px 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.feature-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.65;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-100);
}

.contact-card-icon { font-size: 1.6rem; flex-shrink: 0; }

.contact-card-content h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-600);
    margin-bottom: 4px;
}

.contact-card-content p,
.contact-card-content a {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.contact-card-content a:hover { color: var(--blue-600); }

.contact-card-content small {
    color: var(--gray-400);
    font-style: italic;
}

.stars { font-size: 0.8rem; letter-spacing: 1px; }

.contact-map {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.contact-map iframe { display: block; }

.map-overlay-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
}

.map-overlay-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.map-overlay-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.map-btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--blue-500);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
}

.map-btn:hover {
    background: var(--blue-600);
    transform: translateY(-1px);
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    padding: 64px 0 0;
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue-400);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-contact a:hover {
    color: var(--blue-300);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.footer-heart { color: rgba(255, 255, 255, 0.35) !important; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map { min-height: 320px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        padding: 16px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active a {
        color: var(--gray-700);
        padding: 12px 16px;
    }

    .nav-links.active a:hover {
        background: var(--blue-50);
        color: var(--blue-600);
    }

    .hero-content { padding: 130px 24px 80px; }

    .hero-actions { flex-direction: column; }
    .btn { justify-content: center; }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .stat-divider { width: 50px; height: 1px; }
    .hero-scroll { display: none; }

    .about-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

    .about, .products, .contact { padding: 72px 0; }
    .features { padding: 56px 0; }
    .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.6rem; }
    .product-card { padding: 24px 20px; }
}

/* ============================================
   SCROLLBAR & SELECTION
   ============================================ */
::selection {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-900);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-300); }
