@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Source Sans Pro', sans-serif;
}

body {
    background: #1e1e1e;
    color: #ffffff;
    line-height: 1.65;
}

/* Wrapper */
#wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    padding: 4rem 2rem;
}

/* Background */
#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('d86832e9-0ed4-466a-a7de-e7133d0017f2_rw_1920.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

#bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 31, 34, 0.85);
    z-index: 1;
}

/* Header */
#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
}

/* Logo */
.logo {
    width: 5.5rem;
    height: 5.5rem;
    border: solid 2px #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(10px);
}

.logo .icon {
    font-size: 2rem;
    color: #ffffff;
}

/* Content */
.content .inner {
    max-width: 50rem;
    margin: 0 auto;
}

.content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.content p {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    line-height: 2;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.75;
}

/* Navigation */
nav {
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

nav li {
    border-left: solid 2px #ffffff;
    display: block;
}

nav li:first-child {
    border-left: 0;
}

nav a {
    border: 0;
    color: #ffffff;
    display: block;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    line-height: 1;
    padding: 1rem 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
}

nav a:active {
    background: rgba(255, 255, 255, 0.175);
}

/* Main Content (Hidden by default) */
#main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 31, 34, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 4rem;
    overflow-y: auto;
}

#main.active {
    display: flex;
}

#main article {
    max-width: 50rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.075);
    border-radius: 4px;
    padding: 3rem;
    position: relative;
    transform: translateY(2rem);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

#main article.active {
    transform: translateY(0);
    opacity: 1;
}

#main article h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

#main article p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

#main article .image.main img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 2rem;
}

/* Form Styles */
form {
    margin: 2rem 0;
}

.fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.field {
    flex: 1;
    min-width: 0;
}

.field.half {
    flex: 0 0 calc(50% - 0.75rem);
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
textarea {
    background: rgba(255, 255, 255, 0.075);
    border: solid 2px transparent;
    border-radius: 4px;
    color: #ffffff;
    display: block;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #ffffff;
    outline: 0;
}

textarea {
    resize: vertical;
    min-height: 8rem;
}

.actions {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin-top: 2rem;
}

input[type="submit"],
input[type="reset"] {
    background: transparent;
    border: solid 2px #ffffff;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
    background: rgba(255, 255, 255, 0.075);
}

input[type="submit"].primary {
    background: #ffffff;
    color: #1e1e1e;
}

input[type="submit"].primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Icons */
.icons {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin-top: 2rem;
}

.icons a {
    border: solid 2px #ffffff;
    border-radius: 50%;
    color: #ffffff;
    display: block;
    font-size: 1rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    text-decoration: none;
    width: 2.5rem;
    transition: all 0.2s ease-in-out;
}

.icons a:hover {
    background: rgba(255, 255, 255, 0.075);
}

/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

#footer .copyright {
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    opacity: 0.5;
    text-transform: uppercase;
}

/* Animated Lines */
.line {
    position: fixed;
    background: #ffffff;
    opacity: 0;
    z-index: 5;
    width: 1px;
    height: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.line-1 {
    top: 50%;
    left: calc(50% - 150px);
    transform: translateY(-50%);
}

.line-2 {
    top: 50%;
    left: calc(50% + 150px);
    transform: translateY(-50%);
}

.line.active {
    opacity: 0.8;
    height: 100vh;
    top: 0;
    transform: translateY(0);
}

/* Horizontal line that appears first */
.line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    opacity: 0;
    transition: all 0.4s ease-out;
}

.line-1::before {
    transform-origin: right center;
    right: 0;
    left: auto;
}

.line-2::before {
    transform-origin: left center;
}

.line.active::before {
    opacity: 0.8;
}

.line-1.active::before {
    width: 150px;
}

.line-2.active::before {
    width: 150px;
}

/* Close Button */
.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
}

.close:hover {
    opacity: 1;
}

/* Responsive Design */
@media screen and (max-width: 736px) {
    #wrapper {
        padding: 2rem 1rem;
    }
    
    .content h1 {
        font-size: 2rem;
    }
    
    .content p {
        font-size: 0.7rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav li {
        border-left: 0;
        border-top: solid 2px #ffffff;
    }
    
    nav li:first-child {
        border-top: 0;
    }
    
    nav a {
        padding: 1rem;
    }
    
    #main {
        padding: 2rem 1rem;
    }
    
    #main article {
        padding: 2rem;
    }
    
    .field.half {
        flex: 1;
    }
}

@media screen and (max-width: 480px) {
    .content h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 4rem;
        height: 4rem;
    }
    
    .logo .icon {
        font-size: 1.5rem;
    }
}