@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/*Navbar*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: relative;
    background-color: #0d1e3a;
}

/* Create the border with padding that matches the navbar */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background-color: #FFFFFF;
}

.logo {
    font-weight: 500;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 40px;
    position: relative;
    padding-top: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 8.42px;
    letter-spacing: 0%;
    padding-bottom: 20px;
    position: relative;
}

.nav-links a.active {
    font-weight: 700;
}

.nav-links a.active::after {
    background-color: #1D3638;
    height: 1px;
}
/* Mobile menu button - hidden by default */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}


/*Hero section*/
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('../assets/projects/header.jpg');
    background-size: 200%;
    background-position: center 40%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    text-align: center;
    padding: 0 20px;
    margin-top: -350px;
}

.project-title {
    font-family: Montserrat;
    font-size: 100px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.project-subtitle {
    font-family: Montserrat;
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 40px;
}

.project-quote {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.project-quote p {
    font-family: Montserrat;
    font-weight: 500;
    font-style: italic;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0px;
    position: relative;
    z-index: 1;
    text-align: left;
}

/* Bottom left quotation mark */
.hero-content img:first-of-type {
    position: absolute;
    left: -50px;
    bottom: 30px;
    z-index: 0;
}

/* Top right quotation mark */
.hero-content img:last-of-type {
    position: absolute;
    right: -20px;
    top: 230px;
    z-index: 0;
}


/* Medju div */
/* Medju div - Responsive Version */
.between-container {
    width: 100%;
    display: flex;
    justify-content: left;
    position: relative;
    margin-top: -50px;
    margin-bottom: 50px;
}

.between-navigation {
    width: 100%; /* Change from fixed width to responsive */
    max-width: 821px; /* Maximum width on larger screens */
    height: auto; /* Change from fixed height to auto */
    min-height: 70px; /* Minimum height on smaller screens */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 15px 20px; /* Slightly reduced padding for small screens */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
    gap: 15px;
    background: 
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to bottom, #1D3638, #EE5830) border-box;
    border: 2px solid transparent;
}

.between-navigation h2 {
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    margin: 0;
}

/* O projektu */
.container {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap; /* helps with responsiveness */
    margin-bottom: 2%;
    padding: 60px 60px;
    gap: 60px;
    align-items: flex-start;
    justify-content: space-between;

    /* ✅ Background image fix */
    background-image: url('../assets/projects/Zgrada.png');
    background-size: cover; /* scale image to cover area */
    background-position: center; /* center it */
    background-repeat: no-repeat; /* prevent tiling */

    /* optional overlay look */
    background-color: rgba(255, 255, 255, 0.9); /* fallback */
    border-radius: 10px;
    position: relative;
}


.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}



.buildings-image {
    width: 100%;
    max-width: 500px;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gradient-line {
    height: 4px;
    width: 169px;
    background: linear-gradient(90deg, #EE5830 0%, #1D3638 94.96%);
    margin-bottom: 0px;
}

.title {
    font-weight: 700;
    font-size: 50px;
    line-height: 60.95px;
    letter-spacing: -1.26px;
    background: linear-gradient(90deg, #EE5830 0%, #1D3638 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    margin-top: 15px;
}

.description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 36px;
    margin-bottom: 30px;
    letter-spacing: 0px;
    color: #333;
}

.description-span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.btn-more {
    font-family: 'Montserrat', sans-serif;
    align-self: flex-start;
    padding: 12px 30px;
    font-weight: 500;
    font-size: 16px;
    color: #1D3638;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    border: 1px solid;
    border-image: linear-gradient(90deg, #EE5830 0%, #1D3638 94.96%) 1;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: linear-gradient(90deg, #EE5830 0%, #1D3638 100%);
    color: white;
}


/* Mala galerija */
.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 5%;
}

/* Let the carousel size adjust to the image */
.carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    min-height: 400px;
}

/* Image container with fade transition */
.image-container {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-container.active {
    opacity: 1;
    position: relative;
    z-index: 1;
    transform: translateY(0);
}

.gallery-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Navigation Buttons --- */
.nav-button {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;

    /* Gradient border with transparent center */
    background: 
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(to bottom, #0B7078, #EE5830) border-box;
    border: 2px solid transparent;

    /* Slight transparency until hover */
    opacity: 0.7;
}

.nav-button:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* Arrows stay inside the carousel */
.nav-button.prev {
    left: 20px;
}

.nav-button.next {
    right: 20px;
}

/* SVG arrow color */
.nav-button svg {
    width: 22px;
    height: 22px;
    stroke: #EE5830;
}

/* --- Dots --- */
.dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 2px solid #EE5830;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #EE5830;
}

.dot:hover {
    transform: scale(1.2);
}


/*Plan objekta*/

.plan-container {
    /* width: 90%; */
    padding: 40px 20px;
}

.plan-title-wrapper {
    text-align: center;
    margin-bottom: 0;
}

.plan-title {
    font-weight: 700;
    font-size: 50px;
    line-height: 100%;
    letter-spacing: -1.26px;
    display: inline-block; /* This helps with the gradient */
    
    /* Create the gradient text effect */
    background: linear-gradient(90deg, #EE5830 0%, #1D3638 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.plan-gradient-line {
    height: 4px;
    width: 200px;
    margin: 0 auto;
    background: linear-gradient(90deg, #EE5830 0%, #1D3638 100%);
}

.plan-description {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5; /* Approximating the "Headline Medium/Line Height" */
    letter-spacing: 0px;
    text-align: center;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}





/* Footer styles */
footer {
    background: linear-gradient(225.52deg, #0B7078 0.45%, #EE5830 100.47%);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    width: 80%;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 500;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.to-top {
    color: white;
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 40px 0;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column p {
    margin: 8px 0;
    font-size: 14px;
    font-weight: 300;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.social-icons a {
    color: white;
    font-size: 16px;
}

.newsletter {
    margin-top: 20px;
}

.email-form {
    display: flex;
    margin-top: 10px;
}

.email-form input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.email-form button {
    padding: 8px 12px;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    padding-top: 10px;
}


/*Responsive*/
@media screen and (max-width: 1200px) {
    .footer-content {
        width: 90%;
    }
}

@media screen and (max-width: 992px) {

    .navbar {
        padding: 20px 5%;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .navbar::after {
        left: 5%;
        right: 5%;
    }

    .footer-column {
        flex-basis: 50%;
        min-width: unset;
    }

    /* Hero adjustments */
    .project-title {
        font-size: 70px;
    }

    .project-quote p {
        font-size: 20px;
    }
}


@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #0d1e3a;
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 30px;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
    }
    
    /* Transform hamburger to X when menu is open */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Overlay when menu is open */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .overlay.active {
        display: block;
    }
    .contact-form-container {
        flex-direction: column;
    }
    
    .map-side {
        height: 300px;
    }

    .footer-content {
        width: 95%;
    }

    .between-container {
        margin-top: -40px;
    }
    
    .between-navigation {
        padding: 12px 15px;
        max-width: 90%;
    }

    .between-navigation h2 {
        font-size: 18px;
    }

    /*O nama*/
    .container {
        flex-direction: column;
        gap: 30px;
        padding: 40px 30px;
        background-position: bottom right;
        background-size: 120%;
    }
    
    .left-section, .right-section {
        width: 100%;
    }
    
    .title {
        font-size: 40px;
        line-height: 48px;
    }

    /* Mala galerija */
    .carousel {
        min-height: 300px;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
    }

    .nav-button.prev {
        left: 10px;
    }

    .nav-button.next {
        right: 10px;
    }

    .dots-container {
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /*Plan*/
    .plan-container {
        width: auto;
    }

    /*Hero*/
    .hero {
        background-size: cover;
        height: 80vh;
    }
    
    .hero-content {
        margin-top: -150px;
        padding: 0 30px;
    }

    .project-title {
        font-size: 50px;
        margin-bottom: 20px;
    }

    .project-quote {
        max-width: 100%;
        padding: 30px 0;
    }

    .project-quote p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Adjust quote marks for mobile */
    .hero-content img:first-of-type {
        width: 30px;
        left: 10px;
        bottom: 10px;
    }

    .hero-content img:last-of-type {
        width: 30px;
        right: 30px;
        top: 90px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    /*footer*/
    
    .footer-main {
        margin: 20px 0;
    }
    
    .footer-column {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 576px) {

    .between-container {
        margin-top: -30px;
        margin-bottom: 30px;
    }
    
    .between-navigation {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        height: auto;
        padding: 15px;
        gap: 10px;
        max-width: 95%;
    }

    .between-navigation img {
        flex-shrink: 0;
    }
    
    .between-navigation h2 {
        font-size: 16px;
        flex: 1 1 100%;
    }

    /* Container mobile background */
    .container {
        padding: 30px 20px;
        background-position: bottom right;
        background-size: contain;
        min-height: auto;
    }

    /* Hero for very small screens */
    .project-title {
        font-size: 36px;
    }

    .project-quote p {
        font-size: 14px;
    }

    /* Gallery carousel */
    .carousel {
        min-height: 250px;
    }

    footer {
        padding: 30px 0 15px;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .email-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .email-form button {
        align-self: flex-start;
    }
    
    .footer-column {
        margin-bottom: 25px;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 15px 5%;
    }
    
    .logo img {
        max-width: 120px;
    }
    
    .nav-links {
        width: 220px;
    }

    /* Even smaller hero title */
    .project-title {
        font-size: 28px;
    }

    .project-quote p {
        font-size: 13px;
    }

    .hero-content img:first-of-type,
    .hero-content img:last-of-type {
        width: 25px;
    }
}