/* General Styling & Color Palette */
:root {
    --brand-dark-blue: #002060;     /* Primary Dark Color */
    --brand-dark-orange: #ff8c00;   /* Primary Accent/Action Color */
    --brand-light-blue: #4fc3f7;    /* Secondary Accent/Light Background */
    --brand-white: #ffffff;         /* Main background and text on dark */

    /* Derived/Contextual Colors (from your brand colors) */
    --text-on-dark: var(--brand-white);
    --text-on-light: #333333; /* A soft dark for text on white/light blue */
    --light-bg-variant: #f8f8f8; /* A very subtle off-white */
    --border-color: #e0e0e0;
    --secondary-text-color: #6a6a6a; /* A medium grey for less emphasis */

    /* Animation Delays */
    --delay-01: 0.1s;
    --delay-02: 0.2s;
    --delay-03: 0.3s;
    --delay-04: 0.4s;
    --delay-05: 0.5s;
    --delay-06: 0.6s;
    --delay-07: 0.7s;
    --delay-08: 0.8s;
    --delay-09: 0.9s;
    --delay-10: 1.0s;
    --delay-15: 1.5s;
    --delay-20: 2.0s;
}

/* Base styles - keep consistent */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Modern, clean font */
    line-height: 1.6;
    color: var(--text-on-light);
    background-color: var(--light-bg-variant);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

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

a {
    text-decoration: none;
    color: var(--brand-dark-blue); /* Default link color */
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-dark-orange); /* Hover accent */
    text-decoration: none;
}

.button {
    display: inline-block;
    background: var(--brand-dark-orange); /* Action button color */
    color: var(--text-on-dark);
    padding: 12px 28px; /* Slightly larger buttons */
    border-radius: 50px; /* Pill-shaped buttons */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3); /* Shadow reflecting button color */
}

.button:hover {
    background: #e67e00; /* Slightly darker orange */
    transform: translateY(-2px); /* Subtle lift */
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.4);
}

.primary-button {
    background: var(--brand-light-blue); /* A secondary action button color */
    color: var(--brand-dark-blue); /* Dark text on light button */
    box-shadow: 0 4px 10px rgba(79, 195, 247, 0.3);
}

.primary-button:hover {
    background: #39b5e5; /* Darker light blue */
    box-shadow: 0 6px 15px rgba(79, 195, 247, 0.4);
}

/* --- Navbar Styling --- */
.navbar {
    background: var(--brand-dark-blue); /* Dark Blue background */
    color: var(--text-on-dark);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--brand-dark-orange); /* Dark Orange for logo */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    color: var(--text-on-dark); /* White links on dark blue navbar */
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--brand-dark-orange); /* Dark Orange underline */
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
    left: 0;
    background: var(--brand-dark-orange);
}

/* --- Hero Section --- */
.hero-section {
    /* Blend dark blue with a subtle texture or geometric pattern for depth */
    background: linear-gradient(to right, rgba(0, 32, 96, 0.7), rgba(0, 32, 96, 0.5)), url('https://via.placeholder.com/1800x700/002060/FFFFFF?text=TheMV.co.za+Empowers+Businesses') no-repeat center center/cover;
    color: var(--text-on-dark);
    text-align: center;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5em;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--brand-white); /* White heading on dark background */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--brand-white); /* White paragraph on dark background */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* --- What We Do Section --- */
.what-we-do-section {
    padding: 100px 0;
    background-color: var(--brand-white); /* White background */
    text-align: center;
    position: relative;
}

.what-we-do-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    margin-bottom: 60px;
    color: var(--brand-dark-blue); /* Dark Blue heading */
    position: relative;
    display: inline-block;
}

.what-we-do-section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--brand-dark-orange); /* Dark Orange underline */
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.feature-item {
    background: linear-gradient(145deg, var(--light-bg-variant), var(--brand-white));
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.feature-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--brand-dark-blue); /* Dark Blue for feature headings */
    position: relative;
}

.feature-item p {
    color: var(--secondary-text-color); /* Medium grey for body text */
}

