/* Global Styles */
:root {
    --primary-green: #1a8f5a;
    --hover-green: #146c44;
    --accent-yellow: #ffcc00;
    --text-dark: #333;
    --text-light: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

body.sidebar-open {
    margin-right: 0; /* Default to no margin shift */
    overflow-x: hidden; /* Prevent horizontal scroll */
    transition: margin-right 0.3s ease; /* Smooth transition */
}

@media (min-width: 769px) {
    body.sidebar-open {
        margin-right: 300px; /* Only apply margin on larger screens */
    }
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-green), #0f5e36, #2cb7c9) !important;
    padding: 15px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 2000;
    overflow: hidden;
}

.navbar-brand img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link:hover {
    transform: scale(1.05) translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(26, 143, 90, 0.5);
    color: var(--accent-yellow) !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 204, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.navbar-nav .nav-link:hover::before {
    width: 200%;
    height: 200%;
}

.navbar-nav .nav-link span {
    position: relative;
    z-index: 1;
}

.navbar-nav .nav-link.active {
    background: rgba(255, 204, 0, 0.2);
    color: var(--accent-yellow) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    background: url('Pictures/hero.jpeg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    z-index: 1;
    perspective: 1000px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 143, 90, 0.6), rgba(44, 183, 201, 0.5), rgba(0, 0, 0, 0.7));
    animation: gradientFlow 10s infinite ease-in-out;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Ccircle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.3)" /%3E%3Ccircle cx="90" cy="90" r="3" fill="rgba(26,143,90,0.2)" /%3E%3Ccircle cx="50" cy="30" r="1" fill="rgba(255,204,0,0.2)" /%3E%3C/svg%3E') repeat;
    animation: particleDrift 20s infinite linear;
    opacity: 0.4;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateZ(20px);
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(26, 143, 90, 0.6);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: heroTextIn 1.5s ease-out forwards;
}

.hero p {
    font-size: 24px;
    font-weight: 300;
    max-width: 700px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateY(30px);
    animation: heroTextIn 1.8s ease-out 0.3s forwards;
}

.hero .button {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 30px;
    background: var(--primary-green);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(26, 143, 90, 0.5);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: heroButtonIn 2s ease-out 0.6s forwards;
    position: relative;
    overflow: hidden;
}

.hero .button:hover {
    transform: scale(1.1) translateY(-5px);
    background: var(--hover-green);
    box-shadow: 0 10px 30px rgba(26, 143, 90, 0.7);
}

.hero .button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.hero .button:hover::before {
    width: 300%;
    height: 300%;
}

.hero .button span {
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    padding: 100px 10%;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    isolation: isolate;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(26, 143, 90, 0.2), transparent 70%);
    animation: orbitBackground 20s infinite linear;
    z-index: -2;
}

.section::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Ccircle cx="50" cy="50" r="40" fill="rgba(26,143,90,0.1)" /%3E%3C/svg%3E') repeat;
    animation: particleFlow 25s infinite ease-in-out;
    opacity: 0.3;
    z-index: -1;
}

/* Content Sections */
.content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    perspective: 1200px;
    background: #f8f9fa;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.content.reverse {
    flex-direction: row-reverse;
}

.text.animated-text {
    flex: 1;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 0 40px rgba(26, 143, 90, 0.3);
    transform: translateZ(20px) rotateX(5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
}

.text.animated-text.visible {
    opacity: 1;
    animation: bounceIn 1s ease-out forwards, sway 4s infinite ease-in-out 1s;
}

.text.animated-text::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 3px solid transparent;
    border-radius: 30px;
    background: conic-gradient(from 0deg, var(--primary-green), #ffcc00, #2cb7c9, var(--primary-green));
    animation: borderSpin 6s infinite linear;
    z-index: -1;
    filter: blur(3px);
}

.text.animated-text:hover {
    transform: translateZ(40px) rotateX(0deg) scale(1.05);
    box-shadow: 0 0 60px rgba(26, 143, 90, 0.5);
}

.text.animated-text h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(26, 143, 90, 0.7);
    animation: flicker 3s infinite ease-in-out;
}

