:root {
    --primary-color: #3498db;
    --primary-color-dark: #15803d;
    --primary-color-light: #22c55e;
    --secondary-color: #2ecc71;
    --secondary-color-dark: #1d4ed8;
    --dark: #e5e7eb;
    --dark-light: #f3f4f6;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --white: #fff;
    --black: #000;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
    --section-padding: 80px 0;
    --vh: 1vh;
}

body {
    background: var(--dark);
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* Lock body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

a {
    text-decoration: none;
}

/* Header Styles - Improved */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    transition: var(--transition);
    z-index: 1000;
    padding: 0 20px;
}

header.active {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 80px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header nav .logo img {
    width: 160px;
    transition: var(--transition);
}

header.active nav .logo img {
    width: 140px;
}

header nav .links {
    display: flex;
    gap: 40px;
}

header nav .links a {
    color: #1e293b;
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

header nav .links a:hover,
header nav .links a.active {
    color: var(--primary-color);
}

header nav .icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

header nav .icons a {
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.1);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.1);
}

header nav .icons a:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.3);
}

/* Hero Section - Enhanced */
.hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(22, 163, 74, 0.1), transparent 60%);
    z-index: 0;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 40px;
}

.hero .div_Text {
    width: 50%;
    padding-right: 20px;
}

.hero .div_Text h4 {
    color: var(--gray-light);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out;
}

