/* ========================================
   DITEX GROUP LANDING PAGE
   Matching screenshot design
   ======================================== */

:root {
    --color-dark: #393e42;
    --color-dark-header: #4a4e52;
    --color-orange: #F37021;
    --color-green: #2E7D32;
    --color-white: #ffffff;
    --font-main: "Rajdhani", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    overflow-x: hidden;
    background: var(--color-dark);
    min-height: 100vh;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: var(--color-dark-header);
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-image {
    width: 210px;
    height: 65px;
}


@media (max-width: 768px) {
    .brand-logo-image {
        width: 165px;
        height: 45px;
    }

    .brand-logo-image-group {
    width: 135px;
    
}
}

.logo-icon {
    width: 40px;
    height: 32px;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-ditex {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
}

.logo-group {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-orange);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-orange);
    letter-spacing: 4px;
    margin-top: -2px;
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
.main-container {
    display: flex;
    min-height: calc(100vh - 80px);
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.6s ease;
    z-index: 1;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(80, 80, 80, 0.4);
    z-index: 2;
    transition: background 0.4s ease;
}

.section:hover .section-bg {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.section-content {
    position: relative;
    z-index: 3;
    padding: 40px 50px;
    flex: 1;
}

@media (max-width: 768px) {
    .section-content {
        padding: 30px 25px;
    }
}

/* ========================================
   TECHNOLOGY SECTION
   ======================================== */
.section-technology {
    clip-path: polygon(0 0, 82% 0%, 97% 100%, 0% 100%);
    margin-right: -2%;
    z-index: 2;
    cursor: pointer;
}

.section-technology .section-bg {
    background-image: url('../../../img/front-page/ditex-technology.jpg');
    /* Zastąp własnym zdjęciem napędu Roger */
}

.section-technology:hover .section-overlay {
    background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .section-technology {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        /* clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%); */
        margin-right: 0;
        margin-bottom: -2%;
        min-height: 50vh;
    }
}

/* ========================================
   INDUSTRY SECTION
   ======================================== */
.section-industry {
    clip-path: polygon(3% 0, 100% 0, 100% 100%, 18% 100%);
    margin-left: -8%;
    z-index: 1;
    cursor: pointer;
}

.section-industry .section-bg {
    background-image: url('../../../img/front-page/ditex-industry-new.webp');
    /* Zastąp własnym zdjęciem bramy przemysłowej */
}

.section-industry .section-overlay {
    background: rgba(200, 200, 200, 0.3);
}

.section-industry:hover .section-overlay {
    background: rgba(255, 255, 255, 0.2);
}

.section-industry .section-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .section-industry {
        clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
        margin-left: 0;
        margin-top: -2%;
        min-height: 50vh;
    }
    
    .section-industry .section-content {
        align-items: flex-start;
    }
}

.categories-dark{
    text-align: right !important;
}

/* ========================================
   DIAGONAL DIVIDER
   ======================================== */
.diagonal-divider {
    display: none; /* Ukryty bo używamy clip-path na sekcjach */
}

/* ========================================
   BRAND LOGOS
   ======================================== */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.brand-logo-right {
    flex-direction: row-reverse;
}

.brand-icon {
    width: 45px;
    height: 36px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 3px;
    line-height: 1;
}

.brand-sub {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-top: 2px;
}

.technology-sub {
    color: var(--color-orange);
}

.industry-sub {
    color: var(--color-green);
    text-align: right;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    margin: 0;
}

.section-title-technology{
    text-shadow: 3px -3px 1px #000;
}

.section-title-industry{
    color: #393e42;
    text-shadow: 3px -3px 1px #fff;
}

.text-right {
    text-align: right;
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .text-right {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   CATEGORIES BAR
   ======================================== */
.categories-bar {
    position: absolute;
    bottom: 60px;
    padding: 15px 35px;
    z-index: 4;
    width: 100%;
    /* display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; */
    gap: 0;
}

/* .categories-bar.categories-orange{
    padding: 30px 35px;
} */

.section-technology .categories-bar {
    left: 40px;
    right: auto;
}

.section-industry .categories-bar {
    right: 40px;
    left: auto;
}

.categories-orange {
    background-color: var(--color-orange);
}

.categories-dark {
    background-color: #004200;
    flex-direction: column;
    gap: 3px;
}

@media (min-width: 993px) {
    .categories-orange {
        clip-path: polygon(0 0, 96% 0, 100% 100%, 0% 100%)
    }
    .categories-dark {
        clip-path: polygon(4% 0, 100% 0, 100% 100%, 0% 100%);

    }
}

.categories-line {
    /* display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center; */
}

.category-item {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-white) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}



.category-separator {
    color: var(--color-white) !important;
    margin: 0 8px;
    font-weight: 400;
}

@media (max-width: 992px) {
    .categories-bar {
        padding: 10px 15px;
    }
    
    .category-item {
        font-size: 12px;
    }
    
    .category-separator {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .categories-bar {
        flex-direction: row;
        align-items: center;
        gap: 0;
        bottom: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-technology .categories-bar,
    .section-industry .categories-bar {
        left: 0;
        right: 0;
    }
    
    .categories-line {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .category-separator {
        display: inline;
    }
    
    .category-item {
        padding: 0;
    }
}

/* ========================================
   HOVER EFFECTS & ANIMATIONS
   ======================================== */
.section {
    transition: all 0.4s ease;
}

.brand-logo {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.section-industry .brand-logo {
    animation-delay: 0.3s;
}

.section-industry .section-title {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CONTAINER BACKGROUND CHANGE ON HOVER
   ======================================== */
.main-container {
    background: var(--color-dark);
    transition: background 0.4s ease;
}

.main-container:has(.section-technology:hover) {
    background: var(--color-orange);
}

.main-container:has(.section-industry:hover) {
    background: #1a472a;
}
