:root {
    --primary-color: #506266;
    --secondary-color: #293945;
    --background-color: #F4F6F7;
    --text-color: #2C3E50;
    --title-color: #506266;
    --accent-color: #72B6A0;
    --cta-color: #506266;
    --line-color: rgba(80, 98, 102, 0.5);
    --content-border: rgba(80, 98, 102, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Arvo', sans-serif;
    line-height: 1.6;
    padding-top: 60px; /* Adjust based on header height */
    background: linear-gradient(to bottom, var(--background-color), var(--secondary-color)) fixed;
    color: var(--text-color);
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* Matches body padding-top */
}

main {
    flex: 1;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.jump-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.jump-nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.jump-nav ul li {
    margin: 0 1rem;
}

.jump-nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.jump-nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.jump-nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.jump-nav ul li a:hover::before {
    transform: scaleX(1);
}

.parallax-section {
    position: relative;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 4rem;
}

.logo {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.2);
}

.logo-text {
    font-weight: normal;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 1rem;
}

.section-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.left-content {
    flex-direction: row;
}

.right-content {
    flex-direction: row-reverse;
}

.section-title {
    flex: 1;
    color: var(--secondary-color);
    font-size: 2rem;
    padding: 1.5rem;
    display: flex;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.2);
}

.content {
    flex: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--content-border);
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content p {
    margin-bottom: 1.1rem;
}

.content li {
    margin-bottom: 0.2rem;
}

.connector {
    position: absolute;
    top: 70%;
    height: 300px;
    width: 40%;
    background: transparent;
    border: none;
    border-radius: 10px;
    z-index: -999;
}

.left-content .connector {
    left: 10%;
    border-top: var(--line-color) 2px solid;
    border-left: var(--line-color) 2px solid;
}

.right-content .connector {
    right: 10%;
    border-top: var(--line-color) 2px solid;
    border-right: var(--line-color) 2px solid;
}

.circle {
    width: 60px;
    height: 60px;
    border: 2px solid var(--line-color);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 2;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-content .connector .circle {
    position: absolute;
    top: 0;
    left: -30px; /* Adjusted to align with border corner */
    transform: translateY(-50%);
}

.right-content .connector .circle {
    position: absolute;
    top: 0;
    right: -30px; /* Adjusted to align with border corner */
    transform: translateY(-50%);
}

.circle i {
    color: var(--secondary-color);
    font-size: 25px;
}


#chapter5 .section-title {
    padding: 2rem 0rem;
}

#chapter5 .section-wrapper {
    padding: 3rem 0rem;
}



.services-content {
    display: flex;
    align-items: stretch;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.service-category {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 0.5rem;
}

.service-category ul {
    list-style-type: none;
}

.service-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(114, 182, 160, 0.2);
    position: relative;
}

.service-category li:last-child {
    border-bottom: none;
}

.service-category li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -1rem;
}


.contact-content {
    display: flex;
    align-items: stretch;
    max-width: 640px;
}

.contact-form {
    width: 100%;
}

#contact {
    position: relative;
    padding-bottom: 4rem; /* Add extra padding at the bottom */
}

#contact .section-wrapper {
    position: relative;
    z-index: 1;
}


.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--content-border);
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    grid-column: 1 / -1;
    background: #506266;
    color: white;
    padding: 1rem 2rem; /* Reduced padding */
    border: none;
    border-radius: 8px;
    font-family: 'Fira Mono Medium', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background: #10454F;
    transform: translateY(-2px);
}

footer {
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 0;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #chapter1{
        margin-top: 50px;
    }
    .section-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        text-align: center;
        margin-bottom: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Remove previous positioning transforms */
    .left-content .circle,
    .right-content .circle {
        transform: none;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }

}
/* Mobile and Tablet Responsive Design */
@media screen and (max-width: 768px) {
    .site-header {
        position: fixed;
        top: 0;
        top: auto;
        background-color: var(--secondary-color);
        backdrop-filter: blur(10px);
    }

    .jump-nav {
        padding: 0.2rem;
    }

    .jump-nav ul {
        justify-content: space-around;
        width: 100%;
    }

    .jump-nav ul li {
        margin: 0;
    }

    .jump-nav ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.7rem;
        padding: 0.5rem;
        text-align: center;
    }

    .jump-nav ul li a::before {
        display: none;
    }

    .jump-nav ul li a:hover {
        background-color: rgba(255,255,255,0.05);
    }

    body {
        padding-top: 0;
        padding-bottom: 60px; /* Adjust based on menu height */
    }

    html {
        scroll-padding-bottom: 60px;
        scroll-padding-top: 0;
    }
}

/* For very small screens */
@media screen and (max-width: 375px) {
    .jump-nav ul li a {
        font-size: 0.6rem;
        padding: 0.3rem;
    }
}