/* --- Base & Typography --- */
:root {
    --primary-font: 'Manrope', sans-serif;
    --accent-font: 'Nunito Sans', sans-serif;
    --text-on-dark: #f0f0f0;
    --border-radius: 16px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body {
    margin: 0;
    font-family: var(--primary-font);
    color: var(--text-on-dark);
    font-size: 18px;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font);
    font-weight: 800;
    margin-top: 0;
    color: #fff;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 0.5em;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
}

p {
    color: var(--text-on-dark);
}

p.subtitle {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 30px;
}

/* --- Full Page Gradient Background --- */
#gradient-background {
    width: 100%;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(45deg, #667eea, #764ba2, #3b82f6, #a1c4fd, #c2e9fb);
    background-size: 400% 400%;
    animation: move-gradient 15s ease infinite;
}

@keyframes move-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Header & Navigation --- */
.main-header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    z-index: 20;
    color: #fff;
}

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

/* Logo styles */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.modulynk-text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #ddd, #fff);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    font-weight: 700;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-login {
    font-weight: 700;
}

.nav-signup {
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.nav-signup:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 100px 0;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-text {
    flex: 1.2;
}

.hero-carousel {
    flex: 1;
    max-height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.splide__slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Gradient Button (Original Style) --- */
.button-container {
    display: inline-block;
    padding: 3px;
    border-radius: 12px;
    background: linear-gradient(90deg, #e73c7e, #23a6d5, #23d5ab);
    transition: transform 0.2s ease;
    margin-top: 20px;
}

.button-container:hover {
    transform: scale(1.05);
}

.gradient-button {
    display: block;
    background-color: #111;
    color: white;
    padding: 15px 30px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 18px;
}

/* --- Sections Styling --- */
.features-section, .cta-section, .main-footer {
    background-color: transparent; /* Let the gradient show through */
    position: relative;
    padding: 100px 0;
}

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

/* Feature Cards with Image Backgrounds */
.feature-card {
    position: relative;
    padding: 40px;
    border-radius: var(--border-radius);
    overflow: hidden; /* To contain the pseudo-element */
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.feature-card h3, .feature-card p {
    position: relative;
    z-index: 2;
    color: #fff; /* White text */
}

.feature-card p {
    color: var(--text-on-dark);
}

/* Placeholder Images for Feature Cards */
.feature-card:nth-child(1) {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='%23ffffff'%3E%3Cpath d='M9,15a1,1,0,0,1-1-1V12a1,1,0,0,1,2,0v2A1,1,0,0,1,9,15Z'%3E%3C/path%3E%3Cpath d='M15,15a1,1,0,0,1-1-1V12a1,1,0,0,1,2,0v2A1,1,0,0,1,15,15Z'%3E%3C/path%3E%3Cpath d='M6,8a1,1,0,0,1-.71-.29l-3-3A1,1,0,0,1,3.71,3.29l3,3a1,1,0,0,1,0,1.42A1,1,0,0,1,6,8Z'%3E%3C/path%3E%3Cpath d='M18,8a1,1,0,0,1-.71-.29,1,1,0,0,1,0-1.42l3-3a1,1,0,1,1,1.42,1.42l-3,3A1,1,0,0,1,18,8Z'%3E%3C/path%3E%3Cpath d='M21,20H3a1,1,0,0,1-1-1V14.5a10,10,0,0,1,20,0V19A1,1,0,0,1,21,20ZM4,18H20V14.5a8,8,0,0,0-16,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 200px; /* Adjust size of the icon */
    background-repeat: no-repeat;
}
.feature-card:nth-child(2) { background-image: url('assets/inv.png'); }
.feature-card:nth-child(3) { background-image: url('assets/img1.png'); }
.feature-card:nth-child(4) { background-image: url('assets/sms.png'); }
.feature-card:nth-child(5) { background-image: url('assets/img3.png'); }
.feature-card:nth-child(6) { background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=2072'); }
.feature-card:nth-child(7) { background-image: url('https://images.unsplash.com/photo-1563770787-d7271a79717c?q=80&w=2070'); } /* POS */
.feature-card:nth-child(8) { background-image: url('https://images.unsplash.com/photo-1488590528505-98d2f092d2b7?q=80&w=2070'); } /* Website Building */
.feature-card:nth-child(9) { background-image: url('https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=2070'); } /* Staff & Payroll */


/* --- CTA & Footer Section --- */
.cta-section {
    text-align: center;
}

.main-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Pilot Banner --- */
#pilot-banner {
    transition: all 0.3s ease-in-out;
}
#pilot-banner.hidden {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text { margin-bottom: 40px; }
    .subtitle { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .hamburger-menu { display: block; }
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }
    .nav-menu.active { display: flex; }
    .nav-links { flex-direction: column; text-align: center; }
    .nav-auth { flex-direction: column; text-align: center; }
    .hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
