/* Updated color palette */
:root {
  --primary: #00796B;
  --primary-dark: #004D40;
  --secondary: #FAF8F1;
  --text-dark: #333;
  --white: #fff;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--secondary);
    position: relative;
}
.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

/* Scroll Animation Classes */
.scroll-fade, .features, .hero, .download, .gallery {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.in-view {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
}

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

/* Header Styles */
header {
    background: rgba(250, 248, 241, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.logo:hover {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}

/* Responsive App Bar */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}
.nav-toggle .bar {
    width: 26px;
    height: 3px;
    background: var(--primary);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--secondary);
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        width: 200px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
        border-radius: 12px;
        padding: 18px 0 18px 0;
        display: none;
        transition: all 0.3s;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        text-align: right;
        padding: 10px 24px;
    }
    .nav-links a {
        color: var(--primary);
        font-size: 1.1rem;
        padding: 8px 0;
        width: 100%;
        display: block;
    }
    .nav-toggle {
        display: flex;
    }
    nav {
        position: relative;
    }
}

@media (max-width: 600px) {
    .logo span {
        font-size: 1.1rem;
    }
    .nav-links {
        right: 10px;
        width: 160px;
    }
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 121, 107, 0.15);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 121, 107, 0.15);
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.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: left 0.5s ease;
}
.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.18);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 121, 107, 0.28);
}

.btn-secondary {
    background: rgba(250, 248, 241, 0.8);
    color: var(--primary);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 121, 107, 0.10);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--secondary);
    position: relative;
}
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--secondary));
}
.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}
.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--secondary);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 121, 107, 0.08);
    background: var(--secondary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--primary);
    text-align: center;
    position: relative;
}
.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--secondary), transparent);
}
.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    color: var(--primary);
}
.download p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    color: var(--text-dark);
}

.app-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.app-btn {
    background: rgba(0, 121, 107, 0.08);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}
.app-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 121, 107, 0.10);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section ul li a:hover {
    color: var(--primary);
    background: var(--secondary);
    border-radius: 4px;
    padding: 2px 6px;
}

.footer-section p {
    color: var(--secondary);
    line-height: 1.6;
}

/* Hero Flex Layout */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1 1 320px;
    min-width: 260px;
    text-align: left;
}
.hero-image {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding-top: 1.5rem;
}

@media (max-width: 900px) {
    .hero-flex {
        flex-direction: column-reverse;
        align-items: center;
        gap: 2rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-image {
        padding-top: 0;
    }
}