/* KIDON Main Styles */
:root {
    --gold: #916f45; 
    --gold-light: #c5a47e;
    --dark: #212121;
    --darker: #1a1a1a;
    --white: #ffffff;
    --gray-bg: #f4f4f4;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--dark); 
    line-height: 1.6; 
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background-color: var(--white);
}

/* --- BACKGROUND TRIANGLE ANIMATIONS --- */
.bg-shapes {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.3;
}

.shape {
    position: absolute;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float 20s infinite linear;
}

.shape.gold { background: var(--gold-light); }
.shape.dark { background: var(--dark); }
.shape.gold-dark { background: var(--gold); }

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* --- NAVIGATION --- */
nav {
    position: fixed !important; 
    width: 100% !important; 
    top: 0 !important;
    left: 0 !important;
    padding: 20px 5%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000 !important; 
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
nav.scrolled { 
    padding: 10px 5%; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}
.logo { 
    display: block;
    min-width: 150px;
}
.logo img { 
    height: 70px; 
    transition: var(--transition); 
}
nav.scrolled .logo img { 
    height: 50px; 
}

.nav-links { 
    display: flex; 
    gap: 20px; 
    align-items: center;
    justify-content: flex-end;
}
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

.nav-links a:not(.contact-btn) {
    min-width: 100px;
}

.nav-links a.contact-btn {
    background: var(--gold);
    color: white;
    padding: 10px 25px;
    border-radius: 2px;
    transition: var(--transition);
    min-width: 120px;
}

.nav-links a:hover:not(.contact-btn) {
    color: var(--gold);
}

.nav-links a.contact-btn:hover {
    background: #7a5d3a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(145, 111, 69, 0.3);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--darker);
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; right: 0; width: 50%; height: 100%;
    background: url('images/index-1.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 span { color: var(--gold-light); }

.btn-modern {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: var(--transition);
    border: none;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: rgba(255,255,255,0.2);
    transition: 0.5s;
}

.btn-modern:hover::before { left: 100%; }

/* --- SECTION KIM JESTEŚMY --- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    padding-top: 0;
}

.about-left {
    padding: 100px 10%;
    position: relative;
}

.about-left::after {
    content: '?';
    position: absolute;
    top: 20px; left: 20px;
    font-size: 25rem;
    font-weight: 900;
    color: var(--gold-light);
    opacity: 0.1;
    z-index: 0;
}

.about-right {
    background: var(--dark);
    position: relative;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    min-height: 600px;
}

.about-img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.timeline-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    transition: var(--transition);
}

.timeline-box:hover { transform: translateX(15px); }

.timeline-icon-wrap {
    width: 80px; height: 80px;
    min-width: 80px;
    border: 2px solid var(--dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    position: relative;
    flex-shrink: 0;
}

.timeline-icon-wrap::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* --- MODERN SERVICES GRID --- */
.services {
    padding: 150px 10% 100px;
    background: var(--gray-bg);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 50px 40px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid #eee;
    color: var(--dark);
}

.service-card:hover {
    background: var(--dark);
    color: white !important;
    transform: translateY(-10px);
}

.service-card h3,
.service-card p {
    transition: var(--transition);
}

.service-card:hover h3,
.service-card:hover p {
    color: white !important;
}

.service-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    transition: var(--transition);
    display: block;
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.service-card:hover i {
    color: var(--gold-light);
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 100px; height: 100px;
    background: var(--gold-light);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover::before {
    width: 150px; height: 150px;
    bottom: 0; right: 0;
}

.service-card h3,
.service-card p,
.service-card i {
    position: relative;
    z-index: 1;
}

/* --- CAROUSEL SECTION --- */
.carousel-section { 
    padding: 80px 5%; 
    background: var(--light-bg); 
    position: relative; 
    overflow: hidden; 
    margin-top: 0; 
}

.carousel-container {
    max-width: 1400px; 
    margin: 0 auto; 
    overflow: hidden; 
    position: relative;
}

.carousel-track {
    display: flex; 
    gap: 20px; 
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: calc(33.333% - 14px);
    background: white; 
    padding: 30px; 
    border-left: 4px solid var(--gold);
    display: flex; 
    flex-direction: column; 
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.carousel-number { 
    font-size: 2rem; 
    font-weight: 800; 
    color: #ddd; 
}

/* --- SOCIAL ICONS --- */
.social-icons { 
    display: flex; 
    gap: 15px; 
    margin-top: 20px; 
}

.social-icons a { 
    color: white; 
    font-size: 1.5rem; 
    transition: var(--transition); 
}

.social-icons a:hover { 
    color: var(--gold); 
    transform: translateY(-3px); 
}

/* --- FOOTER --- */
footer {
    background: var(--darker);
    color: white;
    padding: 80px 10% 40px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.logo-footer {
    transition: all 0.4s ease;
    display: inline-block;
}

footer .logo-footer:hover {
    transform: scale(1.15);
    filter: brightness(1) invert(0) drop-shadow(0 0 25px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
}

footer a:hover {
    color: var(--gold-light) !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
}

.footer-contact h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.footer-social h4 {
    margin-top: 0;
    margin-bottom: 0;
}

.footer-contact,
.footer-social {
    display: flex;
    flex-direction: column;
}

/* --- MOBILE NAV --- */
.hamburger { 
    display: none; 
    cursor: pointer; 
    font-size: 1.5rem; 
    color: var(--dark); 
    z-index: 1001; 
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) { 
    .carousel-item { 
        min-width: calc(50% - 10px); 
    } 
}

@media (max-width: 968px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: auto;
        background: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(10px);
        flex-direction: column; 
        justify-content: flex-start;
        padding: 100px 5% 40px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        align-items: center !important;
        gap: 25px !important;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-links.active { 
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav { flex-direction: row; }
    .hero h1 { font-size: 2.5rem; }
    .about-split { grid-template-columns: 1fr; padding-top: 0; }
    .about-right { clip-path: none; margin-top: 50px; }
    
    .services { padding-top: 80px; }
    .carousel-section { padding-top: 60px; }
    
    .hero-content {
        background: rgba(33, 33, 33, 0.4);
        padding: 40px 30px;
        border-radius: 10px;
        backdrop-filter: blur(5px);
        margin: 0 auto;
        text-align: center;
    }
    
    .hero-content .btn-modern {
        display: inline-block;
        margin: 5px;
    }
    
    .hero-overlay { 
        display: block; 
        width: 100%; height: 100%; 
        clip-path: none; 
        opacity: 0.3; 
        background: url('images/index-1.jpg');
        background-size: cover;
        background-position: center;
        position: absolute;
        top: 0; left: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .timeline-icon-wrap {
        margin: 0 auto;
    }

    footer {
        padding: 60px 5% 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        padding-top: 0;
    }

    .social-icons {
        justify-content: center;
    }

    .logo-footer {
        height: 60px !important;
    }
}

@media (max-width: 600px) { 
    .carousel-item { 
        min-width: 100%; 
    } 
}

/* --- TRUSTED COMPANIES SECTION --- */
.trusted-companies-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.trusted-companies-track {
    display: flex;
    gap: 40px;
    animation: scroll-companies 30s linear infinite;
    width: fit-content;
}

.trusted-company {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    padding: 20px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.trusted-company:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--gold);
}

@keyframes scroll-companies {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.trusted-companies-track:hover {
    animation-play-state: paused;
}
