/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3b7302;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Visually-hidden but accessible to screen readers and search engines */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-logo.visible {
    opacity: 1;
    visibility: visible;
}

.header-logo img {
    height: 44px;
    width: auto;
}

/* Hamburger menu button — hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero-logo {
    text-align: center;
    margin: 0;
    padding: 0;
}

.hero-logo-img {
    height: 200px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    background-color: rgba(245, 248, 242, 0.7);
    border-radius: 8px;
    padding: 6px 10px;
}

nav ul li {
    margin-left: 0;
    padding: 0 14px;
    border-right: 1px solid rgba(59, 115, 2, 0.2);
}

nav ul li:last-child {
    border-right: none;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav ul li a.nav-section {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

nav ul li a.nav-section:hover {
    color: #3b7302;
}

nav ul li a:hover {
    color: #3b7302;
}

nav ul li a.active {
    color: #3b7302;
    border-bottom: 2px solid #3b7302;
    padding-bottom: 2px;
}

/* Content Section Styles */
.content-section {
    position: relative;
    background: white;
    z-index: 2;
    padding: 80px 0;
    scroll-margin-top: 100px;
}

/* Parallax Section Styles */
.parallax-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    scroll-margin-top: 100px;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}


/* Add styles for home section */
#home .content {
    position: relative;
    z-index: 2;
    width: 70%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Section Spacing */
#about {
    background-color: white;
    position: relative;
    z-index: 2;
    padding: 100px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.about-content {
    position: relative;
    z-index: 3;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

/* About Section Styles */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

/* Facilities Section Styles */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Services Section Styles */
#services {
    position: relative;
    background: url('images/Stable Inside.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

#services h2 {
    color: white;
}

#services h2::after {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 15px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 2.5rem;
    color: #3b7302;
    margin-bottom: 20px;
    background-color: white;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(59, 115, 2, 0.2);
}

.service-card h3 {
    color: #3b7302;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Contact Section Styles */
#contact {
    background-color: #f5f8f2;  /* Light green tint */
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.contact-info {
    max-width: 600px;
    margin: 30px auto 0;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: #3b7302;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.social-media {
    margin-top: 30px;
}

.social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #3b7302;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-media a:hover {
    transform: translateY(-5px);
    background-color: #2a5501;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer Styles */
footer {
    background-color: #363d47;
    color: white;
    padding: 18px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* "Created by Menes" credit link */
.created-by {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.created-by-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.created-by-logo {
    width: 26px;
    height: 26px;
    display: block;
}

.created-by:hover {
    opacity: 0.85;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1024px) {
    .about-content,
    .contact-wrapper {
        flex-direction: column;
    }
    
    .service-item,
    .service-item:nth-child(even) {
        flex-direction: column;
    }
    
    .service-item img {
        width: 100%;
    }
    
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 0 15px;
        height: 56px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(255, 255, 255, 0.98);
    }

    .header-logo.visible {
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    nav {
        position: fixed;
        top: 56px;
        right: -100%;
        width: 220px;
        height: auto;
        background: rgba(255, 255, 255, 0.6);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        transition: right 0.3s ease;
        box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 0 12px;
        align-items: flex-start;
        padding: 10px 0;
        z-index: 1001;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        background: none;
        border-radius: 0;
        padding: 0;
        gap: 0;
    }

    nav ul li {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid rgba(59, 115, 2, 0.1);
        width: 100%;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: flex;
        align-items: center;
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
    }

    nav ul li a.nav-section {
        font-size: 0.85rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .parallax-section {
        height: 100vh;
    }

    #home .content {
        width: 55%;
        max-width: none;
        padding: 15px;
    }

    .hero-logo-img {
        height: auto;
        width: 100%;
        max-width: 250px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
} 