/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --secondary: #FFC107;
    --light: #F5F5F5;
    --dark: #333333;
    --gray: #777777;
    --white: #FFFFFF;
    --section-padding: 100px 0;
    --border-radius: 8px;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--white);
}

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

section {
    padding: var(--section-padding);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

header.sticky {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 28px;
    margin: 0;
    color: var(--white);
    transition: var(--transition);
}

header.sticky .logo h1 {
    color: var(--dark);
}

.logo h1 span {
    color: var(--secondary);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

header.sticky nav ul li a {
    color: var(--dark);
}

nav ul li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover:before,
nav ul li a.active:before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

header.sticky .mobile-menu-btn {
    color: var(--dark);
}

/* Hero Section with Video Slider */
.hero {
    height: 100vh;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.video-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 1;
    width: 80%;
    max-width: 800px;
}

.slide .content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation-delay: 0.3s;
}

.slide .content p {
    font-size: 18px;
    margin-bottom: 30px;
    animation-delay: 0.5s;
}

.slide .content .btn {
    animation-delay: 0.7s;
}

.slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.navigation {
    position: absolute;
    bottom: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    padding: 0 30px;
}

.prev-btn, .next-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary);
}

.navigation-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--white);
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(56, 142, 60, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.08);
    top: -150px;
    left: -150px;
    animation: float-circle 15s infinite ease-in-out;
}

.about::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 193, 7, 0.08);
    bottom: -100px;
    right: -100px;
    animation: float-circle-reverse 20s infinite ease-in-out;
}

@keyframes float-circle {
    0% { transform: translate(0, 0); }
    50% { transform: translate(50px, 25px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-circle-reverse {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -20px); }
    100% { transform: translate(0, 0); }
}

.about .section-header h2 {
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.about .section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.image-side {
    flex: 0 0 45%;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.image-side.animated {
    transform: translateX(0);
    opacity: 1;
}

/* Founder image styling */
.founder-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
}

.founder-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.12));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.founder-image-container:hover .founder-image {
    transform: translateY(-10px);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.18));
}

.founder-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
    transition: all 0.8s ease;
}

.founder-decoration.circle-1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(126, 217, 87, 0.2) 0%, rgba(126, 217, 87, 0) 70%);
    bottom: 40px;
    left: 20px;
    animation: float-circle 15s infinite ease-in-out alternate;
}

.founder-decoration.circle-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0) 70%);
    top: 30px;
    right: 0;
    animation: float-circle 12s infinite ease-in-out alternate-reverse;
}

.founder-decoration.leaf-1 {
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%237ED957"><path d="M6.05 8.05a7.001 7.001 0 0 0 9.9 9.9L6.05 8.05zm13.889-.689-4.24-4.241A6.956 6.956 0 0 0 11.5 2c-3.6 0-6.5 2.9-6.5 6.5 0 1.49.5 2.86 1.34 3.962l10.296 10.295a6.956 6.956 0 0 0 4.199 1.243c3.6 0 6.5-2.9 6.5-6.5 0-1.486-.496-2.853-1.33-3.95l-2.025-3.189z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    top: 10%;
    left: 15%;
    opacity: 0.7;
    animation: rotate-element 20s linear infinite;
}

.founder-decoration.leaf-2 {
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFC107"><path d="M6.05 8.05a7.001 7.001 0 0 0 9.9 9.9L6.05 8.05zm13.889-.689-4.24-4.241A6.956 6.956 0 0 0 11.5 2c-3.6 0-6.5 2.9-6.5 6.5 0 1.49.5 2.86 1.34 3.962l10.296 10.295a6.956 6.956 0 0 0 4.199 1.243c3.6 0 6.5-2.9 6.5-6.5 0-1.486-.496-2.853-1.33-3.95l-2.025-3.189z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    bottom: 15%;
    right: 10%;
    opacity: 0.6;
    animation: rotate-element 15s linear infinite reverse;
}

.founder-image-container:hover .founder-decoration {
    opacity: 0.8;
    transform: scale(1.1);
}

.founder-caption {
    text-align: center;
    background-color: white;
    border-radius: 10px;
    padding: 15px 25px;
    margin-top: -30px;
    position: relative;
    z-index: 4;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    transition: all 0.5s ease;
    border-left: 4px solid #7ED957;
}

.founder-caption h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.founder-caption p {
    margin: 0;
    font-size: 14px;
    color: #7ED957;
    font-weight: 500;
}

.founder-image-container:hover .founder-caption {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

@keyframes rotate-element {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Original image styling (keeping for other images) */
.image-side img {
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: perspective(600px) rotateY(0deg);
    position: relative;
}

.image-side img:hover {
    transform: perspective(600px) rotateY(5deg);
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.15);
}

.image-side::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 3px solid var(--secondary);
    border-radius: 15px;
    top: -20px;
    left: -20px;
    z-index: -1;
    opacity: 0.3;
}

.text-side {
    flex: 0 0 50%;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.text-side.animated {
    transform: translateX(0);
    opacity: 1;
}

.text-side h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.text-side h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    bottom: -8px;
    left: 0;
    border-radius: 1.5px;
}

