/* =========================================================
   OBRADA DRVETA – Izolovani stilovi
   NE koristi globalne resetove koji gaze navbar/footer
========================================================= */

/* CSS Varijable - ostaju globalne jer se dele */
:root {
    --bg: #27221e;
    --panel: #0b0b0b;
    --text: rgba(255,255,255,.9);
    --muted: rgba(255,255,255,.72);
    --gold: #b08a4a;
    --line: rgba(176, 138, 74, .55);
    --ss-bronze: #ba9663;
}

/* =========================================================
   KRITIČNO: Box-sizing reset SAMO za main-content
   (ne za navbar/footer)
========================================================= */
.main-content,
.main-content *,
.main-content *::before,
.main-content *::after {
    box-sizing: border-box;
}

/* =========================================================
   Body-like stilovi primenjeni na .main-content
========================================================= */
.main-content {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    width: 100%;
}

/* Reset margin/padding SAMO za elemente unutar main-content */
.main-content > * {
    margin: 0;
    padding: 0;
}

/* Tipografija */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.main-content p {
    margin: 0;
}

/* =========================================================
   Section Styling
========================================================= */
.main-content .section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* =========================================================
   Section 1 - Rezanje
========================================================= */
.main-content .section-1 {
    background: var(--bg);
}

.main-content .section-1 .content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.main-content .section-1 .text-content {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-content .section-1 h1 {
    font-size: 3.5rem;
    color: var(--text);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.main-content .section-1 h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 120px;
    height: 4px;
    background: var(--gold);
}

.main-content .section-1 .subtitle {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.main-content .section-1 p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.main-content .section-1 .image-area {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-content .image-box {
    width: 100%;
    height: 550px;
    background: linear-gradient(135deg, var(--panel) 0%, var(--bg) 100%);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* .main-content .image-box::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 3px solid var(--gold);
    border-radius: 4px;
    z-index: 1;
} */

.main-content .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-content .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 3rem;
    font-family: 'Libre Baskerville', serif;
}

/* =========================================================
   Section 2 - Obrada i Sklapanje
========================================================= */
.main-content .section-2 {
    background: var(--muted);
    color: var(--bg);
}

.main-content .section-2 .content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.main-content .section-2 .text-content {
    order: 2;
    animation: fadeInRight 1s ease-out;
}

.main-content .section-2 .image-area {
    order: 1;
    animation: fadeInLeft 1s ease-out;
}

.main-content .section-2 h2 {
    font-size: 3rem;
    color: var(--bg);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.main-content .section-2 h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--gold);
}

.main-content .section-2 .subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.main-content .section-2 p {
    font-size: 1.05rem;
    color: var(--bg);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    opacity: 0.85;
}

.main-content .process-steps {
    margin-top: 3rem;
}

.main-content .step {
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

.main-content .step::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bg);
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.7;
}

.main-content .step h4 {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.main-content .step p {
    font-size: 1rem;
    color: var(--bg);
    opacity: 0.8;
}

/* =========================================================
   Section 3 - Završna Obrada
========================================================= */
.main-content .section-3 {
    background: var(--bg);
}

.main-content .section-3 .content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.main-content .section-3 .text-content {
    animation: fadeInLeft 1s ease-out;
}

.main-content .section-3 .image-area {
    animation: fadeInRight 1s ease-out;
}

.main-content .section-3 h2 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.main-content .section-3 h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--gold);
}

.main-content .section-3 .subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.main-content .section-3 p {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.main-content .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.main-content .feature {
    padding: 2rem;
    background: var(--panel);
    border-radius: 4px;
    border-left: 4px solid var(--gold);
    transition: all 0.3s ease;
}

.main-content .feature:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.main-content .feature h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.main-content .feature p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
}

/* =========================================================
   Decorative Elements
========================================================= */
.main-content .section-1::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(176, 138, 74, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.main-content .section-3::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(176, 138, 74, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* =========================================================
   Scroll Reveal Animation - REMOVED
   Elementi su normalno vidljivi bez animacija
========================================================= */
/* Obrisan - više nije potreban */

/* =========================================================
   Responsive Design
========================================================= */
@media (max-width: 1024px) {
    .main-content .section-1 .content-wrapper,
    .main-content .section-2 .content-wrapper,
    .main-content .section-3 .content-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 6rem 5%;
    }

    .main-content .section-2 .text-content,
    .main-content .section-2 .image-area {
        order: initial;
    }

    .main-content .section-1 h1,
    .main-content .section-2 h2,
    .main-content .section-3 h2 {
        font-size: 2.5rem;
    }

    .main-content .image-box {
        height: 450px;
    }

    .main-content .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main-content .section {
        min-height: auto;
    }

    .main-content .section-1 .content-wrapper,
    .main-content .section-2 .content-wrapper,
    .main-content .section-3 .content-wrapper {
        padding: 4rem 5%;
    }

    .main-content .section-1 h1,
    .main-content .section-2 h2,
    .main-content .section-3 h2 {
        font-size: 2rem;
    }

    .main-content .section-1 .subtitle,
    .main-content .section-2 .subtitle,
    .main-content .section-3 .subtitle {
        font-size: 1.1rem;
    }

    .main-content .section-1 p,
    .main-content .section-2 p,
    .main-content .section-3 p {
        font-size: 1rem;
    }

    .main-content .image-box {
        height: 350px;
    }
}
