/* General Styling & Typography */
:root {
    --primary-color: #4A90E2; /* A professional, inviting blue */
    --secondary-color: #50E3C2; /* A complementary accent color */
    --dark-blue: #2C3E50; /* For text and darker elements */
    --light-gray: #F4F7F6; /* Background for sections */
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 3.5em; font-weight: 700; }
h2 { font-size: 2.5em; font-weight: 600; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.8em; font-weight: 600; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: #3a7bd5; /* Slightly darker primary */
    border-color: #3a7bd5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn.large {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* Navbar */
.navbar {
    background-color: #2c3e50; /* Slightly transparent for classy effect */
    padding: 15px 0;
    position: fixed; /* Position over the hero image */
    width: 100%;
    height: 1   00px;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.navbar .login-signup-btns {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.app-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    flex: 0 0 auto;
}

/* Basic header layout: left logo, centered nav, right auth buttons */
.nav-links {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.login-btn {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: var(--font-body);
}

.login-btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: var(--white), url('hero-background.jpg') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
    position: relative;
}

.hero-content {
    padding-top: 80px; /* Account for navbar */
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.hero-content .tagline {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Feature Section */
.features-section {
    background-color: var(--light-gray);
    padding: 80px 0;
    text-align: center;
}

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

.feature-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-item .icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95em;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 1.5em auto;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-light);
}

/* Call to Action Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.8em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: var(--white);
    margin: 0 15px;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: none;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2em; }
    .hero-content h1 { font-size: 3.5em; }
    .hero-content .tagline { font-size: 1.3em; }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        display: none; /* or switch to a mobile menu as needed */
    }
    .nav-links a {
        margin: 0;
    }
    .login-btn {
        margin-top: 10px;
    }

    .hero-content h1 { font-size: 2.8em; }
    .hero-content .tagline { font-size: 1.1em; }
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        width: 80%;
        max-width: 300px;
    }

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

    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

    .cta-section h2 { font-size: 2.2em; }
    .cta-section p { font-size: 1.1em; }

    .footer .container {
        flex-direction: column;
        gap: 10px;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .footer-links a {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .app-logo { font-size: 1.5em; }
    .hero-content h1 { font-size: 2.2em; }
    .hero-content .tagline { font-size: 1em; }
    .btn.large { padding: 15px 30px; font-size: 1em; }
    .feature-item { padding: 20px; }
    .feature-item .icon { font-size: 2.5em; }
}