:root {
    /* Ana renkler */
    --primary-color: #791111;
    --secondary-color: #555555;
    --accent-color: #afafaf;

    /* Arkaplan ve metin renkleri */
    --background-color: #ffffff;
    --surface-color: #f9f9f9;
    --default-color: #333333;
    --heading-color: #581818;

    /* Navigasyon renkleri */
    --nav-color: #ffffff;
    --nav-text-color: #222222;
    --nav-hover-color: #791111;

    /* Footer renkleri */
    --footer-bg-color: #480202;
    --footer-text-color: #ffffff;

    /* Boyut ölçekleri */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Font boyutları */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;

    /* Border ve gölgeler */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --box-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background-color: var(--background-color);
    color: var(--default-color);
    line-height: 1.6;
}

/* قسم الهيرو */
.hero-video {
    display: none;
    width: 100%;
    height: auto;
}

.hero-video.active {
    display: block;
    /* عرض الفيديو واحد */
}

.text-center {
    text-align: center;
}

.card {
    box-shadow: var(--box-shadow-md);
    transition: 0.3s;
    border: none;
    flex: 1 1 20%;
    margin: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--surface-color);
    border-radius: var(--border-radius-md);
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover .card {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
    transition: box-shadow 0.3s, transform 0.3s ease;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--heading-color);
}

.product-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.card-box {
    position: relative;
    background-color: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    margin: var(--spacing-md) 0;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    overflow: hidden;
}

.card-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.card-content h3 {
    font-size: var(--font-size-xl);
    color: var(--heading-color);
    font-weight: 500;
}

.card-content p {
    font-size: var(--font-size-md);
    color: var(--secondary-color);
    line-height: 1.5;
}

.card-footer {
    font-size: var(--font-size-sm);
    color: var(--accent-color);
    font-weight: 500;
}

.card-footer i {
    font-size: 1em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.card-footer:hover i {
    transform: translateX(3px);
}

footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-align: center;
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-md);
}

footer p {
    margin: 0;
    font-size: var(--font-size-sm);
}

.page-header {
    background: linear-gradient(135deg, #581818 0%, #791111 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
}

.page-header p.lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .page-header p.lead {
        font-size: 1rem;
        padding: 0 15px;
    }
}

#products {
    margin-top: 0;
    padding-top: 0;
}

