/* Eeray Landing Page Styles */

:root {
    --primary-green: #25D366;
    --primary-dark: #128C7E;
    --accent-orange: #FF6B35;
    --text-dark: #1A1A2E;
    --text-medium: #4A4A6A;
    --text-light: #8888AA;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 60px rgba(37, 211, 102, 0.2);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: rgba(37, 211, 102, 0.2);
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    /* Changed from absolute to fixed for sticky */
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 101;
    /* Ensure logo is always clickable */
}

/* Nav Links - Hidden initially */
.nav-links {
    display: flex;
    gap: 30px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.4s ease;
}

.header.scrolled .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.nav-link {
    font-weight: 500;
    color: var(--text-medium);
    font-size: 0.95rem;
}

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

/* Header Button - Specific small style */
.btn-header {
    padding: 10px 24px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

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

.header.scrolled .btn-header {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Space for header */
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-text .highlight {
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(37, 211, 102, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Phone Mockup CSS */
.phone-mockup {
    width: 280px;
    height: 580px;
    background: var(--white);
    border-radius: 36px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    border: 10px solid #1a1a1a;
    /* Bezel */
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #ECE5DD;
    /* WhatsApp BG */
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    /* Pattern opacity */
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: #008069;
    padding: 40px 20px 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-info h3 {
    font-size: 16px;
    margin: 0;
}

.chat-info p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    position: relative;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.message-out {
    background-color: #E7FFDB;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.message-in {
    background-color: white;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.input-area {
    background: #f0f0f0;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-bar {
    background: white;
    flex: 1;
    height: 40px;
    border-radius: 20px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
}

/* Typewriter Effect - Cursor follows text */
.typewriter {
    color: var(--primary-green);
    position: relative;
    border-right: 3px solid var(--primary-green);
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
    display: inline-block;
    width: fit-content;
    /* Key fix: Dynamic width */
    max-width: 100%;
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-green)
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1.5s;
}

.delay-3 {
    animation-delay: 2.5s;
}

/* Features Section */
.features {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-desc {
    color: var(--text-medium);
}

/* Nigerian Food Section */
.food-section {
    background-color: #FFF8F5;
    /* Light orange tint */
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.food-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-soft);
}

.food-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.food-item:hover .food-img {
    transform: scale(1.1);
}

.food-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
}

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

.footer-links {
    display: flex;
    gap: 30px;
}

.copyright {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-visual {
        order: -1;
    }

    /* Phone on top on mobile? maybe */

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified mobile nav */
    .chat-messages {
        padding: 10px;
    }
}

/* Library Section */
.library-section {
    padding: 60px 0;
    text-align: center;
}

.search-container {
    max-width: 500px;
    margin: 30px auto;
    position: relative;
}

.food-search-input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 2px solid #EEE;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.food-search-input:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.15);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.5;
}

/* Tag Cloud */
.food-tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.food-tag-pill {
    background: white;
    border: 1px solid #EEE;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: default; /* Changed to default */
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* Static hover state (subtle only) */
.food-tag-pill.static {
    opacity: 1;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: all;
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    z-index: 1001;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal.hidden .modal-content {
    transform: scale(0.8);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.modal-badge {
    background: #F0FDF4;
    color: var(--primary-green);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-cta {
    margin-top: 25px;
    border-top: 1px solid #EEE;
    padding-top: 20px;
}

.btn-full {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 10px;
}