/* General Styles */
:root {
    --primary-color: #3498db; /* A vibrant blue */
    --secondary-color: #2c3e50; /* Darker blue/grey for text */
    --accent-color: #e74c3c; /* A strong accent red */
    --light-bg: #f8f8f8;
    --dark-bg: #1a1a1a;
    --text-light: #ecf0f1;
    --text-dark: #34495e;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-light);
}

h2 {
    font-size: 2.5rem;
    margin-top: 3rem;
}

h3 {
    font-size: 1.8rem;
    margin-top: 1.5rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.secondary-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}



/* Hero Section */
.hero-section {
    background: url('../images/hero-bg.png') no-repeat center center/cover;
    padding: 8rem 1rem;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100px; /* Enlarge as needed */
    width: auto;
    z-index: 3;
}

.hero-section .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Features Section */
.features-section {
    padding: 4rem 1rem;
    background-color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--light-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color); /* Add a border */
    border-radius: 5px; /* Slightly rounded corners for the frame */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    padding: 5px; /* Padding inside the frame */
    background-color: #fff; /* Ensure white background for the image */
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 1rem;
    background-color: var(--light-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-item span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 5rem 1rem;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 2rem;
}

/* Text Sections (Privacy Policy, Terms of Service) */
.text-section {
    padding: 4rem 1rem;
    background-color: #fff;
}

.text-section h2 {
    text-align: left;
    color: #222; /* Darker color for main headers */
}

.text-section h3 {
    text-align: left;
    color: #0056b3; /* Darker shade of primary color for sub-headers */
    margin-top: 2rem;
}

.text-section ul {
    list-style: disc inside;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.text-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    height: 60px; /* Enlarge as needed */
    width: auto;
    margin-left: auto; /* Pushes the logo to the right */
}

.footer-section .footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 0.8rem;
}

.footer-section .footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 100;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev-btn,
.next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Media Queries for Modal */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 6rem 1rem;
    }

    .feature-grid, .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Navbar Styles */
.navbar {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
}

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

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

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
}