.text.animated-text p {
    font-size: 20px;
    color: #222;
    line-height: 1.8;
    font-weight: 300;
    transform: translateZ(10px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.text.animated-text:hover p {
    transform: translateZ(20px);
    opacity: 1;
}

.image.animated-image {
    flex: 1;
    text-align: center;
    transform-style: preserve-3d;
    opacity: 0;
    max-width: 500px;
}

.image.animated-image.visible {
    opacity: 1;
    animation: popUp 1s ease-out forwards;
}

.image.animated-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateZ(30px) rotateY(10deg);
    transition: transform 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
    object-fit: cover;
    filter: saturate(1.3);
}

.image.animated-image:hover img {
    transform: translateZ(60px) rotateY(0deg) scale(1.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    filter: saturate(1.6) brightness(1.1);
}

.image.animated-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -40px;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), rgba(26, 143, 90, 0));
    transform: translateY(-50%) skewX(15deg);
    animation: beamPulse 2s infinite ease-in-out;
    z-index: 0;
}

.image.animated-image::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid rgba(26, 143, 90, 0.6);
    border-radius: 25px;
    animation: spinGlow 4s infinite ease-in-out;
    z-index: -1;
}

.button.animated-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--primary-green);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(26, 143, 90, 0.5);
    transition: transform 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    border: none;
    cursor: pointer;
}

.button.animated-button.visible {
    opacity: 1;
    animation: popUp 1s ease-out forwards 0.5s;
}

.button.animated-button:hover {
    transform: scale(1.1) translateY(-5px);
    background: var(--hover-green);
    box-shadow: 0 8px 25px rgba(26, 143, 90, 0.7);
}

.button.animated-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.button.animated-button:hover::before {
    width: 300%;
    height: 300%;
}

.button.animated-button span {
    position: relative;
    z-index: 1;
}

/* About Page Specific Styles */
.content-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 1s ease-out forwards;
}

.text-content p {
    font-size: 18px;
    color: #222;
    line-height: 1.8;
}

.image-content {
    flex: 1;
}

.animated-image {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.animated-image.visible {
    opacity: 1;
    transform: scale(1);
}

h2 {
    color: var(--primary-green);
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(26, 143, 90, 0.5);
    animation: flicker 4s infinite ease-in-out;
}

.mission-vision {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.mission, .vision {
    flex: 1;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 1s ease-out forwards;
}

.mission { animation-delay: 0.2s; }
.vision { animation-delay: 0.4s; }

.team {
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-member {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.team-member.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.team-member:hover .team-img {
    transform: scale(1.1);
}

.team-member h3 {
    color: var(--primary-green);
    margin: 10px 0;
    font-size: 20px;
}

.team-member p {
    font-size: 16px;
    color: #555;
}

.products-preview {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.product-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.product-item:hover .product-img {
    transform: scale(1.05);
}

.product-item p {
    font-size: 16px;
    color: #555;
}

/* Gallery Section */
.gallery-section {
    padding: 40px 15px;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(26, 143, 90, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulseGlow 8s infinite ease-in-out;
    z-index: -1;
}

.gallery-section .animated-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(26, 143, 90, 0.5);
    opacity: 0;
    transform: translateY(50px);
    animation: bounceIn 1s ease-out forwards;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

.gallery-item.animated-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
}

.gallery-item.animated-gallery.visible {
    opacity: 1;
    animation: popUp 0.8s ease-out forwards;
}

.gallery-item.animated-gallery:nth-child(1) { animation-delay: 0.1s; }
.gallery-item.animated-gallery:nth-child(2) { animation-delay: 0.2s; }
.gallery-item.animated-gallery:nth-child(3) { animation-delay: 0.3s; }
.gallery-item.animated-gallery:nth-child(4) { animation-delay: 0.4s; }

.gallery-item.animated-gallery:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 30px rgba(26, 143, 90, 0.4);
}

.gallery-item.animated-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item.animated-gallery:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.gallery-item.animated-gallery .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 143, 90, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 15px;
}

.gallery-item.animated-gallery:hover .overlay {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-item.animated-gallery .overlay h3 {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item.animated-gallery:hover .overlay h3 {
    transform: translateY(0);
}

/* Product Container (New for Products Page) */
.product-container {
    padding: 80px 10%;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.product-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26, 143, 90, 0.2), transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulseGlow 10s infinite ease-in-out;
    z-index: -1;
}

.product-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-bar {
    display: flex;
    align-items: center;
    max-width: 400px;
    width: 100%;
    position: relative;
}

#productSearch {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#productSearch:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 15px rgba(26, 143, 90, 0.3);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 10px;
    background: var(--primary-green);
    color: var(--text-light);
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
    background: var(--hover-green);
}

#sortProducts {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#sortProducts:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 15px rgba(26, 143, 90, 0.3);
    outline: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card.animated-product {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    opacity: 0;
    transform: scale(0.9) rotate(-3deg);
    position: relative;
    overflow: hidden;
}

.product-card.animated-product.visible {
    opacity: 1;
    animation: popUp 0.8s ease-out forwards;
}

.product-card.animated-product:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 30px rgba(26, 143, 90, 0.4);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product-card.animated-product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.product-card.animated-product:hover img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.product-card.animated-product h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card.animated-product p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.product-card.animated-product .price {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 15px;
}

.product-card.animated-product .add-to-cart {
    width: 100%;
}

/* Contact Section */
.contact-section {
    padding: 80px 10%;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.contact-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.contact-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 15px rgba(26, 143, 90, 0.5);
    animation: flicker 4s infinite ease-in-out;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.info-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: infoSlideIn 0.8s ease-out forwards;
}

.info-card:nth-child(1) { animation-delay: 0.2s; }
.info-card:nth-child(2) { animation-delay: 0.4s; }
.info-card:nth-child(3) { animation-delay: 0.6s; }
.info-card:nth-child(4) { animation-delay: 0.8s; }
.info-card:nth-child(5) { animation-delay: 1.0s; }

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(26, 143, 90, 0.4);
}

.info-card i {
    font-size: 24px;
    color: var(--primary-green);
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.info-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.info-card p {
    font-size: 18px;
    color: #222;
    margin: 0;
}

.info-card a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
}

.info-card a:hover {
    color: var(--accent-yellow);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 28px;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(26, 143, 90, 0.3);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background: var(--primary-green);
    color: var(--text-light);
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    transform: scale(1.05);
    background: var(--hover-green);
    box-shadow: 0 6px 20px rgba(26, 143, 90, 0.5);
}

.animate-feedback {
    animation: feedbackPulse 0.5s ease-in-out;
}

.map {
    margin: 40px auto;
    padding: 0;
    max-width: 1100px;
}

.map h2 {
    font-size: 28px;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 20px;
}

.map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 8px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-green), #0f5e36, #2cb7c9);
    color: var(--text-light);
    padding: 20px 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.footer-logo:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.footer-nav a:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
    color: var(--accent-yellow);
}

