/* ================================================== */
/*              RESET & BASE                           */
/* ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #1e2a3a;
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: 16px;
}

/* ================================================== */
/*              CONTAINER                              */
/* ================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ================================================== */
/*              SECTION TITLE                          */
/* ================================================== */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    color: #0b1a2b;
    font-weight: 800;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ================================================== */
/*              BUTTONS                                */
/* ================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243,156,18,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243,156,18,0.5);
}

.btn-secondary {
    background: #2d3436;
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ================================================== */
/*              HERO SECTION                           */
/* ================================================== */
.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e1a 0%, #131b3a 25%, #1a1f4d 50%, #2d1b4e 75%, #1a0e2e 100%);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
    overflow: hidden;
    padding: 100px 20px 120px;
    color: #fff;
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 25px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 2;
    color: rgba(255,255,255,0.85);
    max-width: 750px;
    margin: 0 auto 45px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-btn {
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s;
    border: none;
    cursor: pointer;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #0b1a2b;
    box-shadow: 0 10px 30px rgba(243,156,18,0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 45px rgba(243,156,18,0.6);
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(243,156,18,0.15);
    border-color: #f39c12;
    color: #f39c12;
    transform: translateY(-5px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 30px 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    max-width: 900px;
    margin: 0 auto;
}

/* ================================================== */
/*              SERVICES                               */
/* ================================================== */
.services-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #f5f7fa 0%, #e9edf2 50%, #f5f7fa 100%);
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ================================================== */
/*              PRODUCTS                               */
/* ================================================== */
.products-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #f5f7fa 0%, #e9edf2 100%);
}

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ================================================== */
/*              LAB SECTION                            */
/* ================================================== */
.lab-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0e1a 0%, #131b3a 40%, #1a1f4d 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.lab-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: start;
}

/* ================================================== */
/*              SLIDER                                 */
/* ================================================== */
.slider-modern-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f5f7fa 0%, #e9edf2 100%);
}

.slider-track-modern {
    display: flex;
    transition: transform 0.7s ease;
    height: 550px;
}

/* ================================================== */
/*              FOOTER                                 */
/* ================================================== */
footer {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
    color: #cfdbe8;
    padding: 60px 0 20px;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

footer h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li i {
    margin-left: 10px;
    color: #f39c12;
    width: 20px;
}

footer input,
footer textarea {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    margin-bottom: 10px;
    background: #1a2a3e;
    color: #fff;
    font-size: 16px;
}

footer .copy {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid #2a3a4e;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* ================================================== */
/*              MODAL                                  */
/* ================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ================================================== */
/*              RESPONSIVE - TABLET                    */
/* ================================================== */
@media (max-width: 900px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .hero-modern {
        min-height: auto;
        padding: 60px 15px 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        gap: 12px;
        margin-bottom: 40px;
    }
    
    .hero-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        padding: 25px 20px;
        gap: 20px;
    }
    
    .services-modern {
        padding: 70px 0;
    }
    
    .services-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .products-modern {
        padding: 70px 0;
    }
    
    .products-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .lab-modern {
        padding: 70px 0;
    }
    
    .lab-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .slider-modern-section {
        padding: 70px 0;
    }
    
    .slider-track-modern {
        height: 450px;
    }
    
    footer {
        padding: 50px 0 20px;
    }
    
    footer .container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
}

/* ================================================== */
/*              RESPONSIVE - MOBILE                    */
/* ================================================== */
@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .hero-modern {
        padding: 40px 12px 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.8;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .hero-btn {
        width: 100%;
        padding: 13px 20px;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .services-modern {
        padding: 50px 0;
    }
    
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .products-modern {
        padding: 50px 0;
    }
    
    .products-grid-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lab-modern {
        padding: 50px 0;
    }
    
    .slider-modern-section {
        padding: 50px 0;
    }
    
    .slider-track-modern {
        height: 350px;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    footer .container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    footer input,
    footer textarea {
        padding: 12px 15px;
    }
    
    footer .copy {
        padding-top: 15px;
        margin-top: 15px;
        font-size: 0.8rem;
    }
}

/* ================================================== */
/*              RESPONSIVE - SMALL MOBILE              */
/* ================================================== */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .slider-track-modern {
        height: 300px;
    }
}

/* ================================================== */
/*              SCROLLBAR                              */
/* ================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e67e22;
}