* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C62828;
    --dark-grey: #333333;
    --light-grey: #f5f5f7;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: background-color 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a, .logo {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.nav-links a:hover {
    color: #a8a8a8;
}

.hero {
    height: 100vh;
    background: var(--white); /* Changed from dark-grey to white */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--dark-grey); /* Changed from white to dark-grey */
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.8); /* Changed to black with opacity */
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white); /* Changed to white */
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark-grey); /* Changed from white to dark-grey */
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: rgba(0,0,0,0.8); /* Changed from white to dark with opacity */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.cta-button {
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-button.primary {
    background: var(--primary-red);
    color: var(--white);
    border: none;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--dark-grey); /* Changed from white to dark-grey */
    color: var(--dark-grey); /* Changed from white to dark-grey */
}

/* Add specific hover effect for primary button */
.cta-button.primary:hover {
    background-color: #9b1c1c; /* Darker shade of red */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(155, 28, 28, 0.3);
}

/* General hover effect for other buttons */
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-grey); /* Changed from white to dark-grey */
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(0,0,0,0.7); /* Changed from white to dark with opacity */
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: slideInFromLeft 1s ease-in-out;
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    animation: slideInFromRight 1s ease-in-out;
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cta-button {
    background-color: #ffffff; /* White color */
    color: #000000; /* Black text color */
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #e0e0e0; /* Light gray color for hover */
    transform: scale(1.05);
}

.featured, .about {
    padding: 100px 0;
    background-color: var(--light-grey); /* Same gray color as the first section */
}

.services, .contact {
    padding: 100px 0;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured h2, .services h2, .about h2, .contact h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 40px;
    animation: fadeIn 2s ease-in-out;
}

.product-grid, .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card, .service-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease-in-out;
    cursor: pointer; /* Add this line */
    position: relative;
    overflow: hidden;
}

.product-card i {
    transition: transform 0.3s ease-in-out;
}

.product-card:hover i {
    transform: scale(1.2);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card:hover, .service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-red);
}

.product-card img, .service-card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.product-card h3, .service-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.featured p, .services p, .about p, .contact p {
    text-align: center;
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 250px;
    animation: fadeInUp 1s ease-in-out;
}

.contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
    margin: 0 auto 15px auto;
}

.rounded-avatar {
    border: 3px solid var(--primary-red);
    box-shadow: 0 0 15px rgba(198, 40, 40, 0.5);
}

.contact-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 16px;
    margin-bottom: 5px;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 200; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
}

.modal-button {
    background-color: #6c757d; /* Fume (gray) color */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.3s;
    width: 120px; /* Ensure buttons have the same width */
    height: 40px; /* Ensure buttons have the same height */
}

.modal-button:hover {
    background-color: #5a6268; /* Darker fume (gray) color for hover */
}

.footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 20px 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    text-align: center;
    font-size: 14px;
}

.footer-content p {
    margin: 0;
}

.roadmap {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.roadmap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--light-grey) 0%, var(--white) 100%);
    z-index: 1;
}

.roadmap .container {
    position: relative;
    z-index: 2;
}

.roadmap h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 40px;
    animation: fadeIn 2s ease-in-out;
    position: relative;
}

.roadmap-intro {
    text-align: center;
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--dark-grey);
}

/* Modern Timeline Styles */
.modern-timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 50px 0;
}

.modern-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 900px;
    padding: 0 20px;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--dark-grey);
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-label {
    font-weight: 600;
    color: var(--dark-grey);
    font-size: 16px;
    text-align: center;
}

.timeline-connector {
    flex-grow: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--light-grey) 100%);
    margin: 0 10px;
    position: relative;
    top: -40px;
}

.timeline-node.active .timeline-icon,
.timeline-node:hover .timeline-icon {
    background-color: var(--primary-red);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255,59,48,0.4);
}

.timeline-node:hover {
    transform: translateY(-5px);
}

/* Animation for timeline nodes */
@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.timeline-node {
    opacity: 0;
    animation: popIn 0.5s ease forwards;
}

.timeline-node:nth-child(1) { animation-delay: 0.2s; }
.timeline-node:nth-child(3) { animation-delay: 0.4s; }
.timeline-node:nth-child(5) { animation-delay: 0.6s; }
.timeline-node:nth-child(7) { animation-delay: 0.8s; }
.timeline-node:nth-child(9) { animation-delay: 1s; }

