/* ==========================================================================
   FUJITECH Computers Karachi Custom Stylesheet
   Design system, layout system, component styling, animations & responsiveness.
   ========================================================================== */

/* --- 1. Custom Design Tokens --- */
:root {
    /* Color Palette */
    --primary-color: #16a34a;         /* Premium Emerald Green */
    --primary-hover: #15803d;
    --primary-light: #f0fdf4;
    --accent-color: #84cc16;          /* Vivid Lime Green */
    --accent-hover: #65a30d;
    --text-color: #1f2937;            /* Dark Charcoal Slate */
    --text-light: #4b5563;            /* Muted Slate Grey */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;               /* Rich Dark Grey */
    --border-color: #e5e7eb;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadow & Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(22, 163, 74, 0.05), 0 4px 6px -2px rgba(22, 163, 74, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(22, 163, 74, 0.08), 0 10px 10px -5px rgba(22, 163, 74, 0.04);
    --shadow-glow: 0 0 20px rgba(132, 204, 22, 0.2);
    
    /* Layout Dimensions */
    --container-max: 1200px;
    --header-height: 80px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. Base & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--bg-dark);
}

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

ul {
    list-style: none;
}

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

iframe {
    display: block;
}

/* --- 3. Common Utility Classes --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Common Styles */
section {
    padding: 90px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.sub-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
    position: relative;
}

.heading-line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 20px;
    border-radius: var(--radius-full);
}