/* --- New: Why Choose Us Section --- */
.why-choose-us-section {
    padding: 80px 0;
    background-color: var(--brand-light-blue); /* Light Blue background */
    color: var(--brand-dark-blue); /* Dark Blue text on light blue */
    text-align: center;
}

.why-choose-us-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    color: var(--brand-dark-blue); /* Dark Blue heading */
}

.why-choose-us-section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--brand-dark-orange); /* Dark Orange underline */
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-item {
    background: rgba(255, 255, 255, 0.2); /* Slightly more opaque white overlay */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4); /* Stronger white border */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3); /* More opaque on hover */
}

.why-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7em;
    margin-bottom: 10px;
    color: var(--brand-dark-blue); /* Dark Blue heading */
}

.why-item p {
    font-size: 1.05em;
    color: var(--brand-dark-blue); /* Dark Blue text on light background */
    opacity: 0.9;
}

/* --- Store Preview Section --- */
.store-preview-section {
    padding: 100px 0;
    background-color: var(--light-bg-variant); /* Light background */
    text-align: center;
}

.store-preview-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    margin-bottom: 60px;
    color: var(--brand-dark-blue); /* Dark Blue heading */
    position: relative;
    display: inline-block;
}

.store-preview-section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--brand-dark-orange); /* Dark Orange underline */
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.store-mockup {
    background-color: var(--brand-white);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 900px;
    margin: 0 auto 60px auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transform: perspective(1000px) rotateY(0deg) scale(0.95);
    transition: transform 0.8s ease-out;
}