.text-side p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    margin-top: 30px;
    gap: 20px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    border: 1px solid rgba(76, 175, 80, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item h4 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover h4 {
    transform: scale(1.1);
    color: var(--secondary);
}

.stat-item h4 i {
    transition: all 0.3s ease;
}

.stat-item:hover h4 i {
    animation: icon-bounce 0.8s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-item p {
    margin-bottom: 0;
    color: var(--gray);
    font-size: 15px;
    font-weight: 500;
}

/* Services Section - New Design */
.services-new {
    background-color: #2A5226; /* Dark green background */
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.services-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
}

.services-content {
    flex: 0 0 60%;
    padding-right: 30px;
}

.services-text {
    margin-bottom: 50px;
}

.subtitle {
    font-size: 18px;
    color: #7ED957; /* Light green */
    margin-bottom: 10px;
    font-weight: 500;
}

.logo-container {
    margin-bottom: 20px;
    max-width: 300px;
}

.services-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    animation: logoGlow 3s infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 3px rgba(126, 217, 87, 0.5));
    }
    to {
        filter: drop-shadow(0 0 8px rgba(126, 217, 87, 0.8));
    }
}

.services-text h2 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.services-text h2 span {
    color: #FFC107; /* Yellow accent */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
}

.service-item {
    background-color: #3C6936; /* Medium green */
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.service-item:hover:before {
    transform: translateX(0);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: #FFC107; /* Yellow */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 22px;
    color: #2A5226; /* Dark green */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: rotate(360deg);
}

.service-name {
    font-weight: 600;
    font-size: 16px;
}

.services-images {
    flex: 0 0 40%;
    position: relative;
    height: 450px;
}

.shape-diamond {
    width: 200px;
    height: 200px;
    background-color: #FFC107; /* Yellow diamond */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 12px;
    z-index: 1;
}

.image-rounded {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    background-color: white;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.image-rounded img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-right {
    top: 0;
    right: 20px;
}

.bottom-right {
    bottom: 0;
    right: 100px;
}

.animate-on-hover {
    transition: all 0.4s ease;
}

/* Responsive styles for services section */
@media (max-width: 992px) {
    .services-content,
    .services-images {
        flex: 0 0 100%;
    }
    
    .services-content {
        margin-bottom: 50px;
        padding-right: 0;
    }
    
    .services-images {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-text h2 {
        font-size: 28px;
    }
    
    .image-rounded {
        width: 150px;
        height: 150px;
    }
    
    .shape-diamond {
        width: 150px;
        height: 150px;
    }
}

/* Keep original service styles for backward compatibility */
.services {
    background-color: var(--light);
}

.services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Products Section */
.product-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    margin: 0 5px 10px;
    border: none;
    background-color: var(--light);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Item Container */
.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

/* Product Link Styling */
.product-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Product Card Styling (With Flip Animation) */
.product-card {
    position: relative;
    width: 100%;
    height: 380px;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    cursor: pointer;
}

.product-item:hover .product-card {
    transform: rotateY(180deg);
}

.product-front, .product-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-back {
    transform: rotateY(180deg);
    padding: 20px;
}

/* Product Image Styling (Circular Images) */
.product-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto 10px;
    position: relative;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-front .product-image {
    margin-top: 30px;
}

.product-back .product-image {
    margin-top: 10px;
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-front:hover .product-image img {
    transform: scale(1.05);
}

/* Product Text Styling */
.product-front h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
    text-align: center;
}

.product-short-desc {
    font-size: 14px;
    color: var(--gray);
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}

/* Product Back Side Styling */
.product-details {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.product-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-details p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--gray);
}

/* Quote Button Styling */
.quote-btn {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 8px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    z-index: 10;
}

.quote-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Category Indicator */
.product-front:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background-color: var(--primary);
    border-radius: 0 0 8px 8px;
}

.product-item[data-category="cattle"] .product-front:before {
    background-color: #4CAF50; /* Green */
}

.product-item[data-category="poultry"] .product-front:before {
    background-color: #FF5722; /* Orange */
}

.product-item[data-category="swine"] .product-front:before {
    background-color: #9C27B0; /* Purple */
}

.product-item[data-category="aqua"] .product-front:before {
    background-color: #2196F3; /* Blue */
}

/* Quote Modal */
.quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.quote-modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    animation: modalFadeIn 0.5s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-right: 15px;
}

.language-switcher span {
    margin: 0 5px;
    color: #999;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--primary);
    color: white;
}

.close-modal:hover {
    color: var(--dark);
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 15px;
}

.form-group textarea {
    resize: vertical;
}

/* Contact Section */
.contact {
    position: relative;
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
    z-index: -1;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info {
    flex: 0 0 45%;
    background-color: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    margin-right: 20px;
    color: var(--secondary);
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

.contact-form {
    flex: 0 0 50%;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#form-message {
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

header .logo a {
    display: block;
}

header .logo .logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

header .logo .logo-img:hover {
    transform: scale(1.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
    transition: filter 0.3s ease;
}

.footer-logo-img:hover {
    filter: brightness(1.2);
}

.footer-logo p {
    color: var(--gray);
}

.footer-links h3,
.footer-newsletter h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: inherit;
    font-size: 15px;
}

.footer-newsletter button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
    }
    
    .image-side, .text-side {
        flex: 0 0 100%;
    }
    
    .image-side {
        margin-bottom: 40px;
    }
    
    .contact-info, .contact-form {
        flex: 0 0 100%;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 30px;
    }
    
    .slide .content h1 {
        font-size: 36px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        transition: var(--transition);
        box-shadow: var(--box-shadow);
        z-index: 999;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 40px 20px;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
    }
    
    nav ul li a {
        color: var(--dark);
        display: block;
        font-size: 18px;
    }
    
    .footer-content > div {
        flex: 0 0 100%;
        margin-bottom: 40px;
    }
    
    .footer-content > div:last-child {
        margin-bottom: 0;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .slide .content h1 {
        font-size: 28px;
    }
    
    .slide .content p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .stat-item:last-child {
        margin-bottom: 0;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}