.heading-line.align-left {
    margin: 0 0 20px 0;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 10px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(2, 84, 216, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 84, 216, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-primary-nav {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
}

.btn-primary-nav:hover {
    background-color: var(--accent-hover);
    color: var(--bg-white);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(243, 156, 18, 0.15);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* --- 4. Header & Navigation --- */
.top-bar {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.top-bar-left .separator {
    opacity: 0.4;
}

.top-bar-right .timing {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Navigation Header */
.main-header {
    background-color: var(--bg-white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

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

/* Brand Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Links */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* Dropdown Menu Support */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-normal);
    z-index: 10;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 0.85rem;
}

.dropdown a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* --- 5. Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #111827 0%, #031b4e 100%);
    color: var(--bg-white);
    padding: 100px 0 180px;
    position: relative;
}

/* SVG background pattern */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(2, 84, 216, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--bg-white);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Hero Feature Cards */
.hero-features-container {
    position: absolute;
    left: 50%;
    bottom: -90px;
    transform: translateX(-50%);
    width: 100%;
    z-index: 3;
}

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

.feature-card {
    background-color: var(--bg-white);
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.feature-card:hover::before {
    background: var(--accent-color);
    height: 6px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px rgba(2, 84, 216, 0.12);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card:hover .feature-icon {
    color: var(--accent-color);
    animation: bounce 0.5s ease;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- 6. Services Section --- */
.services-section {
    background-color: var(--bg-light);
    padding-top: 180px; /* Offset the floating hero cards */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Spotlight highlighted card */
.service-card.highlighted {
    border: 2px solid var(--primary-color);
    position: relative;
}

.service-card.highlighted::after {
    content: "POPULAR";
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.service-icon-bg {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon-bg {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.service-card.highlighted .service-icon-bg {
    background-color: rgba(243, 156, 18, 0.15);
    color: var(--accent-color);
}

.service-card.highlighted:hover .service-icon-bg {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.service-card h3 {
    font-size: 1.4rem;
}

.service-intro {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-bullets {
    margin-bottom: 30px;
}

.service-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-bullets i {
    color: #2ecc71; /* Green Check */
    font-size: 1.1rem;
}

.service-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.service-link i {
    transition: var(--transition-fast);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

.service-card:hover .service-link {
    color: var(--accent-color);
}

/* --- 7. About Section ("Why Choose Us") --- */
.about-section {
    background-color: var(--bg-white);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-left {
    flex: 1;
}

.about-left p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-left .btn {
    margin-top: 15px;
}

.about-right {
    flex: 1.2;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.about-right h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.reason-item {
    display: flex;
    gap: 15px;
}

.reason-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 3px;
}

.reason-item h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.reason-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- 8. Support We Can Offer --- */
.support-section {
    background-color: var(--bg-light);
}

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

.support-box {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-top: 3px solid var(--primary-color);
}

.support-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent-color);
}

.support-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.support-box-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.support-box:hover .support-box-header i {
    color: var(--accent-color);
}

.support-box-header h3 {
    font-size: 1.15rem;
}

.support-box ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-box li {
    font-size: 0.85rem;
    color: var(--text-light);
    position: relative;
    padding-left: 15px;
}

.support-box li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.1rem;
}

/* --- 9. Location & Branch Section --- */
.contact-section {
    background-color: var(--bg-white);
    padding: 90px 0 0; /* Align directly to bottom footer */
}

.contact-container {
    display: flex;
    gap: 40px;
}

.contact-info-block {
    flex: 1;
    padding-bottom: 90px;
}

.contact-form-block {
    flex: 1.1;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 90px;
}

.contact-form-block h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.contact-form-block p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

.branch-summary {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-text strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--bg-dark);
}

.detail-text p, 
.detail-text a {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

.detail-text a:hover {
    color: var(--primary-color);
}

.branch-actions {
    display: flex;
    gap: 15px;
}

.btn-whatsapp-direct {
    background-color: #25d366;
    color: var(--bg-white);
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-whatsapp-direct:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

.btn-directions {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-directions:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Map Viewport */
.map-viewport {
    flex: 1.2;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* --- 10. Footer Section --- */
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left strong {
    color: var(--bg-white);
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* --- 11. Floating Widgets & Keyframes --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition-normal);
    animation: bounce-float 3s infinite;
}

.floating-whatsapp:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--bg-dark);
    color: var(--bg-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg-dark);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes bounce-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* --- 12. Media Queries & Responsiveness --- */

/* Tablet Layout */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section {
        padding-bottom: 240px;
    }
    
    .services-section {
        padding-top: 240px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-right {
        width: 100%;
    }
    
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info-block {
        padding-bottom: 40px;
    }
    
    .map-viewport {
        width: 100%;
        height: 380px;
        margin-bottom: 60px;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Top Bar Mobile Hidden */
    .top-bar {
        display: none;
    }
    
    /* Header toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        display: none;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 8px 12px;
    }
    
    .has-dropdown:hover .dropdown {
        display: none; /* Disable hover dropdowns on mobile */
    }
    
    .has-dropdown.clicked .dropdown {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
        transform: none;
        margin-top: 10px;
    }
    
    .nav-cta {
        width: 100%;
        margin-top: 10px;
    }
    
    .btn-primary-nav {
        display: flex;
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    /* Hero Content */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-section {
        padding-bottom: 450px;
    }
    
    .services-section {
        padding-top: 450px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==========================================================================
   Classified Marketplace Section (OLX Style)
   ========================================================================== */
.marketplace-section {
    background-color: var(--bg-white);
}

.marketplace-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background-color: var(--bg-light);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-light);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-sell {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
}

.btn-sell:hover {
    background-color: var(--accent-hover);
    color: var(--bg-white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* OLX Card Design */
.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.product-image-box {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
    overflow: hidden;
}

.product-image-box img.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-condition-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--bg-dark);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-specs {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
    background-color: var(--bg-light);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.product-location i {
    color: var(--primary-color);
    margin-right: 3px;
}

.product-date {
    font-weight: 500;
}

/* Delete Button on listed items (Local Simulation) */
.btn-delete-listing {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(239, 68, 68, 0.9);
    color: var(--bg-white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-fast);
}

.btn-delete-listing:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

/* ==========================================================================
   Modals & Forms Layout (OLX Style overlays)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    position: relative;
    padding: 40px;
    transform: translateY(30px);
    transition: var(--transition-normal);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Modal Grid */
.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 30px;
}

.modal-image-box {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-condition-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--bg-dark);
    color: var(--bg-white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.modal-image-placeholder {
    height: 350px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--primary-color);
    overflow: hidden;
}

.modal-image-placeholder img.modal-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-box {
    display: flex;
    flex-direction: column;
}

.modal-category {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-hover);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-condition-rating {
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
}

.modal-condition-rating strong {
    color: var(--primary-color);
}

.modal-specs,
.modal-desc {
    margin-bottom: 20px;
}

.modal-specs h4,
.modal-desc h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--bg-dark);
}

.modal-specs p,
.modal-desc p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.modal-location {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-location i {
    color: var(--primary-color);
}

.btn-whatsapp-order {
    background-color: #25d366;
    color: var(--bg-white);
    width: 100%;
}

.btn-whatsapp-order:hover {
    background-color: #20ba5a;
}

/* Sell Form Modal Card */
.modal-form-card {
    max-width: 650px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

/* Responsive Marketplace */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-image-placeholder {
        height: 220px;
        font-size: 4rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .marketplace-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-tabs {
        justify-content: center;
    }
}

