/* Reset CSS */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Variables */
:root {
    --primary: #252525;
    --primary-light: #454545;
    --secondary: #b6a36e;
    --secondary-light: #d4c598;
    --accent: #c8b483;
    --light: #f8f8f8;
    --dark: #1a1a1a;
    --gray: #767676;
    --gray-light: #f0f0f0;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;

    --transition: all 0.3s ease;
    --border-radius: 0px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow: 0 5px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
}

/* Base Styles */
html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) var(--light);
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--primary);
    background-color: var(--light);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Utility Classes */
.section {
    padding: 10rem 0;
    position: relative;
}

.section--light {
    background-color: var(--light);
}

.section--dark {
    background-color: var(--primary);
    color: var(--light);
}

.section--gray {
    background-color: var(--gray-light);
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
    position: relative;
    color: var(--primary);
}

.section--dark .section-title {
    color: var(--light);
}

.section-subtitle {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.section--dark .section-subtitle {
    color: var(--secondary-light);
}

.section-description {
    font-size: 1.8rem;
    color: var(--gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem;
    line-height: 1.8;
}

.section--dark .section-description {
    color: #d0d0d0;
}

.text-accent {
    color: var(--secondary);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.divider {
    width: 80px;
    height: 2px;
    background-color: var(--secondary);
    margin: 2rem auto 3rem;
}

.divider--left {
    margin-left: 0;
    margin-right: auto;
}

.divider--dark {
    background-color: var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1.4rem 3.8rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255,255,255,0.1);
    transition: height 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    height: 100%;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 2px 10px rgba(182, 163, 110, 0.3);

}



.btn-primary:hover {
    background-color: var(--accent);
    box-shadow: 0 5px 15px rgba(182, 163, 110, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background-color: white;
    color: var(--primary);
}

.btn-light:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--primary);
    color: white;
}

.btn-dark:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 2rem 0;
    backdrop-filter: blur(0px);
}

.header.scrolled {
    background-color: rgba(255,255,255,0.97);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 1.2rem 0;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.logo-img {
    content: url("../images/LOGOTYP_FOTO-MAR_NIEBIESKI.png");
    height: 5.5rem;
    transition: var(--transition);
}

.scrolled .logo-img {
    content: url("../images/LOGOTYP_FOTO-MAR_czarny.png");
    height: 4.5rem;
}

.logo-text {
    font-family: var(--font-script);
    font-size: 3.2rem;
    color: var(--secondary);
    margin-left: 1rem;
    line-height: 1;
    transition: var(--transition);
}

.scrolled .logo-text {
    font-size: 2.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 3rem;
}

#closeMenu {
    display: none;
}

.nav-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: whitesmoke;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.header.scrolled .nav-link {
    color: var(--primary);
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}


.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 2.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    /*min-height: 700px;*/
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;

}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.7);
}


.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-subtitle {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--secondary-light);
    margin-bottom: 2rem;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 6rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 3rem;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeIn 1s forwards 0.8s;
}

.hero-description {
    font-size: 2rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeIn 1s forwards 1.1s;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeIn 1s forwards 1.4s;
}

.scroll-down {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    color: white;
    font-size: 1.4rem;
    z-index: 10;
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 1s forwards 1.7s;
}

.scroll-down-text {
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateX(-45%);
}

.scroll-down-icon {
    animation: bounce 2s infinite;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 1.5s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    top: -18px;
    right: -14px;
    background-color: var(--secondary);
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 2rem;
    border-radius: 50%;
    text-align: center;
    z-index: 2;
    box-shadow: var(--shadow);
}

.about-badge-number {
    font-size: 3.6rem;
    line-height: 1;
    font-weight: 700;
}

.about-badge-text {
    font-size: 1.4rem;
    line-height: 1.2;
}

.about-content {
    padding-right: 2rem;
}

.about-title {
    font-family: var(--font-secondary);
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
    line-height: 1.8;
}

