/* PetPal Website - Modern Premium Design */

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

:root {
    /* Brand Colors */
    --primary-color: #339966;
    --primary-light: #4DB380;
    --primary-dark: #2a7d54;

    /* Text Colors */
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-dark: #111827;

    /* Background Colors */
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border: #e5e7eb;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

    /* Feature Colors - Matching iOS App */
    --food-color: #FF9500;
    --water-color: #007AFF;
    --exercise-color: #34C759;
    --medicine-color: #AF52DE;
    --vet-color: #5AC8FA;
    --kid-mode-color: #FFB800;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================
   HEADER & NAVIGATION
========================= */

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(51, 153, 102, 0.2);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* =========================
   HERO SECTION
========================= */

.hero {
    background: linear-gradient(135deg, #2d8a5a 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 6rem 2rem 8rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-device {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Decorative paw prints */
.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.paw-print {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float-paw 20s infinite ease-in-out;
}

.paw-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.paw-2 {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.paw-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes float-paw {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) rotate(5deg);
    }

    75% {
        transform: translateY(30px) rotate(-5deg);
    }
}

/* =========================
   CTA BUTTON
========================= */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--primary-color);
    padding: 1.1rem 2.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #fefefe;
}

.cta-button:active {
    transform: translateY(-2px);
}

.app-store-icon {
    width: 24px;
    height: 24px;
}

.cta-large {
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
}

/* =========================
   ANIMATIONS
========================= */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

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

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

/* =========================
   SECTIONS
========================= */

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-intro {
    padding: 6rem 2rem 4rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    text-align: center;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.features-demo-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* =========================
   FEATURE CARDS
========================= */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem 6rem;
    background: var(--light-bg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s ease;
}

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

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

.feature-card p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Feature-specific colors */
.feature-card.food::before {
    background: linear-gradient(90deg, var(--food-color), #ffb03a);
}

.feature-card.food .feature-icon {
    background: rgba(255, 149, 0, 0.1);
}

.feature-card.water::before {
    background: linear-gradient(90deg, var(--water-color), #3a93ff);
}

.feature-card.water .feature-icon {
    background: rgba(0, 122, 255, 0.1);
}

.feature-card.exercise::before {
    background: linear-gradient(90deg, var(--exercise-color), #5dd97c);
}

.feature-card.exercise .feature-icon {
    background: rgba(52, 199, 89, 0.1);
}

.feature-card.medicine::before {
    background: linear-gradient(90deg, var(--medicine-color), #c76fea);
}

.feature-card.medicine .feature-icon {
    background: rgba(175, 82, 222, 0.1);
}

.feature-card.vet::before {
    background: linear-gradient(90deg, var(--vet-color), #7dd9fa);
}

.feature-card.vet .feature-icon {
    background: rgba(90, 200, 250, 0.1);
}

.feature-card.kid-mode::before {
    background: linear-gradient(90deg, var(--kid-mode-color), #ffd14d);
}

.feature-card.kid-mode .feature-icon {
    background: rgba(255, 184, 0, 0.1);
}

/* =========================
   BENEFITS SECTION
========================= */

.benefits {
    padding: 6rem 2rem;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0 4rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(51, 153, 102, 0.05) 100%);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.benefit-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.benefit-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.benefit-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.key-features-list {
    margin-top: 4rem;
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.05) 0%, var(--light-bg) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
}

.key-features-list h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.key-features-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.key-features-list li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
    position: relative;
    line-height: 1.7;
}

.key-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* =========================
   DOWNLOAD SECTION
========================= */

.download-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.download-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 4rem 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.download-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(51, 153, 102, 0.3);
}

.download-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.download-card p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.download-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* =========================
   FOOTER
========================= */

footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #0f172a 100%);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.footer-brand>p:first-of-type {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .hero-text p {
        font-size: 1.2rem;
    }

    .mockup-device {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 4rem 1.5rem 5rem;
    }

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

    .hero-text p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .download-card {
        padding: 3rem 2rem;
    }

    .download-card h2 {
        font-size: 2rem;
    }

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

    .footer-brand {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

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

    .hero-text p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .download-icon {
        width: 100px;
        height: 100px;
    }
}

/* =========================
   POLICY PAGES STYLING
========================= */

.policy-page {
    background: linear-gradient(135deg, rgba(45, 138, 90, 0.03) 0%, rgba(51, 153, 102, 0.05) 100%);
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
}

.policy-container h1 {
    font-size: 2.75rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.policy-container h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 3rem 0 1.25rem 0;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.policy-container h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    line-height: 1.4;
}

.policy-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.policy-container ul,
.policy-container ol {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin: 1.5rem 0 1.5rem 2rem;
    padding-left: 1rem;
}

.policy-container li {
    margin-bottom: 0.75rem;
}

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

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

.last-updated {
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.1) 0%, rgba(77, 179, 128, 0.1) 100%);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    font-size: 1rem;
    color: var(--text-light);
}

.info-box {
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.08) 0%, rgba(77, 179, 128, 0.08) 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 5px solid var(--primary-color);
}

.info-box p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.contact-info-box {
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.05) 0%, rgba(77, 179, 128, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 2px solid rgba(51, 153, 102, 0.2);
    text-align: center;
}

.contact-info-box h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-info-box p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.contact-info-box p:last-child {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--gray);
}

/* Mobile responsiveness for policy pages */
@media (max-width: 768px) {
    .policy-page {
        padding: 6rem 1.5rem 3rem;
    }

    .policy-container {
        padding: 2.5rem 2rem;
        border-radius: 15px;
    }

    .policy-container h1 {
        font-size: 2rem;
    }

    .policy-container h2 {
        font-size: 1.5rem;
        margin: 2.5rem 0 1rem 0;
    }

    .policy-container h3 {
        font-size: 1.2rem;
    }

    .policy-container p,
    .policy-container ul,
    .policy-container ol {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .policy-page {
        padding: 5rem 1rem 2rem;
    }

    .policy-container {
        padding: 2rem 1.5rem;
    }

    .policy-container h1 {
        font-size: 1.75rem;
    }

    .info-box,
    .contact-info-box {
        padding: 1.5rem;
    }
}