/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== GLOBAL MOBILE FIXES ===== */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #0f0f0f;
    --secondary-color: #C41E3A;
    --accent-color: #2d2d2d;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-overlay: rgba(15, 15, 15, 0.8);
    --glass-bg: rgba(45, 45, 45, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    order: -1;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: -5px;
}

.logo-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 400;
    white-space: nowrap;
}

.nav-right {
    position: relative;
    margin-left: auto;
    margin-right: 0;
}

.phone-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
}

.phone-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background:
        linear-gradient(135deg, rgba(15, 15, 15, 0.8) 0%, rgba(45, 45, 45, 0.6) 100%),
        url('photo-1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    padding-left: 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 30, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: left;
    z-index: 3;
    animation: slideInLeft 1.2s ease-out;
    max-width: 600px;
    position: relative;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 400;
    margin-bottom: 0.1rem;
    color: #ffffff;
    letter-spacing: 3px;
    line-height: 1.1;
    text-align: left;
}

.hero-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4.5rem, 9vw, 7.5rem);
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 18px;
    opacity: 1;
    margin-top: -0.3rem;
    text-align: left;
    line-height: 1.1;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 1rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-owner {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #ffffff;
    font-weight: 400;
    margin-top: 1rem;
    text-align: left;
    opacity: 0.9;
}


.hero-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    background: radial-gradient(ellipse at center, rgba(15, 15, 15, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    border-radius: 20px;
}

/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-family: "DM Serif Text", serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background: var(--primary-color);
}

/* ===== TESTIMONIALS SHOWCASE ===== */
.testimonials-showcase {
    position: relative;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0 100px;
    min-height: 450px;
    transition: all 0.5s ease;
}

.testimonials-showcase:has(.testimonial-card.expanded) {
    min-height: 650px;
}

.testimonials-display {
    position: relative;
    flex: 1;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    align-items: flex-start;
}

.testimonials-display:has(.testimonial-card.expanded) {
    align-items: flex-start;
    padding-top: 2rem;
}

/* Navigation arrows positioning - at screen edges */
.testimonials-showcase {
    position: relative;
}

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 1.2rem;
}

.testimonial-nav-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testimonial-nav-left {
    left: -70px;
}

.testimonial-nav-right {
    right: -70px;
}

/* Testimonial cards - consolidated rules */
.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 280px;
    height: 320px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Center card - largest and prominent + clickable */
.testimonial-card--center {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.2);
    z-index: 10;
    width: 380px !important;
    height: 400px !important;
    margin-top: -20px;
    align-self: flex-start;
    cursor: default;
}

/* Side cards - smaller and properly aligned */
.testimonial-card--side {
    opacity: 0.7;
    z-index: 5;
    width: 220px !important;
    height: 320px !important;
    margin-top: 40px;
    align-self: flex-start;
}

/* Scale down content in side cards proportionally */
.testimonial-card--side .testimonial-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    flex-shrink: 0; /* Prevent shrinking */
}

.testimonial-card--side .testimonial-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.testimonial-card--side .testimonial-stars {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.testimonial-card--side .testimonial-text {
    font-size: 0.85rem;
    line-height: 1.4;
    -webkit-line-clamp: 4;
}

.testimonial-card--side .read-more-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    margin-top: 0.5rem;
    border-radius: 15px;
    min-width: fit-content;
}

.testimonial-card.expanded .read-more-btn {
    margin-top: 1rem;
    align-self: center;
}

/* Testimonial content structure */
.testimonial-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow proper flex shrinking */
}