/* Responsive için Card'lar */
@media (max-width: 992px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title {
        font-size: 1.6rem;
        margin: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2.8rem !important;
    }

    .hero-content p {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-title {
        font-size: 1.4rem;
        margin: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .hero-content p {
        font-size: 1rem !important;
    }

    .hero-btn {
        padding: 10px 20px !important;
        font-size: 1rem !important;
    }

    .card {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    .row {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.2rem;
    }

    .card {
        margin: 10px 0;
    }

    .contact-card {
        padding: 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
    }
}


.navbar-social-icons a:hover {
    transform: scale(1.1);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus {
    outline: none;
}

.card-link:active .card {
    transform: translateY(2px);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}



.contact-social {
    text-align: center;
}

.contact-social h3 {
    font-size: var(--font-size-lg);
    color: var(--heading-color);
    margin-bottom: var(--spacing-md);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.twitter {
    background-color: #1da1f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.youtube {
    background-color: #ff0000;
}

/* Contact form styles */
.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--background-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
}

.contact-form h2 {
    font-size: var(--font-size-xxl);
    color: var(--heading-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-md);
    color: var(--heading-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-md);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-md);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #5e0e0e;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}

.navbar-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.youtube {
    background-color: #ff0000;
}

.social-icon.instagram {
    background-color: #e4405f;
}

.social-icon.twitter {
    background-color: #1da1f2;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

html {
    scroll-behavior: smooth;
}

/* Videos section styles moved to index.html for slider functionality */

/* Video modal styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-modal-content {
    background-color: var(--background-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    width: 80%;
    max-width: 800px;
    position: relative;
}

.video-modal-content video {
    width: 100%;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
}

.close-video {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    cursor: pointer;
}

.close-video:hover {
    color: var(--secondary-color);
}

/* Product buttons styles */
.product-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-btn i {
    margin-right: var(--spacing-xs);
}

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.youtube-btn {
    background-color: #ff0000;
}

.pdf-btn {
    background-color: var(--primary-color);
}

/* Products Section Styles (Homepage) */
#products-section-custom .products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

#products-section-custom .product-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 300px;
    max-width: 380px;
    background: #ffffff !important;
    border-radius: 15px !important;
    padding: 25px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
    border: none !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#products-section-custom .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

#products-section-custom .product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
}

#products-section-custom .product-card h3 {
    color: var(--heading-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 15px 0 25px 0;
    text-transform: uppercase;
}

#products-section-custom .read-more-btn {
    display: inline-block;
    width: 100%;
    max-width: 250px;
    padding: 12px 25px;
    background-color: #581818 !important; /* Dark Maroon from screenshot */
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50px !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
}

#products-section-custom .read-more-btn:hover {
    background-color: #3d1010 !important;
    transform: scale(1.02);
}

/* General Product Card styling for other pages if needed */
.product-card {
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 300px;
    background: var(--surface-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--box-shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
}

.product-card h3 {
    color: var(--heading-color);
    font-size: var(--font-size-lg);
    margin: var(--spacing-md) 0;
}

/* Responsive Product Cards */
@media (max-width: 992px) {
    .product-card {
        flex: 1 1 calc(50% - 2rem);
    }
}

/* Products Page Styles */
.products-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-item {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: #ddd;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: white;
    padding: 1rem;
    transition: transform 0.3s ease;
}

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

.product-details {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--surface-color);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.product-title {
    margin: 0;
    color: var(--heading-color);
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1.3;
}

.product-description {
    color: var(--secondary-color);
    margin: 0;
    font-size: var(--font-size-md);
    line-height: 1.5;
    flex-grow: 1;
}

.product-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid var(--primary-color);
}

.product-link:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Products Page */
@media (max-width: 992px) {
    .products-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 10px !important;
        gap: 20px !important;
    }

    .product-card {
        max-width: 95vw;
        width: 100%;
        margin: 0 auto 20px auto;
        text-align: center;
        box-sizing: border-box;
    }

    #products-section-custom {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .products-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 5px !important;
        gap: 16px !important;
    }

    .product-card {
        max-width: 99vw;
        width: 100%;
        margin: 0 auto 14px auto;
        text-align: center;
        box-sizing: border-box;
    }

    #products-section-custom {
        padding: 25px 0;
    }

    .section-title {
        font-size: 1.25rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .products-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 2px !important;
        gap: 8px !important;
    }

    .product-card {
        max-width: 100vw;
        width: 100%;
        margin: 0 auto 8px auto;
        text-align: center;
        box-sizing: border-box;
    }

    #products-section-custom {
        padding: 10px 0;
    }

    .section-title {
        font-size: 1.1rem;
        text-align: center;
    }
}

.products-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 0 1rem;
    gap: 1.5rem;
}

.product-image {
    height: 200px;


    @media (max-width: 480px) {
        .products-container {
            grid-template-columns: 1fr;
        }

        .product-title {
            font-size: calc(var(--font-size-lg) * 0.9);
        }

        .product-description {
            font-size: calc(var(--font-size-md) * 0.9);
        }
    }

    @media (max-width: 576px) {
        .product-card {
            flex: 1 1 100%;
            margin: var(--spacing-md) var(--spacing-sm);
        }

        .products-grid {
            gap: var(--spacing-md);
            padding: var(--spacing-md) 0;
        }
    }

    .contact-card {
        background-color: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        padding: 20px;
        margin: auto;
        max-width: 1000px;
    }

    .contact-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .contact-info {
        flex: 1;
        min-width: 300px;
    }

    .map-container {
        flex: 1;
        min-width: 300px;
        height: 300px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .contact-item {
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

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

    .social-link {
        margin-right: 10px;
        font-size: 20px;
        color: #333;
    }
}

/* Announcement Section (Rotating Card) */
.announcement-section {
    padding: 20px 0;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
}

.announcement-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
    border-left: 5px solid #581818;
    transition: transform 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-3px);
}

.announcement-icon {
    width: 60px;
    height: 60px;
    background: #581818;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.announcement-icon i {
    animation: pulse 2s infinite;
}

.announcement-content {
    flex-grow: 1;
}

.announcement-content h4 {
    margin: 0 0 8px 0;
    color: #581818;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#announcement-text {
    margin: 0;
    font-size: 1.3rem; /* Large and clear */
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    transition: opacity 0.5s ease;
}

.announcement-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #eee;
}

.announcement-progress .progress-bar {
    height: 100%;
    background: #581818;
    width: 0%;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .announcement-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    #announcement-text {
        font-size: 1.1rem;
    }
}