* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #64b5f6;
    --accent-blue: #0d47a1;
    --sky-blue: #e3f2fd;
    --white: #ffffff;
    --text-dark: #333;
    --text-light: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

/* Paw print background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='60' height='60'%3E%3Cpath fill='rgba(255,255,255,0.08)' d='M45 35c0 5.5-4.5 10-10 10s-10-4.5-10-10 4.5-10 10-10 10 4.5 10 10zm30 0c0 5.5-4.5 10-10 10s-10-4.5-10-10 4.5-10 10-10 10 4.5 10 10zM35 55c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm46 0c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zM50 75c0 8.3-6.7 15-15 15h0c-2.5 0-4.5-2-4.5-4.5v-6c0-6.4 5.2-11.5 11.5-11.5h16c6.4 0 11.5 5.2 11.5 11.5v6c0 2.5-2 4.5-4.5 4.5h0c-8.3 0-15-6.7-15-15z'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Fun tagline banner */
.tagline-banner {
    background: linear-gradient(90deg, #0d47a1, #1e88e5, #0d47a1);
    color: white;
    text-align: center;
    padding: 1rem 1rem 1.25rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: shimmer 3s ease-in-out infinite;
}

.author-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.tagline-main {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline-banner::before,
.tagline-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='rgba(255,255,255,0.3)' d='M45 35c0 5.5-4.5 10-10 10s-10-4.5-10-10 4.5-10 10-10 10 4.5 10 10zm30 0c0 5.5-4.5 10-10 10s-10-4.5-10-10 4.5-10 10-10 10 4.5 10 10zM35 55c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm46 0c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zM50 75c0 8.3-6.7 15-15 15h0c-2.5 0-4.5-2-4.5-4.5v-6c0-6.4 5.2-11.5 11.5-11.5h16c6.4 0 11.5 5.2 11.5 11.5v6c0 2.5-2 4.5-4.5 4.5h0c-8.3 0-15-6.7-15-15z'/%3E%3C/svg%3E");
    background-size: contain;
}

.tagline-banner::before {
    left: 20px;
}

.tagline-banner::after {
    right: 20px;
}

header {
    text-align: center;
    padding: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

header h1::before,
header h1::after {
    content: '🐾';
    font-size: 2rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.nav-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 25px;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    border-color: white;
}

.nav-btn.active {
    background: white;
    color: var(--primary-blue);
    font-weight: bold;
    border-color: white;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.filter-bar {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--sky-blue);
}

.filter-bar::before {
    content: '🐕';
    font-size: 1.5rem;
}

.filter-bar label {
    font-weight: 600;
    color: var(--primary-dark);
}

.filter-bar select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--primary-blue);
    font-size: 1rem;
    color: var(--primary-dark);
    cursor: pointer;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.breed-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
}

.breed-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-color: var(--primary-light);
}

.breed-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.breed-card .card-content {
    padding: 1.5rem;
    position: relative;
}

.breed-card .card-content::before {
    content: '🐾';
    position: absolute;
    top: -15px;
    right: 15px;
    font-size: 1.8rem;
    opacity: 0.3;
}

.breed-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.breed-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.breed-card .card-header h3 {
    margin-bottom: 0;
    flex: 1;
}

.heart-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.heart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}

.heart-btn.liked {
    animation: heartPulse 0.6s ease;
}

.heart-icon {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.heart-btn:hover .heart-icon {
    transform: scale(1.2);
}

.like-count {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 1.2rem;
    text-align: center;
}

.like-count.pop {
    animation: countPop 0.3s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); color: #ff6b6b; }
    100% { transform: scale(1); }
}

.breed-card .size-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.breed-card .temperament {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.breed-card .details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.breed-card .details span {
    background: var(--sky-blue);
    color: var(--primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.breed-card .description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Name Generator Styles */
.generator-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 3px solid var(--sky-blue);
    position: relative;
}

.generator-form::before {
    content: '🦴';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
}

.generator-form::after {
    content: '🐶';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--sky-blue);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.primary-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.primary-btn::before {
    content: '🐾';
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.name-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.name-card::before {
    content: '🏷️';
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 1.5rem;
}

.name-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.name-card.featured {
    border: 3px solid var(--primary-blue);
    background: linear-gradient(135deg, var(--sky-blue) 0%, #fff 100%);
}

.name-card.featured::before {
    content: '⭐';
}

.name-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.name-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.name-card .meaning {
    color: var(--primary-dark);
    font-style: italic;
    margin-bottom: 0.5rem;
    background: var(--sky-blue);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    display: inline-block;
}

.name-card .reason {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.placeholder, .loading {
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    background: white;
    border-radius: 20px;
    grid-column: 1 / -1;
    border: 3px dashed var(--primary-light);
}

.placeholder::before, .loading::before {
    content: '🐕';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: white;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
}

footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

footer p:first-child::before {
    content: '🐾';
}

footer p:first-child::after {
    content: '🐾';
}

footer .credits {
    font-size: 1.1rem;
    margin-top: 1rem;
}

footer .credits a {
    color: #64b5f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .credits a:hover {
    color: #90caf9;
    text-decoration: underline;
}

footer .credits strong {
    color: #64b5f6;
    font-weight: 700;
}

footer .author-info {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 0.3rem;
}

footer .author-info::before,
footer .author-info::after {
    content: '✨';
}

/* Floating paw decorations */
.paw-decoration {
    position: fixed;
    font-size: 2rem;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header h1::before,
    header h1::after {
        font-size: 1.5rem;
    }
    
    .card-grid, .names-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--sky-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* About Section Styles */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-header h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-photos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-photo {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-photo:hover {
    transform: scale(1.02);
}

.main-photo {
    max-height: 450px;
    object-fit: cover;
}

.photo-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.photo-row .about-photo {
    height: 280px;
    object-fit: cover;
}

.about-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
}

.about-text h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-text h3 a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-text h3 a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.about-tagline {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-lorentz,
.about-talks,
.about-tech,
.about-connect {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
}

.about-lorentz h3,
.about-talks h3,
.about-tech h3,
.about-connect h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.lorentz-photo {
    width: 100%;
    max-width: 400px;
    max-height: 350px;
    object-fit: cover;
    border-radius: 15px;
    margin: 1rem auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.about-lorentz p,
.about-talks p {
    color: var(--text-dark);
    line-height: 1.7;
}

.talks-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.talks-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.connect-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* About section responsive */
@media (max-width: 768px) {
    .about-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
    }
    
    .about-photos {
        order: -1;
    }
    
    .main-photo {
        max-height: 350px;
    }
    
    .photo-row .about-photo {
        height: 180px;
    }
    
    .connect-links {
        flex-direction: column;
    }
    
    .connect-btn {
        justify-content: center;
    }
}
