/* --- style.css --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Standard pointer for clickable elements */
.project-img-wrapper, .project-collection, button, a { cursor: pointer; }

body { font-family: 'Montserrat', sans-serif; background-color: #050505; color: #ffffff; line-height: 1.6; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; opacity: 0; transition: opacity 0.2s ease-in-out; }
body.loaded { opacity: 1; }
a { text-decoration: none; color: white; transition: 0.3s; }

#bgCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%); }

/* --- NAVIGATION & LANG SWITCHER --- */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-logo { display: flex; align-items: center; z-index: 1001; }
.nav-full-img { height: 80px; width: auto; display: block; margin: 0; mix-blend-mode: screen; }
.hamburger { display: none; font-size: 1.5rem; color: white; cursor: pointer; z-index: 1001; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a { padding: 5px 10px; }
.nav-links a:hover { color: #ccc; }
.btn-contact-nav { padding: 5px 10px; border: none; background: none; color: white; font-family: inherit; font-size: 1rem; cursor: pointer; }

.lang-switch { display: inline-flex; gap: 10px; align-items: center; margin-left: 15px; font-weight: 700; font-size: 0.95rem; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; color: #777; padding: 0 !important; text-decoration: none; transition: 0.3s; }
.lang-switch a .lang-text { border-bottom: 2px solid transparent; padding-bottom: 2px; }
.lang-switch a.active { color: #fff; }
.lang-switch a.active .lang-text { border-bottom-color: #fff; }
.lang-switch a:hover { color: #fff; }
.lang-divider { color: #444; pointer-events: none; }
.lang-flag { width: 22px; height: 15px; border-radius: 2px; display: block; box-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* --- FULL WIDTH CENTERED HERO CAROUSEL --- */
.hero { position: relative; width: 100%; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 5%; overflow: hidden; margin-top: -121px; padding-top: 121px; }
.hero-bg-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 1.5s ease-in-out, transform 8s ease-out; z-index: 0; pointer-events: none; }
.hero-bg-slide.active { opacity: 1; transform: scale(1); z-index: 1; }

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%); z-index: 3; }
.hero-corner { position: absolute; font-family: 'Courier New', monospace; font-size: 0.75rem; color: #aaa; letter-spacing: 2px; text-transform: uppercase; pointer-events: none; z-index: 4;}
.corner-tl { top: 160px; left: 5%; border-top: 1px solid #aaa; padding-top: 5px; width: 150px; text-align: left; }
.corner-tr { top: 160px; right: 5%; border-top: 1px solid #aaa; padding-top: 5px; width: 220px; text-align: right; }

.hero-content { position: relative; z-index: 4; max-width: 900px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title { font-size: clamp(3rem, 6vw, 6rem); font-weight: 300; line-height: 1.05; text-transform: uppercase; letter-spacing: -2px; margin-bottom: 30px; color: #fff; text-align: center;}
.hero-title strong { font-weight: 900; }
.hero-divider { width: 80px; height: 4px; background: #fff; margin: 0 auto 30px auto; }
.hero-subtitle { font-size: 1.1rem; color: #ddd; max-width: 600px; line-height: 1.8; margin: 0 auto 50px auto; text-align: center;}

.scroll-indicator { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; max-width: 500px; color: #fff; font-weight: 300; letter-spacing: 1px; font-size: 0.9rem; pointer-events: none; margin: 0 auto; }
.scroll-line { flex-grow: 1; height: 1px; background-color: #fff; opacity: 0.5;}
.mouse-icon { font-size: 1.2rem; animation: bounceDown 2s infinite; }
@keyframes bounceDown { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-5px);} 60% {transform: translateY(-3px);} }
.hero-carousel-indicators { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 15px; align-items: center; }
.hero-indicator { width: 30px; height: 3px; background: rgba(255,255,255,0.3); transition: 0.3s; cursor: pointer; }
.hero-indicator:hover { background: rgba(255,255,255,0.6); }
.hero-indicator.active { width: 60px; background: #fff; }

/* --- CONTENT SECTIONS --- */
.content-section { padding: 80px 5%; background-color: rgba(10, 10, 10, 0.95); border-top: 1px solid #222; }
.section-header { text-align: center; margin-bottom: 30px; }
.section-title-huge { font-size: clamp(3rem, 5vw, 4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -1px; margin-bottom: 0; color: #fff; text-align: center; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: #111; padding: 30px 20px; border-radius: 8px; border: 1px solid #222; transition: transform 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; align-items: flex-start; height: 100%; cursor: pointer;}
.service-card:hover { transform: translateY(-5px); border-color: #fff; }
.icon-box { font-size: 2.5rem; color: #fff; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 12px; font-size: 1.05rem; color: white; font-weight: 700; text-transform: uppercase; line-height: 1.3;}
.service-card p { color: #ccc; font-size: 0.85rem; line-height: 1.6; text-align: justify; hyphens: auto; width: 100%; }

/* --- PORTFOLIO HOME --- */
.ai-layout { display: flex; gap: 50px; align-items: stretch; margin-bottom: 60px; }
.ai-text { flex: 1; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; }
.project-collection { flex: 2.2; position: relative; aspect-ratio: 16/9; transition: transform 0.3s; display: block; border-radius: 4px; overflow: hidden; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.5); } 
.ai-title-big { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 0; color: #fff; text-transform: uppercase; letter-spacing: -1px; }
.home-portfolio-desc { font-size: 0.95rem; color: #ccc; line-height: 1.8; margin-top: 20px; text-align: justify; }

/* Wrapper for Bottom Links (Stacked Vertically) */
.project-links-wrapper { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; margin-top: auto; }

/* Links aligned to bottom (Added cursor: pointer for the hand icon!) */
.view-all-link, .view-gallery-link { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; border-bottom: 1px solid transparent; transition: 0.3s; padding-bottom: 2px; width: fit-content; line-height: 1; margin-top: auto; transform: translateY(4px); }
.view-all-link i, .view-gallery-link i { transition: transform 0.3s; }
.view-all-link:hover, .view-gallery-link:hover { color: #ccc; border-bottom-color: #ccc; }
.view-all-link:hover i, .view-gallery-link:hover i { transform: translateX(5px); }

/* 3D Interactive Model Button */
.view-3d-link { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; padding: 10px 20px; border-radius: 4px; transition: 0.3s; line-height: 1; transform: translateY(4px); }
.view-3d-link:hover { background: #fff; color: #000; border-color: #fff; }
.view-3d-link i { font-size: 1.1rem; }

.photo-stack { position: relative; width: 100%; height: 100%; z-index: 10; }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.project-collection:hover .photo-stack img { transform: scale(1.05); }

/* Centered Hover Overlay (No Blur) */
.collection-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; z-index: 20; }
.collection-text { border: 2px solid #fff; padding: 12px 25px; border-radius: 4px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 1rem; color: white; background: rgba(0,0,0,0.6); transition: 0.3s; text-align: center; }
.project-collection:hover .collection-text { transform: scale(1.05); background: #fff; color: #000; }
.project-collection:hover .collection-overlay { opacity: 1; }

.project-separator { height: 1px; background: #333; width: 100%; margin: 60px 0; position: relative; }
.project-separator::after { content: ''; position: absolute; left: 0; top: -1px; width: 60px; height: 3px; background: #fff; }

/* --- PROJECT DETAILS --- */
.project-block { margin-bottom: 100px; }
.project-title { font-size: 2.5rem; margin-bottom: 10px; font-weight: 900; text-align: left; line-height: 1.1; }
.project-meta { font-size: 0.9rem; color: #888; margin-bottom: 20px; font-family: monospace; display: block; text-align: left; }
.project-meta span { margin-right: 20px; display: inline-block; border: 1px solid #333; padding: 5px 10px; border-radius: 4px; margin-bottom: 10px;}

.project-grid-5col { display: grid; grid-template-columns: 1fr 2.2fr; gap: 50px; align-items: stretch; }
.col-left { display: flex; flex-direction: column; justify-content: flex-start; height: 100%; }
.project-desc { font-size: 1rem; color: #ccc; line-height: 1.8; text-align: justify; margin-bottom: 20px; }
.col-right { display: flex; flex-direction: column; gap: 20px; position: relative; width: 100%; }

.project-img-wrapper { border-radius: 4px; overflow: hidden; border: 1px solid #333; aspect-ratio: 16/9; position: relative; width: 100%; cursor: pointer;}
.project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; display: block; }
.project-img-wrapper:hover img { transform: scale(1.02); }

/* Centered Gallery Hint in Projects (No Blur) */
.project-img-wrapper::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s ease; z-index: 5; pointer-events: none; }
.project-img-wrapper:hover::before { opacity: 1; }

.gallery-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); border: 2px solid #fff; padding: 12px 25px; border-radius: 4px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 1rem; color: white; background: rgba(0,0,0,0.6); transition: 0.3s; opacity: 0; pointer-events: none; z-index: 15; text-align: center; }
.project-img-wrapper:hover .gallery-hint { opacity: 1; transform: translate(-50%, -50%) scale(1.05); background: #fff; color: #000; }

/* Video Specific Styling */
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; border: 1px solid #333; border-radius: 4px; overflow: hidden; display: block; margin-bottom: 0; cursor: pointer; }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; }
.play-symbol { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: rgba(255,255,255,0.9); font-size: 4rem; text-shadow: 0 4px 15px rgba(0,0,0,0.8); pointer-events: none; transition: 0.3s ease; z-index: 10; }
.video-wrapper:hover .play-symbol { transform: translate(-50%, -50%) scale(1.15); color: #fff; }
.video-wrapper.playing .play-symbol { opacity: 0; }

.col-right-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; }
.col-right-sub .project-img-wrapper { aspect-ratio: 16/9; margin-bottom: 0; }
.video-placeholder { width: 100%; aspect-ratio: 16/9; background: #111; border: 1px solid #333; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #888; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* --- MODALS & LIGHTBOX --- */
.modal { display: none; position: fixed; z-index: 5000; left: 0; top: 0; width: 100vw; height: 100vh; overflow: hidden; background: rgba(0,0,0,0.95); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.modal-content { max-width: 90vw; max-height: 90vh; border-radius: 4px; box-shadow: 0 0 50px rgba(0,0,0,0.9); object-fit: contain; }
.close-modal { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; z-index: 5001; cursor: pointer; }
.close-modal:hover { color: #bbb; }

/* IFC 3D Viewer Modal Details */
.ifc-iframe-wrapper { width: 90vw; height: 85vh; background: #111; border-radius: 8px; overflow: hidden; position: relative; border: 1px solid #333; box-shadow: 0 0 50px rgba(0,0,0,0.9); }
.ifc-iframe-wrapper iframe { width: 100%; height: 100%; border: none; }

/* Arrows indicating multiple images */
.prev, .next { cursor: pointer; position: absolute; top: 50%; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; transform: translateY(-50%); color: white; font-size: 24px; transition: 0.3s; user-select: none; background-color: rgba(0,0,0,0.4); border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); z-index: 5001; backdrop-filter: blur(4px); display: none; }
.next { right: 30px; } 
.prev { left: 30px; }
.prev:hover, .next:hover { background-color: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); }

/* --- ABOUT SECTION --- */
.about-profile-img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; filter: grayscale(100%); border: 2px solid #333; margin-bottom: 20px; }
.about-name { color: white; font-size: 1.5rem; font-weight: 700; margin-bottom: 5px; }
.about-title { color: #aaa; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 30px; text-align: center;}

/* --- CONTACT SECTION --- */
#contact-section { display: block; padding: 80px 5%; background-color: #050505; border-top: 1px solid #222; }
.contact-container { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.contact-left { text-align: left; }
.contact-left h2 { font-size: 2.5rem; font-weight: 300; margin-bottom: 20px; color: #fff; line-height: 1; margin-top: -6px; } 
.contact-details { color: #ccc; font-size: 1rem; line-height: 1.5; margin-bottom: 30px; }
.contact-details strong { color: white; font-size: 1.2rem; }
.email-display { color: #fff; font-weight: bold; font-size: 1.1rem; }

.contact-right { width: 100%; }
.contact-form-inner { display: flex; flex-direction: column; gap: 15px; }
.contact-form-inner input, .contact-form-inner textarea { width: 100%; padding: 15px; border: 1px solid #333; background: rgba(20,20,20,0.8); color: white; border-radius: 4px; font-family: 'Montserrat', sans-serif; font-size: 1rem; }
.contact-form-inner button { width: 100%; padding: 15px; background: white; color: black; border: none; border-radius: 4px; font-weight: 700; text-transform: uppercase; transition: 0.3s; cursor: pointer; }
.contact-form-inner button:hover { background: #ccc; transform: translateY(-2px); }

/* --- FOOTER --- */
footer { text-align: center; padding: 30px; background-color: #000; border-top: 1px solid #222; color: #666; font-size: 0.8rem; margin-top: auto; }
.footer-socials { margin: 20px 0; display: flex; justify-content: center; gap: 20px; }
.footer-socials a { font-size: 1.5rem; color: #888; transition: 0.3s; }
.footer-socials a:hover { color: #fff; transform: translateY(-3px); }
.footer-impressum { margin-top: 10px; display: inline-block; color: #666; text-decoration: underline; font-size: 0.75rem; }

/* --- RESPONSIVE SETTINGS --- */
@media (max-width: 1400px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background-color: #000; border-bottom: 1px solid #222; flex-direction: column; align-items: center; padding: 40px 0; gap: 25px; transform: translateY(-200%); transition: 0.4s; z-index: 999; }
    .nav-links.active { transform: translateY(0); }
    .lang-switch { margin-left: 0; margin-top: 10px; }
    .services-grid { grid-template-columns: 1fr; }
    .ai-layout { flex-direction: column; gap: 30px; }
    .ai-text, .ai-title-big, .project-title { text-align: left !important; }
    .ai-title-big { font-size: 3rem; }
    .project-grid-5col { display: flex; flex-direction: column; }
    .col-right { order: -1; }
    .contact-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-corner { display: none; }
    .hero-title { font-size: 3rem; }
    .contact-left h2 { margin-top: 0; }
    
    .prev, .next { width: 30px; height: 30px; font-size: 14px; }
    .play-symbol { display: none !important; }
}