:root {
    --primary-color: #10407a;
    --secondary-color: #000000;
    --accent-color: #d69e2e;
    --text-color: #4a5568;
    --light-bg: #e3e6e9;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    background-color: var(--secondary-color);
    padding: 0rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo_section {
    display: flex;
    align-items: center;
    padding: 1vh;
    justify-content: center;
    width: 20%;
}

.logo_image{
    height: 8vh;
    width: 10vh;
    border-radius: 8px;
    display: block;
}

.logo {
    color: white;
    font-size: 1.75rem;
    font-weight: 600;
    text-decoration: none;
}

.logo-img{
    color: white;
    margin-left: 1vh;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Dark button */
.dark-button {
    width: 20vh;
    display: flex;
    justify-content: center;
}

.dk-button {
    border-radius: 5px;
    height: 5vh;
    width: 10vh;
}

#hamburger {
    display: none;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 40%;
}

/* Add blur effect to modal background */
.dog-detail-modal {
    backdrop-filter: blur(5px);
}

/* Class to prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 82, 130, 0.85), rgba(26, 32, 44, 0.85)), url('Images/Navigation\ bar\ image.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 15;
    cursor: pointer;
}

.btn:hover {
    background-color: #b7791f;
}

/* Sections */
.section {
    padding: 5rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
}

/* Breed Cards */
.breed-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.breed-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.breed-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.breed-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.breed-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.breed-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.breed-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.breed-content h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Dog Types Grid */
.dog-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.dog-type {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.dog-type:hover {
    border-color: var(--primary-color);
}

.dog-type img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.dog-type h5 {
    font-size: 1.125rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Dog Catalog Section */
.dog-catalog {
    background-color: var(--light-bg);
}

/* Filters */
.filters {
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Dog Grid - Increased card size */
.dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 450px);
    gap: 2rem;
    margin-bottom: 4rem;
    justify-content: center;
}

.dog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    width: 450px;
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dog-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.dog-info {
    padding: 2rem;
    position: relative;
    padding-bottom: 3.5rem;
}

.dog-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.dog-breed {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    text-align: center;
}

.dog-details {
    margin-bottom: 1rem;
    text-align: center;
}

.dog-details p {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.dog-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.dog-actions {
    display: flex;
    gap: 1rem;
}

.purchase-btn {
    flex: 1;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s ease;
    font-size: 1.0625rem;
}

.purchase-btn:hover {
    background: #234e6f;
}

.inquire-btn {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 1.0625rem;
}

.inquire-btn:hover {
    background: var(--primary-color);
    color: white;
}

.whatsapp-icon {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.whatsapp-icon:hover {
    transform: translateX(-50%) scale(1.2);
}

                                                    /* About Section */



.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-text ul {
    list-style-position: inside;
    margin-top: 1rem;
    line-height: 1.7;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* Contact Section */
.contact {
    text-align: center;
    background-color: var(--light-bg);
}

.contact p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Dog Detail Modal */
.dog-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.dog-detail-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

/* Fix for dog detail header - remove red background */
.dog-detail-header {
    background-color: transparent !important;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.dog-detail-header h2 {
    font-size: 2rem;
    color: var(--primary-color) !important;
    text-align: center;
    margin: 0 auto;
    padding: 0;
}

.dog-detail-grid {
    display: grid;
    grid-template-rows: 1fr;
    gap: 1rem;
}

.dog-detail-image {
    align-items: center;
    justify-content: center;
    text-align: center;
    display: block;
    width: 50%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 25%;
}

.dog-detail-info {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 1rem;
    width: 100%;
}

.info-section {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
}

.info-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-list {
    display: grid;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.info-label {
    font-weight: 500;
    color: var(--secondary-color);
    text-align: left;
}

.info-value {
    color: var(--text-color);
    text-align: right;
    display: block;
}

.full-width-info {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    width: 50%;
    display: block;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Fix for close button positioning */
.close-btn-container {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10002 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.close-btn {
    background: none !important;
    border: none !important;
    color: var(--secondary-color) !important;
    font-size: 2rem !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.close-btn:hover {
    color: var(--accent-color) !important;
}

/* Purchase/Inquiry Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.modal-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: #0d1117;
    padding: 40px 20px;
    color: #c9d1d9;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer-brand,
.footer-links,
.footer-subscribe,
.footer-social {
    flex: 1 1 220px;
}

.footer h2,
.footer h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer p,
.footer a {
    color: #c9d1d9;
    font-size: 14px;
    text-decoration: none;
}

.footer a:hover {
    color: #58a6ff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-subscribe input {
    padding: 8px;
    width: 70%;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.footer-subscribe button {
    padding: 8px 16px;
    border: none;
    background-color: #238636;
    color: rgb(255, 255, 255);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.footer-subscribe button:hover {
    background-color: #2ea043;
}

.social-icons a {
    color: #c9d1d9;
    margin-right: 10px;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #58a6ff;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #30363d;
    padding-top: 15px;
    font-size: 13px;
    color: #8b949e;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #24d666;
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.footer-whatsapp:hover {
    background-color: #128C7E;
}

.footer-whatsapp svg {
    width: 24px;
    height: 24px;
}

.footer-phone {
    color: #c9d1d9;
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.footer-info {
    margin-bottom: 1rem;
}

.footer-info h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.WhatsApp-container {
    display: flex;
    margin-top: 4vh;
    justify-content: center;
}

/* Enhanced touch targets and accessibility */
button, .btn, .filter-btn, .inquire-btn, .purchase-btn, .footer-whatsapp {
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Touch device optimizations */
.touch-device .dog-card:hover {
    transform: none; /* Disable hover effects on touch */
}

.touch-device .dog-card.touch-active {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.15);
}

/* Mobile-specific animations */
.dog-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Fixed viewport height for mobile */
.hero {
    height: calc(var(--vh, 1vh) * 90);
}

/* Improved tap highlights for mobile */
button:focus, .btn:focus, .filter-btn:focus, .inquire-btn:focus, .purchase-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Remove default mobile tap highlights */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection where needed */
p, h1, h2, h3, h4, h5, h6, span, .info-value, .info-label {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Improved scrolling on mobile */
html {
    -webkit-overflow-scrolling: touch;
}

/* Better focus states for keyboard navigation */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Smooth transitions for interactive elements */
.dog-card, .breed-card, .nav-links a, .filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Mobile Responsiveness */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .section {
        padding: 4rem 5%;
    }
    
    .dog-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 1.5rem;
    }
    
    .dog-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Mobile navigation fixes */
    #hamburger {
        display: block;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 2000;
    }

    /* Navigation adjustments */
    .navbar {
        padding: 0 3%;
    }

    .logo_section {
        width: auto;
        min-width: 150px;
    }

    .logo_image {
        height: 6vh;
        width: 8vh;
    }

    /* Fix sidebar position and remove extra space */
    .nav-links {
        display: none;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 70vw !important;
        max-width: 280px !important;
        height: auto !important;
        max-height: 400px !important;
        padding: 5rem 0 2rem 0 !important;
        margin: 0 !important;
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        z-index: 1000;
        border-radius: 0 0 0 12px;
        box-shadow: -2px 0 20px rgba(0,0,0,0.4);
        transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    }

    .nav-links.active {
        display: flex !important;
    }

    /* Style the navigation items */
    .nav-links a {
        width: 90% !important;
        text-align: center !important;
        padding: 1rem 0 !important;
        margin: 0.3rem 0 !important;
        font-size: 1.2rem !important;
        color: white !important;
        border-radius: 8px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--accent-color) !important;
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Section adjustments */
    .section {
        padding: 3rem 5%;
    }

    .section h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    /* Hero section */
    .hero {
        height: 70vh;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    /* Dog grid */
    .dog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
    }

    .dog-card {
        max-width: 400px;
        width: 95%;
    }

    .dog-image {
        height: 280px;
    }

    .dog-info {
        padding: 1.5rem;
        padding-bottom: 4rem;
    }

    .dog-name {
        font-size: 1.6rem;
    }

    .dog-breed {
        font-size: 1.1rem;
    }

    .dog-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .inquire-btn, .purchase-btn {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px; /* Touch-friendly */
    }

    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    /* Filters */
    .filter-buttons {
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .filter-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        min-height: 44px; /* Touch-friendly */
    }

    /* Dog detail modal adjustments */
    .dog-detail-content {
        width: 95%;
        margin: 20px auto;
        padding: 1.5rem;
    }

    .dog-detail-header h2 {
        font-size: 1.6rem;
        padding-right: 40px;
    }

    .dog-detail-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dog-detail-image {
        width: 80%;
        margin-left: 10%;
        height: 300px;
    }

    .info-section {
        padding: 1.2rem;
    }

    .info-section h3 {
        font-size: 1.1rem;
    }

    .info-item {
        flex-direction: column;
        text-align: left;
        padding-bottom: 0.8rem;
    }

    .info-label {
        font-weight: 600;
        margin-bottom: 0.3rem;
    }

    .info-value {
        text-align: left;
        color: var(--primary-color);
    }

    /* Footer adjustments */
    .footer {
        padding: 30px 15px;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
    }

    .footer-brand,
    .footer-links,
    .footer-subscribe,
    .footer-social {
        flex: none;
        text-align: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Navigation */
    .navbar {
        padding: 0 4%;
    }

    .logo_section {
        width: auto;
        padding: 0.5vh;
    }

    .logo_image {
        height: 5vh;
        width: 6vh;
    }

    .nav-links {
        width: 85vw !important;
        max-width: none !important;
        border-radius: 0 0 0 15px;
    }

    /* Hero section */
    .hero {
        height: 60vh;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    /* Sections */
    .section {
        padding: 2.5rem 4%;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* Dog cards */
    .dog-card {
        width: 100%;
        max-width: none;
    }

    .dog-image {
        height: 250px;
    }

    .dog-info {
        padding: 1.2rem;
        padding-bottom: 4rem;
    }

    .dog-name {
        font-size: 1.4rem;
    }

    .dog-breed {
        font-size: 1rem;
    }

    .dog-details p {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    /* Filters */
    .filter-buttons {
        gap: 0.5rem;
        padding: 0;
    }

    .filter-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Modal adjustments */
    .dog-detail-content {
        width: 98%;
        margin: 10px auto;
        padding: 1rem;
    }

    .close-btn-container {
        top: 5px !important;
        right: 5px !important;
    }

    .close-btn {
        font-size: 1.8rem !important;
    }

    .dog-detail-header h2 {
        font-size: 1.3rem;
        padding-right: 35px;
        line-height: 1.3;
    }

    .dog-detail-image {
        width: 90%;
        margin-left: 5%;
        height: 250px;
    }

    .info-section {
        padding: 1rem;
    }

    .info-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .info-item {
        padding-bottom: 0.6rem;
        margin-bottom: 0.3rem;
    }

    .info-label {
        font-size: 0.9rem;
    }

    .info-value {
        font-size: 0.9rem;
        margin-top: 0.2rem;
    }

    /* About section */
    .about-text h3 {
        font-size: 1.4rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Footer */
    .footer {
        padding: 25px 10px;
    }

    .footer h2, .footer h3 {
        font-size: 1.1rem;
    }

    .footer p, .footer a {
        font-size: 13px;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .footer-links li {
        margin: 0;
    }

    .footer-whatsapp {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .footer-whatsapp svg {
        width: 20px;
        height: 20px;
    }

    /* WhatsApp container */
    .WhatsApp-container {
        margin-top: 2vh;
    }

    /* Form elements */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .dog-name {
        font-size: 1.3rem;
    }

    .filter-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .dog-detail-header h2 {
        font-size: 1.1rem;
    }

    .nav-links {
        width: 95vw !important;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        max-height: 300px;
        overflow-y: auto;
    }
}

/* Print styles */
@media print {
    .navbar, .hamburger, .footer, .dog-actions, .WhatsApp-container, .filter-buttons {
        display: none !important;
    }
    
    .hero {
        height: auto;
        background: none;
        color: black;
    }
    
    .dog-card {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #000000;
        --accent-color: #ff6600;
        --text-color: #000000;
    }
    
    .dog-card, .breed-card {
        border: 2px solid var(--secondary-color);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support preparation */
@media (prefers-color-scheme: dark) {
    /* Future dark mode styles can be added here */
}

/* Improved loading and performance */
.dog-image, .breed-image, .about-image, .dog-detail-image {
    loading: lazy;
    object-fit: cover;
    background-color: var(--light-bg);
}

/* Better image handling for slow connections */
.dog-image::before, .breed-image::before {
    content: "";
    display: block;
    background: linear-gradient(45deg, var(--light-bg) 25%, transparent 25%), 
                linear-gradient(-45deg, var(--light-bg) 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, var(--light-bg) 75%), 
                linear-gradient(-45deg, transparent 75%, var(--light-bg) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1;
}

/* Update the dog-detail-header styling */
.dog-detail-header {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dog card and main home Page Navigation Solver */
.dog-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.dog-detail-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}