* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

/*Header main*/
.header-main {
    background-color: #EFECE3;
    max-width: 1896px;
    max-height: 824px;

    width: 1896px;
    height: 824px;

    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 43px;
}

.header-main h1 {
    max-width: 700px;
    font-size: 68px;

}

.header-main p {
    max-width: 760px;
    font-size: 20px;
    line-height: 30px;
}

#gallery-button {
    background-color: #EFECE3;
    width: 140px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
}

#gallery-button:hover {
    background-color: black;
    color: white;
}

/* Features Section */
#features {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 80px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.feature-box {
    max-width: 300px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 40px;
    color: #333;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/*First page*/
/* Categories Section */
#categories {
    background-color: #F8F9FA;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 17px;
    padding: 80px 20px;
}

#categories h1 {
    font-size: 50px;
    margin-bottom: 10px;
}

#categories p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

/*Header main*/
.header-main {
    background-color: #EFECE3;
    max-width: 1896px;
    max-height: 824px;

    width: 1896px;
    height: 824px;

    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 43px;
}

.header-main h1 {
    max-width: 700px;
    font-size: 68px;

}

.header-main p {
    max-width: 760px;
    font-size: 20px;
    line-height: 30px;
}

#gallery-button {
    background-color: #EFECE3;
    width: 140px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
}

#gallery-button:hover {
    background-color: black;
    color: white;
}

/* Features Section */
#features {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 80px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.feature-box {
    max-width: 300px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 40px;
    color: #333;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/*First page*/
/* Categories Section */
#categories {
    background-color: #F8F9FA;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 17px;
    padding: 80px 20px;
}

#categories h1 {
    font-size: 50px;
    margin-bottom: 10px;
}

#categories p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

#categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-card {
    display: flex;
    height: 575px; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.category-text {
    width: 407px;
    background-color: #EFEBE2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    padding: 30px;
    text-align: left; 
}

.category-image {
    width: 385px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-count {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.category-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/*Effect*/
#categories-grid {
    position: relative;
    z-index: 1;
}
    
.category-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}
    
.category-card:hover {
    transform: scale(1.03);
    z-index: 2;
}
    
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    border-radius: 10px;
}
    
.category-card:hover::before {
    opacity: 1;
}
    
.category-card:hover .category-text {
    transform: translateY(-10px);
}
    
.category-card:hover .category-image img {
    transform: scale(1.1);
}
    
.category-text {
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}
    
.category-image img {
    transition: transform 0.5s ease;
}
    
.category-title {
    position: relative;
    display: inline-block;
}
    
.category-card:hover .category-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    animation: underline 0.5s forwards;
}
    
@keyframes underline {
    from { width: 0 }
    to { width: 100% }
}

/*Promo Card*/
/* Promo Card Section */
.promo-card {
    background-color: #F8F9FA;
    padding: 80px 20px;
}

.card-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.promo-image {
    width: 50%;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-text {
    width: 50%;
    padding: 60px;
    background-color: #EFEBE2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #212529;
}

.promo-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 30px;
}

.promo-button {
    background-color: #212529;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.promo-button:hover {
    background-color: #495057;
}


/*Responsive*/
/* Responsive за Header Main */
@media (max-width: 1200px) {
    .header-main {
        width: 100%;
        height: auto;
        padding: 30px 40px;
    }

    .header-main h1 {
        font-size: 48px;
        max-width: 100%;
    }

    .header-main p {
        max-width: 100%;
        font-size: 18px;
        line-height: 28px;
    }

    #gallery-button {
        width: 120px;
        height: 38px;
        font-size: 18px;
    }
}

/* Responsive за Features Section */
@media (max-width: 992px) {
    #features {
        flex-wrap: wrap;
        gap: 20px;
        padding: 50px 20px;
    }

    .feature-box {
        max-width: 100%;
        flex: 1 1 300px;
        padding: 20px;
    }

    .feature-icon {
        font-size: 36px;
    }

    .feature-box h3 {
        font-size: 18px;
    }

    .feature-box p {
        font-size: 14px;
    }
}

/* Responsive за Categories Section */
@media (max-width: 992px) {
    #categories {
        padding: 50px 20px;
    }

    #categories h1 {
        font-size: 36px;
    }

    #categories p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    #categories-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 10px;
    }

    .category-card {
        height: auto;
        flex-direction: column;
    }

    /* При мобилни - показваме само снимката */
    .category-text {
        display: none;
    }

    .category-image {
        width: 100%;
        height: 300px;
    }

    .category-image img {
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
}

/* Responsive за Promo Card */
@media (max-width: 992px) {
    .card-container {
        flex-direction: column;
    }

    .promo-image,
    .promo-text {
        width: 100%;
    }

    .promo-image {
        height: 300px;
    }

    .promo-text {
        padding: 40px 20px;
        align-items: center;
        text-align: center;
    }

    .promo-text h1 {
        font-size: 28px;
    }

    .promo-text p {
        font-size: 16px;
    }

    .promo-button {
        font-size: 16px;
        padding: 10px 25px;
    }
}


