/* ===============================
   GLOBAL STYLE
================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #F4EDE4;
    color: #2B2B2B;
    line-height: 1.6;
}

/* ===============================
   HEADER / NAVIGATION
================================*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #8B3A3A;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

nav a {
    color: white;
    margin-left: 30px;
    text-decoration: none;
    font-size: 17px;
    transition: 0.3s ease;
}

nav a:hover {
    opacity: 0.7;
}

/* ===============================
   HERO SECTION
================================*/
.hero {
    height: 50vh;
    width: 100%;
    background: url('../img/hero.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-text {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-text h1 {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 25px;
}

.btn {
    background: #8B3A3A;
    padding: 12px 28px;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn:hover {
    background: #732f2f;
}

/* ===============================
   PROJECT CARDS
================================*/
.projects {
    padding: 60px 50px;
}

.projects h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background: white;
    height: 220px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    background-size: cover;      /* Scales image to fill the card completely */
    background-position: center; /* Centers the image (instead of showing top-left corner) */
    background-repeat: no-repeat; /* Prevents tiling */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ===============================
   FOOTER
================================*/
footer {
    background: #333;
    color: white;
    padding: 50px 60px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* ===============================
   KONTAKT SIDE
================================*/


form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: #8B3A3A;
}

.contact-info {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 30px;
}

/* ===============================
   RESPONSIVE DESIGN
================================*/
@media(max-width: 900px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px) {
    .hero-text h1 {
        font-size: 32px;
    }
}
.offer-form-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.offer-form .form-group {
    margin-bottom: 16px;
}

.offer-form input,
.offer-form textarea,
.offer-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 16px;
}

.offer-form textarea {
    height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

.submit-btn:hover {
    background: #555;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.7);
}

.slider-btn.left {
    left: 20px;
}

.slider-btn.right {
    right: 20px;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