.timeline-connector {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 1.2s;
}

.roadmap-cta {
    text-align: center;
    margin-top: 60px;
}

/* Responsive styles for the timeline */
@media screen and (max-width: 768px) {
    .modern-timeline {
        min-width: 700px; /* Allow horizontal scrolling on small screens */
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .timeline-label {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: center; /* Changed from space-between to center */
    }

    .logo {
        text-align: center;
        width: 100%;
        margin: 0 auto; /* Ensure it's centered */
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center; /* This rule centers the buttons horizontally */
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .product-grid, .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 300px;
    }

    .modal-content {
        width: 90%; /* Adjust modal width for mobile */
        margin: 30% auto; /* Adjust margin for better positioning on mobile */
    }

    .modal-button {
        width: 100%; /* Make buttons full width on mobile */
        margin: 10px 0; /* Adjust margin for better spacing on mobile */
    }
}

/* Show mobile nav only on smaller screens */
@media (max-width: 768px) {
    /* Hide footer on mobile */
    .footer {
        display: none;
    }

    #mobile-nav {
        display: flex; /* Ensure it's displayed on mobile */
        justify-content: space-between; /* Space the icons evenly */
        width: 180px; /* Set a fixed width for the mobile navigation */
    }

    /* Add padding to the bottom of the body to prevent content overlap */
    body {
        padding-bottom: 60px; /* Match mobile nav height */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 18px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 15px;
    }

    .featured h2, .services h2, .about h2, .contact h2 {
        font-size: 32px;
    }

    .product-card h3, .service-card h3, .contact-card h3 {
        font-size: 20px;
    }

    .featured p, .services p, .about p, .contact p {
        font-size: 18px;
    }
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary-red);
    color: white;
    padding: 5px 30px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Mobile Bottom Navigation Bar */
#mobile-nav {
    display: none; /* Hidden by default, shown via media query */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.9); /* Black background */
    backdrop-filter: blur(10px);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Changed from space-around to space-between */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.mobile-nav-link i {
    color: var(--white); /* White icon color */
    font-size: 32px; /* Default icon size */
    transition: transform 0.2s ease;
}

/* Set specific sizes for phone and WhatsApp icons */
#mobile-nav .fas.fa-phone {
    font-size: 32px; /* Smaller phone icon */
}

#mobile-nav .fab.fa-whatsapp {
    font-size: 46px; /* Larger WhatsApp icon */
}

.mobile-nav-link:active i {
    transform: scale(0.9);
}

.mobile-nav-separator {
    width: 1px;
    height: 70%; /* Increased height for better visibility */
    background-color: rgba(255, 255, 255, 0.5); /* Brighter white for better visibility */
}

/* Hide mobile nav by default (desktop) */
#mobile-nav {
    display: none;
}

/* Show mobile nav only on mobile devices */
@media screen and (max-width: 768px) {
    #mobile-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px 0;
        border-radius: 0; /* Remove rounded corners */
        background: rgba(0, 0, 0, 0.9); /* Darker background */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3); /* Add shadow on top */
        z-index: 1000;
    }

    /* Remove the transform that was positioning it in the center */
    #mobile-nav {
        transform: none;
    }

    /* Space the icons more evenly in the rectangular bar */
    .mobile-nav-link {
        padding: 0 30px;
    }
}

/* Modify the other duplicate mobile nav media query to be consistent */
@media (max-width: 768px) {
    #mobile-nav {
        display: flex;
        width: 100%; /* Full width */
        justify-content: space-around;
        left: 0; /* Align to left edge */
        transform: none; /* Remove the centering transform */
        border-radius: 0; /* No rounded corners */
    }
    
    /* Ensure adequate spacing at the bottom of the page */
    body {
        padding-bottom: 70px; /* Slightly more than the nav height */
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center; /* Center buttons horizontally */
        width: 100%; /* Ensure full width container */
    }
    
    .cta-button {
        width: 80%; /* Make buttons wider on mobile */
        justify-content: center; /* Center button content */
    }
    
    /* Ensure hero content is properly centered */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Rest of your media query rules remain unchanged */
    /* ...existing code... */
}
