@font-face {
    font-family: 'Century Gothic';
    src: url('fonts/century_gothic/centurygothic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary: #66785F;
    --primary-light: #91AC8F;
    --background: #ECEBDE;
    --white: #ffffff;
    --text: #2C3E50;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-details a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #66785F;
}

.contact-details p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.contact-details strong {
    color: #66785F;
    margin-right: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.7;
    margin: 0; /* Remove global margins */
    padding: 0;
    box-sizing: border-box;
    background-color: #ECEBDE; /* Ensure the background color is set */
    padding-top: 80px; /* Add padding to account for fixed header */
    padding-bottom: 100px;
    overflow-x: hidden; /* Prevent horizontal overflow */
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

header {
    background-color: #66785F;
    color: white;
    width: 100%; /* Full width */
    padding: 15px 20px; /* Add padding to the header */
    box-sizing: border-box;
    position: fixed; /* Fix header to the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure header is above other content */
    overflow: hidden; /* Prevent overflow */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    white-space: nowrap; /* Prevent wrapping */
}

header h1 {
    margin: 0;
    font-size: 24px;
    flex-shrink: 0; /* Prevent shrinking */
}

.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    gap: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Change from center to flex-start */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 100px;
    height: auto; /* Remove fixed height */
    min-height: calc(100vh - 80px); /* Use min-height instead */
    overflow: visible; /* Remove overflow hidden */
}

.photo {
    flex: 1 1 45%;
    position: sticky;
    text-align: center;
    margin: 10px;
    animation: slideRight 1s forwards;
}

.photo img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border: 2px solid #ccc;
    padding: 5px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    filter: brightness(1.02);
    transition: var(--transition);
}

.photo img:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.about {
    flex: 1 1 45%;
    margin: 10px;
    animation: slideLeft 1s forwards;
    text-align: left;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about p {
    line-height: 1.6;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-section {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

.about-section h3 {
    color: #66785F;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-section ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.about-section ul li {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-section ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.about-section ul li:before {
    content: "•";
    color: #66785F;
    position: absolute;
    left: 0;
}

.quote {
    font-style: italic;
    color: #666;
    border-left: 3px solid #66785F;
    padding-left: 15px;
    margin: 20px 0;
}

.author {
    display: block;
    margin-top: 10px;
    font-weight: 500;
}

.contact {
    background-color: #91AC8F;
    background: linear-gradient(145deg, var(--primary-light), var(--primary));
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
}

.contact-inner {
    width: 100%;
    margin: 10px 0;
    padding: 15px;
    background-color: #fff;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.contact-details {
    width: 100%;
    box-sizing: border-box;
}

.contact-details iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    margin-top: 15px;
}

.floating-button, .whatsapp-button {
    position: fixed;
    bottom: 50px;
    padding: 12px 25px;
    bottom: 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 16px;
    font-family: 'Century Gothic', Arial, sans-serif;
    z-index: 1001;
    border: none;
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.floating-button {
    right: 20px;
    background-color: #66785F;
}

.whatsapp-button {
    left: 20px;
    background-color: #66785F;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.floating-button:hover, .whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.floating-button:hover {
    background-color: #55664D;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.whatsapp-button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .main {
        flex-direction: column;
        width: 100%;
        padding: 10px;
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden;
        height: calc(100vh - 70px);
    }

    body {
        padding-bottom: 80px; /* Smaller padding for mobile */
    }

    .floating-button, .whatsapp-button {
        bottom: 15px; /* Adjust for mobile */
    }

    .main {
        margin-bottom: 80px; /* Smaller margin for mobile */
        height: auto; /* Remove fixed height to allow scrolling */
        min-height: calc(100vh - 70px); /* Use min-height instead of height */
    }

    .about, .photo {
        width: 100%;
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
    }

    .contact {
        margin: 10px;
        padding: 10px;
        width: calc(100% - 20px);
    }

    .contact-inner {
        margin: 5px 0;
        padding: 10px;
    }

    .contact-details p {
        margin: 8px 0;
    }

    .about-section ul {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 10px;
    }

    .about-section ul li {
        position: relative;
        padding: 12px 12px 12px 25px; /* Adjust padding for mobile */
        font-size: 0.95rem;
        display: flex;
        align-items: center;
    }

    .about-section ul li:before {
        content: "•";
        color: var(--primary);
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .main {
        padding: 60px 120px;
        max-width: 1600px;
        margin: 0 auto;
        gap: 80px;
        min-height: 100vh;
        align-items: flex-start;
    }

    .photo {
        flex: 1 1 50%;
        max-width: 50%;
        position: sticky;
        top: 100px;
    }

    .photo img {
        max-height: 600px;
        transition: all 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .photo img:hover {
        transform: scale(1.03);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .about {
        flex: 1 1 50%;
        padding: 40px 60px;
        background-color: rgba(249, 249, 249, 0.95);
        border-radius: 20px;
    }

    .about h2 {
        font-size: 3rem;
        margin-bottom: 40px;
        color: #66785F;
        border-bottom: 3px solid #66785F;
        padding-bottom: 15px;
    }

    .about p {
        font-size: 1.2rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .about-section {
        margin-bottom: 40px;
    }

    .about-section h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .about-section ul {
        list-style: none;
        padding-left: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-section ul li {
        position: relative;
        padding: 15px 15px 15px 30px;
        background-color: #f8f9fa;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

    .about-section ul li:before {
        content: "•";
        color: #66785F;
        position: absolute;
        left: 12px;
        font-size: 1.2rem;
    }

    .about-section ul li:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }

    .contact {
        max-width: 1400px;
        margin: 60px auto;
        padding: 60px;
        gap: 40px;
        background-color: rgba(145, 172, 143, 0.95);
    }

    .contact-inner {
        width: 100%;
        margin: 10px 0;
        padding: 15px;
        background-color: var(--white);
        border-radius: 10px;
        box-shadow: var(--shadow);
    }
    
    .contact-inner h3 {
        margin: 0;
        font-size: 1.5rem;
        color: var(--primary);
    }

    .contact-details p {
        font-size: 1.2rem;
        margin: 15px 0;
    }

    .contact-details iframe {
        height: 400px;
        margin-top: 30px;
    }

    header {
        padding: 20px 120px;
        backdrop-filter: blur(10px);
    }

    header h1 {
        font-size: 32px;
    }

    .floating-button, .whatsapp-button {
        padding: 15px 30px;
        font-size: 18px;
        border-radius: 30px;
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
