/* Variables */
:root {
    --bg-main: #f4f4f4;
    /* Slightly off-white for paper feel */
    --bg-dark: #000000;
    --text-main: #111111;
    --text-light: #ffffff;
    --accent: #333333;
    --font-heading: 'Playfair Display', serif;
    /* Elegant, architectural */
    --font-body: 'Montserrat', sans-serif;
    /* Clean, modern */
    --container: 1400px;
    /* Wide layout */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 400;
    text-transform: lowercase;
    /* Stylistic choice from screenshot */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
    filter: grayscale(100%);
    /* Force B&W */
    transition: filter 0.5s;
}

img:hover {
    filter: grayscale(0%);
    /* Slight color reveal on hover if needed */
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 150px 0;
    border-bottom: 1px solid #ddd;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--text-main);
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn:hover {
    background: var(--text-main);
    color: var(--text-light);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    background: var(--bg-main);
    padding: 30px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

header.scrolled {
    border-bottom: 1px solid #ddd;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Logo Center */
    align-items: center;
}

.logo {
    text-align: center;
}

.logo img {
    height: 60px;
    margin: 0 auto;
    filter: none;
    /* Logo might need to stay original or force bw */
}

nav {
    display: flex;
    justify-content: flex-end;
    /* Right side usually, or distributed */
    gap: 40px;
}

/* Specific Layout from Screenshot: Nav Links spread out? 
   Actually screen shows: "projects   o nas   contacts" centered above the building.
   Let's try that centered look.
*/
.nav-center {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* Large serif */
    color: var(--text-main);
    border-bottom: 1px solid transparent;
}

.nav-link:hover {
    border-bottom: 1px solid var(--text-main);
}

.lang-toggle {
    justify-self: end;
    background: none;
    border: 1px solid #ccc;
    padding: 5px 15px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
}

/* Hero */
.hero {
    height: 100vh;
    padding-top: 180px;
    /* Space for header */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    /* New Abstract Architecture Image */
    background: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    filter: grayscale(100%) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    /* White box for text readability? Or text over building? */
    /* Screenshot shows text ABOVE building image comfortably */
    background: transparent;
    width: 100%;
}

.hero-title {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* About (Minimal block) */
.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-text {
    font-size: 1.2rem;
    text-align: justify;
}

.big-letter {
    font-size: 4rem;
    float: left;
    margin-right: 15px;
    line-height: 0.8;
    font-family: var(--font-heading);
}

/* Projects/Services Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #e0e0e0;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.project-item:hover .project-img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.project-item:hover .project-info {
    opacity: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

/* Contact */
.contact-section {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 100px 0;
}

.contact-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info h2 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 40px;
}

.contact-detail {
    margin-bottom: 30px;
}

.contact-detail span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 5px;
}

.contact-detail p {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 60px;
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
}

/* Forms */
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    padding: 15px 0;
    color: white;
    font-family: var(--font-body);
    margin-bottom: 30px;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: white;
}

.contact-form button {
    border-color: white;
    color: white;
}

.contact-form button:hover {
    background: white;
    color: black;
}

/* Responsive */
@media (max-width: 900px) {
    .header-inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .nav-center {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .about-block,
    .contact-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 50px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }
}