/* Project Card Styles for Gallery */
.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-family: var(--font-family);
    height: 300px;
}

.project-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-card-background {
    width: 100%;
    height: 100%;
    background-size: 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    transition: background-size 0.3s ease;
}

.project-card:hover .project-card-background {
    background-size: 110% !important;
}

.project-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    font-weight: 300;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: white;
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-image.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 60px;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 0 40px;
        max-width: 90%;
    }
    
    .hero-title {
        font-size: 2.15rem;
        text-align: left;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding-left: 0;
    }
    
    .hero-testimonial,
    .more-testimonials {
        display: none !important;
    }
    
    .about-stats {
        position: static !important;
        margin-top: 2rem;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .hero-text {
        width: 100%;
        text-align: left;
    }
    
    .about-image {
        height: 250px !important;
    }
    
    .process .container {
        max-width: 90% !important;
    }
    
    .hero-subtitle-content {
        margin-bottom: 50px;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
}

.hero-text {
    flex: 1;
    max-width: 700px;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 300;
    line-height: var(--line-height-tight);
    margin-bottom: 20px;
    max-width: 650px;
}

/* Hero Subtitle - Static */
.hero-subtitle-content {
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    margin: 0;
    opacity: 0.9;
    line-height: var(--line-height-relaxed);
}


.hero-actions {
    display: flex;
    gap: 20px;
}

.cta-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 0;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.cta-btn.primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid transparent;
}

.cta-btn.primary:hover {
    background: rgba(200, 101, 43, 0.9);
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: #333;
}

.hero-right {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    align-self: flex-start;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 300;
    line-height: 1;
}

.stat-plus {
    color: white;
}

.stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-testimonial {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    min-height: 130px;
    display: flex;
    align-items: stretch;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-slide.active {
    display: flex;
    opacity: 1;
}

.hero-testimonial blockquote {
    font-style: italic;
    margin-bottom: 20px;
    line-height: var(--line-height-normal);
    color: white;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    color: white;
    font-weight: 300;
    font-size: 1rem;
    text-transform: uppercase;
}

.hero-testimonial .author-name {
    font-weight: 300;
    color: white;
}

.author-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    color: #999999;
}

.rating-score {
    font-size: 0.9rem;
    opacity: 0.8;
}

.more-testimonials {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    align-self: flex-start;
}

.more-testimonials:hover {
    opacity: 1;
}

/* Home Products Section */
.home-products {
    padding: 80px 0;
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
}

.product-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-box * {
    cursor: pointer;
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
}

.product-box:hover .product-content {
    color: white;
}

.product-box:hover .product-title {
    color: white;
}

.product-box:hover .product-description {
    color: white;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-box:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    position: relative;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #333;
    cursor: pointer;
}

.product-title {
    font-size: var(--font-size-lg);
    font-weight: 300;
    margin: 0 0 8px 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.product-description {
    font-size: var(--font-size-sm);
    color: #555;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.product-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: var(--font-size-sm);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.product-link:hover {
    background: rgba(200, 101, 43, 0.9);
    transform: translateY(-2px);
}

/* Responsive Design for Products Grid */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .product-box {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-box {
        min-height: auto;
    }
    
    .product-title {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 600px) {
    .home-products {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }
    .stat-label {
        font-size: var(--font-size-xs);
        opacity: 0.8;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .product-box {
        min-height: auto;
    }
}

/* Extra small mobile phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.12rem;
        width: 100%;
        max-width: 100%;
        text-align: left;
        margin-left: 0;
        padding-left: 0;
    }

    .stat-number {
        font-size: var(--font-size-xl);
        font-weight: 300;
        line-height: 1;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-content {
        padding: 12px;
    }
}

/* About Section */
.about {
    position: relative;
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-background {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    background-image: url('../sources/referencie/Hlohovec-most/9.webp');
    background-size: 120%;
    background-position: center;
    background-attachment: scroll;
    z-index: -2;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    color: white;
    z-index: 1;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-header {
    display: flex;
    flex-direction: column;
}

.about-accent-line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    display: block;
    margin-bottom: 15px;
}

/* About section specific - align accent line to left */
.about .about-accent-line {
    margin-left: 0;
    margin-right: auto;
}

.about-title {
    font-size: var(--font-size-3xl);
    font-weight: 300;
    color: white;
    line-height: var(--line-height-tight);
    margin: 0;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-description p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin: 0;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #333;
    color: #333;
    padding: 15px 30px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
}

.about-btn:hover {
    background: #333;
    color: white;
}

.about-btn svg {
    transition: transform 0.3s ease;
}

.about-btn:hover svg {
    transform: translate(5px, -5px);
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-services p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin: 0;
}

.about-services h3 {
    font-size: var(--font-size-xl);
    font-weight: 300;
    color: white;
    margin: 20px 0 10px 0;
}

.about-cta {
    margin-top: 20px;
}

.about-cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-size: var(--font-size-sm);
    border-radius: 6px;
}

.about-cta-btn:hover {
    background: rgba(200, 101, 43, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 101, 43, 0.3);
}

.cech-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    padding: 20px;
    background: rgba(245, 130, 30, 0.05);
    border-radius: 8px;
    border-left: 4px solid #666666;
}

.cech-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.cech-text {
    flex: 1;
    line-height: var(--line-height-relaxed);
}

/* Gallery Section */
.gallery {
    padding: 80px 0 100px;
    background: #fff;
    overflow: hidden;
}

.gallery .section-title {
    font-size: var(--font-size-3xl);
    font-weight: 300;
    text-align: left;
    margin-bottom: 50px;
    color: #000;
    padding: 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 300;
    text-align: left;
    margin-bottom: 20px;
    color: #000;
}

.gallery-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;

    margin-left: auto;
    margin-right: auto;
}

.gallery .container {
    max-width: none;
    width: 95%;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image-container:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s ease;
}

.gallery-image-container:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    left: 5%;
    bottom: 5%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 13px;
    border-radius: 0;
    max-width: 80%;
}

.gallery-overlay h3 {
    font-size: 14px;
    font-weight: 300;
    color: white;
    margin: 0;
    line-height: 1.0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gallery All Projects Button */
.gallery-all-projects {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: url('../sources/slider1.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.gallery-all-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    transition: background 0.4s ease;
    z-index: 1;
}

.gallery-all-projects:hover::before {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 2;
}

.gallery-all-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.gallery-all-content h3 {
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.gallery-all-icon {
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.gallery-all-projects:hover .gallery-all-icon {
    transform: translateX(5px);
}

