/* Pin-upстудиябаку Responsive Styles */

/* Extra Large screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 3rem;
    }
}

/* Large screens (992px and up) */
@media (min-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .service-card {
        padding: 2.5rem;
    }
    
    .portfolio-item img {
        height: 350px;
    }
    
    .gallery-photo img {
        height: 300px;
    }
    
    .contact-form {
        padding: 3rem;
    }
    
    .testimonial-card {
        padding: 2.5rem;
    }
    
    .package-card .package-features {
        padding: 2.5rem;
    }
}

/* Medium screens (768px and up) */
@media (min-width: 768px) {
    .navbar-nav .nav-link {
        margin: 0 5px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .page-header {
        padding: 140px 0 100px;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .portfolio-item img {
        height: 280px;
    }
    
    .gallery-photo img {
        height: 250px;
    }
    
    .contact-info-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .package-card {
        margin-bottom: 2rem;
    }
    
    .social-links-large {
        justify-content: center;
    }
    
    .filter-buttons {
        justify-content: center;
    }
}

/* Small screens (576px and up) */
@media (min-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 12px 35px;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    .package-header {
        padding: 2rem;
    }
    
    .working-hours-card {
        padding: 2rem;
    }
}

/* Extra small screens (up to 575px) */
@media (max-width: 575px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.3rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 15px !important;
        margin: 2px 0;
        text-align: center;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Hero Section */
    .hero {
        height: 100vh;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 250px;
        max-width: 90%;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 60px;
        margin-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .page-header .lead {
        font-size: 1.1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    /* Cards */
    .service-card,
    .contact-info-card,
    .testimonial-card,
    .skill-card,
    .equipment-item,
    .award-item,
    .additional-service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon,
    .contact-icon,
    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* Portfolio/Gallery */
    .portfolio-item img,
    .gallery-photo img {
        height: 200px;
    }
    
    .portfolio-overlay,
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-text h5 {
        font-size: 1rem;
    }
    
    .gallery-text p {
        font-size: 0.8rem;
    }
    
    /* Filter Buttons */
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .filter-buttons .btn {
        width: 200px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Forms */
    .contact-form {
        padding: 1.5rem;
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Contact Info */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    /* Pricing */
    .pricing-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .package-header {
        padding: 1.5rem;
    }
    
    .package-price {
        font-size: 1.8rem;
    }
    
    .package-features {
        padding: 1.5rem;
    }
    
    .package-features li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }
    
    /* Stats */
    .photographer-stats h3 {
        font-size: 2rem;
    }
    
    .photographer-stats p {
        font-size: 0.9rem;
    }
    
    /* Working Hours */
    .working-hours-card {
        padding: 1.5rem;
    }
    
    .day-hours {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Social Links */
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .social-links-large {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
        padding: 10px 20px;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 0.8rem 0;
    }
    
    .cookie-banner .row {
        text-align: center;
    }
    
    .cookie-banner .col-md-8,
    .cookie-banner .col-md-4 {
        margin-bottom: 10px;
    }
    
    .cookie-banner p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .cookie-banner .btn {
        margin: 5px;
        width: 120px;
    }
    
    /* Footer */
    .footer {
        text-align: center;
        padding: 1.5rem 0 1rem;
    }
    
    .footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    .footer h5,
    .footer h6 {
        margin-bottom: 0.8rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Legal Documents */
    .privacy-document,
    .terms-document,
    .cookie-document {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .document-info {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .contact-info-block {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .agreement-footer {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Accordion */
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Tables */
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    /* Map */
    .map-container iframe {
        height: 300px;
    }
    
    /* Scroll to top */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
    
    /* Utilities */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .text-center {
        text-align: center !important;
    }
}

/* Very small screens (up to 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        width: 220px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .service-card,
    .contact-info-card,
    .testimonial-card {
        padding: 1.2rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .package-header {
        padding: 1.2rem;
    }
    
    .package-features {
        padding: 1.2rem;
    }
    
    .filter-buttons .btn {
        width: 180px;
        font-size: 0.8rem;
    }
    
    .social-link {
        width: 180px;
    }
    
    .cookie-banner .btn {
        width: 100px;
        font-size: 0.8rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }
    
    .navbar {
        padding: 0.3rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-size: cover;
        background-position: center;
    }
    
    .portfolio-item img,
    .gallery-photo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if dark mode is desired */
    .navbar {
        background: rgba(0, 0, 0, 0.95) !important;
    }
    
    .cookie-banner {
        background: rgba(0, 0, 0, 0.95);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Print styles for mobile */
@media print and (max-width: 575px) {
    body {
        font-size: 10pt;
    }
    
    h1 {
        font-size: 16pt;
    }
    
    h2 {
        font-size: 14pt;
    }
    
    h3 {
        font-size: 12pt;
    }
    
    .container {
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .col-12 {
        padding: 0;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 575px) {
    .btn:focus,
    .form-control:focus,
    .form-select:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .nav-link:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    
    /* Increase touch targets */
    .btn,
    .nav-link,
    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
    }
    
    /* Better spacing for touch */
    .portfolio-item,
    .gallery-photo {
        margin-bottom: 20px;
    }
    
    .filter-buttons .btn {
        margin-bottom: 10px;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 575px) {
    .hero {
        background-attachment: scroll;
        will-change: auto;
    }
    
    .portfolio-item:hover,
    .gallery-photo:hover {
        transform: none;
    }
    
    .service-card:hover,
    .contact-info-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    /* Disable expensive hover effects on mobile */
    .btn:hover {
        transform: none;
    }
    
    .social-links a:hover {
        transform: none;
    }
}
