/* Global Styles */
:root {
    --bg-color: #121212;
    --surface-color: #1a1a1a;
    --primary-color: #d4af37;
    /* Gold/Bronze */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --heading-font: 'Outfit', sans-serif;
    --body-font: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: #ffffff;
    font-weight: 600;
}

section {
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: var(--primary-color);
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: calc(50% - 25px);
}

.section-title p {
    color: var(--text-muted);
}

/* Header */
/* Header */
/* Header */
/* Header */
#header {
    background: transparent;
    height: auto;
    position: absolute;
    /* Fixed/Absolute as requested */
    width: 100%;
    top: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: none;
    transition: 0.5s;
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the whole group */
    gap: 20px;
    /* Distance between Logo and Capsule */
    position: relative;
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    min-height: auto;
    backdrop-filter: none;
}

/* Logo - Independent White Circle */
.logo {
    position: relative;
    /* Back in flow */
    left: auto;
    top: auto;
    transform: none;
    z-index: 1001;
    background: #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

/* Nav Capsule - Centered */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 120px;
    /* Massive padding on sides as requested */
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

#navbar ul {
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 30px;
}

#navbar ul li a {
    color: #111;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    padding: 5px 0;
    background: transparent;
    /* Remove pill background */
}

/* Text Highlight Only (No covering) */
#navbar ul li a:hover,
#navbar ul li a.active {
    color: var(--primary-color);
    /* Gold Text */
    background: transparent;
    box-shadow: none;
}

#navbar ul li a:hover,
#navbar ul li a.active {
    color: var(--primary-color);
}

.mobile-nav-toggle {
    color: #111;
    /* Dark toggle */
    font-size: 24px;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 30px;
}

/* Hero Section */
/* Hero Section */
#hero {
    width: 100%;
    height: 100vh;
    /* Local Background Image */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/images/1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
}

.hero-container {
    width: 90%;
    max-width: 800px;
}

#hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

#hero p {
    font-size: 20px;
    color: #ddd;
    margin-bottom: 40px;
}

.btn-get-started {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 32px;
    border-radius: 5px;
    transition: 0.5s;
    line-height: 1;
    margin: 10px;
    color: #fff;
    animation-delay: 0.8s;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
}

.btn-get-started:hover {
    background: transparent;
    color: var(--primary-color);
}

/* About Section */
#about {
    background: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50/50 Split */
    gap: 60px;
    /* More gap for breathing room */
    align-items: center;
    /* Vertically center the content */
}

/* Image Column */
.about-img {
    width: 90%;
}

.about-img img {
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Content Column */
.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically relative to image */
}

.about-content p {
    margin-bottom: 25px;
    /* Better paragraph spacing */
    font-size: 18px;
    /* Larger, more readable text */
    line-height: 1.8;
    color: #d0d0d0;
    /* Slightly brighter than #ccc */
    font-weight: 300;
    /* Lighter weight for elegance */
}

.about-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Architect Profile (Nested in Right Column) */
.architect-profile {
    display: flex;
    /* Flexrow: Cat Left, Info Right */
    gap: 25px;
    align-items: center;
    /* Center vertically */
    background: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-top: 30px;
    /* Space from text above */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.architect-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.architect-img {
    flex-shrink: 0;
}

.architect-img img {
    width: 80px;
    /* Small profile pic */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.architect-info {
    flex: 1;
}

.architect-img img {
    width: 250px;
    /* Increased size as requested */
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.architect-info h3 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 5px;
}

.architect-info h4 {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.architect-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 0;
}

/* Services */
#services {
    background: var(--surface-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--bg-color);
    padding: 0;
    /* Remove padding to let image fill top */
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    /* Ensure image sticks to corners */
}

.service-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.service-item:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-item h3 {
    margin-bottom: 15px;
}

/* Process Timeline */
#process {
    background: var(--bg-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 40px;
    /* Line position */
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    /* Space for icon */
    margin-bottom: 50px;
}

.timeline-icon {
    position: absolute;
    left: 10px;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid #2ecc71;
    /* Green border like reference */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.timeline-icon i {
    color: #2ecc71;
    font-size: 24px;
}

.timeline-content {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #2ecc71;
}

.step-number {
    display: block;
    color: #2ecc71;
    /* Green accent */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.timeline-content h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* Contact Polish */
#contact {
    background: var(--bg-color);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 items in one row */
    gap: 20px;
}

/* Responsive adjustments for the new layout */
@media (max-width: 992px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}

.info-item {
    padding: 25px;
    background: var(--surface-color);
    /* Dark card */
    border-radius: 12px;
    transition: 0.3s;
    display: flex;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
    padding: 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    /* Prevent icon shrinking */
}

.info-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 18px;
    color: #fff;
    line-height: 1.2;
}

.info-item p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Footer Section */
#footer {
    background: #fff;
    /* White Footer */
    padding: 60px 0 30px 0;
    color: #333;
    /* Dark text */
    font-size: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #111;
    /* Dark Heading */
    letter-spacing: 2px;
}

