/* PetPaws Landing Page Styles */

body {
    font-family: 'Poppins', sans-serif;
}

/* All buttons text transform */
.btn {
    text-transform: none;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 80vh;
}

.pet-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.btn-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    /* text-transform: none; */
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.product-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
}

.contact-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
}

.contact-info i {
    font-size: 1.2rem;
}

/* Custom Hamburger Menu Styling */
.navbar-toggler {
    padding: 0.5rem;
    font-size: 1.25rem;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler i {
    color: #333 !important;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-toggler:hover i {
    transform: scale(1.1);
}

.navbar-toggler[aria-expanded="true"] i {
    transform: rotate(90deg);
}

/* Ensure hamburger menu is visible on all mobile devices */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
        background: transparent;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        padding: 8px;
    }

    .navbar-toggler i {
        display: block !important;
        width: 20px;
        height: 20px;
        text-align: center;
        line-height: 1;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }

    .btn-outline-primary {
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .hero-section img {
        max-height: 300px !important;
        margin-top: 2rem;
    }

    .contact-info {
        text-align: center;
        margin-bottom: 2rem;
    }

    .contact-info h4 {
        font-size: 1.25rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    footer .container .row {
        text-align: center;
    }

    footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Mobile Services Section */
@media (max-width: 576px) {
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .pet-card {
        margin-bottom: 1rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    body {
        font-size: 14px;
        line-height: 1.6;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        line-height: 1.3;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .pet-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .btn-custom:hover {
        transform: none;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 90vh;
    }

    .hero-section .row {
        align-items: center;
    }
}

/* Touch device optimizations */
.touch-device .btn:active,
.touch-device .card:active,
.touch-device .pet-card.touched {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Improve tap targets for mobile */
@media (max-width: 768px) {
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-links a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Prevent text selection on touch devices */
.touch-device .btn,
.touch-device .card-title,
.touch-device .navbar-brand {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Navigation active state styling */
.navbar .nav-link {
    position: relative;
    transition: all 0.3s ease;
    overflow: visible !important;
    padding-bottom: 1rem !important;
}

.navbar .nav-link:hover {
    color: #667eea !important;
    transform: translateY(-2px);
}

.navbar .nav-link:hover::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    animation: underlineSlide 0.3s ease forwards;
    z-index: 1000;
}

.navbar .nav-link.active {
    color: #667eea !important;
    font-weight: 600;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    animation: slideIn 0.3s ease forwards;
    z-index: 1000;
}

/* Force active state to stay visible */
.navbar .nav-link.active,
.navbar .nav-link.server-active {
    color: #667eea !important;
    font-weight: 600;
}

.navbar .nav-link.active::after,
.navbar .nav-link.server-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    z-index: 1000;
    opacity: 1;
}

/* Special styling for admin link */
.navbar .nav-link.text-warning:hover::before {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.navbar .nav-link.text-warning.active::after,
.navbar .nav-link.text-warning.server-active::after {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Ripple effect for nav links */
.nav-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 999;
}

@keyframes ripple {
    to {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 40px;
        opacity: 1;
    }
}

@keyframes underlineSlide {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

/* Mobile navigation active state */
@media (max-width: 991px) {
    .navbar .nav-link {
        padding-bottom: 0.5rem !important;
    }

    .navbar .nav-link.active::after,
    .navbar .nav-link:hover::before {
        display: none;
    }

    .navbar .nav-link.active {
        background-color: rgba(102, 126, 234, 0.1);
        border-radius: 8px;
        margin: 0.25rem 0;
        transform: none !important;
        border-bottom: 3px solid #667eea;
    }

    .navbar .nav-link:hover {
        transform: none !important;
        background-color: rgba(102, 126, 234, 0.05);
        border-radius: 8px;
        border-bottom: 2px solid #667eea;
    }

    .navbar .nav-link.text-warning.active {
        border-bottom-color: #f39c12;
    }

    .navbar .nav-link.text-warning:hover {
        border-bottom-color: #f39c12;
    }
}

/* Animation classes for scroll effects */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Navbar scroll effect */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Newsletter form styling */
.newsletter-form .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form .btn {
    border-radius: 0 0.375rem 0.375rem 0;
    min-width: 120px;
}

.newsletter-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-message .alert-sm {
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.newsletter-message .alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.newsletter-message .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .form-control {
        border-radius: 0.375rem;
        margin-bottom: 0.5rem;
    }

    .newsletter-form .btn {
        border-radius: 0.375rem;
        width: 100%;
    }
}