:root {
    --primary-color: #272B1C;
    --primary-dark: #1a1d13;
    --primary-light: #3a3f2a;
    --secondary-color: #F6F2EE;
    --secondary-dark: #e0dbd6;
    --secondary-light: #ffffff;
    --accent-color: #272B1C;
    --accent-dark: #1a1d13;
    --accent-light: #F6F2EE;
    --tertiary-color: #272B1C;
    --tertiary-dark: #1a1d13;
    --tertiary-light: #F6F2EE;
    --alert-color: #D32F2F;
    --success-color: #388E3C;
    --text-color: #272B1C;
    --text-light: #3a3f2a;
    --light-gray: #F6F2EE;
    --medium-gray: #e0dbd6;
    --dark-gray: #272B1C;
    --white: #F6F2EE;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-primary: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    --card-border: 1px solid #E3F2FD;
    --medical-grid: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h18v18H1V1zm1 1v16h16V2H2z' fill='%23E3F2FD' fill-opacity='0.4'/%3E%3C/svg%3E");
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #f5f5f0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--secondary-dark);
}

ul {
    list-style: none;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 125, 125, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.primary-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 125, 125, 0.4);
    transform: translateY(-3px);
}

.primary-btn:hover:before {
    left: 100%;
}

.secondary-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 91, 158, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.secondary-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.secondary-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 91, 158, 0.4);
    transform: translateY(-3px);
}

.secondary-btn:hover:before {
    left: 100%;
}

.success-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, #2E7D32 100%);
    color: var(--white);
}

.alert-btn {
    background: linear-gradient(135deg, var(--alert-color) 0%, #B71C1C 100%);
    color: var(--white);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: headerFadeIn 0.5s ease-out;
}

@keyframes headerFadeIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.logo {
    height: 45px;
    margin-right: 12px;
    transition: var(--transition);
    animation: pulse 3s infinite;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-container h1 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    position: relative;
}

.logo-container h1:after {
    content: "♥";
    position: absolute;
    font-size: 0.5em;
    top: 0;
    right: -12px;
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 18px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-icon {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

nav ul li a:hover .nav-icon,
nav ul li a.active .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #272B1C;
    transition: var(--transition);
    border-radius: 1.5px;
}

nav ul li a.active::after,
nav ul li a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.login-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 125, 125, 0.1), transparent);
    transition: 0.5s;
    z-index: -1;
}

.login-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.login-btn:hover:before {
    left: 100%;
}

.signup-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.signup-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    z-index: -1;
}

.signup-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.signup-btn:hover:before {
    left: 100%;
}

.auth-buttons-mobile {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
}

.mobile-menu-toggle i {
    transition: var(--transition);
}

.mobile-menu-toggle:hover i {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 125, 125, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 91, 158, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(0, 165, 245, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
}

.hero-title-group .hero-badge {
    margin-bottom: 8px;
}

.hero-title-group h2 {
    margin: 0;
    font-size: 2rem;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 125, 125, 0.1) 0%, rgba(0, 91, 158, 0.1) 100%);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 125, 125, 0.2);
    transform: translateY(0);
    animation: badgePulse 3s infinite;
}

@keyframes badgePulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero-content h2:after {
    content: "";
    position: absolute;
    height: 6px;
    border-radius: 3px;
    width: 40%;
    background: #272B1C;
    bottom: -10px;
    left: 0;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 2.5rem;
}

.cta-buttons .btn i {
    margin-right: 8px;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-image, .hero-image-container {
    min-width: 260px;
    min-height: 360px;
    max-width: 400px;
    max-height: 520px;
    aspect-ratio: 3/4;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.hero-image-container {
    position: relative;
    max-width: 420px;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    border: 4px solid var(--white);
    background: #eaeaea;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
}

.hero-img:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.hero-main-icon {
    font-size: 5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.nutrition-floating-element {
    z-index: 2;
}

.pulse-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

.bounce-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    animation: bounce 3s infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.hero-image:before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background-color: rgba(0, 91, 158, 0.15);
    z-index: -1;
}

.hero-image:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: -15px;
    height: 80px;
    width: 80px;
    border-radius: 50%;
    background-color: rgba(0, 125, 125, 0.1);
    z-index: -1;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    border: 4px solid var(--white);
    position: relative;
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-particles:before, .hero-particles:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 125, 125, 0.2);
    animation: particleFloat 10s infinite linear;
}

.hero-particles:before {
    top: 20%;
    left: 10%;
    width: 15px;
    height: 15px;
    animation-duration: 15s;
}

.hero-particles:after {
    bottom: 15%;
    right: 20%;
    width: 8px;
    height: 8px;
    animation-duration: 12s;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.features {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--white);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 125, 125, 0.05) 0%, transparent 15%),
        radial-gradient(circle at 80% 70%, rgba(0, 91, 158, 0.05) 0%, transparent 15%);
    z-index: 0;
}

.features h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.features h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #272B1C;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1.5rem auto 3rem;
    position: relative;
    z-index: 1;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    flex: 1;
    min-width: 280px;
    background-color: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
    transform: translateY(0);
    border: var(--card-border);
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.feature-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.feature-card:nth-child(3) {
    border-top-color: var(--tertiary-color);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.feature-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1).in-view {
    animation: slide-in-left 0.8s forwards;
}

.feature-card:nth-child(3).in-view {
    animation: slide-in-right 0.8s forwards;
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 125, 125, 0.3);
}

.feature-icon-wrapper.secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 5px 15px rgba(0, 91, 158, 0.3);
}

.feature-icon-wrapper.tertiary {
    background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--tertiary-dark) 100%);
    box-shadow: 0 5px 15px rgba(0, 165, 245, 0.3);
}

.feature-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
    filter: blur(5px);
}

.feature-card i {
    font-size: 2rem;
    color: white;
    margin-bottom: 0;
    transition: all 0.5s ease;
}

