@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --color-one: #6A11CB; /* Deep Purple */
    --color-two: #2575FC; /* Vibrant Blue */
    --glass-background: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #FFFFFF; /* White */
    --secondary-text-color: #E0E0E0; /* Light Grey */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #FFD700; /* Gold */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
    background-color: #1a1a2e; /* A dark solid color for the rest of the website */
}

header {
    background: linear-gradient(135deg, var(--color-one), var(--color-two)), rgba(255, 255, 255, 0.1); /* Gradient with slight white tint */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-color); /* Ensure text is readable */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: transparent; /* Make nav background transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 20px 20px; /* Rounded bottom corners for nav */
}

.logo {
    height: 60px;
}

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

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-one);
}

.hero {
    min-height: 80vh; /* Moved min-height to hero */
    text-align: center;
    padding: 0 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--secondary-text-color);
}



main {
    padding: 6rem 2.5rem;
}

section {
    margin-bottom: 6rem;
}

h2 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.45);
}

.feature-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--secondary-text-color);
    font-size: 1rem;
}

.download-section {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.download-section h2 {
    color: var(--text-color);
}

.download-section p {
    color: var(--secondary-text-color);
    font-size: 1.2rem;
}

.app-store-button {
    display: inline-block;
    width: 180px;
    height: 60px;
    background: url('https://developer.apple.com/assets/elements/badges/download-on-the-app-store.svg') no-repeat center center/contain;
    margin-top: 2.5rem;
    transition: transform 0.3s ease;
}

.app-store-button:hover {
    transform: scale(1.05);
}

.hero-animal-image {
    width: 200px; /* Adjust size as needed */
    height: auto;
    margin-top: 2rem;
    transition: opacity 1s ease-in-out;
}

.hero-animal-image.fade-out {
    opacity: 0;
}

.hero-animal-image.fade-in {
    opacity: 1;
}

footer {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background-color: var(--glass-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin: 20px;
    color: var(--secondary-text-color);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent-color);
}