/* Responsive Design for SmartVacc Website */

/* Header Navigation Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212B35;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #47b0df;
}

.logo-icon {
    width: 35px;
    height: auto;
    margin-right: 0.5rem;
}

.logo-text {
    font-family: 'Nunito', sans-serif;
}

.logo-text .alt {
    font-size: 0.8rem;
    background: #dff1f9;
    color: #47b0df;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.25rem;
}

.navbar-nav .nav-link {
    color: #526b84;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #47b0df;
}

.navbar-nav .nav-link.active {
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 43, 53, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section .container {
    width: 100%;
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.hero-section .col-12.col-lg-6:first-child {
    padding-left: 8rem;
    padding-right: 2rem;
}

.hero-section .col-12.col-lg-6:last-child {
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-benefits {
    background: rgba(71, 176, 223, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #47b0df;
}

.hero-benefits ul li {
    font-size: 1rem;
    color: #526b84;
    font-weight: 500;
}

.hero-benefits ul li i {
    color: #47b0df;
    font-size: 1.1rem;
}

/* Hero Background Animal Illustrations */
.hero-background-animals {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* Responsive animal illustrations with smooth scaling */
.animal-illustration {
    max-width: clamp(60px, 12vw, 180px);
    width: 100%;
    height: auto;
    opacity: 0.6;
    filter: grayscale(20%) brightness(1.05);
    position: absolute;
}

.sheep-illustration {
    top: 5%;
    right: 2%;
    transform: rotate(15deg);
    max-width: clamp(60px, 10vw, 150px);
}

.cow-illustration {
    bottom: 5%;
    left: 2%;
    transform: rotate(-10deg);
    max-width: clamp(80px, 15vw, 220px);
}

.cow2-illustration {
    top: 5%;
    left: 2%;
    transform: rotate(20deg);
    max-width: clamp(70px, 13vw, 200px);
}

.goats-illustration {
    bottom: 10%;
    right: 2%;
    transform: rotate(5deg);
    max-width: clamp(50px, 9vw, 130px);
}

/* Hero Image Size Control */
.hero-image img {
    max-width: 250px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

/* Mobile hero image styles */
.hero-image-mobile {
    width: 100%;
    display: none;
}

@media (max-width: 991.98px) {
    .hero-image-mobile {
        display: block !important;
        margin-bottom: 1.5rem;
    }
    .hero-image-mobile img {
        max-width: 120px;
        margin: 0 auto;
    }
    .hero-section .col-12.col-lg-6.d-none.d-lg-block {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-image-mobile img {
        max-width: 100px;
    }
    .hero-background-animals {
        display: none;
    }
}

/* Responsive adjustments for hero image */
@media (max-width: 1200px) {
    .hero-image img {
        max-width: 220px;
    }
    .hero-image {
        min-height: 350px;
    }
    .hero-section .col-12.col-lg-6:first-child {
        padding-left: 6rem;
        padding-right: 1.5rem;
    }
    .hero-section {
        min-height: 90vh;
    }
    .hero-section .container {
        padding: 2.5rem 0;
    }
}

@media (max-width: 992px) {
    .hero-image img {
        max-width: 200px;
    }
    .hero-image {
        min-height: 300px;
    }
    .hero-section .col-12.col-lg-6:first-child {
        padding-left: 4rem;
        padding-right: 1rem;
    }
    .hero-section {
        min-height: 85vh;
    }
    .hero-section .container {
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .hero-image img {
        max-width: 180px;
    }
    .hero-image {
        min-height: 250px;
    }
    .hero-section .col-12.col-lg-6:first-child {
        padding-left: 2rem;
        padding-right: 1rem;
    }
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    .hero-section .row {
        min-height: 60vh;
    }
}

@media (max-width: 576px) {
    .hero-image img {
        max-width: 150px;
    }
    .hero-image {
        min-height: 200px;
    }
    .hero-section .col-12.col-lg-6:first-child {
        padding-left: 1.5rem;
        padding-right: 1rem;
    }
    .hero-section {
        padding: 1.5rem 0;
    }
    .hero-section .container {
        padding: 1rem 0;
    }
    .hero-section .row {
        min-height: 50vh;
    }
}

/* Responsive adjustments for animal illustrations */
@media (max-width: 1200px) {
    .animal-illustration {
        max-width: 120px;
        opacity: 0.4;
    }
    
    .cow-illustration,
    .cow2-illustration {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .animal-illustration {
        max-width: 80px;
        opacity: 0.3;
    }
    
    .cow-illustration,
    .cow2-illustration {
        max-width: 100px;
    }
    
    .sheep-illustration {
        top: 1%;
        right: 0.5%;
    }
    
    .cow-illustration {
        bottom: 1%;
        left: 0.5%;
    }
    
    .cow2-illustration {
        top: 1%;
        left: 0.5%;
    }
    
    .goats-illustration {
        bottom: 3%;
        right: 0.5%;
    }
    
    /* Show hero image on mobile */
    .hero-section .col-12.col-lg-6.d-none.d-lg-block {
        display: block !important;
    }
    
    .hero-section .col-12.col-lg-6:first-child {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        min-height: 200px;
        margin-top: 1rem;
    }
    
    .hero-image img {
        max-width: 120px;
    }
}

@media (max-width: 576px) {
    .hero-background-animals {
        display: none;
    }
    
    .hero-section .col-12.col-lg-6:first-child {
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: center;
    }
    
    .hero-image {
        min-height: 150px;
    }
    
    .hero-image img {
        max-width: 100px;
    }
    
    .site-headline {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .site-tagline {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-benefits {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-benefits ul li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Add top padding to body to account for fixed header */
body {
    padding-top: 60px;
}

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .site-headline {
        font-size: 3rem;
    }
    
    .site-tagline {
        font-size: 1.5rem;
    }
    
    .features-carousel {
        max-width: 1200px;
        height: 700px;
    }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .site-headline {
        font-size: 2.5rem;
    }
    
    .features-carousel {
        height: 650px;
    }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .site-headline {
        font-size: 2.25rem;
    }
    
    .site-tagline {
        font-size: 1.375rem;
    }
    
    .features-carousel {
        height: 600px;
    }
    
    .item-inner {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .item-inner:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .site-headline {
        font-size: 2rem;
    }
    
    .site-tagline {
        font-size: 1.25rem;
    }
    
    .features-carousel {
        height: 550px;
    }
    
    .carousel-nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .carousel-nav-btn {
        margin: 0.25rem;
    }
}

/* Extra Small Devices (576px and up) */
@media (min-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .site-headline {
        font-size: 1.75rem;
    }
    
    .site-tagline {
        font-size: 1.125rem;
    }
    
    .features-carousel {
        height: 500px;
    }
    
    .app-stores img {
        height: 50px;
    }
}

/* Mobile Devices (up to 575px) */
@media (max-width: 575.98px) {
    /* Header */
    .header {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 30px;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .navbar-nav .nav-item.ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }
    
    .navbar-nav .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .site-headline {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .site-tagline {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .app-stores {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .app-stores img {
        height: 45px;
        max-width: 200px;
    }
    
    /* Benefits Section */
    .benefits-section {
        padding: 2rem 0;
    }
    
    .benefits-section h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .item-inner {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }
    
    .item-inner h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .item-inner img {
        width: 50px;
        height: 50px;
    }
    
    /* Features Section */
    .features-section {
        padding: 2rem 0;
    }
    
    .features-section h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .features-carousel {
        height: 400px;
        margin: 0 -15px;
    }
    
    .feature-slide {
        border-radius: 15px;
    }
    
    .feature-content {
        padding: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-nav {
        margin-top: 1.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .carousel-nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin: 0;
    }
    
    /* Advantages Section */
    .advantages-section {
        padding: 2rem 0;
    }
    
    .advantages-section h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .col-heading {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer ul {
        margin-bottom: 1.5rem;
    }
    
    .footer li {
        margin-bottom: 0.5rem;
    }
    
    .download-area {
        padding: 2rem 0;
    }
    
    .download-area h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .download-area .section-intro {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .app-stores {
        margin-bottom: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .theme-btn {
        padding: 0.5rem 1.25rem;
    }
}

/* Very Small Devices (up to 375px) */
@media (max-width: 375px) {
    .site-headline {
        font-size: 1.25rem;
    }
    
    .site-tagline {
        font-size: 0.9rem;
    }
    
    .features-carousel {
        height: 350px;
    }
    
    .feature-content {
        padding: 1rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
    }
    
    .carousel-nav-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .app-stores img {
        height: 40px;
    }
}

/* Landscape Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .features-carousel {
        height: 300px;
    }
    
    .benefits-section,
    .advantages-section {
        padding: 1.5rem 0;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .site-headline {
        font-size: 1.75rem;
    }
    
    .site-tagline {
        font-size: 1.125rem;
    }
    
    .features-carousel {
        height: 500px;
    }
    
    .item-inner {
        padding: 2rem !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .item-inner img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .carousel-nav,
    .btn {
        display: none !important;
    }
    
    .hero-section,
    .benefits-section,
    .features-section,
    .advantages-section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .site-headline {
        font-size: 1.5rem;
        color: #000;
    }
    
    .site-tagline {
        font-size: 1rem;
        color: #333;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .feature-slide,
    .item-inner,
    .btn,
    .carousel-nav-btn {
        transition: none !important;
    }
    
    .features-carousel .flickity-button {
        transition: none !important;
    }
}

/* Focus States for Accessibility */
.btn:focus,
.carousel-nav-btn:focus,
.features-carousel .flickity-button:focus {
    outline: 2px solid #47b0df;
    outline-offset: 2px;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .carousel-nav-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .feature-slide:hover {
        transform: none;
    }
    
    .item-inner:hover {
        transform: none;
    }
}

/* Carousel Progress Bar */
.carousel-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.05s ease-out;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

/* Ensure carousel container has relative positioning for progress bar */
.features-carousel {
    position: relative;
}

/* Responsive adjustments for progress bar */
@media (max-width: 768px) {
    .carousel-progress-bar {
        height: 3px;
    }
}

@media (max-width: 576px) {
    .carousel-progress-bar {
        height: 2px;
    }
}

/* Carousel Fade Transition */
.features-carousel.flickity-enabled {
    background: transparent;
}

.features-carousel .carousel-cell {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.features-carousel .carousel-cell.is-selected {
    opacity: 1;
    z-index: 1;
}

.features-carousel .carousel-cell:not(.is-selected) {
    opacity: 0;
    z-index: 0;
}

/* Ensure content is properly positioned during fade */
.features-carousel .carousel-cell .feature-content {
    position: relative;
    z-index: 2;
}

/* Fix for mini-carousel Flickity display */
.feature-image-slider .mini-carousel {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    position: relative;
    min-height: 180px;
}

.feature-image-slider .mini-carousel .carousel-cell {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin: 0 auto;
    text-align: center;
}

.feature-image-slider .mini-carousel .img-fluid {
    width: auto;
    max-width: 100%;
    max-height: 170px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
    display: block;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .feature-image-slider .mini-carousel .carousel-cell {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .feature-image-slider .mini-carousel .carousel-cell {
        height: 120px;
        margin: 0 auto;
        text-align: center;
    }
}

/* Consistent feature image sizing for all carousels */
.feature-image img,
.feature-image-slider .mini-carousel .img-fluid {
    max-width: 250px;
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.feature-image-slider .mini-carousel {
    max-width: 250px;
    min-height: 350px;
}

.feature-image-slider .mini-carousel .carousel-cell {
    height: 350px;
}

@media (max-width: 992px) {
    .feature-image img,
    .feature-image-slider .mini-carousel .img-fluid {
        max-width: 200px;
        max-height: 250px;
    }
    .feature-image-slider .mini-carousel {
        max-width: 200px;
        min-height: 250px;
    }
    .feature-image-slider .mini-carousel .carousel-cell {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .feature-image img,
    .feature-image-slider .mini-carousel .img-fluid {
        max-width: 120px;
        max-height: 120px;
    }
    .feature-image-slider .mini-carousel {
        max-width: 120px;
        min-height: 120px;
    }
    .feature-image-slider .mini-carousel .carousel-cell {
        height: 120px;
    }
}

/* Updated Zoom Modal Styles */
.zoom-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    transition: background 0.3s;
}
.zoom-modal-backdrop {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 1;
}
.zoom-modal-img {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    display: block;
    background: #fff;
    object-fit: contain;
}
@media (max-width: 576px) {
    .zoom-modal-img {
        max-width: 98vw;
        max-height: 70vh;
        border-radius: 10px;
    }
} 