/* ==========================================================================
   Got Puppy? - Main Stylesheet
   ========================================================================== */

/* CSS Variables for theming */
:root {
    /* Light theme (default) */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: white;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-warm: linear-gradient(45deg, #ff6b6b, #ff8e53);
    --accent-gold: #f39c12;
    --footer-bg: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --footer-text: #bdc3c7;
    --card-shadow: 0 20px 40px rgba(0,0,0,0.1);
    --card-shadow-hover: 0 30px 60px rgba(0,0,0,0.2);
    --heart-color: rgba(255, 182, 193, 0.3);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --stat-bg: #f8f9fa;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-secondary: rgba(30, 30, 50, 0.95);
    --bg-glass: rgba(0, 0, 0, 0.3);
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-light: #f0f0f0;
    --accent-primary: #7c8cf5;
    --accent-secondary: #9b6dff;
    --footer-bg: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    --footer-text: #8a8a9a;
    --card-shadow: 0 20px 40px rgba(0,0,0,0.4);
    --card-shadow-hover: 0 30px 60px rgba(0,0,0,0.5);
    --heart-color: rgba(255, 182, 193, 0.15);
    --nav-bg: rgba(30, 30, 50, 0.98);
    --stat-bg: rgba(50, 50, 70, 0.5);
    --border-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-warm);
    color: white;
}

.nav-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Dark mode toggle */
.theme-toggle {
    background: var(--bg-glass);
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    transform: scale(1.05);
}

.theme-toggle-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Mobile menu button */
.nav-menu-btn {
    display: none;
    background: var(--accent-warm);
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite alternate;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Refresh note button */
.refresh-note {
    background: var(--accent-warm);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: pulse 3s ease-in-out infinite;
    margin-top: 20px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-controls {
    max-width: 1400px;
    margin: 0 auto 30px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-primary);
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-warm);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   Puppy Cards
   ========================================================================== */

.puppy-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}

.puppy-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.puppy-image-container {
    position: relative;
    overflow: hidden;
}

.puppy-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.puppy-card:hover .puppy-image {
    transform: scale(1.1);
}

/* Lazy loading placeholder */
.puppy-image[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Favorite button */
.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.favorite-btn:hover {
    transform: scale(1.2);
    background: white;
}

.favorite-btn.favorited {
    background: #ff6b6b;
    color: white;
}

/* Share button */
.share-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.share-btn:hover {
    transform: scale(1.2);
    background: var(--accent-primary);
    color: white;
}

.puppy-content {
    padding: 25px;
}

.puppy-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.puppy-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
}

.puppy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.puppy-tag {
    background: var(--accent-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.paw-icon {
    display: inline-block;
    margin: 0 5px;
    animation: wiggle 2s ease-in-out infinite;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.content-section {
    background: var(--bg-secondary);
    margin: 30px auto;
    max-width: 900px;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--card-shadow);
    animation: fadeInUp 0.6s ease-out;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
}

.content-section h3 {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin: 35px 0 15px;
}

.content-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Name Generator
   ========================================================================== */

.name-generator {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 50px;
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.name-generator h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.name-generator p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.generated-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin: 30px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.5s ease-out;
}

.generate-btn {
    background: var(--accent-warm);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.generate-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.generate-btn:active {
    transform: scale(0.95);
}

.name-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.name-option {
    padding: 10px 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 25px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.name-option:hover,
.name-option.active {
    background: var(--accent-primary);
    color: white;
}

/* ==========================================================================
   Quiz Section
   ========================================================================== */

.quiz-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: var(--card-shadow);
}

.quiz-container h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
}

.quiz-question {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quiz-option {
    padding: 20px;
    border: 3px solid var(--accent-primary);
    border-radius: 15px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.quiz-option:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.quiz-option.selected {
    background: var(--accent-warm);
    border-color: transparent;
    color: white;
}

.quiz-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--stat-bg);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--accent-primary);
    transform: scale(1.3);
}

.progress-dot.completed {
    background: #4CAF50;
}

.quiz-result {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.quiz-result h3 {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.quiz-result p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.quiz-result-image {
    font-size: 6rem;
    margin: 30px 0;
}

/* ==========================================================================
   Tips Page
   ========================================================================== */

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tip-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent-primary);
}

.tip-card:hover {
    transform: translateX(10px);
    box-shadow: var(--card-shadow-hover);
}

.tip-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.tip-icon {
    font-size: 2rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-form {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 50px;
    max-width: 700px;
    margin: 40px auto;
    box-shadow: var(--card-shadow);
}

.contact-form h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--stat-bg);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--stat-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--accent-warm);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Mission Stats
   ========================================================================== */

.mission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-box {
    background: var(--stat-bg);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border-left: 5px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ==========================================================================
   Team Grid
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 35px 0;
}

.team-member {
    background: var(--accent-warm);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--card-shadow-hover);
}

