/* Basic Reset & Body Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #318e84; /* Muted Teal */
    --secondary-color: #ECEFF1; /* Soft Gray */
    --accent-color: #6591ff; /* Warm Orange */
    --text-color: #333;
    --background-color: #fff;
    --muted-text-color: #6c757d;
    --border-color: #dee2e6;
    --card-background: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 0.5rem;
    --font-family: 'Arial', 'Century', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.4;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background-color: var(--background-color);
    border-bottom: 0px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.564); /* Semi-transparent background */
    backdrop-filter: blur(3px); /* Blur effect */
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 0.5em; /* Make icon slightly larger */
}


.navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.platform-button {
    background-color: var(--accent-color);
    color: white;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
}
.platform-button:hover {
    background-color: #ff7043; /* Darker orange on hover */
    color: white;
}
.platform-button.active {
     background-color: #e65100; /* Even darker for active state */
     color: white;
}


/* Button Styles */
.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.hero-button {
    background-color: var(--accent-color);
    color: white;
}
.hero-button:hover {
    background-color: #ff7043; /* Darker orange */
}

/* Main Content */
main {
    flex-grow: 1;
}

/* Hero Section */
.hero-section {
    background-color: var(--secondary-color);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-text-color);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1rem;
    color: var(--muted-text-color);
    margin-bottom: 2rem;
     max-width: 600px;
     margin-left: auto;
     margin-right: auto;
}

/* Section Styles */
.how-it-works-section,
.for-who-section {
    padding: 3rem 0;
}
.for-who-section {
    background-color: var(--secondary-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Card Styles */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cards-container.two-column {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Adjust for two columns */
}

.card {
    background-color: var(--card-background);
    border: 0px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card-icon-wrapper {
    background-color: rgba(77, 182, 172, 0.1); /* Teal with low opacity */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.card-icon-wrapper.small {
    width: 45px;
    height: 45px;
    margin-bottom: 0;
    margin-right: 0.8rem;
}

.icon {
    font-size: 2rem; /* Adjust icon size */
    color: var(--primary-color);
}
.icon.large {
    font-size: 3rem;
}
.card-icon-wrapper.small .icon {
    font-size: 1.5rem;
}


.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.card-title.inline {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
}


.card-content {
    color: var(--muted-text-color);
    font-size: 0.95rem;
}

.card.text-left {
    text-align: left;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: disc;
    margin-left: 1.2rem;
    margin-top: 1rem;
    color: var(--muted-text-color);
    font-size: 0.95rem;
}
.feature-list li {
    margin-bottom: 0.3rem;
}


/* Footer Styles */
.footer {
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: auto; /* Push footer to the bottom */
    text-align: center;
    color: var(--muted-text-color);
    font-size: 0.9rem;
}

/* Platform Page Specific Styles */
.platform-main, .messages-main {
     padding: 2rem 0;
     display: flex;
     justify-content: center;
     align-items: flex-start; /* Align items to the top */
     min-height: calc(100vh - 120px); /* Adjust based on header/footer height */
}

.platform-container, .messages-container {
    width: 100%;
    max-width: 450px; /* Max width for the matcher/message card */
    text-align: center;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-matcher-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Typical card aspect ratio */
    max-width: 350px;
    margin: 0 auto; /* Center the placeholder */
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Pushes content apart */
    background-color: var(--secondary-color);
}

.profile-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensure content stays within rounded corners */
    background-color: var(--card-background);
    box-shadow: var(--card-shadow);
}

.profile-image-placeholder {
    flex-grow: 1; /* Takes up most of the height */
    background-color: #e0e0e0; /* Placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text-color);
    font-size: 0.9rem;
}

.profile-info-placeholder {
    padding: 1rem;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
}

.profile-info-placeholder h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.profile-info-placeholder p {
    font-size: 0.9rem;
    color: var(--muted-text-color);
    margin-bottom: 1rem;
}

.swipe-buttons-placeholder {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: auto; /* Pushes buttons to the bottom of the info area */
}

.swipe-button {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.swipe-button:hover {
    transform: scale(1.1);
}
.swipe-button.reject {
    border-color: #f44336; /* Red */
    color: #f44336;
}
.swipe-button.reject:hover {
     background-color: rgba(244, 67, 54, 0.1);
}
.swipe-button.like {
    border-color: #4CAF50; /* Green */
    color: #4CAF50;
}
.swipe-button.like:hover {
     background-color: rgba(76, 175, 80, 0.1);
}

.coming-soon-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted-text-color);
}


/* Messages Page Specific Styles */
.messages-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Space between elements */
}
.muted-text {
    color: var(--muted-text-color);
}
.muted-text.small {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    .navigation {
        margin-top: 0.5rem;
        justify-content: center;
        flex-wrap: wrap; /* Allow nav items to wrap */
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .cards-container {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .cards-container.two-column {
        grid-template-columns: 1fr;
    }
    .platform-container, .messages-container {
         max-width: 95%;
    }
}

/* Logo image size control */
#header-logo {
    height: 40px; /* Adjust the height to make it smaller */
    width: auto; /* Maintain aspect ratio */
}

/* Added styles for menu toggle button and responsive navigation */
.menu-toggle {
    display: none;
    color: #5a5a5a;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navigation {
        display: none;
        flex-direction: column;
        background-color: var(--background-color);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 150px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        border-radius: var(--border-radius);
        padding: 1rem 0;
    }

    .navigation.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}
