/* ------------------------------------- */
/*  DESIGN TOKENS                        */
/* ------------------------------------- */
:root {
    /* Colors */
    --bg-dark: #0a0b0e;
    --bg-card: rgba(25, 27, 33, 0.6);
    --bg-card-hover: rgba(35, 38, 46, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --accent-teal: #14b8a6;
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(249, 115, 22, 0.15);

    /* Fonts */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing & Utilities */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ------------------------------------- */
/*  RESET & BASICS                       */
/* ------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100vh;
    background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.1), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

ul {
    list-style: none;
}

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

/* ------------------------------------- */
/*  UTILITIES & COMPONENTS               */
/* ------------------------------------- */
.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.badge-accent {
    color: var(--accent-teal);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--accent-orange);
    color: #fff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn-outline:hover {
    background: var(--accent-orange);
    color: #fff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.w-100 {
    width: 100%;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

/* ------------------------------------- */
/*  NAVIGATION                           */
/* ------------------------------------- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    position: relative;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-orange);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: #e2e8f0;
}

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

.cart-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--accent-orange);
}

#cart-count {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--accent-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ------------------------------------- */
/*  HERO                                 */
/* ------------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    text-align: center;
}

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

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    transform: scale(1.05); /* Slight zoom for wow effect */
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 11, 14, 0.3), var(--bg-dark));
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    z-index: 1;
}

.glass-badge {
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    animation: fadeInDown 1s ease-out;
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* ------------------------------------- */
/*  SERVICES                             */
/* ------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.3);
}

.service-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

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

.service-card p {
    color: var(--text-secondary);
    flex-grow: 1;
}

/* ------------------------------------- */
/*  MARKETPLACE                          */
/* ------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-img {
    width: 100%;
    height: 220px;
    background-color: #1a1c23; /* fallback */
    position: relative;
    overflow: hidden;
}

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

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

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin: 5px 0 15px 0;
}

.add-to-cart-btn {
    width: 100%;
    margin-top: auto;
}

/* ------------------------------------- */
/*  REAL ESTATE                          */
/* ------------------------------------- */
.realestate-container {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 60px;
}

.re-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.re-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
}

.re-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.re-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px 0;
}

.re-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.re-features ion-icon {
    color: var(--accent-teal);
    font-size: 1.5rem;
}

.re-image {
    flex: 1;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.re-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}

.image-accent-glow {
    position: absolute;
    top: -20%; right: -20%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(50px);
    z-index: -1;
}

/* ------------------------------------- */
/*  FOOTER                               */
/* ------------------------------------- */
footer {
    background: #060709;
    padding: 80px 5% 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--accent-orange);
}

.footer-logo p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-col h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.link-col a, .link-col span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.link-col a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ------------------------------------- */
/*  CART SIDEBAR                         */
/* ------------------------------------- */
.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 400px; height: 100vh;
    background: #11131a;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.cart-header h2 {
    font-size: 1.5rem;
}

#close-cart {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: var(--radius-sm);
}

.cart-item img {
    width: 60px; height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
}

.cart-item-price {
    color: var(--accent-orange);
    font-weight: 500;
    margin-top: 5px;
}

.remove-item {
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 5px;
    display: inline-block;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.cart-footer .total {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #0ea5e9; /* Paystackish color */
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: #0284c7;
}

.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ------------------------------------- */
/*  WHATSAPP WIDGET                      */
/* ------------------------------------- */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.floating-widget a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.floating-widget a:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}

/* ------------------------------------- */
/*  MODAL                                */
/* ------------------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: #fff;
}

.modal h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(0, 0, 0, 0.5);
}

/* ------------------------------------- */
/*  RESPONSIVE                           */
/* ------------------------------------- */
@media (max-width: 992px) {
    .realestate-container {
        flex-direction: column;
        padding: 40px 30px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile handling */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section {
        padding: 60px 5%;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
