/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #007bff;
    --white-color: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #212529;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== MENU STYLES ===== */
.sticky-menu {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    height: 90px;
}

.sticky-menu .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-list li {
    margin-left: 40px;
    position: relative;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 10px 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    animation: underline 0.3s ease forwards;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== PRODUCTS HERO ===== */
.products-hero {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 51, 102, 0.8)), url('../img/products-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    margin-top: 90px;
    position: relative;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.products-hero .container {
    position: relative;
    z-index: 2;
} 

.products-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.products-hero p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PRODUCTS CONTAINER ===== */
.products-container {
    background-color: var(--white-color);
}

.product-section {
    padding: 80px 0;
    position: relative;
}

.product-section:nth-child(even) {
    background-color: var(--light-gray);
}

.product-section:nth-child(odd) {
    background-color: var(--white-color);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 400px;
}

.product-grid.reverse {
    direction: rtl;
}

.product-grid.reverse > * {
    direction: ltr;
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 400px;
}

.product-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px 0;
}

.product-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.product-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

.product-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--text-color);
}

/* ===== PRODUCT FEATURES ===== */
.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    padding: 12px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-radius: 6px;
    margin-bottom: 8px;
    padding-left: 10px;
}

.product-features li:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateX(10px);
}

.product-features li i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-gray);
    color: var(--white-color);
    padding: 60px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 10px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-col i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-content {
    animation: slideInLeft 0.8s ease forwards;
}

.product-grid.reverse .product-content {
    animation: slideInRight 0.8s ease forwards;
}

.product-image {
    animation: slideInRight 0.8s ease forwards;
}

.product-grid.reverse .product-image {
    animation: slideInLeft 0.8s ease forwards;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        font-size: 2rem;
    }

    .nav-list {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--white-color);
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        z-index: 1000;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 10px 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-grid.reverse {
        direction: ltr;
    }

    .products-hero h1 {
        font-size: 2.8rem;
    }

    .products-hero p {
        font-size: 1.3rem;
    }

    .product-content h2 {
        font-size: 2.2rem;
    }

    .sticky-menu {
        padding: 15px 0;
        height: 80px;
    }

    .products-hero {
        margin-top: 80px;
        min-height: 30px;
        height: 35vh;
    }
}

@media (max-width: 768px) {
    .product-section {
        padding: 60px 0;
    }

    .products-hero {
        height: 25vh;
        min-height: 300px;
    }

    .products-hero h1 {
        font-size: 2.5rem;
    }

    .products-hero p {
        font-size: 1.2rem;
    }

    .product-content h2 {
        font-size: 2rem;
    }

    .product-content p {
        font-size: 1rem;
    }

    .product-features li {
        font-size: 1rem;
    }
    .product-image{
        height: 300px;
    }
    .product-image img {
        height: 300px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .products-hero h1 {
        font-size: 2rem;
    }

    .products-hero p {
        font-size: 1rem;
    }

    .product-content h2 {
        font-size: 1.8rem;
    }

    .product-content {
        padding: 0;
    }

    .product-features li {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    .product-image{
        height: 250px;
    }
    .product-image img {
        height: 250px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== ADDITIONAL ENHANCEMENTS ===== */
.product-section {
    position: relative;
    overflow: hidden;
}

.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 123, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.product-grid {
    position: relative;
    z-index: 2;
}

/* Hover effects for better interactivity */
.product-content:hover h2 {
    color: var(--primary-color);
    transition: var(--transition);
}

.product-features li:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Loading animation for images */
.product-image img {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav-list a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .sticky-menu,
    .footer {
        display: none;
    }
    
    .products-hero {
        margin-top: 0;
        height: auto;
        padding: 40px 0;
    }
    
    .product-section {
        page-break-inside: avoid;
        padding: 40px 0;
    }
}