:root {
    --color-gray: #222222;
    --color-accent1: #AEA399;
    --color-accent2: #EEE9E3;
    --color-white: #FFFFFF;
}

.text-gray { color: var(--color-gray); }
.bg-gray { background-color: var(--color-gray); } 
.text-accent1 { color: var(--color-accent1); }
.bg-accent1 { background-color: var(--color-accent1); }
.text-accent2 { color: var(--color-accent2); }
.bg-accent2 { background-color: var(--color-accent2); }
.text-white { color: var(--color-white); }
.bg-white { background-color: var(--color-white); }

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

.font-red-hat {
    font-family: 'Red Hat Display', sans-serif;
}
.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}
.font-fira {
    font-family: 'Fira Sans', sans-serif;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Style dla ikon w menu głównym */
.header-icons a:hover i {
    color: var(--color-accent1) !important;
    transition: color 0.3s ease;
}
.header-icons a i {
    transition: color 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--color-white);
    transition: all 0.5s ease;
    z-index: 1000;
    visibility: hidden;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
}
.mobile-menu.active {
    right: 0;
    visibility: visible;
    transform: translateX(0);
}
.menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background-color: rgba(255, 255, 255, 0.1);
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Style dla przycisków hero-btn */
.hero-btn {
    display: inline-block;
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.hero-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: white;
    transition: all 0.4s ease;
    z-index: -1;
}

.hero-btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(121, 99, 77, 0.4);
    transition: opacity 0.3s ease;
    z-index: -2;
    border-radius: 9999px;
}

/* Efekt hover tylko dla desktopów */
@media (min-width: 769px) {
    .hero-btn:hover {
        color: var(--color-accent1);
        border-color: var(--color-accent1);
        text-shadow: none;
    }

    .hero-btn:hover:before {
        width: 100%;
    }

    .hero-btn:hover:after {
        opacity: 0;
    }
}

/* Style dla sekcji hero - dla wszystkich rozdzielczości */
.hero-content {
    padding-bottom: 40vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.hero-content h2 {
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    font-weight: 800;
    color: white;
    white-space: pre-wrap;
}

/* Dostosowania dla wersji desktopowej */
@media (min-width: 1200px) {
    .hero-content h2 {
        font-size: 3.5rem;
    }
}

/* Dostosowania dla mobilnej wersji hero */
@media (max-width: 768px) {
    .hero-image-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-content {
        padding-bottom: 4rem !important;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

/* Style dla efektu hover w menu desktopowym */
.desktop-menu-link {
    position: relative;
    padding-bottom: 4px;
}

.desktop-menu-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent1);
    transition: width 0.3s ease;
}

.desktop-menu-link:hover::after {
    width: 100%;
}

/* Style dla elementów w menu rozwijanym */
.dropdown-menu-item {
    position: relative;
    transition: all 0.3s ease;
    padding-left: 12px;
}

.dropdown-menu-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--color-accent1);
    transition: all 0.3s ease;
    opacity: 0;
}

.dropdown-menu-item:hover {
    padding-left: 20px;
}

.dropdown-menu-item:hover::before {
    width: 6px;
    height: 6px;
    opacity: 1;
}

/* Styl dla przycisku scroll-to-top */
#scroll-to-top:hover svg {
    stroke: black;
}

#scroll-to-top svg {
    stroke: white;
    transition: stroke 0.3s ease;
}

/* Style dla ikon menu mobilnego */
#mobile-menu-button {
    transition: transform 0.5s ease;
}

#mobile-menu-button.active {
    transform: rotate(90deg);
}

/* Style dla linków w menu mobilnym */
#mobile-menu a[href="index.html"],
#mobile-menu a[href="blog.html"],
#mobile-menu a[href="kontakt.html"],
#mobile-menu a[href="o-mnie.html"],
#mobile-menu a[href="fotografia-nieruchomosci.html"],
#mobile-menu a[href="fotografia-produktowa.html"] {
    position: relative;
    transition: all 0.1s ease;
    padding: 0.5rem 0;
}

#mobile-menu a[href="index.html"]:hover,
#mobile-menu a[href="blog.html"]:hover,
#mobile-menu a[href="kontakt.html"]:hover,
#mobile-menu a[href="o-mnie.html"]:hover,
#mobile-menu a[href="fotografia-nieruchomosci.html"]:hover,
#mobile-menu a[href="fotografia-produktowa.html"]:hover {
    opacity: 0;
    transform: scale(0.95);
}

/* Specjalny efekt dla Portfolio i Oferta */
#mobile-menu .mobile-dropdown-toggle {
    position: relative;
    transition: all 0.1s ease;
}

#mobile-menu .mobile-dropdown-toggle.active {
    color: var(--color-accent1);
}

#mobile-menu .mobile-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.1s ease;
}

#mobile-menu .mobile-dropdown-toggle.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

#mobile-menu .mobile-dropdown-toggle svg {
    transition: transform 0.1s ease;
}

#mobile-menu .mobile-dropdown-toggle.active svg {
    transform: rotate(180deg);
}

/* Style dla rozwijanego menu mobilnego */
#mobile-menu .mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
}

#mobile-menu .mobile-dropdown-content.active {
    max-height: 200px;
}

#mobile-menu .mobile-dropdown-content a {
    padding: 0.5rem 0;
    display: block;
    width: 100%;
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-gray);
    font-size: 0.95rem;
    transform: translateX(0);
    transition: all 0.1s ease;
}

#mobile-menu .mobile-dropdown-content a::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-accent1);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.1s ease;
}

#mobile-menu .mobile-dropdown-content a:hover {
    opacity: 0;
    transform: scale(0.95);
}

#mobile-menu .mobile-dropdown-content a:hover::before {
    opacity: 0;
}

#mobile-menu .mobile-dropdown-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#mobile-menu .mobile-dropdown-toggle svg {
    transition: transform 0.3s ease;
    margin-left: 8px;
}

#mobile-menu .mobile-dropdown-toggle.active svg {
    transform: rotate(180deg);
}

#modalImage {
    transition: opacity 150ms ease-in-out;
}

#prevButton, #nextButton, #closeButton {
    transition: opacity 150ms ease-in-out;
}

/* Style dla przycisku zamykania menu */
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.mobile-menu-close.active {
    transform: rotate(90deg);
}

.mobile-menu-close span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-gray);
    transition: transform 0.5s ease;
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

/* Styl dla linku "Strona główna" w menu mobilnym */
#mobile-menu a[href="index.html"] {
    position: relative;
    transition: all 0.1s ease;
    padding: 0.5rem 0;
}

#mobile-menu a[href="index.html"]:hover {
    opacity: 0;
    transform: scale(0.95);
}

.fade-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fade-link:hover {
    opacity: 0;
    transform: scale(0.95);
}

/* Style dla line-clamp w kartach bloga */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}