/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    direction: rtl;
}

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

/* Top Bar */
.top-bar {
    background-color: #2c2c2c;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

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

.top-bar-left .language-selector {
    cursor: pointer;
}

.top-bar-left .language-selector i {
    font-size: 10px;
    margin-right: 5px;
}

.top-bar-center {
    display: flex;
    gap: 20px;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #4CAF50;
}

.contact-link i {
    font-size: 14px;
}

.reserved-area-btn {
    background: #25D366;
    border: 1px solid #25D366;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.reserved-area-btn:hover {
    background: #20BA5A;
    border-color: #20BA5A;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.reserved-area-btn:focus {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

.reserved-area-btn i {
    font-size: 18px;
}

/* Main Navigation */
.main-nav {
    background-color: #f5f5f5;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.3s ease;
    direction: ltr; /* Force LTR for logo to display "KinGate" correctly */
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-king {
    color: #2c2c2c;
    font-weight: 800;
    font-size: 36px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.logo-king::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, transparent 100%);
    border-radius: 2px;
}

.logo-gates {
    color: #4CAF50;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(76, 175, 80, 0.2);
    position: relative;
}

.logo-gates::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #2c2c2c 100%);
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c2c2c;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: #4CAF50;
}

.nav-list > li > a i {
    font-size: 12px;
}

/* Dropdown Menu */
.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
    z-index: 1001;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #2c2c2c;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #4CAF50;
}

/* Search */
.nav-search {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #2c2c2c;
    transition: color 0.3s;
}

.search-toggle:hover {
    color: #4CAF50;
}

.search-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 300px;
    margin-top: 10px;
}

.search-box.active {
    display: block;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

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

.hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateX(0);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    transform: translateX(0);
}

.hero-slide.prev {
    transform: translateX(-100%);
}

.hero-slide.next {
    transform: translateX(100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #2c2c2c;
    background-image: linear-gradient(135deg, #2c2c2c 0%, #4CAF50 100%);
    animation: zoomIn 20s ease-in-out infinite;
}

@keyframes zoomIn {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content h1 {
    font-size: 48px;
    font-weight: 300;
    text-align: center;
    line-height: 1.4;
    animation: fadeInScale 1.2s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content h1 strong {
    font-weight: 700;
    color: #4CAF50;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #4CAF50;
    transform: scale(1.1);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(0.95);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: #4CAF50;
    width: 30px;
    border-radius: 6px;
    border-color: #fff;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-direction: row-reverse;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(even) {
    flex-direction: row;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-image {
    flex: 1;
    max-width: 500px;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-image img:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.feature-content h2 strong {
    font-weight: 700;
    color: #4CAF50;
}

.feature-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

/* Mission Section */
.mission-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.section-title {
    font-size: 42px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    color: #2c2c2c;
}

.section-title strong {
    font-weight: 700;
    color: #4CAF50;
}

.mission-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    color: #666;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.category-item {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: fadeInUp 0.6s ease forwards;
}

.category-item:nth-child(1) { animation-delay: 0.1s; }
.category-item:nth-child(2) { animation-delay: 0.2s; }
.category-item:nth-child(3) { animation-delay: 0.3s; }
.category-item:nth-child(4) { animation-delay: 0.4s; }
.category-item:nth-child(5) { animation-delay: 0.5s; }
.category-item:nth-child(6) { animation-delay: 0.6s; }

.category-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.category-item:hover img {
    transform: scale(1.1);
}

.category-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    transition: transform 0.5s ease;
}

.category-item h3 {
    font-size: 20px;
    color: #2c2c2c;
    font-weight: 500;
}

/* Control Section */
.control-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c2c2c 0%, #4CAF50 100%);
    color: #fff;
    text-align: center;
}

.control-section .section-title {
    color: #fff;
    margin-bottom: 30px;
}

.control-section .section-title strong {
    color: #fff;
}

.control-text {
    font-size: 18px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Quality Section */
.quality-section {
    padding: 80px 0;
    background: #fff;
}

.quality-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #666;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.news-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.news-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.read-more {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #2c2c2c;
}

.all-news-link {
    display: block;
    text-align: center;
    color: #4CAF50;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    margin-top: 30px;
}

.all-news-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-contact p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-contact i {
    margin-left: 10px;
    color: #4CAF50;
}

.footer-newsletter h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-newsletter h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #4CAF50;
}

.newsletter-link {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    border: 1px solid #4CAF50;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s;
}

.newsletter-link:hover {
    background: #4CAF50;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.footer-bottom a {
    color: #4CAF50;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    padding: 30px;
    z-index: 10000;
    display: none;
}

.cookie-consent.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.cookie-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.btn-accept-all,
.btn-reject-all {
    padding: 12px 30px;
    border: 1px solid #4CAF50;
    background: transparent;
    color: #4CAF50;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-accept-all:hover,
.btn-reject-all:hover {
    background: #4CAF50;
    color: #fff;
}

.cookie-detail {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
}

.cookie-detail:hover {
    text-decoration: underline;
}

/* Floating WhatsApp Button for Mobile */
.floating-whatsapp-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    border: none;
    animation: pulse 2s infinite;
    animation-play-state: running;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.floating-whatsapp-btn:hover,
.floating-whatsapp-btn:active,
.floating-whatsapp-btn:focus {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    animation-play-state: paused;
}

.floating-whatsapp-btn i {
    font-size: 28px;
    display: block;
}

.floating-whatsapp-btn .btn-text {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide top bar on mobile */
    .top-bar {
        display: none !important;
    }
    
    /* Show floating WhatsApp button */
    .floating-whatsapp-btn {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        padding: 20px;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 10px;
        margin-right: 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .feature-card {
        flex-direction: column !important;
    }

    .feature-content h2 {
        font-size: 28px;
    }

    .section-title {
        font-size: 32px;
    }

    .product-categories {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .feature-content h2 {
        font-size: 24px;
    }

    .section-title {
        font-size: 28px;
    }
}
