:root {
    --primary-color: #2ec4b6;
    --secondary-color: #ff9f1c;
    --accent-color: #e71d36;
    --background-color: #fdfffc;
    --text-color: #011627;
    --light-gray: #f0f0f0;
    --orange-bg: #ff9f1c;
    --pink-bg: #ce52bb;
    --mint-green-bg: #2ec4b6;
    --dark-blue: #011627;
    --teal: #2ec4b6;
    --coral: #e71d36;
    --header-height: 70px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3 {
    margin-bottom: 20px;
}

main {
    padding-top: var(--header-height);
}

.section {
    padding: 80px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.auth-buttons a {
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

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

/* Hero Section */
#hero {
    background-color: var(--primary-color);
    color: var(--background-color);
}

#hero h1 {
    font-size: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color var(--transition);
}

.cta-button:hover {
    background-color: #c41c2e;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

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

.feature-item.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 60px;
    height: 60px;
}

.feature-item h3 {
    color: var(--primary-color);
}

.feature-screenshot {
    max-width: 100%;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
}

/* How It Works Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

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

.step.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto; /* This centers the circle horizontally */
    background-color: var(--secondary-color);
    color: var(--background-color);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Community and Privacy Sections */
#community, #privacy {
    background-color: var(--light-gray);
    padding: 60px 5%;
    text-align: center;
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 40px 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
}

.footer-links a {
    color: var(--background-color);
    text-decoration: none;
    margin: 0 10px;
}

#community {
    background-color: var(--pink-bg);
    color: var(--dark-blue);
    position: relative;
    overflow: hidden;
}

#community h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#community .cta-button {
    background-color: var(--teal);
    color: white;
}

#community .cta-button:hover {
    background-color: #25a699;
}

.piggy-icon {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url('path-to-your-piggy-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.piggy-icon.top-left {
    top: 20px;
    left: 20px;
}

.piggy-icon.bottom-right {
    bottom: 20px;
    right: 20px;
    transform: scaleX(-1);
}

#privacy {
    background-color: var(--orange-bg);
    color: var(--dark-blue);
    position: relative;
    overflow: hidden;
}

#privacy h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#privacy .section-content {
    text-align: center;
}

#privacy h2, #privacy p {
    margin-bottom: 20px;
}

#privacy ul {
    text-align: center;
    list-style-position: inside;
    padding-left: 0;
    margin: 20px 0;
}

#privacy li {
    text-align: left;
    display: inline-block;
    width: 100%;
    max-width: 400px; /* Adjust this value as needed */
    margin-bottom: 10px;
}

#privacy li::before {
    content: "•";
    padding-right: 8px;
    color: var(--accent-color); /* Use your accent color for bullets */
}

#privacy .learn-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--coral);
}

#privacy .learn-more:hover {
    color: #c41c2e;
}

.lock-icon {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: url('path-to-your-lock-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    bottom: 20px;
    right: 20px;
}

.section-icon {
    margin-bottom: 20px;
}

.section-icon img {
    width: 60px;
    height: 60px;
}


.mobile-nav {
    display: none;
    align-items: center;
}

.mobile-auth {
    display: none;
}

.desktop-auth {
    display: flex;
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
}

#modalImage {
    width: 100%;
    height: auto;
    display: block;
}

.close {
    color: #333;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
} 


/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: var(--header-height);
        padding: 0 5%;
    }
    .mobile-nav {
        display: flex;
        align-items: center;
    }
    .mobile-auth {
        display: flex;
        margin-right: 15px;
    }
    .desktop-auth {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow);
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .mobile-auth .login-btn,
    .mobile-auth .register-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
        margin: 0 5px;
    }
    #hero h1 {
        font-size: 2rem;
    }
    .footer-content {
        flex-direction: column;
    }
    .footer-links {
        margin-top: 20px;
    }
    #community h2, #privacy h2 {
        font-size: 2rem;
    }
    .piggy-icon, .lock-icon {
        width: 80px;
        height: 80px;
    }
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}