/* Hover effect on mockup */
.store-mockup:hover {
    transform: perspective(1000px) rotateY(2deg) scale(1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.browser-frame {
    border-radius: 15px;
    overflow: hidden;
}

.browser-header {
    background-color: #e4e4e4; /* Neutral grey for browser chrome */
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

.browser-dots {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.2);
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.browser-address {
    flex-grow: 1;
    background-color: var(--brand-white);
    border-radius: 7px;
    padding: 6px 12px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    color: var(--secondary-text-color);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.browser-address p {
    margin: 0;
}

.store-content {
    background-color: var(--brand-white);
    padding: 25px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

/* Store Header Mockup */
.store-header-mockup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--brand-white);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.store-logo-mockup {
    width: 45px;
    height: 45px;
    background-color: var(--brand-dark-orange); /* Dark Orange for mock store logo */
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.store-name-mockup {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--brand-dark-blue); /* Dark Blue for store name */
    text-align: center;
    flex-grow: 1;
}

.store-icons-mockup {
    display: flex;
    gap: 18px;
}

.icon-placeholder {
    font-size: 1.6em;
    color: var(--secondary-text-color); /* Neutral icon color */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.icon-placeholder:hover {
    color: var(--brand-dark-orange); /* Dark Orange on hover */
    transform: scale(1.1);
}

.store-hero {
    background-color: #e0f2f7; /* Very light blue tint from #4fc3f7 */
    padding: 35px;
    border-radius: 10px;
    margin-bottom: 35px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.store-hero h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    color: var(--brand-dark-blue); /* Dark Blue heading */
    margin-bottom: 12px;
}

.store-hero p {
    color: var(--secondary-text-color); /* Medium grey for body text */
}

.store-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--brand-white);
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 140px;
    background-color: #bbdefb; /* A light blue for placeholder derived from your palette */
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-on-light);
    font-size: 1.1em;
}

.product-price {
    color: var(--brand-dark-orange); /* Dark Orange for prices to stand out */
    font-weight: 700;
    font-size: 1.2em;
}

.call-to-action {
    margin-top: 50px;
    background-color: var(--brand-dark-orange); /* Solid Dark Orange background */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
    color: var(--text-on-dark);
}

.call-to-action p {
    font-size: 1.4em;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* --- Footer --- */
/* --- Footer --- */
footer {
    background: var(--brand-dark-blue); /* Dark Blue footer */
    color: var(--text-on-dark); /* This sets the general text color to white for the footer */
    text-align: center;
    padding: 25px 0;
    margin-top: 80px;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.1);
}

footer p {
    margin: 0;
    font-size: 0.95em;
    opacity: 0.8;
}

/* NEW: Ensure footer links are visible */
footer p a {
    color: var(--brand-white); /* Set link color to white */
    font-weight: 600; /* Make it a bit bolder */
    text-decoration: underline; /* Add an underline for clear distinction as a link */
    transition: color 0.3s ease;
}

footer p a:hover {
    color: var(--brand-light-blue); /* Light blue on hover for interaction feedback */
    text-decoration: none; /* Remove underline on hover for a clean effect */
}

/* =====================================
   Animations (No changes here, they use the new colors from variables)
   ===================================== */

/* Base hidden state for elements that animate in */
[class*="animate-"] {
    opacity: 0;
    transform: translateY(20px); /* Default slide in from bottom */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Specific delay classes */
.delay-01 { transition-delay: var(--delay-01); }
.delay-02 { transition-delay: var(--delay-02); }
.delay-03 { transition-delay: var(--delay-03); }
.delay-04 { transition-delay: var(--delay-04); }
.delay-05 { transition-delay: var(--delay-05); }
.delay-06 { transition-delay: var(--delay-06); }
.delay-07 { transition-delay: var(--delay-07); }
.delay-08 { transition-delay: var(--delay-08); }
.delay-09 { transition-delay: var(--delay-09); }
.delay-10 { transition-delay: var(--delay-10); }
.delay-15 { transition-delay: var(--delay-15); }
.delay-20 { transition-delay: var(--delay-20); }


/* Animation definitions */

/* Fade In */
.animate-fade-in {
    opacity: 0;
    transform: translateY(0);
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Slide In Up (default for most elements) */
.animate-slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease-out forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Left */
.animate-slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Text Reveal Animation for Hero H1 */
.animate-text-reveal {
    opacity: 0;
    animation: textClipReveal 1.5s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes textClipReveal {
    0% {
        opacity: 0;
        transform: translateY(50px);
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0% 0 0);
    }
}

/* =====================================
   Media Queries (Responsive Design)
   ===================================== */

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3.5em;
    }
    .hero-section p {
        font-size: 1.3em;
    }
    .what-we-do-section h2, .why-choose-us-section h2, .store-preview-section h2 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }

    .navbar ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar ul li {
        margin: 0 10px 10px 10px;
    }

    .hero-section {
        min-height: 450px;
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.8em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .features-grid, .why-grid {
        grid-template-columns: 1fr;
    }

    .feature-item, .why-item {
        padding: 25px;
    }

    .store-mockup {
        width: 100%;
        margin: 0 auto 40px auto;
        transform: perspective(1000px) rotateY(0deg) scale(1);
    }

    .store-mockup:hover {
        transform: none;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .store-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .store-hero h3 {
        font-size: 1.8em;
    }
    .call-to-action p {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
        min-height: 380px;
    }

    .hero-section h1 {
        font-size: 2.2em;
        letter-spacing: 0;
    }

    .hero-section p {
        font-size: 0.95em;
    }

    .what-we-do-section h2, .why-choose-us-section h2, .store-preview-section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .navbar .logo {
        font-size: 1.5em;
    }

    .navbar ul li {
        margin: 0 8px 8px 8px;
    }

    .button {
        padding: 10px 20px;
    }

    .store-header-mockup {
        padding: 10px 15px;
    }

    .store-name-mockup {
        font-size: 1.3em;
    }

    .icon-placeholder {
        font-size: 1.4em;
    }

    .store-hero {
        padding: 25px;
    }

    .store-hero h3 {
        font-size: 1.5em;
    }

    .product-image {
        height: 100px;
    }

    .product-title {
        font-size: 1em;
    }

    .product-price {
        font-size: 1.1em;
    }

    .call-to-action {
        padding: 30px;
    }

    .call-to-action p {
        font-size: 1.1em;
    }
}