/* Base reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero {
    background-image: url('../images/hero-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.hero > .container,
.cta-section > .container {
    text-align: center;
}

.section, 
.cta-section {
    padding: 4rem 0;
}

#services,
.cta-section,
#paycollect-section {
    background-image:url('../images/section-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Mobile Menu Styles */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
    font-size: 1.5rem;
    color: #0066cc; /* Adjust color as needed */
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-button {
    display: inline-block;
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #004499;
    text-decoration: none;
    color: #fff;
}

.button-secondary {
    background-color: transparent;
    border: 1px solid #0066cc;
    color: #0066cc;
}

.button-secondary:hover {
    background-color: #f5f9ff;
    color: #004499;
}

/* Grid system */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
    margin: auto;
}

.card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-text {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle light background */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Slight border */
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px); /* Glass morphism effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: fit-content;
    margin: auto;
}

.card-text:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
}
.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

/*Step*/
.step-card {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 0rem;
}

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

ul {
    list-style:circle;
    padding-left: 1.5rem;
    margin-left: 0;
}

/* Video styling */

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    align-items: center;
    display: flex;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
}

/* Image styling */
.feature-image {
    max-width: 100%;
    max-height: 400px;
}

.card-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Media queries for responsiveness */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    #paycollect_features .feature-image {
        content: url('/assets/images/paycollect_features_mobile.png');
    }

    .hamburger-menu {
        display: block; /* Show on mobile */
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 100;
    }

    .nav-links {
        display: none; /* Hide nav links by default */
        position: fixed;
        top: 60px;
        gap: 1rem;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 50;
        padding: 1rem 0;
    }
    .nav-links a {
        padding: 0.5rem 1rem;
        transition: background-color 0.3s ease;
        width: 100%;
        text-align: center;
    }
    .nav-links a:hover {
        background-color: rgba(0, 102, 204, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a, 
    .nav-links .nav-button {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* Mobile menu would be implemented with JS */
    }
    
    .section {
        padding: 2rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}