.footer-col .tagline {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 20px;
}

.footer-col .desc {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    /* Dark Heading */
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.footer-col ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-col ul li:first-child {
    padding-top: 0;
}

.footer-col ul li a {
    color: #555;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    font-size: 18px;
    display: inline-block;
    background: #f5f5f5;
    color: #333;
    line-height: 1;
    padding: 10px 0;
    margin-right: 10px;
    border-radius: 50%;
    text-align: center;
    width: 40px;
    height: 40px;
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* Bottom Split: Map Left, Form Right */
.contact-bottom {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* Map smaller, Form larger */
    gap: 30px;
    align-items: stretch;
    /* Elements match height */
}

/* Map Polish */
.map-placeholder {
    width: 100%;
    height: 100%;
    /* Fill the grid cell */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 400px;
    /* Ensure map has height */
}

.map-placeholder .map-img {
    width: 100%;
    height: 100%;
    background-color: #222;
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
}

/* Form Container */
.contact-form-container {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-control {
    width: 100%;
    padding: 15px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: var(--body-font);
    font-size: 15px;
    transition: 0.3s;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #151515;
}

.contact-form button[type="submit"] {
    background: var(--primary-color);
    border: 0;
    padding: 15px 40px;
    color: #fff;
    transition: 0.4s;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    display: block;
    width: 100%;
}

.contact-form button[type="submit"]:hover {
    background: #e6c24c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

@media (max-width: 992px) {
    .contact-bottom {
        grid-template-columns: 1fr;
        /* Stack on mobile/tablet */
    }

    .map-placeholder {
        min-height: 300px;
        /* Smaller Map height on mobile */
    }
}

/* Footer */
#footer {
    background: #fff;
    padding: 30px 0;
    color: #333;
    font-size: 14px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-col.logo-col {
    text-align: center;
}

.footer-logo img {
    height: 150px;
    /* Increased size */
    width: auto;
    margin: 0 auto 20px auto;
    /* Center horizontally */
    display: block;
}

#footer strong {
    color: var(--primary-color);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Portfolio Section */
#portfolio {
    background: var(--bg-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* height: 250px; Remove fixed height to allow auto growth */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    background: var(--surface-color);
    /* Background for the text part */
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    /* Fixed height for image only */
    object-fit: cover;
    transition: 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.portfolio-info {
    position: relative;
    /* Not absolute */
    bottom: auto;
    left: auto;
    right: auto;
    background: transparent;
    padding: 15px 20px;
    transform: none;
    opacity: 1;
    /* Always visible */
    transition: none;
    text-align: center;
    /* Center title */
    z-index: 10;
}

/* No hover effect needed for info visibility anymore */
.portfolio-item:hover .portfolio-info {
    transform: none;
    opacity: 1;
}

.portfolio-info h4 {
    color: #fff;
    /* Keep white if theme is dark, or adjust to var(--text-color) */
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--surface-color);
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    #navbar ul.active {
        display: flex;
    }

    #navbar ul li {
        margin: 15px 0;
        text-align: center;
    }

    .mobile-nav-toggle {
        display: block;
    }

    #hero h1 {
        font-size: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .about-img {
        order: -1;
        /* Ensure image is first on mobile too, or remove if text first is preferred on mobile */
    }
}

/* Lightbox Modal */
#lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    /* Flex centering */
    align-items: center;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.4s;
    border-radius: 4px;
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2002;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    font-size: 18px;
    font-family: var(--heading-font);
}

/* Navigation Arrows */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 2002;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.next {
    right: 30px;
}

.prev {
    left: 30px;
}

.prev:hover,
.next:hover {
    background-color: rgba(212, 175, 55, 1);
    color: #000;
}