/* Responsive CSS dla strony Solarsoft */

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

/* Header scrolled state */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}



/* Mobile menu styles */
@media (max-width: 768px) {	
	  body {
    padding-top: 70px;
	}
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Tablet styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .contact-content {
        gap: 3rem;
    }
}

/* Large mobile styles */
@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding: 1rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .service-card,
    .benefit-card {
        padding: 1.5rem;
    }

    .service-icon,
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-image {
        height: 200px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .service-card,
    .benefit-card,
    .contact-form {
        padding: 1rem;
    }

    .services-grid,
    .portfolio-grid {
        gap: 1rem;
    }
}

/* High resolution displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .services-grid,
    .benefits-grid {
        gap: 3rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print styles */
@media print {
    .header,
    .hero-buttons,
    .scroll-to-top,
    .contact-form {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: none !important;
        color: var(--dark-gray) !important;
    }

    * {
        box-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --dark-gray: #ffffff;
        --border-gray: #404040;
    }

    .header {
        background-color: rgba(26, 26, 26, 0.95);
    }

    .service-card,
    .benefit-card,
    .portfolio-item,
    .contact-form {
        background-color: #2d2d2d;
        border: 1px solid #404040;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        animation: none;
        opacity: 1;
    }
}

/* Focus visible support */
@supports selector(:focus-visible) {
    button:focus,
    input:focus,
    textarea:focus,
    a:focus {
        outline: none;
    }

    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    a:focus-visible {
        outline: 2px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

}