.feature-card:hover i {
    transform: scale(1.15) rotate(10deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.feature-highlight {
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-highlight i {
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: rgba(0, 125, 125, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card:nth-child(2) .feature-highlight i {
    color: var(--secondary-color);
    background-color: rgba(0, 91, 158, 0.1);
}

.feature-card:nth-child(3) .feature-highlight i {
    color: var(--tertiary-color);
    background-color: rgba(0, 165, 245, 0.1);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    padding-bottom: 5px;
    overflow: hidden;
}

.feature-card:nth-child(2) .feature-link {
    color: var(--secondary-color);
}

.feature-card:nth-child(3) .feature-link {
    color: var(--tertiary-color);
}

.feature-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.feature-link:hover:after {
    width: 100%;
}

.feature-card:nth-child(2) .feature-link:after {
    background-color: var(--secondary-color);
}

.feature-card:nth-child(3) .feature-link:after {
    background-color: var(--tertiary-color);
}

.feature-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    color: inherit;
    margin-bottom: 0;
}

.feature-link:hover i {
    transform: translateX(4px);
}

.about {
    padding: 5rem 5%;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 125, 125, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 70% 80%, rgba(0, 91, 158, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 165, 245, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.about-divider {
    width: 60px;
    height: 4px;
    background: #272B1C;
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

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

.about-journey {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid #272B1C;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.journey-step:nth-child(2) {
    border-left-color: #272B1C;
}

.journey-step:nth-child(3) {
    border-left-color: #272B1C;
}

.journey-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.journey-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.journey-step:nth-child(odd).in-view {
    animation: slide-in-left 0.8s forwards;
}

.journey-step:nth-child(even).in-view {
    animation: slide-in-right 0.8s forwards;
}

.step-icon {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #272B1C !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-icon i {
    font-size: 1.5rem;
    color: #fff !important;
}

.journey-step:nth-child(2) .step-icon {
    background: #272B1C !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.journey-step:nth-child(3) .step-icon {
    background: #272B1C !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    margin: 0;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.stat:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #272B1C;
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat.in-view {
    opacity: 1;
    transform: translateY(0);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.stat p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

footer {
    background-color: #1c2331;
    color: var(--white);
    padding-top: 3.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 5% 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.logo-small {
    height: 40px;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: #FFFFFF;
    bottom: -8px;
    left: 0;
    border-radius: 1.5px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #b2bdcd;
    position: relative;
    padding-left: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #FFFFFF;
    padding-left: 20px;
}

.footer-links ul li a:hover::before {
    background-color: var(--secondary-color);
}

.footer-contact {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-contact p {
    color: #b2bdcd;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    color: #FFFFFF;
    margin-right: 10px;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icons a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons a:hover:before {
    opacity: 1;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    background-color: #151a27;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(30px);
    transition: all 0.3s ease;
    overflow: hidden;
    border-top: 5px solid var(--primary-color);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--dark-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--primary-color);
    background-color: rgba(0, 125, 125, 0.1);
}

.modal h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
}

.modal h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #272B1C;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1.5px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 1rem;
    opacity: 1;
    visibility: visible;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
    color: var(--text-color);
    height: auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 125, 125, 0.1);
}

.modal p {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.modal p a {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.modal p a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.modal .btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 14px;
}

.health-icon {
    position: absolute;
    background-color: rgba(0, 125, 125, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.pulse-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 125, 125, 0.1);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .hero-content {
        order: 2;
        padding-top: 2rem;
    }
    
    .hero-image {
        order: 1;
        max-width: 60%;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    header {
        padding: 1rem 5%;
    }
    
    .auth-buttons .btn {
        display: none;
    }

    .auth-buttons .language-switcher {
        margin-right: 1rem;
    }
    
    .hero-content, .hero-image {
        max-width: 90%;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .about {
        flex-direction: column;
    }
    
    .about-content, .about-stats {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-links, .footer-contact {
        margin-bottom: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    header {
        justify-content: center;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
        position: absolute;
        left: 5%;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Fix logo positioning to prevent it from being hidden by hamburger icon */
    .logo-container {
        position: relative;
        margin-left: 30px; /* Add space to the left of the logo for the hamburger menu */
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    nav ul li a {
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .auth-buttons {
        display: none;
    }
    
    .auth-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 80%;
        max-width: 300px;
    }
    
    .auth-buttons-mobile .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 80%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes slide-in-left {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-in-up {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.feature-card, .stat, .journey-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.feature-card.in-view, .stat.in-view, .journey-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1).in-view {
    animation: slide-in-left 0.8s forwards;
}

.feature-card:nth-child(3).in-view {
    animation: slide-in-right 0.8s forwards;
}

.journey-step:nth-child(odd).in-view {
    animation: slide-in-left 0.8s forwards;
}

.journey-step:nth-child(even).in-view {
    animation: slide-in-right 0.8s forwards;
}

.health-icon {
    position: relative;
    display: inline-flex;
    margin-right: 5px;
    color: var(--primary-color);
}

.pulse-circle {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 125, 125, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

.heartbeat {
    animation: heartbeat 1.5s infinite;
}

.btn.primary-btn:active, .btn.secondary-btn:active {
    transform: scale(0.95);
}

.nav ul li a, .feature-link, .footer-links a {
    position: relative;
    overflow: hidden;
}

.nav ul li a:before, .feature-link:before, .footer-links a:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav ul li a:hover:before, .feature-link:hover:before, .footer-links a:hover:before {
    left: 100%;
}

.btn, a, .feature-card, .stat, .journey-step {
    cursor: pointer;
}

.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.language-current {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    background-color: var(--light-gray);
    color: var(--text-color);
    transition: var(--transition);
}

.language-current:hover {
    background-color: var(--medium-gray);
}

.language-current i {
    margin-right: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.language-option:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.language-option.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.medical-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-top: -5px;
    font-weight: 500;
}

.emergency-contact {
    display: flex;
    align-items: center;
    margin-right: 20px;
    background-color: rgba(211, 47, 47, 0.1);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.emergency-contact i {
    color: var(--alert-color);
    margin-right: 8px;
}

.emergency-contact span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--alert-color);
}

.trust-indicators {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    background-color: rgba(56, 142, 60, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(56, 142, 60, 0.2);
}

.trust-badge i {
    color: var(--success-color);
    margin-right: 8px;
    font-size: 0.9rem;
}

.trust-badge span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--success-color);
}

.nutrition-score {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 10px;
}

.score-high {
    background-color: rgba(56, 142, 60, 0.2);
    color: var(--success-color);
    border: 2px solid rgba(56, 142, 60, 0.4);
}

.score-medium {
    background-color: rgba(255, 152, 0, 0.2);
    color: #F57C00;
    border: 2px solid rgba(255, 152, 0, 0.4);
}

.score-low {
    background-color: rgba(211, 47, 47, 0.2);
    color: var(--alert-color);
    border: 2px solid rgba(211, 47, 47, 0.4);
}

.health-progress {
    height: 8px;
    background-color: var(--medium-gray);
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
    position: relative;
}

.health-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-good {
    background-color: var(--success-color);
}

.progress-warning {
    background-color: #F57C00;
}

.progress-alert {
    background-color: var(--alert-color);
}

.medical-disclaimer {
    background-color: rgba(0, 91, 158, 0.05);
    border: 1px solid rgba(0, 91, 158, 0.2);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 40px auto;
    position: relative;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.medical-disclaimer:before {
    content: "ⓘ";
    position: absolute;
    font-size: 1.2rem;
    color: var(--secondary-color);
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--white);
    border: 1px solid rgba(0, 91, 158, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medical-disclaimer h4 {
    background: transparent;
    color: #000 !important;
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.medical-disclaimer p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.condition-diabetes {
    border-left: 4px solid #1976D2;
}

.condition-heart {
    border-left: 4px solid #D32F2F;
}

.condition-kidney {
    border-left: 4px solid #7B1FA2;
}

.condition-hypertension {
    border-left: 4px solid #0288D1;
}

.condition-celiac {
    border-left: 4px solid #689F38;
}

.medical-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E3F2FD;
    transition: var(--transition);
    position: relative;
}

.medical-card:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-image: linear-gradient(45deg, transparent 50%, var(--medium-gray) 50%);
    border-top-right-radius: var(--border-radius);
}

.medical-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.medical-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.medical-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 125, 125, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.medical-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.medical-card-content {
    font-size: 0.9rem;
    color: var(--text-light);
}

.vital-sign {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.vital-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 125, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--primary-color);
}

.vital-data {
    flex-grow: 1;
}

.vital-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.vital-value {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.vital-trend {
    font-size: 0.75rem;
    margin-left: 5px;
}

.trend-up {
    color: var(--alert-color);
}

.trend-down {
    color: var(--success-color);
}

.trend-stable {
    color: #F57C00;
}

nav ul li a.active {
    color: var(--primary-color);
    position: relative;
    font-weight: 600;
}

nav ul li a.active:before {
    content: none;
}

nav ul li a.active:after {
    height: 2px;
    opacity: 1;
}

@media (max-width: 992px) {
    .trust-indicators {
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .trust-badge {
        margin-bottom: 8px;
    }
    
    .emergency-contact {
        display: none;
    }
}

@media (max-width: 768px) {
    .medical-tagline {
        display: none;
    }
    
    .vital-sign {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vital-icon {
        margin-bottom: 8px;
    }
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.user-info i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.user-role {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.user-role.admin {
    background-color: #ff5722;
    color: white;
}

.user-role.nutritionist {
    background-color: #4caf50;
    color: white;
}

.user-role.patient {
    background-color: #272b1C;
    color: white;
}

.logout-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

/* Access Denied Message */
.access-denied {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.access-denied-content {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.access-denied-content i {
    font-size: 4rem;
    color: #f44336;
    margin-bottom: 1.5rem;
}

.access-denied-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.access-denied-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.login-redirect {
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Error Message */
.error-message {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Form Footer */
.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Toast Message Styles */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--text-color);
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    min-width: 280px;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.toast-message.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-message i {
    margin-right: 10px;
    font-size: 20px;
}

.toast-message.success {
    border-left: 5px solid var(--success-color);
}

.toast-message.success i {
    color: var(--success-color);
}

.toast-message.error {
    border-left: 5px solid var(--alert-color);
}

.toast-message.error i {
    color: var(--alert-color);
}

@media (max-width: 576px) {
    .toast-message {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: calc(100% - 40px);
    }
}

/* Form labels in modals */
.modal .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.modal .form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.modal .form-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    background-color: var(--secondary-color);
    z-index: 1;
}

.pricing-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--medical-grid);
    opacity: 0.1;
    z-index: -1;
}

.pricing-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.pricing-section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #272B1C;
    border-radius: 2px;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pricing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pricing-feature i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1rem;
}

.pricing-feature span {
    text-align: left;
}

.pricing-btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    margin-top: auto;
}

.popular, .premium {
    position: relative;
}

.popular-badge, .premium-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.premium-badge {
    background-color: #272B1C;
}

.popular {
    transform: scale(1.05);
    z-index: 3;
    border: 2px solid var(--primary-color);
}

.premium {
    border: 2px solid #272B1C;
}

.popular:hover, .premium:hover {
    transform: translateY(-10px) scale(1.05);
}

/* Responsive adjustments for pricing */
@media (max-width: 992px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .popular {
        transform: scale(1);
    }

    .popular:hover {
        transform: translateY(-10px) scale(1);
    }
}

@media (max-width: 576px) {
    .pricing-section h2 {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}

/* About Section */
.about {
    padding: 5rem 5%;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 125, 125, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 70% 80%, rgba(0, 91, 158, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 165, 245, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.about-divider {
    width: 60px;
    height: 4px;
    background: #272B1C;
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

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

.about-journey {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid #272B1C;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.journey-step:nth-child(2) {
    border-left-color: #272B1C;
}

.journey-step:nth-child(3) {
    border-left-color: #272B1C;
}

.journey-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.journey-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.journey-step:nth-child(odd).in-view {
    animation: slide-in-left 0.8s forwards;
}

.journey-step:nth-child(even).in-view {
    animation: slide-in-right 0.8s forwards;
}

.step-icon {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #272B1C !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-icon i {
    font-size: 1.5rem;
    color: #fff !important;
}

.journey-step:nth-child(2) .step-icon {
    background: #272B1C !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.journey-step:nth-child(3) .step-icon {
    background: #272B1C !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    margin: 0;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.stat:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #272B1C;
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat.in-view {
    opacity: 1;
    transform: translateY(0);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.stat p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

footer {
    background-color: #1c2331;
    color: var(--white);
    padding-top: 3.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 5% 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.logo-small {
    height: 40px;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: #FFFFFF;
    bottom: -8px;
    left: 0;
    border-radius: 1.5px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #b2bdcd;
    position: relative;
    padding-left: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #FFFFFF;
    padding-left: 20px;
}

.footer-links ul li a:hover::before {
    background-color: var(--secondary-color);
}

.footer-contact {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-contact p {
    color: #b2bdcd;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    color: #FFFFFF;
    margin-right: 10px;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icons a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons a:hover:before {
    opacity: 1;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    background-color: #151a27;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(30px);
    transition: all 0.3s ease;
    overflow: hidden;
    border-top: 5px solid var(--primary-color);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--dark-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--primary-color);
    background-color: rgba(0, 125, 125, 0.1);
}

.modal h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
}

.modal h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #272B1C;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1.5px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
    color: var(--text-color);
    height: auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 125, 125, 0.1);
}

.modal p {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.modal p a {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.modal p a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.modal .btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 14px;
}

.health-icon {
    position: absolute;
    background-color: rgba(0, 125, 125, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.pulse-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 125, 125, 0.1);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .hero-content {
        order: 2;
        padding-top: 2rem;
    }
    
    .hero-image {
        order: 1;
        max-width: 60%;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    header {
        padding: 1rem 5%;
    }
    
    .auth-buttons .btn {
        display: none;
    }

    .auth-buttons .language-switcher {
        margin-right: 1rem;
    }
    
    .hero-content, .hero-image {
        max-width: 90%;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .about {
        flex-direction: column;
    }
    
    .about-content, .about-stats {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-links, .footer-contact {
        margin-bottom: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    header {
        justify-content: center;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
        position: absolute;
        left: 5%;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Fix logo positioning to prevent it from being hidden by hamburger icon */
    .logo-container {
        position: relative;
        margin-left: 30px; /* Add space to the left of the logo for the hamburger menu */
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    nav ul li a {
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .auth-buttons {
        display: none;
    }
    
    .auth-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 80%;
        max-width: 300px;
    }
    
    .auth-buttons-mobile .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 80%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes slide-in-left {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-in-up {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.feature-card, .stat, .journey-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.feature-card.in-view, .stat.in-view, .journey-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1).in-view {
    animation: slide-in-left 0.8s forwards;
}

.feature-card:nth-child(3).in-view {
    animation: slide-in-right 0.8s forwards;
}

.journey-step:nth-child(odd).in-view {
    animation: slide-in-left 0.8s forwards;
}

.journey-step:nth-child(even).in-view {
    animation: slide-in-right 0.8s forwards;
}

.health-icon {
    position: relative;
    display: inline-flex;
    margin-right: 5px;
    color: var(--primary-color);
}

.pulse-circle {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 125, 125, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

.heartbeat {
    animation: heartbeat 1.5s infinite;
}

.btn.primary-btn:active, .btn.secondary-btn:active {
    transform: scale(0.95);
}

.nav ul li a, .feature-link, .footer-links a {
    position: relative;
    overflow: hidden;
}

.nav ul li a:before, .feature-link:before, .footer-links a:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav ul li a:hover:before, .feature-link:hover:before, .footer-links a:hover:before {
    left: 100%;
}

.btn, a, .feature-card, .stat, .journey-step {
    cursor: pointer;
}

.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.language-current {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    background-color: var(--light-gray);
    color: var(--text-color);
    transition: var(--transition);
}

.language-current:hover {
    background-color: var(--medium-gray);
}

.language-current i {
    margin-right: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.language-option:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.language-option.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.medical-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-top: -5px;
    font-weight: 500;
}

.emergency-contact {
    display: flex;
    align-items: center;
    margin-right: 20px;
    background-color: rgba(211, 47, 47, 0.1);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.emergency-contact i {
    color: var(--alert-color);
    margin-right: 8px;
}

.emergency-contact span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--alert-color);
}

.trust-indicators {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    background-color: rgba(56, 142, 60, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(56, 142, 60, 0.2);
}

.trust-badge i {
    color: var(--success-color);
    margin-right: 8px;
    font-size: 0.9rem;
}

.trust-badge span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--success-color);
}

.nutrition-score {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 10px;
}

.score-high {
    background-color: rgba(56, 142, 60, 0.2);
    color: var(--success-color);
    border: 2px solid rgba(56, 142, 60, 0.4);
}

.score-medium {
    background-color: rgba(255, 152, 0, 0.2);
    color: #F57C00;
    border: 2px solid rgba(255, 152, 0, 0.4);
}

.score-low {
    background-color: rgba(211, 47, 47, 0.2);
    color: var(--alert-color);
    border: 2px solid rgba(211, 47, 47, 0.4);
}

.health-progress {
    height: 8px;
    background-color: var(--medium-gray);
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
    position: relative;
}

.health-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-good {
    background-color: var(--success-color);
}

.progress-warning {
    background-color: #F57C00;
}

.progress-alert {
    background-color: var(--alert-color);
}

.medical-disclaimer {
    background-color: rgba(0, 91, 158, 0.05);
    border: 1px solid rgba(0, 91, 158, 0.2);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 40px auto;
    position: relative;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.medical-disclaimer:before {
    content: "ⓘ";
    position: absolute;
    font-size: 1.2rem;
    color: var(--secondary-color);
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--white);
    border: 1px solid rgba(0, 91, 158, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medical-disclaimer h4 {
    background: transparent;
    color: #000 !important;
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.medical-disclaimer p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.condition-diabetes {
    border-left: 4px solid #1976D2;
}

.condition-heart {
    border-left: 4px solid #D32F2F;
}

.condition-kidney {
    border-left: 4px solid #7B1FA2;
}

.condition-hypertension {
    border-left: 4px solid #0288D1;
}

.condition-celiac {
    border-left: 4px solid #689F38;
}

.medical-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E3F2FD;
    transition: var(--transition);
    position: relative;
}

.medical-card:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-image: linear-gradient(45deg, transparent 50%, var(--medium-gray) 50%);
    border-top-right-radius: var(--border-radius);
}

.medical-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.medical-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.medical-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 125, 125, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.medical-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.medical-card-content {
    font-size: 0.9rem;
    color: var(--text-light);
}

.vital-sign {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.vital-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 125, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--primary-color);
}

.vital-data {
    flex-grow: 1;
}

.vital-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.vital-value {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.vital-trend {
    font-size: 0.75rem;
    margin-left: 5px;
}

.trend-up {
    color: var(--alert-color);
}

.trend-down {
    color: var(--success-color);
}

.trend-stable {
    color: #F57C00;
}

nav ul li a.active {
    color: var(--primary-color);
    position: relative;
    font-weight: 600;
}

nav ul li a.active:before {
    content: none;
}

nav ul li a.active:after {
    height: 2px;
    opacity: 1;
}

@media (max-width: 992px) {
    .trust-indicators {
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .trust-badge {
        margin-bottom: 8px;
    }
    
    .emergency-contact {
        display: none;
    }
}

@media (max-width: 768px) {
    .medical-tagline {
        display: none;
    }
    
    .vital-sign {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vital-icon {
        margin-bottom: 8px;
    }
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.user-info i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.user-role {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.user-role.admin {
    background-color: #ff5722;
    color: white;
}

.user-role.nutritionist {
    background-color: #4caf50;
    color: white;
}

.user-role.patient {
    background-color: #272b1C;
    color: white;
}

.logout-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

/* Access Denied Message */
.access-denied {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.access-denied-content {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.access-denied-content i {
    font-size: 4rem;
    color: #f44336;
    margin-bottom: 1.5rem;
}

.access-denied-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.access-denied-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.login-redirect {
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Error Message */
.error-message {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Form Footer */
.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Toast Message Styles */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--text-color);
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    min-width: 280px;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.toast-message.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-message i {
    margin-right: 10px;
    font-size: 20px;
}

.toast-message.success {
    border-left: 5px solid var(--success-color);
}

.toast-message.success i {
    color: var(--success-color);
}

.toast-message.error {
    border-left: 5px solid var(--alert-color);
}

.toast-message.error i {
    color: var(--alert-color);
}

@media (max-width: 576px) {
    .toast-message {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: calc(100% - 40px);
    }
}

/* Form labels in modals */
.modal .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.modal .form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.modal .form-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    background-color: var(--secondary-color);
    z-index: 1;
}

.pricing-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--medical-grid);
    opacity: 0.1;
    z-index: -1;
}

.pricing-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.pricing-section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #272B1C;
    border-radius: 2px;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pricing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pricing-feature i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1rem;
}

.pricing-feature span {
    text-align: left;
}

.pricing-btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    margin-top: auto;
}

.popular, .premium {
    position: relative;
}

.popular-badge, .premium-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.premium-badge {
    background-color: #272B1C;
}

.popular {
    transform: scale(1.05);
    z-index: 3;
    border: 2px solid var(--primary-color);
}

.premium {
    border: 2px solid #272B1C;
}

.popular:hover, .premium:hover {
    transform: translateY(-10px) scale(1.05);
}

/* Responsive adjustments for pricing */
@media (max-width: 992px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .popular {
        transform: scale(1);
    }

    .popular:hover {
        transform: translateY(-10px) scale(1);
    }
}

@media (max-width: 576px) {
    .pricing-section h2 {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}

/* About Section */
.about {
    padding: 5rem 5%;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 125, 125, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 70% 80%, rgba(0, 91, 158, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 165, 245, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.about-divider {
    width: 60px;
    height: 4px;
    background: #272B1C;
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

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

.about-journey {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid #272B1C;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.journey-step:nth-child(2) {
    border-left-color: #272B1C;
}

.journey-step:nth-child(3) {
    border-left-color: #272B1C;
}

.journey-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.journey-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.journey-step:nth-child(odd).in-view {
    animation: slide-in-left 0.8s forwards;
}

.journey-step:nth-child(even).in-view {
    animation: slide-in-right 0.8s forwards;
}

.step-icon {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #272B1C !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-icon i {
    font-size: 1.5rem;
    color: #fff !important;
}

.journey-step:nth-child(2) .step-icon {
    background: #272B1C !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.journey-step:nth-child(3) .step-icon {
    background: #272B1C !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    margin: 0;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.stat:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #272B1C;
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat.in-view {
    opacity: 1;
    transform: translateY(0);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.stat p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

footer {
    background-color: #1c2331;
    color: var(--white);
    padding-top: 3.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 5% 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.logo-small {
    height: 40px;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: #FFFFFF;
    bottom: -8px;
    left: 0;
    border-radius: 1.5px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #b2bdcd;
    position: relative;
    padding-left: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #FFFFFF;
    padding-left: 20px;
}

.footer-links ul li a:hover::before {
    background-color: var(--secondary-color);
}

.footer-contact {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-contact p {
    color: #b2bdcd;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    color: #FFFFFF;
    margin-right: 10px;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icons a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons a:hover:before {
    opacity: 1;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    background-color: #151a27;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(30px);
    transition: all 0.3s ease;
    overflow: hidden;
    border-top: 5px solid var(--primary-color);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--dark-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--primary-color);
    background-color: rgba(0, 125, 125, 0.1);
}

.modal h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
}

.modal h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #272B1C;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1.5px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
    color: var(--text-color);
    height: auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 125, 125, 0.1);
}

.modal p {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.modal p a {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.modal p a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.modal .btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 14px;
}

.health-icon {
    position: absolute;
    background-color: rgba(0, 125, 125, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.pulse-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 125, 125, 0.1);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .hero-content {
        order: 2;
        padding-top: 2rem;
    }
    
    .hero-image {
        order: 1;
        max-width: 60%;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    header {
        padding: 1rem 5%;
    }
    
    .auth-buttons .btn {
        display: none;
    }

    .auth-buttons .language-switcher {
        margin-right: 1rem;
    }
    
    .hero-content, .hero-image {
        max-width: 90%;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .about {
        flex-direction: column;
    }
    
    .about-content, .about-stats {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-links, .footer-contact {
        margin-bottom: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    header {
        justify-content: center;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
        position: absolute;
        left: 5%;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Fix logo positioning to prevent it from being hidden by hamburger icon */
    .logo-container {
        position: relative;
        margin-left: 30px; /* Add space to the left of the logo for the hamburger menu */
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    nav ul li a {
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .auth-buttons {
        display: none;
    }
    
    .auth-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 80%;
        max-width: 300px;
    }
    
    .auth-buttons-mobile .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 80%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes slide-in-left {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-in-up {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.feature-card, .stat, .journey-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.feature-card.in-view, .stat.in-view, .journey-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1).in-view {
    animation: slide-in-left 0.8s forwards;
}

.feature-card:nth-child(3).in-view {
    animation: slide-in-right 0.8s forwards;
}

.journey-step:nth-child(odd).in-view {
    animation: slide-in-left 0.8s forwards;
}

.journey-step:nth-child(even).in-view {
    animation: slide-in-right 0.8s forwards;
}

.health-icon {
    position: relative;
    display: inline-flex;
    margin-right: 5px;
    color: var(--primary-color);
}

.pulse-circle {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 125, 125, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

.heartbeat {
    animation: heartbeat 1.5s infinite;
}

.btn.primary-btn:active, .btn.secondary-btn:active {
    transform: scale(0.95);
}

.nav ul li a, .feature-link, .footer-links a {
    position: relative;
    overflow: hidden;
}

.nav ul li a:before, .feature-link:before, .footer-links a:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav ul li a:hover:before, .feature-link:hover:before, .footer-links a:hover:before {
    left: 100%;
}

.btn, a, .feature-card, .stat, .journey-step {
    cursor: pointer;
}

.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.language-current {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    background-color: var(--light-gray);
    color: var(--text-color);
    transition: var(--transition);
}

.language-current:hover {
    background-color: var(--medium-gray);
}

.language-current i {
    margin-right: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.language-option:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.language-option.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.medical-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-top: -5px;
    font-weight: 500;
}

.emergency-contact {
    display: flex;
    align-items: center;
    margin-right: 20px;
    background-color: rgba(211, 47, 47, 0.1);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.emergency-contact i {
    color: var(--alert-color);
    margin-right: 8px;
}

.emergency-contact span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--alert-color);
}

.trust-indicators {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    background-color: rgba(56, 142, 60, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(56, 142, 60, 0.2);
}

.trust-badge i {
    color: var(--success-color);
    margin-right: 8px;
    font-size: 0.9rem;
}

.trust-badge span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--success-color);
}

.nutrition-score {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 10px;
}

.score-high {
    background-color: rgba(56, 142, 60, 0.2);
    color: var(--success-color);
    border: 2px solid rgba(56, 142, 60, 0.4);
}

.score-medium {
    background-color: rgba(255, 152, 0, 0.2);
    color: #F57C00;
    border: 2px solid rgba(255, 152, 0, 0.4);
}

.score-low {
    background-color: rgba(211, 47, 47, 0.2);
    color: var(--alert-color);
    border: 2px solid rgba(211, 47, 47, 0.4);
}

.health-progress {
    height: 8px;
    background-color: var(--medium-gray);
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
    position: relative;
}

.health-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-good {
    background-color: var(--success-color);
}

.progress-warning {
    background-color: #F57C00;
}

.progress-alert {
    background-color: var(--alert-color);
}

.medical-disclaimer {
    background-color: rgba(0, 91, 158, 0.05);
    border: 1px solid rgba(0, 91, 158, 0.2);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 40px auto;
    position: relative;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.medical-disclaimer:before {
    content: "ⓘ";
    position: absolute;
    font-size: 1.2rem;
    color: var(--secondary-color);
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--white);
    border: 1px solid rgba(0, 91, 158, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medical-disclaimer h4 {
    background: transparent;
    color: #000 !important;
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.medical-disclaimer p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.condition-diabetes {
    border-left: 4px solid #1976D2;
}

.condition-heart {
    border-left: 4px solid #D32F2F;
}

.condition-kidney {
    border-left: 4px solid #7B1FA2;
}

.condition-hypertension {
    border-left: 4px solid #0288D1;
}

.condition-celiac {
    border-left: 4px solid #689F38;
}

.medical-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E3F2FD;
    transition: var(--transition);
    position: relative;
}

.medical-card:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-image: linear-gradient(45deg, transparent 50%, var(--medium-gray) 50%);
    border-top-right-radius: var(--border-radius);
}

.medical-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.medical-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.medical-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 125, 125, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.medical-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.medical-card-content {
    font-size: 0.9rem;
    color: var(--text-light);
}

.vital-sign {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.vital-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 125, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--primary-color);
}

.vital-data {
    flex-grow: 1;
}

.vital-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.vital-value {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.vital-trend {
    font-size: 0.75rem;
    margin-left: 5px;
}

.trend-up {
    color: var(--alert-color);
}

.trend-down {
    color: var(--success-color);
}

.trend-stable {
    color: #F57C00;
}

nav ul li a.active {
    color: var(--primary-color);
    position: relative;
    font-weight: 600;
}

nav ul li a.active:before {
    content: none;
}

nav ul li a.active:after {
    height: 2px;
    opacity: 1;
}

@media (max-width: 992px) {
    .trust-indicators {
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .trust-badge {
        margin-bottom: 8px;
    }
    
    .emergency-contact {
        display: none;
    }
}

@media (max-width: 768px) {
    .medical-tagline {
        display: none;
    }
    
    .vital-sign {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vital-icon {
        margin-bottom: 8px;
    }
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.user-info i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.user-role {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.user-role.admin {
    background-color: #ff5722;
    color: white;
}

.user-role.nutritionist {
    background-color: #4caf50;
    color: white;
}

.user-role.patient {
    background-color: #272b1C;
    color: white;
}

.logout-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

/* Access Denied Message */
.access-denied {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.access-denied-content {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.access-denied-content i {
    font-size: 4rem;
    color: #f44336;
    margin-bottom: 1.5rem;
}

.access-denied-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.access-denied-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.login-redirect {
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Error Message */
.error-message {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Form Footer */
.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Toast Message Styles */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--text-color);
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    min-width: 280px;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.toast-message.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-message i {
    margin-right: 10px;
    font-size: 20px;
}

.toast-message.success {
    border-left: 5px solid var(--success-color);
}

.toast-message.success i {
    color: var(--success-color);
}

.toast-message.error {
    border-left: 5px solid var(--alert-color);
}

.toast-message.error i {
    color: var(--alert-color);
}

@media (max-width: 576px) {
    .toast-message {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: calc(100% - 40px);
    }
}

/* Form labels in modals */
.modal .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.modal .form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.modal .form-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    background-color: var(--secondary-color);
    z-index: 1;
}

.pricing-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--medical-grid);
    opacity: 0.1;
    z-index: -1;
}

.pricing-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.pricing-section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #272B1C;
    border-radius: 2px;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pricing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pricing-feature i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1rem;
}

.pricing-feature span {
    text-align: left;
}

.pricing-btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    margin-top: auto;
}

.popular, .premium {
    position: relative;
}

.popular-badge, .premium-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.premium-badge {
    background-color: #272B1C;
}

.popular {
    transform: scale(1.05);
    z-index: 3;
    border: 2px solid var(--primary-color);
}

.premium {
    border: 2px solid #272B1C;
}

.popular:hover, .premium:hover {
    transform: translateY(-10px) scale(1.05);
}

/* Responsive adjustments for pricing */
@media (max-width: 992px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .popular {
        transform: scale(1);
    }

    .popular:hover {
        transform: translateY(-10px) scale(1);
    }
}

@media (max-width: 576px) {
    .pricing-section h2 {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}

/* About Section */
.about {
    padding: 5rem 5%;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 125, 125, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 70% 80%, rgba(0, 91, 158, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 165, 245, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.about-divider {
    width: 60px;
    height: 4px;
    background: #272B1C;
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

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

.about-journey {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid #272B1C;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.journey-step:nth-child(2) {
    border-left-color: #272B1C;
}

.journey-step:nth-child(3) {
    border-left-color: #272B1C;
}

.journey-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.journey-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.journey-step:nth-child(odd).in-view {
    animation: slide-in-left 0.8s forwards;
}

.journey-step:nth-child(even).in-view {
    animation: slide-in-right 0.8s forwards;
}

.step-icon {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #272B1C !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-icon i {
    font-size: 1.5rem;
    color: #fff !important;
}

.journey-step:nth-child(2) .step-icon {
    background: #272B1C !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.journey-step:nth-child(3) .step-icon {
    background: #272B1C !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    margin: 0;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.stat:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #272B1C;
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat.in-view {
    opacity: 1;
    transform: translateY(0);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.stat p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

footer {
    background-color: #1c2331;
    color: var(--white);
    padding-top: 3.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 5% 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.logo-small {
    height: 40px;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: #FFFFFF;
    bottom: -8px;
    left: 0;
    border-radius: 1.5px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #b2bdcd;
    position: relative;
    padding-left: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #FFFFFF;
    padding-left: 20px;
}

.footer-links ul li a:hover::before {
    background-color: var(--secondary-color);
}

.footer-contact {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-contact p {
    color: #b2bdcd;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    color: #FFFFFF;
    margin-right: 10px;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icons a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons a:hover:before {
    opacity: 1;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    background-color: #151a27;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(30px);
    transition: all 0.3s ease;
    overflow: hidden;
    border-top: 5px solid var(--primary-color);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--dark-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--primary-color);
    background-color: rgba(0, 125, 125, 0.1);
}

.modal h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
}

.modal h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #272B1C;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1.5px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
    color: var(--text-color);
    height: auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 125, 125, 0.1);
}

.modal p {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.modal p a {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.modal p a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.modal .btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 14px;
}

.health-icon {
    position: absolute;
    background-color: rgba(0, 125, 125, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.pulse-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 125, 125, 0.1);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .hero-content {
        order: 2;
        padding-top: 2rem;
    }
    
    .hero-image {
        order: 1;
        max-width: 60%;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    header {
        padding: 1rem 5%;
    }
    
    .auth-buttons .btn {
        display: none;
    }

    .auth-buttons .language-switcher {
        margin-right: 1rem;
    }
    
    .hero-content, .hero-image {
        max-width: 90%;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .about {
        flex-direction: column;
    }
    
    .about-content, .about-stats {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-links, .footer-contact {
        margin-bottom: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    header {
        justify-content: center;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
        position: absolute;
        left: 5%;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Fix logo positioning to prevent it from being hidden by hamburger icon */
    .logo-container {
        position: relative;
        margin-left: 30px; /* Add space to the left of the logo for the hamburger menu */
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    nav ul li a {
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .auth-buttons {
        display: none;
    }
    
    .auth-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 80%;
        max-width: 300px;
    }
    
    .auth-buttons-mobile .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 80%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes slide-in-left {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-in-up {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.feature-card, .stat, .journey-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.feature-card.in-view, .stat.in-view, .journey-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1).in-view {
    animation: slide-in-left 0.8s forwards;
}

.feature-card:nth-child(3).in-view {
    animation: slide-in-right 0.8s forwards;
}

.journey-step:nth-child(odd).in-view {
    animation: slide-in-left 0.8s forwards;
}

.journey-step:nth-child(even).in-view {
    animation: slide-in-right 0.8s forwards;
}

.health-icon {
    position: relative;
    display: inline-flex;
    margin-right: 5px;
    color: var(--primary-color);
}

.pulse-circle {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 125, 125, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

.heartbeat {
    animation: heartbeat 1.5s infinite;
}

.btn.primary-btn:active, .btn.secondary-btn:active {
    transform: scale(0.95);
}

.nav ul li a, .feature-link, .footer-links a {
    position: relative;
    overflow: hidden;
}

.nav ul li a:before, .feature-link:before, .footer-links a:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav ul li a:hover:before, .feature-link:hover:before, .footer-links a:hover:before {
    left: 100%;
}

.btn, a, .feature-card, .stat, .journey-step {
    cursor: pointer;
}

.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.language-current {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    background-color: var(--light-gray);
    color: var(--text-color);
    transition: var(--transition);
}

.language-current:hover {
    background-color: var(--medium-gray);
}

.language-current i {
    margin-right: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.language-option:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.language-option.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.medical-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-top: -5px;
    font-weight: 500;
}

.emergency-contact {
    display: flex;
    align-items: center;
    margin-right: 20px;
    background-color: rgba(211, 47, 47, 0.1);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.emergency-contact i {
    color: var(--alert-color);
    margin-right: 8px;
}

.emergency-contact span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--alert-color);
}

.trust-indicators {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    background-color: rgba(56, 142, 60, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(56, 142, 60, 0.2);
}

.trust-badge i {
    color: var(--success-color);
    margin-right: 8px;
    font-size: 0.9rem;
}

.trust-badge span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--success-color);
}

.nutrition-score {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    
    /* Fix for modal popups on small screens */
    .modal-content {
        width: 95%;
        padding: 15px;
        margin: 10% auto;
    }
    
    /* Fix for language dropdown on small screens */
    .language-dropdown {
        width: 150px;
        right: -50px; /* Adjust position to center better */
    }
    
    /* Ensure header elements don't overflow */
    header {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .logo-container {
    max-width: 50%;
    position: relative;
    margin-left: 30px; /* Add space to the left of the logo for the hamburger menu */
    display: flex;
    align-items: center;
}
    
    .logo {
        max-height: 40px;
    }
}

/* Additional responsiveness improvements */

/* Ensuring better usability on small screens */
@media (max-width: 576px) {
    /* Make font sizes more legible on mobile */
    body {
        font-size: 14px;
    }
    
    /* Improve header layout on very small screens */
    header {
        padding: 0.8rem 3%;
    }
    
    /* Adjust logo size and position for small screens */
    .logo-container {
        margin-left: 50px; /* Increased space to move logo more to the right on small screens */
    }
    
    .logo-container img {
        height: 32px !important; /* Slightly smaller on very small screens */
    }
    
    /* Better button size for touch screens */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Adjust pricing cards for small screens */
    .pricing-card {
        min-width: 220px;
        padding: 1.2rem;
    }
    
    /* Adjust price display for small screens */
    .price {
        font-size: 2rem;
    }
    
    /* Improve medical card layout */
    .medical-card {
        padding: 1.2rem;
    }
    
    /* Make sure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve form inputs for better touch interaction */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on focus in iOS */
    }
    
    /* Better spacing for mobile navigation when active */
    nav ul.active {
        padding: 60px 0;
    }
    
    /* Improve modal display on small screens */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    /* Adjust hero content for better mobile view */
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    /* Make medical disclaimer more readable on mobile */
    .medical-disclaimer {
        padding: 1rem;
    }
    
    /* Better feature highlights on mobile */
    .feature-highlights {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feature-highlight {
        margin-bottom: 0.5rem;
    }
    
    /* Fix language dropdown on mobile */
    .language-dropdown {
        right: 0;
        width: 140px;
    }
}

/* Medium-sized screens */
@media (max-width: 768px) {
    /* Improve feature cards layout on tablets */
    .feature-card {
        max-width: 500px;
        margin: 0 auto 20px;
    }
    
    /* Adjust user display in header */
    .user-display {
        flex-direction: column;
        align-items: center;
    }
    
    .user-email {
        margin-bottom: 10px;
    }
    
    /* Improve modal positioning */
    .modal {
        align-items: flex-start;
        padding-top: 50px;
    }
    
    /* Fix navigation dropdown */
    .recipe-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 10px;
    }
}

/* Landscape tablets and desktops */
@media (min-width: 992px) {
    /* Better layout for feature cards on larger screens */
    .feature-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* Improve hero section for larger screens */
    .hero {
        height: auto;
        min-height: 500px;
        display: flex;
        align-items: center;
    }
    
    /* Better header spacing on desktop */
    header {
        padding: 1rem 5%;
    }
    
    /* Enhance desktop navigation */
    nav ul li {
        margin: 0 15px;
    }
}

/* Fix mobile menu toggle behavior */
.mobile-menu-toggle {
    cursor: pointer;
}

/* Fix image display across all devices */
.hero-img, .feature-image {
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

/* Ensure buttons are properly sized across devices */
.btn {
    white-space: nowrap;
}

/* Fix language switcher position */
.language-switcher {
    position: relative;
}

/* Fix z-index for dropdowns */
.language-dropdown {
    z-index: 1000;
}

/* Prevent content overflow */
* {
    box-sizing: border-box;
    max-width: 100%;
}

/* Fix touch targets for better mobile usability */
nav ul li a, 
.btn, 
.language-option,
.feature-link,
.pricing-btn {
    min-height: 44px; /* Recommended minimum touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix mobile menu overlay z-index */
nav ul.active {
    z-index: 999;
}

/* Mobile header spacing improvements */
@media (max-width: 768px) {
    /* Better spacing for header elements */
    header {
        padding: 0.8rem 4%;
        justify-content: space-between;
    }
    
    /* Fix logo positioning to prevent it from being hidden by hamburger icon */
    .logo-container {
        position: relative;
        margin-left: 45px; /* Increased space to move logo more to the right */
        display: flex;
        align-items: center;
        z-index: 10; /* Ensure logo appears above other elements */
    }
    
    /* Logo size adjustment */
    .logo-container img {
        height: 35px !important;
        display: block; /* Ensure it's always visible */
        opacity: 1; /* Make sure it's not transparent */
    }
    
    /* Improve spacing between auth buttons */
    .auth-buttons {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    /* Make buttons more compact on mobile */
    .auth-buttons .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Better positioning for language button */
    .language-switcher {
        margin-left: 5px;
    }
    
    /* Adjust hamburger menu position */
    .mobile-menu-toggle {
        z-index: 9;
        position: absolute;
        left: 5%;
    }
}

/* Interest Form */
.interest-form-container {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.interest-form-container h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.interest-form-container p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.interest-form .form-group {
    display: flex;
    gap: 0.5rem;
}

.interest-form input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.interest-form .btn {
    white-space: nowrap;
}

.form-message {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.form-message.success {
    color: var(--color-success);
}

.form-message.error {
    color: var(--color-error);
}

@media (max-width: 768px) {
    .interest-form .form-group {
        flex-direction: column;
    }
}

/* Login Required Overlay */
.login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

.login-required i {
    font-size: 4rem;
    color: #f44336;
    margin-bottom: 1.5rem;
}

.login-required h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.login-required p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.login-redirect {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    text-align: center;
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.login-redirect:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}