.footer-social .social-icon {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 10px;
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.footer-social .social-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    color: var(--accent-yellow);
}

.footer-contact p {
    margin: 5px 0;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Use percentage for responsiveness */
    width: 300px; /* Default width for larger screens */
    max-width: 100%; /* Ensure it doesn't exceed viewport width */
    height: 100%;
    z-index: 1000;
    background-color: #fcf9f9;
    color: rgb(20, 20, 20);
    transition: right 0.3s ease;
    overflow-x: hidden;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.sidebar.active {
    right: 0;
}

.sidebar .form-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.sidebar .form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar .form input,
.sidebar .form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar .form input:focus,
.sidebar .form textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(26, 143, 90, 0.3);
    outline: none;
}

.sidebar .form button {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-green);
    border: none;
    color: var(--text-light);
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sidebar .form button:hover {
    background-color: var(--hover-green);
    transform: scale(1.05);
}

.sidebar .form p {
    margin-top: 10px;
    font-size: 14px;
}

.sidebar .form a {
    color: #1e90ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.sidebar .form a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #28a745;
    color: var(--text-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1100;
}

.success-message button {
    background-color: #d9534f;
    color: var(--text-light);
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.success-message button:hover {
    background-color: #c9302c;
}

/* Animations */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes particleDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 50px); }
}

@keyframes heroTextIn {
    0% { opacity: 0; transform: translateY(50px) scale(0.9); }
    60% { opacity: 1; transform: translateY(0) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroButtonIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.8); }
    70% { opacity: 1; transform: translateY(0) scale(1.1); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes orbitBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes particleFlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 20px) scale(1.05); }
}

@keyframes borderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 15px rgba(26, 143, 90, 0.5); }
    50% { opacity: 0.95; text-shadow: 0 0 25px rgba(26, 143, 90, 0.7); }
}

@keyframes beamPulse {
    0%, 100% { width: 80px; opacity: 0.8; }
    50% { width: 100px; opacity: 1; }
}