.hero .div_Text h1 {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #1e293b, var(--gray));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero .div_Text h1 span {
    background: linear-gradient(to right, var(--primary-color), var(--primary-color-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .div_Text p {
    margin: 30px 0;
    font-size: 18px;
    width: 90%;
    line-height: 1.7;
    color: var(--gray);
    animation: fadeInUp 1.2s ease-out;
}

.hero .div_img {
    width: 45%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s ease-out;
    animation: fadeInRight 1.2s ease-out;
}

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

.hero .div_img:hover {
    transform: translateY(-10px);
}

.hero .div_img:hover img {
    transform: scale(1.05);
}

.hero .div_img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(22, 163, 74, 0.2), rgba(37, 99, 235, 0.2));
    z-index: 1;
    border-radius: 0 0 300px 300px;
}

.hero .div_img .person {
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.hero .div_img:hover .person {
    transform: scale(1.05);
}

.hero .div_design {
    width: 45%;
    height: 500px;
    position: relative;
    animation: fadeInRight 1.2s ease-out;
}

.design-element {
    width: 100%;
    height: 100%;
    position: relative;
    background: rgba(22, 163, 74, 0.05);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Texts */
.floating-texts {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.float-text {
    position: absolute;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

/* Position each text element */
.float-text:nth-child(1) {
    top: 20%;
    left: 25%;
    animation-delay: 0s;
}

.float-text:nth-child(2) {
    top: 40%;
    right: 20%;
    animation-delay: 1.2s;
}

.float-text:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 2.4s;
}

.float-text:nth-child(4) {
    top: 30%;
    left: 50%;
    animation-delay: 3.6s;
}

.float-text:nth-child(5) {
    bottom: 20%;
    right: 25%;
    animation-delay: 4.8s;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Make background elements more subtle */
.circle, .square, .dots, .lines::before {
    opacity: 0.05;
}

/* Update responsive styles */
@media (max-width: 992px) {
    .float-text {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .hero .div_design {
        height: 300px;
    }
    
    .float-text {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Adjust floating text positions for smaller screens */
    .float-text:nth-child(1) { left: 15%; }
    .float-text:nth-child(2) { right: 15%; }
    .float-text:nth-child(3) { left: 20%; }
    .float-text:nth-child(4) { left: 45%; }
    .float-text:nth-child(5) { right: 20%; }
    .hero {
        padding-top: 150px;
        padding-bottom: 60px;
        height: calc(100 * var(--vh));
        min-height: 500px;
    }
    
    .hero .div_Text,
    .hero .div_img {
        width: 100%;
        text-align: center;
    }
    
    .hero .div_Text {
        margin-top: 30px;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .hero .div_design {
        height: 250px;
    }
    
    .float-text {
        font-size: 11px;
        padding: 5px 10px;
    }
    .hero {
        padding-top: 130px;
        padding-bottom: 50px;
    }

    .hero .div_Text {
        margin-top: 60px;
    }
    
    .hero .div_Text h1 {
        font-size: 28px;
    }
}

@media (max-width: 380px) {
    .hero {
        padding-top: 120px;
    }
    
    .hero .div_Text {
        margin-top: 80px;
    }
    
    .hero .div_Text h1 {
        font-size: 24px;
    }
    
    .hero .div_Text p {
        font-size: 14px;
    }
}

/* Large circle */
.circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 30px solid var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation: rotate 20s linear infinite;
}

/* Square pattern */
.square {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 15px solid var(--secondary-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.2;   
    animation: pulse 3s ease-in-out infinite;
}


/* Animations */
@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(45deg) scale(1.1); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

@keyframes slide {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Buttons - Improved */
.btns {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    animation: fadeInUp 1.4s ease-out;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: capitalize;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.primary-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.4);
    color: var(--white);
}

.secondary-btn {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.secondary-btn:hover {
    background: var(--secondary-color-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

/* Featured Products Section - Enhanced */
.featured-products {
    padding: 100px 0;
    background: var(--dark-light);
    position: relative;
    z-index: 1;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9InJnYmEoMjIsIDE2MywgNzQsIDAuMSkiIGN4PSIxIiBjeT0iMSIgcj0iMSIvPjwvZz48L3N2Zz4=');
    opacity: 0.5;
    z-index: -1;
}

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

.top_section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.top_section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

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

.top_section p {
    font-size: 18px;
    color: var(--gray-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Product Cards - Enhanced */
.product-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 300px));
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 30px;
    justify-content: center;
    width: 100%;
}

.product-card {
    max-width: 300px;
    width: 100%;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(to bottom right, rgba(22, 163, 74, 0.05), rgba(37, 99, 235, 0.05));
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(3px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details-btn {
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.2);
    font-size: 16px;
}

.view-details-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(0);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
    color: white;
}

.view-details-btn i {
    font-size: 20px;
}

.product-card:hover .view-details-btn {
    transform: translateY(0);
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: rgba(248, 250, 252, 0.9);
}

.product-category {
    display: inline-block;
    background: rgba(22, 163, 74, 0.1);
    color: #000000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 700;
    line-height: 1.3;
}

.product-description {
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 15px;
}

.details-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
    font-size: 13px;
}

.details-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
    color: white;
}

.details-btn i {
    font-size: 14px;
}

/* Projects Section - Enhanced */
.projects {
    padding: 100px 0;
    position: relative;
}

.projects .project_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.projects .project_box:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.projects .project_box img {
    width: 50%;
    height: 100%;
    min-height: 300px;
    max-height: 650px;
    object-fit: contain;
    transition: var(--transition);
    background: rgba(248, 250, 252, 0.5);
    padding: 20px;
}

.projects .project_box:hover img {
    transform: scale(1.05);
    object-fit: contain;
}

.projects .project_box .text {
    width: 50%;
    padding: 40px;
}

.projects .project_box .text h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: normal;
    color: #475569;
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

.projects .project_box .text h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 3px;
}

.projects .project_box .text h3 a {
    font-size: 32px;
    color: #1e293b;
    transition: var(--transition);
    display: block;
    margin-bottom: 30px;
}

.projects .project_box .text h3 a:hover {
    color: var(--primary-color);
}

.projects .project_box .text .link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 18px;
    border-radius: 50%;
    transform: rotate(45deg);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.3);
}

.projects .project_box .text .link:hover {
    transform: rotate(45deg) scale(1.2);
    background: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.projects .project_box.project_box_2 {
    flex-direction: row-reverse;
}

.projects .project_box.project_box_2 .text {
    text-align: right;
}

.projects .project_box.project_box_2 .text h4 {
    padding-left: 0;
    padding-right: 15px;
}

.projects .project_box.project_box_2 .text h4::before {
    left: auto;
    right: 0;
}

/* Responsive styles for project boxes */
@media (max-width: 992px) {
    .projects .project_box,
    .projects .project_box.project_box_2 {
        flex-direction: column;
        margin-bottom: 60px;
    }
    
    .projects .project_box img {
        width: 100%;
        height: 250px;
        min-height: auto;
        max-height: none;
        object-fit: contain;
        padding: 15px;
    }
    
    .projects .project_box .text {
        width: 100%;
        padding: 30px;
        text-align: center;
    }
    
    .projects .project_box .text h4 {
        padding-left: 0;
        padding-right: 0;
    }
    
    .projects .project_box .text h4::before {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        top: auto;
        bottom: 10px;
    }
    
    .projects .project_box .text h3 a {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .projects .project_box .text .link {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 70px 0;
    }
    
    .projects .project_box {
        margin-bottom: 40px;
    }
    
    .projects .project_box img {
        height: 200px;
        object-fit: contain;
        padding: 12px;
    }
    
    .projects .project_box .text {
        padding: 25px;
    }
    
    .projects .project_box .text h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .projects .project_box .text h3 a {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .projects .project_box .text .link {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .projects {
        padding: 60px 0;
    }
    
    .projects .project_box {
        margin-bottom: 30px;
        border-radius: 15px;
    }
    
    .projects .project_box img {
        height: 180px;
        object-fit: contain;
        padding: 10px;
    }
    
    .projects .project_box .text {
        padding: 20px;
    }
    
    .projects .project_box .text h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .projects .project_box .text h3 a {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .projects .project_box .text .link {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .projects {
        padding: 50px 0;
    }
    
    .projects .project_box {
        margin-bottom: 25px;
        border-radius: 12px;
    }
    
    .projects .project_box img {
        height: 160px;
        object-fit: contain;
        padding: 8px;
    }
    
    .projects .project_box .text {
        padding: 15px;
    }
    
    .projects .project_box .text h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .projects .project_box .text h3 a {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .projects .project_box .text .link {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* Why Choose Us Section - Enhanced */
.why-choose-us {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9InJnYmEoMzcsIDk5LCAyMzUsIDAuMSkiIGN4PSIxIiBjeT0iMSIgcj0iMSIvPjwvZz48L3N2Zz4=');
    opacity: 0.5;
    z-index: 0;
}

.why-choose-us .features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.why-choose-us .feature-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.why-choose-us .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.why-choose-us .feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
    position: relative;
}

.why-choose-us .feature-card .icon-wrapper::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(37, 99, 235, 0.3);
    animation: spin 20s linear infinite;
}

.why-choose-us .feature-card:hover .icon-wrapper {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.why-choose-us .feature-card .icon-wrapper i {
    font-size: 36px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.why-choose-us .feature-card:hover .icon-wrapper i {
    color: var(--white);
}

.why-choose-us .feature-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.why-choose-us .feature-card h2 a {
    color: #1e293b;
    transition: var(--transition);
}

.why-choose-us .feature-card:hover h2 a {
    color: var(--secondary-color);
}

.why-choose-us .feature-card p {
    color: #475569;
    line-height: 1.7;
}

/* Footer - Enhanced */
footer {
    background: var(--dark-light);
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    scroll-margin-top: 80px; /* Add space for fixed header when scrolling */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

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

.footer-social {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.2);
}

footer p {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    footer {
        padding: 50px 0 30px;
        scroll-margin-top: 70px;
    }

    .footer-social {
        gap: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 40px 0 25px;
        scroll-margin-top: 60px;
    }

    .footer-social {
        gap: 12px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    footer p {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    footer {
        padding: 30px 0 20px;
        scroll-margin-top: 50px;
    }

    .footer-social {
        gap: 10px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    footer p {
        font-size: 12px;
    }
}

/* Loading and Error States */
.loading-state, .error-state, .no-products {
    text-align: center;
    padding: 50px 0;
    color: var(--gray-light);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(22, 163, 74, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.error-state i, .no-products i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

/* Search bar styles - Enhanced */
.search-container {
    max-width: 500px;
    margin: 30px auto 0;
}

.search-container .input-group {
    transition: all 0.3s ease;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-container .input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.2);
}

.search-container .input-group-text {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(248, 250, 252, 0.8);
    border-radius: 30px 0 0 30px;
    padding-left: 20px;
    color: #000000;
}

.search-container .input-group-text i {
    color: #000000;
}

.search-container .form-control {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(248, 250, 252, 0.8);
    color: #000000 !important;
    border-radius: 0 30px 30px 0;
    padding: 12px 20px;
    font-size: 16px;
}

.search-container .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background: rgba(248, 250, 252, 0.9);
    color: #000000 !important;
}

.search-container .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* Pagination Styles - Enhanced */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(22, 163, 74, 0.2);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Styles - Improved */
.close_menu,
.mobile-logo,
.icon_menu {
    display: none;
}

@media (max-width: 1400px) {
    .container {
        width: 90%;
    }
    
    .hero .div_Text h1 {
        font-size: 58px;
    }
    
    .product-cards {
        grid-template-columns: repeat(3, minmax(260px, 340px));
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 90%;
    }
    
    .hero .div_Text h1 {
        font-size: 50px;
    }
    
    .projects .project_box .text h3 a {
        font-size: 28px;
    }

    .product-image {
        height: 220px;
    }

    .product-cards {
        grid-template-columns: repeat(2, minmax(220px, 280px));
        gap: 15px;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .container {
        width: 90%;
    }

    header {
        height: 80px;
    }

    header nav .links {
        position: fixed;
        top: 0;
        bottom: 0; /* Ensure it stretches to bottom of viewport */
        left: -100%;
        width: 80%;
        height: 100%; /* Full height */
        background-color: var(--white);
        z-index: 999;
        padding: 50px 20px 80px; /* Add more padding at the bottom for scrolling content */
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        box-shadow: var(--box-shadow);
        transition: var(--transition);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        overscroll-behavior: contain; /* Prevent scroll chaining */
    }
    
    header nav .links.active {
        left: 0;
    }
    
    .close_menu {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 24px;
        cursor: pointer;
        color: #1e293b;
        transition: all 0.3s ease;
    }

    .close_menu:hover {
        color: var(--primary-color);
        transform: rotate(90deg);
    }
    
    .mobile-logo {
        display: block;
        margin-bottom: 35px;
    }

    .mobile-logo img {
        width: 140px;
    }
    
    .icon_menu {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
        color: #1e293b;
        transition: all 0.3s ease;
        background: transparent;
        border: none;
        padding: 0;
        width: 40px;
        height: 40px;
    }

    .icon_menu:hover {
        color: var(--primary-color);
    }
    
    header nav .icons {
        gap: 15px;
    }
    
    header nav .icons a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .language-switcher .lang-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-switcher .dropdown-menu {
        min-width: 140px;
    }
    
    .language-switcher .dropdown-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero .div_Text,
    .hero .div_design {
        width: 100%;
    }
    
    .hero .div_design {
        height: 400px;
    }
    
    .hero .div_Text p {
        width: 100%;
        max-width: 600px;
        margin: 25px auto;
    }
    
    .btns {
        justify-content: center;
    }
    
    .projects .project_box,
    .projects .project_box.project_box_2 {
        flex-direction: column;
    }
    
    .projects .project_box img {
        width: 100%;
        height: 300px;
    }
    
    .projects .project_box .text {
        width: 100%;
        text-align: center;
        padding: 30px;
    }
    
    .projects .project_box.project_box_2 .text {
        text-align: center;
    }
    
    .projects .project_box .text .link {
        margin: 0 auto;
    }

    .product-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }

    .product-card {
        margin: 0 auto;
        width: 100%;
        max-width: 350px;
    }

    .product-image {
        height: 180px;
    }
    
    .projects .project_box.project_box_2 .text h4::before {
        left: 0;
        right: auto;
    }
    
    .projects .project_box.project_box_2 .text h4 {
        padding-left: 15px;
        padding-right: 0;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 15px;
    }

    .product-description {
        font-size: 12px;
    }

    .details-btn {
        padding: 7px 16px;
        font-size: 12px;
    }

    .featured-products {
        padding: 70px 0;
    }

    .top_section h2 {
        font-size: 32px;
    }

    .top_section p {
        font-size: 16px;
    }

    .search-container {
        width: 90%;
        margin: 25px auto 0;
    }

    .why-choose-us {
        padding: 70px 0;
    }

    .why-choose-us .feature-card {
        min-width: calc(50% - 15px);
        padding: 30px 20px;
    }

    .projects .project_box {
        margin-bottom: 50px;
    }

    .projects .project_box img {
        height: 250px;
    }

    .language-switcher {
        margin-right: 10px;
    }
    
    [dir="rtl"] .language-switcher {
        margin-right: 0;
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    header {
        height: 70px;
    }
    
    header nav .logo img {
        width: 130px;
    }
    
    header nav .icons {
        gap: 10px;
    }
    
    header nav .icons a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .language-switcher .lang-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .language-switcher .dropdown-menu {
        min-width: 130px;
    }
    
    .language-switcher .dropdown-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .hero {
        padding-top: 150px;
        padding-bottom: 60px;
        height: calc(100 * var(--vh));
        min-height: 500px;
    }
    
    .hero .div_Text,
    .hero .div_img {
        width: 100%;
        text-align: center;
    }
    
    .hero .div_Text {
        margin-top: 30px;
        margin-bottom: 40px;
    }
    
    .hero .div_Text h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero .div_Text p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero .div_img {
        display: none;
    }
    
    .product-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }
    
    .product-card {
        margin: 0 auto;
        width: 100%;
        max-width: 350px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 15px;
    }

    .product-description {
        font-size: 12px;
    }

    .details-btn {
        padding: 7px 16px;
        font-size: 12px;
    }

    .featured-products {
        padding: 70px 0;
    }

    .top_section h2 {
        font-size: 32px;
    }

    .top_section p {
        font-size: 16px;
    }

    .search-container {
        width: 90%;
        margin: 25px auto 0;
    }

    .why-choose-us {
        padding: 70px 0;
    }

    .why-choose-us .feature-card {
        min-width: calc(50% - 15px);
        padding: 30px 20px;
    }

    .projects .project_box {
        margin-bottom: 50px;
    }

    .projects .project_box img {
        height: 250px;
    }

    .language-switcher {
        margin-right: 10px;
    }
    
    [dir="rtl"] .language-switcher {
        margin-right: 0;
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    header {
        height: 65px;
    }

    header nav .logo img {
        width: 120px;
    }
    
    header nav .icons {
        gap: 8px;
    }
    
    header nav .icons a {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .language-switcher .lang-btn {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .language-switcher .dropdown-menu {
        min-width: 120px;
    }
    
    .language-switcher .dropdown-item {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .hero {
        padding-top: 130px;
        padding-bottom: 50px;
    }

    .hero .div_Text {
        margin-top: 60px;
    }
    
    .hero .div_Text h1 {
        font-size: 28px;
    }
    
    .hero .div_Text h4 {
        font-size: 18px;
    }
    
    .hero .div_Text p {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .why-choose-us .feature-card {
        min-width: 100%;
    }
    
    .top_section h2 {
        font-size: 24px;
    }

    .top_section p {
        font-size: 14px;
    }

    .product-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        max-width: 100%;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-description {
        font-size: 12px;
    }

    .details-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .search-container {
        width: 100%;
    }

    .search-container .input-group {
        max-width: 100% !important;
    }

    .top_section h2 {
        font-size: 24px;
    }
    
    .top_section p {
        font-size: 14px;
    }

    .pagination {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        margin: 5px;
        width: 35px;
        height: 35px;
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 380px) {
    header {
        height: 60px;
    }
    
    header nav .logo img {
        width: 110px;
    }
    
    header nav .icons {
        gap: 6px;
    }
    
    header nav .icons a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .language-switcher .lang-btn {
        padding: 3px 5px;
        font-size: 10px;
    }
    
    .language-switcher .dropdown-menu {
        min-width: 110px;
    }
    
    .language-switcher .dropdown-item {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .hero .div_Text h1 {
        font-size: 24px;
    }

    .hero .div_Text p {
        font-size: 14px;
    }

    .product-image {
        height: 180px;
    }

    .why-choose-us .feature-card {
        padding: 25px 20px;
    }

    .why-choose-us .feature-card .icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .why-choose-us .feature-card .icon-wrapper i {
        font-size: 30px;
    }

    .why-choose-us .feature-card h2 {
        font-size: 22px;
    }

    .product-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .details-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .footer-social {
        gap: 10px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 85px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
}

.language-switcher .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 140px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    padding: 8px;
    animation: fadeInUp 0.3s ease;
}

.language-switcher .dropdown-menu.show {
    display: block;
}

.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    margin: 2px 0;
    font-size: 14px;
}

.language-switcher .dropdown-item i {
    margin-right: 8px;
    font-size: 16px;
}

.language-switcher .dropdown-item span {
    font-weight: 500;
}

.language-switcher .dropdown-item:hover {
    background: rgba(22, 163, 74, 0.1);
    color: var(--primary);
}

.language-switcher .dropdown-item:hover i,
.language-switcher .dropdown-item:hover span {
    color: var(--primary);
}

/* RTL support */
[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 15px;
}

[dir="rtl"] .language-switcher .dropdown-item i {
    margin-right: 0;
    margin-left: 8px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .language-switcher {
        margin: 10px 0;
    }
    
    .language-switcher .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .language-switcher .dropdown-item {
        color: #fff;
        padding: 12px;
    }
    
    .language-switcher .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}

/* Mobile language dropdown */
.mobile-language {
    display: none;
}

.mobile-dropdown-btn {
    width: 100%;
    justify-content: center;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 30px;
    padding: 10px;
}

.mobile-dropdown-menu {
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-menu .dropdown-item {
    border-radius: 8px;
    margin: 4px;
    color: #fff !important;
}

@media (max-width: 992px) {
    .desktop-language {
        display: none;
    }
    
    .mobile-language {
        display: block;
        width: 100%;
    }
    
    .mobile-dropdown-menu {
        position: static;
        width: calc(100% - 16px);
        margin: 8px;
    }
    
    .mobile-dropdown-menu .dropdown-item {
        padding: 12px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .btn, .social-icon, .details-btn, .pagination-btn, .dropdown-item, header nav .links a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-image {
        border-radius: 8px;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    input, select, textarea, button {
        font-size: 16px !important; /* Prevent iOS zoom on focus */
    }
}

.language-switcher .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 10px;
    padding: 10px;
    min-width: 160px;
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
} 