* {
    --prim-color-beige: rgb(208,205,180);
    --sec-color-beige: rgb(20,18,5);
    --ter-color-beige: rgb(49,47,29);
}

body {
    font-family: "aptos", sans-serif !important;
    font-size: 1.25rem !important;
}

.bg-beige {
    background-color: var(--prim-color-beige) !important;
}

section {
    margin-top: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.slogan {
    color: var(--prim-color-beige);
    font-size: 5rem;
    line-height: 0.65;
}

@media (max-width: 576px) {
    .slogan {
        font-size: 2rem;
    }
}

.slogan-section {
    margin-top: 0;
}

footer {
    margin-top: 3rem;
}

h2 {
    text-transform: uppercase;
    font-size: 4rem;
    margin-bottom: 3rem;
    font-kerning: normal;
}

h3 {
    font-variant-caps: small-caps;
}

a {
    color: var(--sec-color-beige);
}
a:hover {
    color: var(--ter-color-beige);
}

.btn {
    background-color: var(--prim-color-beige);
    font-size: 1.25rem;
}
.btn:hover {
    background-color: var(--ter-color-beige);
    color: #ffffff;
}

nav {
    font-variant-caps: small-caps;
    font-size: x-large;
    color: #000;
}

.nav-item {
    display: inline-block;
    transition: transform 0.2s ease;
}
.nav-item:hover {
    transform: scale(1.05);
}

@media (min-width: 576px) {
    section {
        margin-top: 5rem;
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    footer {
        margin-top: 13rem;
    }

    h2 {
        margin-bottom: 6rem;
        font-size: 5rem;
    }
}

header {
    position: relative;
    background-color: black;
    height: 75vh;
    min-height: 25rem;
    width: 100%;
    overflow: hidden;
}

header p {
    color: #ffffff;
    font-weight: bolder;
    font-size: xx-large;
    text-shadow: 0 0 75px #000;
}
  
header video,
header img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
}

header .container {
    position: relative;
    z-index: 2;
}
  
header .header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.5;
    z-index: 1;
}

.text-box {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
}

.circle {
    width: 40px;
    height: 40px;
    border: 5px solid var(--prim-color-beige);
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: 20px;
}

@media (min-width: 768px) {
    .verticaltext {
        position: relative;
        padding-left: 50px;
        margin: 1em 0;
        min-height: 120px;
    }
    
    .verticaltext_content {
        position: absolute;
        font-size: 8rem;
        transform: rotate(-90deg);
        filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    }

    .vertical_contact {
        font-size: 5rem !important;
        margin-bottom: 0;
    }

    .text-box {
        transform: translate(25%, -50%);
    }
    a .text-box:hover {
        transform: translate(25%, -50%) scale(1.1);
    }

    .image-box {
        opacity: 0;
        transition: all 1s ease-in-out;
    }
    
    .image-box.left {
        transform: translateX(-10vw);
    }
    
    .image-box.right {
        transform: translateX(10vw);
    }
    
    .image-box.scrolled-in {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
    .text-box {
        border-radius: 0 0 var(--bs-border-radius-xl) var(--bs-border-radius-xl) !important;
    }
    .img-box {
        border-radius: var(--bs-border-radius-xl) var(--bs-border-radius-xl) 0 0 !important;
    }
}

.connector {
    width: 4px;
    height: 25vh;
    background: black;
    border-radius: 2px;
    margin: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transition-delay: 0.5s;
}
.connector.in-view {
    opacity: 1;
}

@media (min-width: 576px) {
    .animatedCircle {
        position: relative;
        width: 10rem;
        height: 10rem;
        border-radius: 50%;
        transition: width 1s ease-in-out 0.5s, border-radius 1s ease-in-out 0.5s;
        overflow: hidden;
        padding: 1rem 3rem;
        background-color: white;
        max-width: none; /* Remove max-width */
        min-height: unset; /* Remove min-height */
    }

    .animatedCircle.in-view {
        width: 100%;
        border-radius: 6rem; /* Half of height for perfect pill */
        height: 10rem;
        min-height: 12rem; /* Ensures enough vertical space */
        padding: 2rem 3rem;
    }

    .animatedCircle p, 
    .animatedCircle h3 {
        opacity: 0;
        visibility: collapse;
        transition: visibility 1.5s ease-in-out 1.5s, opacity 1.5s ease-in-out;
    }
    
    .animatedCircle.in-view p, 
    .animatedCircle.in-view h3 {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 575px) {
    .animatedCircle {
        position: relative;
        opacity: 0;
        border-radius: var(--bs-border-radius-xl);
        transition: opacity 1s ease-in-out;
        transition-delay: 0.5s;
        overflow: hidden;
        padding: 1rem;
        background-color: white;
    }

    .animatedCircle.in-view {
        opacity: 1;
    }
    .animatedCircle.in-view p, 
    .animatedCircle.in-view h3 {
        opacity: 1;
        visibility: visible;
    }
}

.service-image-size {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

#copyright {
    font-size: x-small;
}

.team-list {
    font-size: large;
    line-height: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #000;
    outline: none;
    background: transparent;
}

.form-group label {
    position: absolute;
    top:0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    pointer-events: none;
    transition: .5s;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -20px;
    left: 0;
    font-size: 12px;
}

.planit-ring {
    position: relative;
    max-width: 500px;
}

.services-ring {
    fill: var(--prim-color-beige);
    stroke: #000;
    stroke-width: 2px;
    cursor: pointer;
}

.services-ring-caption {
    position: absolute;
    text-align: center;
    transform: translate(-50%, -50%);
    transition: font-size 0.3s ease, font-weight 0.3s ease;
}

.services-ring-caption.hover {
    font-weight: bold;
    font-size: 1.25rem;
    cursor: pointer;
}

.services-ring-caption-1 { top: 12%; left: 50%; }
.services-ring-caption-2 { top: 32%; left: 83%; }
.services-ring-caption-3 { top: 70%; left: 81%; }
.services-ring-caption-4 { top: 88%; left: 50%; }
.services-ring-caption-5 { top: 70%; left: 18%; }
.services-ring-caption-6 { top: 32%; left: 17%; }

#service-description h3 {
    text-align: center;
}

h5 {
    margin-top: 3rem;
    color: var(--prim-color-beige);
    font-weight: bold;
}

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.card-clickable:hover {
    cursor: pointer;
}

.card {
    border: none;
}

.card-clickable-link {
    text-decoration: none;
}

.section-background,
.main-background {
    background-image: url('../img/background_lines_transparent.png');
    background-position: center;
}

.section-background {
    background-size: cover;
}
