:root {
    --bg-primary: #f8faee;
    --bg-secondary: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --accent: #2e7d32;
    --accent-hover: #1b5e20;
    --accent-yellow: #fbc02d;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(46, 125, 50, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/hero-pantry.jpg'); /* This uses the outside pantry image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(46, 125, 50, 0.5), rgba(251, 192, 45, 0.35));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInDown 1s ease-out forwards;
}

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

.badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.5);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: -5rem;
    position: relative;
    z-index: 10;
    padding-bottom: 5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-image-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

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

.app-mockup {
    object-fit: contain; /* since it's a phone screenshot, contain might be better, or cover top part */
    object-position: top;
    background-color: #fff;
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    flex-grow: 1;
}

/* Team */
.team {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.team-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-member:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.14);
}

.team-photo-bubble {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(46, 125, 50, 0.18), 0 8px 20px rgba(31, 41, 55, 0.16);
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-photo[hidden] {
    display: none;
}

.team-photo-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 800;
}

.team-photo-fallback:not([hidden]) {
    display: flex;
}

.team-member h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Directory */
.directory {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.directory-header {
    text-align: center;
    margin-bottom: 3rem;
}

.directory-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.directory-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #ffffff;
    transform: translateX(10px);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
}

.contact-link:hover .contact-icon {
    background: var(--accent);
    color: #ffffff;
}

.contact-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contact-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-action {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-link:hover .contact-action {
    color: var(--accent);
    transform: translateX(5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .features {
        margin-top: 2rem;
    }
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .team-photo-bubble {
        width: 130px;
        height: 130px;
    }
    .contact-link {
        padding: 1rem;
    }
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 1rem;
    }
}

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

/* Powered By Button */
.powered-by-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.powered-by-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transform: translateY(-2px);
}

.gemma-logo {
    height: 60px;
    filter: brightness(0.3) contrast(1.2);
}