.about-signature {
    width: 150px;
    margin-top: 3rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.service-card {
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card .service-content {
    padding-bottom: 8rem;
}

.service-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-content {
    padding: 3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 1rem;
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-left: -5px;
    margin-bottom: 2rem;
    margin-right: 5px;
    display: inline-block;
    transform: translateY(-5%);
}

.service-title {
    font-family: var(--font-secondary);
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-description {
    font-size: 1.6rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.service-features {
    margin-bottom: 2.5rem;
}

.service-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.service-feature i {
    color: var(--secondary);
    margin-right: 1rem;
    font-size: 1.6rem;
}

.service-footer {
    position: absolute;
    bottom: 10px;
    left: 3rem;
    right: 3rem;
    text-align: center;
}

.btn-firmly {
    width: 100%;
    margin: 0;
}

/* Portfolio Section */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.portfolio-tab {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--gray-light);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-tab:hover,
.portfolio-tab.active {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 350px;
    box-shadow: var(--shadow);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-title {
    color: white;
    font-family: var(--font-secondary);
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-category {
    color: var(--secondary-light);
    font-size: 1.6rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-category {
    transform: translateY(0);
}

.portfolio-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Testimonials Section */
.testimonials-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 1.5rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-quote {
    font-size: 5rem;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--primary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--secondary-light);
}

.testimonial-name {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.testimonial-event {
    font-size: 1.5rem;
    color: var(--gray);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    gap: 1rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d5d5d5;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background-color: var(--secondary);
    transform: scale(1.5);
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
    color: var(--primary);
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0.7;
    z-index: 10;
}

.testimonial-arrow:hover {
    opacity: 1;
    color: var(--secondary);
}

.testimonial-prev {
    left: 0px;
}

.testimonial-next {
    right: 0px;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.pricing-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 600px;

}

.pricing-card.featured::before {
    content: 'Polecane';
    position: absolute;
    top: 2rem;
    right: -4rem;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 5rem;
    font-size: 1.4rem;
    transform: rotate(45deg);
    z-index: 5;
    font-weight: 500;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    background-color: var(--primary);
    padding: 3rem;
    text-align: center;
    color: white;
}

.pricing-title {
    font-family: var(--font-secondary);
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-light);
}

.pricing-features {
    padding: 4rem 3rem 3rem;
    flex-grow: 1;
    margin-bottom: 80px;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    line-height: 1.7;
}

.pricing-feature i {
    color: var(--secondary);
    margin-right: 1.5rem;
    margin-top: 0.4rem;
    font-size: 1.4rem;
}

.pricing-footer {
    position: absolute;
    bottom: 5px;
    left: 2rem;
    right: 2rem;
    padding: 0 3rem 3rem;
    text-align: center;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 12rem 0;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://source.unsplash.com/random/1920x1080/?wedding');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-secondary);
    font-size: 4.5rem;
    margin-bottom: 2rem;
}

.cta-text {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.9);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 2rem 5rem 2rem 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--secondary);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--secondary);
}

.faq-answer {
    padding: 0 2rem;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 2rem;
    height: auto;
    border-top: 1px solid var(--gray-light);
}

.faq-text {
    font-size: 1.6rem;
    color: var(--gray);
    line-height: 1.8;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.contact-text {
    font-size: 1.6rem;
    color: var(--gray);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    margin-bottom: 3rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin-right: 2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 1.6rem;
    color: var(--gray);
}

.contact-form {
    background-color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    border: 1px solid #e1e1e1;
    padding: 1.5rem;
    font-size: 1.6rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: var(--font-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(182, 163, 110, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding-top: 8rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 5rem;
}

.footer-logo-text {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: var(--secondary);
    margin-left: 1rem;
}

.footer-about {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: var(--transition);
}

.footer-social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-link {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.footer-contact-icon {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-right: 1.5rem;
    margin-top: 0.2rem;
}

.footer-contact-text {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    padding: 3rem 0;
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.5);
}

.footer-copyright a {
    color: var(--secondary-light);
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}



/* Media Queries */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 5rem;
    }

    .about-grid,
    .contact-grid {
        gap: 4rem;
    }

}





@media (max-width: 992px) {
    html {
        font-size: 55%;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    #closeMenu {
        display: flex;
    }

    .close-menu {
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 2.4rem;
        color: var(--primary);
        cursor: pointer;
        transition: var(--transition);
    }

    .close-menu:hover {
        color: var(--secondary);
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,0.7);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
    }

    .about-content,
    .contact-info {
        padding-right: 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .nav-link {
        padding: 1.5rem 0;
        font-size: 1.8rem;
        color: var(--primary);
    }

    /* Większe przyciski dla dotykowej obsługi */
    .testimonial-arrow {
        width: 60px;
        height: 60px;
    }

    .faq-question {
        padding: 2rem 6rem 2rem 2rem;
    }

    /* Poprawki dla kafelków */
    .portfolio-item {
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 1/1;
    }

    .portfolio-image {
        position: static;
        aspect-ratio: 1/1;
    }

    /* Poprawki dla przycisków w formularzu */
    .form-control {
        font-size: 1.6rem;
        -webkit-appearance: none;
        border-radius: 0;
    }

    /* Poprawki dla tekstów */
    .section-title {
        word-wrap: break-word;
        hyphens: auto;
    }

    .btn-middle {
        display: block;
        margin: 0 auto;
        text-align: center;
        width: fit-content;
    }

}

@media (max-width: 768px) {
    .section {
        padding: 8rem 0;
    }

    .hero {
        min-height: 100vh;
        height: 100vh;
    }

    .hero-image {
        object-position: center center;
    }

    .hero-content {
        width: 95%;
        padding: 0 1rem;
    }


    .hero-subtitle {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-description {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }

    .testimonial-card {
        padding: 3rem;
    }

    .testimonial-text {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 2rem;
    }

    .section-title {
        font-size: 3.6rem;
    }

    .section-subtitle {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-description {
        font-size: 1.6rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .portfolio-item {
        height: 250px; /* Zmniejszenie wysokości kafelków na małych ekranach */
    }

    .portfolio-title {
        font-size: 1.8rem; /* Mniejszy font dla tytułów portfolio */
    }

    /* Poprawki dla services-grid */
    .services-grid {
        grid-template-columns: 1fr; /* Jedna kolumna na telefonach */
    }
    .btn {
        padding: 1.2rem 2.5rem; /* Mniejsze przyciski */
        font-size: 1.4rem;
    }

    /* Poprawki dla formularza kontaktowego */
    .contact-form {
        padding: 2rem;
    }

    /* Poprawki dla FAQ */
    .faq-question {
        padding: 1.5rem 4rem 1.5rem 1.5rem;
        font-size: 1.6rem;
    }

    /* Poprawki dla cennika */
    .pricing-header {
        padding: 2rem;
    }

    .pricing-features {
        padding: 2rem 1.5rem 1.5rem;
    }

    /* Poprawki dla footer */
    .footer {
        padding-top: 5rem;
    }
}

/* Dodatkowe poprawki dla ekranów między 576px a 768px */
@media (min-width: 577px) and (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media( max-width: 556px) {
    .portfolio-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .portfolio-item {
        width: 80%;
        max-width: 400px; /* Maksymalna szerokość dla bardzo dużych telefonów */
        margin: 0 auto;
    }
}


/* Ogólne poprawki dla lepszej responsywności */
@media (max-width: 480px) {
    html {
        font-size: 50%; /* Zmniejszamy bazowy rozmiar fontu dla bardzo małych ekranów */
    }

    .hero {
        min-height: 100svh;
        height: 100svh;
    }


    .container {
        padding: 0 1.5rem; /* Mniejsze marginesy boczne */
    }

    .section {
        padding: 6rem 0; /* Mniejsze odległości między sekcjami */
    }

    .portfolio-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .portfolio-tab {
        width: 100%;
        max-width: 220px;
        text-align: center;
    }
}

/* Poprawka dla ekranów high-DPI */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    html {
        -webkit-text-size-adjust: 100%; /* Zapobiega automatycznemu powiększaniu tekstu */
    }

    .form-control {
        font-size: 1.6rem; /* Minimum 16px dla inputów aby zapobiec zoom na iOS */
    }

}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 3rem 2rem;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
    }

    .hero-title {
        margin-bottom: 1.5rem;
    }

    .hero-description {
        margin-bottom: 2rem;
    }

    .scroll-down {
        display: none;
    }
}

/* Eliminacja bugów związanych z fixed position na iOS */
@supports (-webkit-overflow-scrolling: touch) {
    .header.scrolled {
        transform: translateZ(0);
    }

    .back-to-top {
        transform: translateZ(0);
    }

    input, textarea {
        -webkit-appearance: none;
    }
}

/* Poprawka do overflow na body */
html, body {
    max-width: 100vw;
    overflow-x: hidden;

}