body {
    background-color: #144c3b;
    color: #fab322;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
}

body::before {
    content: '';
    position: fixed; /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('src/pattern.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Changed from repeat to no-repeat */
    background-attachment: fixed; /* Added to ensure the background stays fixed */
    opacity: 0.7;
    z-index: -1;
    -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 46%);
    -webkit-mask-size: 5px 5px;
    -webkit-mask-repeat: repeat;
    -webkit-mask-position: center;
    mask-image: radial-gradient(circle, #000 45%, transparent 46%);
    mask-size: 5px 5px;
    mask-repeat: repeat;
    mask-position: center;
}

#text-container {
    text-align: center;
    padding: 10px;
    max-width: 80%;
    word-wrap: break-word;
    z-index: 100;
    position: relative;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.large-text {
    font-size: 2.5em;
}

.small-text {
    font-size: 2.5em;
}

.cursor {
    border-right: 0.05em solid #fab322;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@media (max-width: 767px) {
    .large-text {
        font-size: 2.0em;
    }

    .small-text {
        font-size: 2.0em;
    }
}

nav {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
    z-index: 10;
    transition: opacity 0.3s;
}

.logo-container img {
    max-width: 100%;
    height: 100px;
}

.container {
    text-align: center;
    width: 100%;
    padding-bottom: 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.0);
}

#send-enquiry, #selected-works {
    padding: 10px 20px;
    font-size: 16px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    z-index: 1000;
    color: #fab322;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    transition: color 0.3s, transform 0.3s; /* Added transform to transition */
    position: relative;
}

#send-enquiry::before, #selected-works::before {
    display: none; /* decorative pseudo-element removed */
}

#send-enquiry:hover, #selected-works:hover,
#send-enquiry:active, #selected-works:active,
#send-enquiry:focus, #selected-works:focus {
    color: #fab322;
    transform: scale(1.1); /* Added scale effect on hover */
}

@media (max-width: 480px) {
    #send-enquiry, #selected-works {
        font-size: 12px;
        padding: 8px 12px;
    }
}

.copyright {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 8px;
    color: #fab322;
    opacity: 1;
    z-index: 1000;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 400;
}

.portfolio {
    width: min(900px, 90%);
    margin: 0 auto;
    padding-top: 140px;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    text-align: center;
}

.portfolio-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portfolio-kicker {
    font-size: 12px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(250, 179, 34, 0.7);
}

.portfolio-title {
    font-size: 28px;
    margin: 0;
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-item {
    border: 1px solid rgba(250, 179, 34, 0.4);
    padding: 22px 24px;
    background: rgba(20, 76, 59, 0.7);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.portfolio-name {
    font-size: 18px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portfolio-tagline {
    font-size: 14px;
    margin-bottom: 6px;
}

.portfolio-meta {
    font-size: 12px;
    color: rgba(250, 179, 34, 0.7);
}

.portfolio-links {
    margin-top: 12px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.portfolio-link {
    color: #fab322;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

.portfolio-link:hover,
.portfolio-link:focus {
    text-decoration: underline;
}

.portfolio-link-divider {
    color: rgba(250, 179, 34, 0.5);
}

@media (max-width: 768px) {
    .portfolio {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .portfolio-title {
        font-size: 22px;
    }
}

.input-container {
    position: relative;
    display: inline-block;
}

#animated-placeholder {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fab322;
    pointer-events: none;
    font-size: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 400;
    z-index: 10;
}

.popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(7, 24, 19, 0.85);
    backdrop-filter: blur(2px);
}


.popup-content {
    background-color: rgba(20, 76, 59, 0.98);
    padding: 28px 32px 30px;
    border: 1px solid rgba(250, 179, 34, 0.65);
    width: min(520px, 92%);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.enquiry-card {
    text-align: center;
}

.enquiry-label {
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(250, 179, 34, 0.7);
    margin-bottom: 12px;
}

.enquiry-email {
    font-size: 18px;
    color: #fab322;
    text-decoration: none;
    margin-bottom: 10px;
}

.enquiry-note {
    font-size: 12px;
    color: rgba(250, 179, 34, 0.7);
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(250, 179, 34, 0.15);
    border: 1px solid rgba(250, 179, 34, 0.5);
    cursor: pointer;
    font-size: 18px;
    color: #fab322;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.popup-close:hover {
    background-color: rgba(250, 179, 34, 0.25);
}

@media (max-width: 768px) {
    .popup-content {
        width: calc(90% - 20px); /* 90% width minus 20px for left and right padding */
        padding: 20px 10px; /* 20px top/bottom, 10px left/right */
    }
}

.close {
    color: #fab322;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.pdf-close-button {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fab322;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #144c3b;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
    z-index: 2001;
}

.pdf-close-button:hover {
    transform: translateX(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .popup-content {
        width: min(92%, 520px);
        padding: 24px;
    }
}
