/* Reset and Base Styles */
:root {
    --primary-teal: #008080;
    --primary-light: #E6F3F3;  /* Lightened for better contrast */
    --primary-dark: #005353;   /* Darkened for better contrast */
    --medium-gray: #4A4A4A;    /* Darkened for better contrast */
    --light-gray: #EEEEEE;
    --white: #FFFFFF;
    --success-green: #4CAF50;
    --error-red: #F44336;
    --success-light: #E8F5E9;
    --error-light: #FFEBEE;
    --navbar-height: 4rem;
    --footer-height: 4rem;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--medium-gray);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

main {
    flex: 1 0 auto;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-teal);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-teal);
    line-height: 1.2;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform var(--transition-speed) ease;
    color: var(--white);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
    transition: color var(--transition-speed) ease;
    position: relative;
    opacity: 0.9;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--white);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 4rem 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-teal) 100%);
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: brightness(0.9) contrast(1.1);
    mix-blend-mode: soft-light;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-weight: 400;
}

/* Features Section */
.features {
    padding: 6rem 5%;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease;
    border: 1px solid var(--light-gray);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    width: 48px;
    height: 48px;
    stroke: var(--primary-teal);
    stroke-width: 1.5;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-teal);
}

.feature-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-teal);
}

.cta p {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed) ease;
    padding: 0.75rem 1rem;
    width: 100%;
}

.input-wrapper:focus-within {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.input-wrapper i {
    color: var(--medium-gray);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 1rem;
}

.signup-form input {
    border: none;
    outline: none;
    background: none;
    width: 100%;
    font-size: 1rem;
    color: var(--medium-gray);
    font-family: inherit;
    padding: 0;
}

.signup-form input::placeholder {
    color: var(--medium-gray);
    opacity: 0.7;
}

/* CTA Button Styles */
.cta-button.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    min-width: 200px;
    max-width: 300px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background-color: var(--primary-teal);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.cta-button.primary-button:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-button.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button.primary-button span {
    flex: 1;
    text-align: center;
}

.cta-button.primary-button i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: absolute;
    left: 1.5rem;
}

/* Form specific button styles */
.signup-form .cta-button.primary-button {
    margin-top: 0.5rem;
    width: 100%;
    max-width: none;
}

/* Footer Styles */
footer {
    flex-shrink: 0;
    background-color: var(--primary-dark);
    color: var(--white);
    width: 100%;
    padding: 0;
    margin: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--footer-height);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity var(--transition-speed) ease;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background-color: var(--success-light);
    border-left: 4px solid var(--success-green);
}

.toast.error {
    background-color: var(--error-light);
    border-left: 4px solid var(--error-red);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --navbar-height: 5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .subheadline {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1rem 5%;
        height: auto;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .navbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 5%;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
    }

    .nav-links a {
        margin-left: 0;
    }

    .primary-button {
        width: 100%;
        justify-content: center;
    }
}

/* Privacy Policy Page */
.privacy-policy {
    padding: 6rem 5% 4rem;
    background-color: var(--white);
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
}

.privacy-policy .container {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-policy h1 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-policy section {
    margin-bottom: 2.5rem;
}

.privacy-policy h2 {
    color: var(--primary-teal);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.privacy-policy h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin: 1rem 0;
}

.privacy-policy p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--medium-gray);
}

.privacy-policy ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-policy li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--medium-gray);
}

.privacy-policy a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.privacy-policy a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Skeleton Loading */
.skeleton-template {
    position: relative;
    overflow: hidden;
}

.skeleton-template::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Hero Section Skeleton */
.hero-skeleton {
    padding: 2rem;
    text-align: center;
}

.skeleton-title {
    height: 2.5rem;
    width: 80%;
    margin: 0 auto 1rem;
    background: #e0e0e0;
    border-radius: 4px;
}

.skeleton-subtitle {
    height: 1.5rem;
    width: 60%;
    margin: 0 auto 2rem;
    background: #e0e0e0;
    border-radius: 4px;
}

.skeleton-cta {
    height: 3rem;
    width: 200px;
    margin: 0 auto;
    background: #e0e0e0;
    border-radius: 4px;
}

/* Features Section Skeleton */
.features-skeleton {
    padding: 2rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skeleton-card {
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skeleton-icon {
    height: 3rem;
    width: 3rem;
    margin-bottom: 1rem;
    background: #e0e0e0;
    border-radius: 50%;
}

.skeleton-card .skeleton-title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 0.5rem;
}

.skeleton-card .skeleton-description {
    height: 1rem;
    width: 90%;
    background: #e0e0e0;
    border-radius: 4px;
}

/* Testimonials Section Skeleton */
.testimonials-skeleton {
    padding: 2rem;
}

.testimonials-skeleton .skeleton-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonials-skeleton .skeleton-card {
    padding: 2rem;
}

.skeleton-content {
    height: 4rem;
    width: 100%;
    margin-bottom: 1.5rem;
    background: #e0e0e0;
    border-radius: 4px;
}

.skeleton-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-name {
    height: 1.2rem;
    width: 40%;
    background: #e0e0e0;
    border-radius: 4px;
}

.skeleton-role {
    height: 1rem;
    width: 30%;
    background: #e0e0e0;
    border-radius: 4px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: #4caf50;
    color: #fff;
}

.toast.error {
    background: #f44336;
    color: #fff;
} 