.testimonial-text {
    flex-grow: 1;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.truncated-text {
    display: none;
}

.testimonial-card.expanded .testimonial-text {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.testimonial-card.expanded .truncated-text {
    display: inline;
}

.testimonial-card.expanded {
    min-height: 520px !important;
    height: auto !important;
    max-height: 700px;
    transition: all 0.4s ease;
    background: rgba(45, 45, 45, 0.15);
    border-color: var(--secondary-color);
    border-width: 1px;
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.15);
    z-index: 15;
    position: relative;
    overflow: visible;
    padding: 2rem !important;
    /* Remove movement animations */
    transform: none !important;
}

.testimonial-card.expanded .testimonial-text {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.testimonial-card--center .testimonial-text {
    -webkit-line-clamp: 5;
}

.testimonial-card.expanded .testimonial-text {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.read-more-btn {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    align-self: flex-start;
    display: none;
}

.read-more-btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* Navigation buttons - Base styles only */
/* Remove hover effects from testimonial cards */

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent avatar from shrinking */
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.testimonial-stars {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== USŁUGI SECTION ===== */
.uslugi {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.services-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.service-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    min-width: 550px;
    display: none;
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(196, 30, 58, 0.15);
    border-color: var(--secondary-color);
}

.service-box.active {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.service-image {
    width: 240px;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.service-content {
    flex: 1;
    text-align: left;
}

.service-title {
    font-family: "DM Serif Text", serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

.service-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
}


.nav-arrow {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 1.2rem;
}

.nav-arrow:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.service-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

.indicator:hover {
    background: var(--secondary-color);
    opacity: 0.7;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ===== GOOGLE MAPS STYLING ===== */
.map-container {
    width: 100%;
    max-width: calc(100% - 6rem);
    margin: 3rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.1);
    border: 2px solid var(--glass-border);
}

.map-container #map {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    border-radius: 15px;
    background: var(--glass-bg);
}

.contact-info h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    color: var(--secondary-color);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-icon svg {
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.contact-item:hover .contact-icon svg {
    filter: drop-shadow(0 2px 4px rgba(196, 30, 58, 0.3));
}

.contact-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 15, 15, 0.5);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.file-upload {
    position: relative;
    overflow: hidden;
}

.file-input {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.file-upload-label:hover {
    background: #a01729;
    transform: translateY(-2px);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(196, 30, 58, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ADVANCED ANIMATIONS ===== */
.tilt-effect {
    transition: transform 0.3s ease;
}

.tilt-effect:hover {
    animation: tilt 0.6s ease-in-out;
}

.glow-effect {
    transition: all 0.3s ease;
}

.glow-effect:hover {
    animation: glow 2s ease-in-out infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

.slide-in-bottom {
    animation: slideInFromBottom 0.8s ease-out;
}

.slide-in-top {
    animation: slideInFromTop 0.8s ease-out;
}

/* ===== ENHANCED HOVER EFFECTS ===== */
/* Testimonial card hover effects removed as requested */


.filter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.nav-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(196, 30, 58, 0.5);
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02) translateZ(0);
    box-shadow:
        0 15px 30px rgba(196, 30, 58, 0.4),
        0 0 20px rgba(196, 30, 58, 0.3);
}

/* ===== SCROLL-BASED ANIMATIONS ===== */
.animate-on-scroll:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-on-scroll:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-on-scroll:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-on-scroll:nth-child(5) {
    animation-delay: 0.5s;
}

.animate-on-scroll:nth-child(6) {
    animation-delay: 0.6s;
}

.section-title {
    animation: slideInFromTop 1s ease-out;
}

.about-content {
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Medium screens - tablets and smaller desktops */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-right {
        position: static;
        transform: none;
        margin: 0;
        display: none;
    }

    .nav-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100vw;
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-right {
        position: static;
        transform: none;
        margin: 0;
        display: none;
    }

    /* Adjust for tablets and smaller desktops */
    .nav-container {
        padding: 0 1.5rem;
    }

    /* Scale down logo for medium screens */
    .logo-image {
        width: 55px;
        height: 55px;
    }

    .logo-main {
        font-size: 1.4rem;
        font-weight: 500;
    }

    .logo-sub {
        font-size: 0.85rem;
        letter-spacing: 1.8px;
    }

    .hero {
        padding-left: 2rem;
        justify-content: center;
        text-align: center;
        background-attachment: scroll;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 4.2rem;
        letter-spacing: 12px;
    }

    .hero-owner {
        font-size: 1.2rem;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto 1rem;
        display: block;
    }

    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Mobile testimonials - Single card view */
    @media (max-width: 768px) {
        .testimonials-showcase {
            flex-direction: column;
            gap: 1rem;
            padding: 0;
            min-height: auto;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            overflow-x: hidden;
            justify-content: flex-start;
            align-items: center;
            margin: 0 auto;
        }

        .testimonials-showcase:has(.testimonial-card.expanded) {
            min-height: 750px;
        }

        .testimonials-display {
            display: block;
            max-width: calc(100vw - 3rem);
            width: calc(100vw - 3rem);
            margin: 0 auto !important;
            box-sizing: border-box;
            padding: 0;
            min-height: 320px;
        }

        .testimonials-display:has(.testimonial-card.expanded) {
            min-height: 580px;
        }

        .testimonial-card {
            transform: scale(0.9) !important;
            opacity: 1 !important;
            filter: none !important;
            width: calc(100vw - 3rem) !important;
            max-width: calc(100vw - 3rem) !important;
            height: auto !important;
            margin: 0 auto !important;
            box-sizing: border-box;
            overflow-x: hidden;
            /* Only show active card on mobile */
            display: none;
        }

        .testimonial-card.active-mobile {
            display: flex !important;
            margin: 1rem auto !important;
        }

        .testimonial-card.active-mobile {
            display: flex !important;
        }

        .testimonial-card:last-child {
            margin-bottom: 0;
        }

        .testimonial-nav-btn {
            display: none !important;
        }
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .services-container {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 1rem;
    }

    .service-box {
        min-width: 300px;
        max-width: calc(100vw - 2rem);
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        margin: 0 auto;
        box-sizing: border-box;
        /* Hide inactive services on mobile */
        display: none;
    }

    .service-box.active-mobile {
        display: flex !important;
    }

    .service-box.active {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .service-image {
        width: 180px;
        height: 130px;
    }

    .service-content {
        text-align: center;
    }

    .nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-arrow-left {
        left: -70px;
    }

    .nav-arrow-right {
        right: -70px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-text {
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 50px;
        height: 50px;
    }

    .logo-main {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .logo-sub {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .hero h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 3.8rem;
        letter-spacing: 10px;
    }

    .hero-owner {
        font-size: 1rem;
    }

    .hero-image {
        max-width: 400px;
        margin: 0 auto 0.5rem;
        display: block;
    }

    .section-title {
        font-family: "DM Serif Text", serif;
        font-size: 2rem;
    }

    .about-content {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-link:focus,
.filter-btn:focus,
.submit-btn:focus,
.form-input:focus,
.form-textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    flex-shrink: 0;
}

.zlota-firma-logo {
    max-width: 160px;
    height: auto;
    border-radius: 8px;
}

.footer-text {
    text-align: right;
    color: var(--text-muted);
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes tilt {
    0% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
    }
    50% {
        transform: perspective(1000px) rotateX(0deg) rotateY(10deg);
    }
    75% {
        transform: perspective(1000px) rotateX(-5deg) rotateY(5deg);
    }
    100% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(196, 30, 58, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(196, 30, 58, 0.6), 0 0 30px rgba(196, 30, 58, 0.4);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }

    70% {
        transform: scale(0.95) translateY(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}