:root {
    /* Color Palette */
    --primary-color: #003366;
    /* Deep Azure Blue */
    --secondary-color: #2E8B57;
    /* Harvest Green */
    --accent-color: #DAA520;
    /* Earthy Gold */
    --text-color: #333333;
    --light-bg: #F4F4F9;
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    /* Reduced from 600px per user request */
    overflow: hidden;
    color: var(--white);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Overlay for text readability */
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot:hover,
.dot.active {
    background-color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #236c43;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    transition: all 0.3s ease-in-out;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Card Hover Effects */
.service-card,
.news-item,
.opp-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.news-item:hover,
.opp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xl) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
    /* Subtle movement */
    transition: padding-left 0.2s ease;
}

.copyright {
    text-align: center;
    padding: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem !important;
    }

    .hero p {
        font-size: 1.1rem !important;
    }

    .stats .stat-item {
        flex: 1 1 40%;
        /* 2 items per row on mobile */
    }
}

/* --- Advanced Features Styles --- */

/* Food Basket Parallax */
.food-basket-section {
    position: relative;
    overflow: hidden;
    background-color: var(--white);
}

.food-item-row {
    display: flex;
    align-items: center;
    min-height: 400px;
    border-bottom: 1px solid #eee;
}

.food-item-row:last-child {
    border-bottom: none;
}

.food-info {
    flex: 1;
    padding: var(--spacing-xl);
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
}

.food-info h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.food-image-parallax {
    flex: 1;
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Parallax adjustment for mobile */
@media (max-width: 768px) {
    .food-item-row {
        flex-direction: column;
    }

    .food-image-parallax {
        width: 100%;
        height: 250px;
        background-attachment: scroll;
        /* Disable fixed attachment on mobile for performance */
    }
}

/* Interactive Map */
.map-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.interactive-map {
    width: 100%;
    display: block;
}

.hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    animation: pulse 2s infinite;
    z-index: 10;
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.hotspot-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(218, 165, 32, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(218, 165, 32, 0);
    }
}

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

.testimonial-card {
    text-align: center;
    cursor: pointer;
}

.testim-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
}

.testimonial-card:hover .testim-img-wrapper {
    transform: scale(1.1);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.testimonial-card:hover .play-icon {
    opacity: 1;
}

/* Investment Gateway CTA */
.investment-cta {
    display: flex;
    flex-wrap: wrap;
}

.cta-col-text {
    flex: 1;
    padding: var(--spacing-xl);
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-col-img {
    flex: 1;
    background-image: url('../images/invest_handshake.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
}