:root {
    --primary: #4a9f8e;
    --primary-light: #6bb8a9;
    --secondary: #f8a55f;
    --light: #f9f5eb;
    --dark: #2c3e3a;
    --accent: #e76f51;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Floating Paws Animation */
.floating-paws {
    position: fixed;
    font-size: 1.5rem;
    opacity: 0.3;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
    color: var(--primary);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.paw-1 { top: 10%; left: 5%; animation-delay: 0s; }
.paw-2 { top: 20%; right: 10%; animation-delay: 1s; }
.paw-3 { bottom: 30%; left: 15%; animation-delay: 2s; }
.paw-4 { bottom: 20%; right: 5%; animation-delay: 3s; }

/* Typewriter Effect - Cursor Removed */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Auth Links */
.auth-links {
    position: absolute;
    top: 40px; /* adds space from the top */
    right: 20px;
    z-index: 100;
}

.auth-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.auth-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(74, 159, 142, 0.1) 0%, rgba(247, 165, 95, 0.1) 100%);
    position: relative;
}

/* Header Styles */
.header {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease;
}

.subheader {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 2.5rem;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Divider */
.divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 2rem 0;
    border-radius: 2px;
    animation: expandWidth 1s ease 0.5s both;
}

@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to { width: 100px; opacity: 1; }
}

/* Features Section */
.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease both;
}

.feature:nth-child(1) { animation-delay: 0.6s; }
.feature:nth-child(2) { animation-delay: 0.8s; }
.feature:nth-child(3) { animation-delay: 1s; }

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 159, 142, 0.1), transparent);
    transition: left 0.6s;
}

.feature:hover::before {
    left: 100%;
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--secondary);
}

.feature-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.feature:hover .feature-title {
    color: var(--primary);
}

.feature-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Stats Section */
.stats {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease 1.2s both;
}

.counter {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin: 1rem 0;
}

.stat-item {
    padding: 1rem;
    text-align: center;
}

/* Pet Avatars */
.pet-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.heart {
    color: var(--accent);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Interactive CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(74, 159, 142, 0.3);
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(74, 159, 142, 0.4);
    color: white;
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* ✅ Responsive Fix for Buttons & Titles */
@media (max-width: 768px) {
    .header {
        font-size: 2.2rem;
        margin-top: 80px;
        text-align: center;
    }

    .subheader {
        font-size: 1.1rem;
        margin-top: 0.5rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .auth-links {
        position: absolute;
        top: 25px;
        right: 20px;
        display: flex;
        gap: 10px;
        z-index: 100;
    }

    .auth-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .main-container {
        padding-top: 4rem;
        text-align: center;
    }

    .feature {
        width: 100%;
        max-width: 280px;
    }

    .floating-paws {
        display: none;
    }

    .stats {
        padding: 1rem;
    }

    .counter {
        font-size: 1.4rem;
    }
}