@keyframes frameGlow {
    0%, 100% { border-color: rgba(26, 143, 90, 0.5); box-shadow: 0 0 20px rgba(26, 143, 90, 0.3); }
    50% { border-color: rgba(26, 143, 90, 0.8); box-shadow: 0 0 40px rgba(26, 143, 90, 0.6); }
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes infoSlideIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes feedbackPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: translateY(-100px) scale(0.8); }
    60% { opacity: 1; transform: translateY(20px) scale(1.1); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sway {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(20px) rotate(5deg); }
    75% { transform: translateX(-20px) rotate(-5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes popUp {
    0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
    70% { opacity: 1; transform: scale(1.2) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes spinGlow {
    0% { transform: rotate(0deg); box-shadow: 0 0 10px rgba(26, 143, 90, 0.5); }
    50% { transform: rotate(180deg); box-shadow: 0 0 30px rgba(26, 143, 90, 0.8); }
    100% { transform: rotate(360deg); box-shadow: 0 0 10px rgba(26, 143, 90, 0.5); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar-nav .nav-link {
        font-size: 12px;
        padding: 5px 10px;
        margin: 2px 0;
    }

    .hero {
        height: 50vh;
    }

    .hero-content {
        padding: 15px 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
        max-width: 90%;
    }

    .hero .button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .container {
        padding: 20px 15px;
    }

    .content {
        flex-direction: column;
        padding: 60px 15px;
        gap: 30px;
    }

    .text.animated-text {
        padding: 25px;
    }

    .text.animated-text h2 {
        font-size: 32px;
    }

    .text.animated-text p {
        font-size: 18px;
    }

    .image.animated-image {
        max-width: 100%;
    }

    h2 {
        font-size: 28px;
    }

    .content-row {
        flex-direction: column;
        gap: 20px;
    }

    .mission-vision {
        flex-direction: column;
    }

    .team-grid, .products-grid {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .gallery-item.animated-gallery img {
        height: 150px;
    }

    .gallery-item.animated-gallery .overlay h3 {
        font-size: 18px;
    }

    .product-container {
        padding: 60px 5%;
    }

    .product-controls {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        max-width: 100%;
    }

    #productSearch {
        padding: 10px 35px 10px 12px;
        font-size: 14px;
    }

    .search-btn {
        padding: 6px 10px;
    }

    #sortProducts {
        padding: 8px 12px;
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-card.animated-product img {
        height: 150px;
    }

    .product-card.animated-product h3 {
        font-size: 18px;
    }

    .product-card.animated-product p {
        font-size: 14px;
    }

    .product-card.animated-product .price {
        font-size: 16px;
    }

    .contact-section {
        padding: 60px 5%;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-info {
        gap: 15px;
    }

    .info-card {
        padding: 15px;
    }

    .info-card i {
        font-size: 20px;
    }

    .info-card p {
        font-size: 16px;
    }

    .contact-form {
        padding: 20px;
        max-width: 100%;
    }

    .contact-form h2 {
        font-size: 24px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .contact-form button {
        padding: 10px;
        font-size: 16px;
    }

    .map iframe {
        height: 250px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav a,
    .footer-social .social-icon {
        margin: 5px 0;
    }

    body.sidebar-open {
        margin-right: 0; /* Ensure no margin shift on mobile */
    }

    .sidebar {
        width: 100%; /* Full width on mobile */
        right: -100%; /* Hide fully off-screen */
        padding: 15px; /* Slightly reduced padding for mobile */
    }

    .sidebar.active {
        right: 0; /* Slide in to full visibility */
    }

    .sidebar .form input,
    .sidebar .form textarea {
        font-size: 12px; /* Smaller font for mobile */
        padding: 8px; /* Adjusted padding */
    }

    .sidebar .form button {
        font-size: 14px; /* Smaller button text */
        padding: 8px; /* Adjusted padding */
    }

    .sidebar .form p {
        font-size: 12px; /* Smaller text */
    }
}

/* Extra small screens (e.g., phones below 480px) */
@media (max-width: 480px) {
    .sidebar {
        padding: 10px; /* Further reduce padding */
    }

    .sidebar .form input,
    .sidebar .form textarea {
        font-size: 11px;
        padding: 6px;
    }

    .sidebar .form button {
        font-size: 12px;
        padding: 6px;
    }

    .sidebar .form p {
        font-size: 11px;
    }
}