@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');


a { color: #589cf5; } /* For unvisited links */
a:visited { color: #5875f5; } /* For visited links */
a:hover { color: #58c3f5; } /* For links when hovered over */
a:active { color: #589cf5; } /* For links when clicked */

body {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 20;
    margin: 0;
    padding: 0;
    background-color: #0f0f0f; /* Dark gray background */
    color: #fff; /* White text color */
}

header {
    background-color: #1f1f1f; /* Dark gray header background */
    color: #fff;
    padding: 1em;
    text-align: center;
    position: relative;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
}

nav li {
    display: inline-block;
    margin-right: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
}

nav a:hover {
    color: #ccc;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
    gap: 40px; /* Set a gap between sections */

}

section {
    flex-direction: column;
    background-color: #1f1f1f;
    padding: 2em;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 80%; /* Set the section to full-width */
    max-width: none; /* Remove the maximum width */
    margin: 0 auto; /* Center the section horizontally */
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(196, 196, 196, 0.3);
    transition: border-color 0.7s ease-in-out; /* Add a transition effect */
}

section:hover {
    border: 1px solid #f5d158; /* Change the border color on hover */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 0 2px #f5d158; /* Add a glow effect */
    transition: border-color 0.7s ease-in-out; /* Add a transition effect */
}

details {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: open-close 1s;
    background-color: #1f1f1f;
    /* From https://css.glass */
    background: rgba(31, 31, 31, 0.67);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5.7px);
    -webkit-backdrop-filter: blur(5.7px);
    border: 1px solid rgba(31, 31, 31, 0.3);
}

/* Demo Code */
.details::details-content {
    display: block;
    margin-inline: 2rem;
    block-size: 0;
    overflow: hidden;
    transition-property: block-size, content-visibility;
    transition-duration: 0.5s;
    transition-behavior: allow-discrete;
}

.details[open]::details-content {
    /* Fallback for browsers that don't support calc-size() function */
    block-size: auto;

    /* calc-size() function allows transition to height: auto; */
    block-size: calc-size(auto, size);
}
details[open] .content {
    height: auto;
}
/* Rotate arrow on click of details element */
details[open]>summary:before {
    transform: rotate(90deg);
}
/* Remove the default arrow */
summary {
    display: block;
    position: relative;
    font-size: 20px;
    left: 20px;
    transition: all 0.4s;
    cursor: pointer;
    padding: 10px;
    color: #fff;
    border: none;
    border-radius: 10px;
}

/* Design your own arrow */
summary:before {
    content: '';
    border: 10px solid;
    border-color: transparent transparent transparent #fff;
    position: absolute;
    left: -20px;
    top: 13px;
    transition: all .4s;
}

summary:hover {
    font-size: 22px;
    transition: all 0.6s;
}

details:hover {
    border: 1px solid #f5a858;
    transition: all 0.6s;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.col-7 {
    flex-basis: 70%;
    padding: 20px;
}

.col-5 {
    flex-basis: 30%;
    padding: 20px;
}

.img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes open-close {
0% {
    height: 0;
}
100% {
    height: auto;
}
}

.content {
    overflow: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    transition: height 1.5s ease-in-out;
    flex-direction: row;
}

h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a drop shadow */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); /* Add a second drop shadow */
    font-family: 'Playfair Display', serif;
    font-size: 96px;
    font-weight: bold;
    color: #589cf5;
    margin-bottom: 10px;
}

h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a drop shadow */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); /* Add a second drop shadow */
    font-size: 34px;
    font-weight: bold;
    color: #ccc;
    margin-bottom: 10px;
}

p {
    margin-bottom: 20px;
}

footer {
    background-color: #f5a858;
    color: #fff;
    padding: 1em;
    text-align: center;
    clear: both;
    position: relative;
    bottom: 0;
}

footer p {
    margin-bottom: 0;
}

#hero {
    background-image: url("./Downtown-54_view_xl.jpg");
  width: 100%; height: 350px;
  /* max-width: 600px; */
    background-size: cover; /* Use cover to prevent stretching */
    background-position: center; /* Use center to prevent tiling */
    max-width: 100%; /* Remove the maximum width */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    flex-direction: column;
}

#hero h1 {
    margin: 0; /* Reset the margin property */
    padding: 0; /* Reset the padding property */
    font-size: 100px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a drop shadow */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); /* Add a second drop shadow */
    margin-bottom: 10px;
}

#hero h2 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a drop shadow */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); /* Add a second drop shadow */
    margin-bottom: 10px;
}

#hero p {
    font-size: 18px;
}

#portfolio {
    background-image: url("./Nobhill-17.jpg");
    background-size: cover; /* Use cover to prevent stretching */
    background-position: top center;
}

#services {
    background-image: url("./Downtown-45_transit-station.jpg");
    background-size: cover; /* Use cover to prevent stretching */
    background-position: center; /* Use center to prevent tiling */
}
