* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-yellow: #FDB913;
    --dark-brown: #3E2723;
    --light-brown: #8D6E63;
    --green: #7CB342;
    --cream: #FFF8E1;
    --black: #1a1a1a;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-yellow) 0%, var(--green) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-brown) 0%, var(--light-brown) 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent horizontal overflow */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    scroll-behavior: smooth;
}

/* Fix all sections to not exceed viewport width */
section {
    max-width: 100%;
    overflow-x: hidden;
}

/* Navigation */
nav {
    background: var(--gradient-dark);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img{
    width: 100px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%238D6E63" width="1200" height="600"/><path fill="%23FDB913" opacity="0.1" d="M0 300L50 320L100 310L150 330L200 315L250 335L300 320L350 340L400 325L450 345L500 330L550 350L600 335L650 355L700 340L750 360L800 345L850 365L900 350L950 370L1000 355L1050 375L1100 360L1150 380L1200 365V600H0Z"/></svg>');
    
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-content {
    max-width: 800px;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--dark-brown);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--dark-brown);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-brown);
}

/* Section Styles */
section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    font-size: 2rem;
    margin-top: 0.5rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--green);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--green) 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-image svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-yellow);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

/* Training Programs */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.training-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    padding: 2rem;
    border-radius: 20px;
    border-left: 5px solid var(--green);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.training-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.training-card:hover::before {
    opacity: 0.1;
}

.training-card h3 {
    color: var(--green);
    margin-bottom: 1rem;
}

.training-card ul {
    list-style: none;
    padding-left: 0;
}

.training-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.training-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-image {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--green) 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 15px 15px 0 0;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.item{
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
}

.item img{
    width: 100;
    height: 100%;
}

.gallery-item {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--green) 100%);
    height: 250px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.gallery-item:hover::before {
    left: 100%;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: var(--shadow-lg);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-image {
    background: linear-gradient(135deg, var(--light-brown) 0%, var(--dark-brown) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.blog-content p {
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--green);
    text-decoration: none;
    font-weight: bold;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info h3 {
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--green);
}

.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--cream);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Messages - Add this to your bees.css file */

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

/* Loading state for button */
.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Active navigation link */
.nav-links a.active {
    color: var(--primary-yellow);
    border-bottom: 2px solid var(--primary-yellow);
}
/* Footer */
footer {
    background: var(--dark-brown);
    color: var(--white);
    text-align: center;
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-links a {
    color: var(--primary-yellow);
    font-size: 2rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    * {
        max-width: 100vw;
    }
    
    /* Navigation fixes */
    nav {
        padding: 1rem 3%;
        width: 100%;
    }
    
    .nav-container {
        width: 100%;
        padding: 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 60px;
        height: auto;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        gap: 0;
        background: var(--dark-brown);
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        padding: 1rem 0;
        z-index: 999;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero Section fixes */
    .hero {
        min-height: 80vh;
        padding: 2rem 5%;
        margin-top: 70px;
        width: 100%;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .hero p {
        font-size: 1rem;
        word-wrap: break-word;
    }

    /* Button fixes */
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* Section padding fixes */
    section {
        padding: 3rem 5%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .section-title {
        font-size: 1.8rem;
        word-wrap: break-word;
        padding: 0 1rem;
    }

    /* About section fixes */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
    }
    
    .about-text {
        width: 100%;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .about-text p {
        word-wrap: break-word;
    }
    
    .about-image {
        width: 100%;
        padding: 1rem;
    }
    
    .about-image img {
        max-width: 100%;
        height: auto;
    }

    /* Services grid fixes */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    
    .service-card {
        width: 100%;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    /* Training grid fixes */
    .training-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    
    .training-card {
        width: 100%;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    /* Products grid fixes */
    .products-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    
    .product-card {
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-image {
        height: auto;
        width: 100%;
    }
    
    .product-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Gallery fixes */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        padding: 1rem 0;
    }
    
    .gallery-item {
        width: 100%;
        height: 200px;
        box-sizing: border-box;
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Contact section fixes */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
        padding: 1.5rem;
        box-sizing: border-box;
    }
    
    .contact-item {
        flex-wrap: wrap;
        word-wrap: break-word;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer fixes */
    footer {
        width: 100%;
        padding: 2rem 5%;
        box-sizing: border-box;
    }
    
    .footer-content {
        width: 100%;
    }
    
    .footer-content p,
    .footer-content a {
        word-wrap: break-word;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    /* Fix any images that might overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix font tags that might cause issues */
    font {
        display: inline-block;
        max-width: 100%;
        word-wrap: break-word;
    }
}

/* Additional fix for very small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo img {
        width: 50px;
    }
}