.team-member h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.team-member .title {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.team-member p {
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--footer-bg);
    color: white;
    padding: 60px 20px 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: var(--accent-gold);
}

.footer-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--footer-text);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
}

.social-paws {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.paw-button {
    font-size: 1.8rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 55px;
    height: 55px;
}

.paw-button:hover {
    background: var(--accent-gold);
    transform: scale(1.2) rotate(360deg);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.footer-bottom p {
    margin-bottom: 10px;
    color: #95a5a6;
}

.footer-tagline {
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.cta-link {
    display: inline-block;
    background: var(--accent-warm);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.cta-link:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Floating Hearts Background
   ========================================================================== */

.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.heart {
    position: absolute;
    color: var(--heart-color);
    font-size: 20px;
    animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes bounce {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-gradient {
    background: var(--accent-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 18px 30px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.toast.success {
    border-left: 5px solid #4CAF50;
}

.toast.error {
    border-left: 5px solid #f44336;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .refresh-note {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px 40px;
    }

    .puppy-card {
        border-radius: 15px;
    }

    .puppy-image {
        height: 250px;
    }

    .puppy-content {
        padding: 20px;
    }

    .puppy-title {
        font-size: 1.4rem;
    }

    .puppy-subtitle {
        font-size: 1rem;
    }

    .content-section {
        margin: 20px 15px;
        padding: 30px 20px;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .content-section h3 {
        font-size: 1.4rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    .team-grid,
    .mission-stats,
    .features-grid,
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer {
        padding: 40px 15px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .social-paws {
        gap: 10px;
    }

    .paw-button {
        font-size: 1.4rem;
        width: 45px;
        height: 45px;
    }

    .name-generator,
    .quiz-container,
    .contact-form {
        margin: 20px 15px;
        padding: 30px 20px;
    }

    .generated-name {
        font-size: 1.8rem;
    }

    .generate-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .gallery-controls {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .refresh-note {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .puppy-image {
        height: 200px;
    }

    .puppy-content {
        padding: 15px;
    }

    .puppy-title {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .nav-logo {
        font-size: 1.4rem;
    }

    .theme-toggle-text {
        display: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .nav,
    .floating-hearts,
    .theme-toggle,
    .favorite-btn,
    .share-btn {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .puppy-card,
    .content-section,
    .feature-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: scaleIn 0.3s ease-out;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    text-align: center;
    margin-top: 20px;
    color: white;
}

.lightbox-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.lightbox-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 10px;
}

.lightbox-close:hover {
    transform: scale(1.2) rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.lightbox-btn {
    background: var(--accent-warm);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-btn:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: var(--accent-warm);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Confetti Animation
   ========================================================================== */

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==========================================================================
   Random Puppy Button
   ========================================================================== */

.random-puppy-btn {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse 2s infinite;
}

.random-puppy-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Dog Age Calculator
   ========================================================================== */

.age-calculator {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.age-calculator h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.age-input-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.age-input {
    width: 100px;
    padding: 15px;
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    font-size: 1.5rem;
    text-align: center;
    background: var(--stat-bg);
    color: var(--text-primary);
}

.age-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.age-result {
    font-size: 2rem;
    color: var(--accent-primary);
    font-weight: bold;
    margin-top: 20px;
    min-height: 50px;
}

.age-result-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.size-select {
    padding: 12px 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 25px;
    background: var(--stat-bg);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

/* ==========================================================================
   Keyboard Shortcut Hint
   ========================================================================== */

.keyboard-hints {
    position: fixed;
    bottom: 30px;
    right: 100px;
    background: var(--bg-secondary);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.keyboard-hints.visible {
    opacity: 1;
    visibility: visible;
}

.keyboard-hints kbd {
    background: var(--stat-bg);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: monospace;
    margin: 0 3px;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--stat-bg);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Puppy Card Ribbon
   ========================================================================== */

.puppy-ribbon {
    position: absolute;
    top: 15px;
    left: -35px;
    background: #4CAF50;
    color: white;
    padding: 8px 40px;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(-45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.puppy-ribbon.new {
    background: #4CAF50;
}

.puppy-ribbon.popular {
    background: #ff6b6b;
}

.puppy-ribbon.featured {
    background: #f39c12;
}

/* ==========================================================================
   Responsive adjustments for new features
   ========================================================================== */

@media (max-width: 768px) {
    .lightbox-nav {
        padding: 15px 10px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }

    .lightbox-title {
        font-size: 1.4rem;
    }

    .back-to-top,
    .random-puppy-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        left: 20px;
        bottom: 20px;
    }

    .random-puppy-btn {
        bottom: 80px;
    }

    .keyboard-hints {
        display: none;
    }

    .age-calculator {
        margin: 20px 15px;
        padding: 30px 20px;
    }

    .age-input {
        width: 80px;
        font-size: 1.2rem;
    }
}
