/* --- MAIN STYLES --- */
:root {
    --text-color: #222;
    --bg-color: #fff;
    --accent: #D4AF37;
    /* Gold */
    --dark-bg: #111111;
    --gray-light: #f9f9f9;
}

body {
    font-family: 'Uni Sans', 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-weight: 400;
    line-height: 1.6;
    padding-top: 80px;
}

h1,
h2,
h3,
h4,
h5 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #111;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 25px;
}

/* --- NAV --- */
.navbar {
    background-color: var(--dark-bg) !important;
    padding: 0;
    border-bottom: 1px solid #222;
    min-height: 80px;
    transition: all 0.3s;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff !important;
    margin: 0 15px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.logo-mobile {
    max-height: 40px;
}

.logo-desktop {
    max-height: 55px;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
    margin-right: 15px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--dark-bg);
        padding: 20px 0;
        text-align: center;
    }

    .nav-link {
        justify-content: center;
        padding: 15px 0;
    }
}

@media (min-width: 992px) {
    .navbar .container {
        height: 80px;
    }

    .navbar-collapse,
    .navbar-nav,
    .nav-item {
        height: 100%;
    }
}

/* --- HERO --- */
.commercial-hero {
    min-height: 60vh;
    background-image: url('../css/img/ads/moonlight.jpg');
    /* Fixed path */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -1px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-title {
    color: white;
    text-align: center;
    z-index: 2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-title h1 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hero-title p {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #eee;
}

@media (min-width: 992px) {
    .hero-title h1 {
        color: white;
        font-size: 3.5rem;
        margin-bottom: 10px;
    }

    .hero-title p {
        font-size: 1.2rem;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #eee;
    }
}

/* --- SERVICES GRID --- */
.service-card {
    padding: 40px 30px;
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
    height: 100%;
    border-bottom: 3px solid transparent;
    border-radius: 4px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    color: var(--accent);
}

.service-card h5 {
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* --- FILTERS --- */
.portfolio-filters {
    margin-bottom: 40px;
    text-align: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #555;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 0;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}



/* --- PORTFOLIO ITEM STYLES (ALWAYS VISIBLE TITLE + HOVER DESC) --- */
.portfolio-item {
    max-width: fit-content;
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 0;
    aspect-ratio: 3/2;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Постоянно видим градиент в долната част, за да се чете заглавието */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 1;
    /* ВИНАГИ ВИДИМО */
    transition: background 0.3s ease;
}

/* Заглавието и подзаглавието са винаги видими */
.portfolio-info {
    transform: translateY(0);
    text-align: left;
}

.portfolio-title {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 8px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.9);
}

.portfolio-subtitle {
    color: var(--accent);
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

@media (min-width: 992px) {
    .portfolio-title {
        color: white;
        font-size: 1.4rem;
        margin-bottom: 5px;
        font-weight: 700;
        letter-spacing: 1px;
        text-shadow: 0 1px 8px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.9);
    }

    .portfolio-subtitle {
        color: var(--accent);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
        display: block;
        margin-bottom: 5px;
    }
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* Wrapper — grid trick: 0fr → 1fr анимира реалната височина без freeze */
.portfolio-desc-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.portfolio-item:hover .portfolio-desc-wrapper {
    grid-template-rows: 1fr;
    margin-top: 8px;
}

/* Описанието — overflow:hidden е нужно за grid trick-а */
.portfolio-desc {
    overflow: hidden;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,0.9);
}

/* --- HOVER EFFECTS --- */

/* 1. Снимката се приближава */
.portfolio-item:hover .portfolio-img {
    /* transform: scale(1.1); */
}

/* 2. Overlay изчезва при hover — снимката се вижда чисто */
.portfolio-item:hover .portfolio-overlay {
    background: transparent;
}

/* 3. Overlay потъмнява при hover */


/* --- CONTACT FORM --- */
.contact-box {
    background: #fff;
    padding: 50px 5px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--accent);
}

@media (min-width: 992px) {
    .contact-box {
        padding: 50px;
    }
}

.btn-submit {
    background: #111;
    color: white;
    padding: 14px 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: 0.3s;
    font-weight: 600;
}

.btn-submit:hover {
    background: var(--accent);
    color: white;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #aaa;
    padding-top: 60px;
    font-size: 0.9rem;
    overflow: hidden;
}

footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
}

footer ul {
    padding: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

footer ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
}

.social-link {
    font-size: 1.2rem;
    margin-right: 15px;
    color: #fff;
    transition: 0.3s;
}

.social-link:hover {
    color: var(--accent);
}
