*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f5f7;
    color: #222;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #c8141c;
}

.section-header p {
    color: #666;
}

/* Header */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffffeb;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.05rem;
    margin: 0;
}

.logo-text span {
    font-size: 0.8rem;
    color: #777;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.main-nav a {
    position: relative;
    padding-bottom: 0.2rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c8141c, #f89c1c);
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background-color: #c8141c;
    cursor: pointer;
}

.nav-toggle span {
    width: 65%;
    height: 2px;
    background-color: #fff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
    position: relative;
    height: 80vh;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 60%),
                linear-gradient(135deg, #0d47a1, #c8141c);
    mix-blend-mode: multiply;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.3s ease, transform 8s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
}

.hero-text {
    max-width: 560px;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.25));
    padding: 2rem 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-text h2 {
    font-size: 2.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.hero-text p {
    margin: 0 0 1.5rem;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #c8141c, #f89c1c);
    color: #fff;
    box-shadow: 0 10px 20px rgba(200, 20, 28, 0.35);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(200, 20, 28, 0.45);
}

.btn.outline {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

.btn.outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.btn.large {
    padding-inline: 2.2rem;
    padding-block: 0.85rem;
    font-size: 1rem;
}

.btn.full-width {
    width: 100%;
}

/* About */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.about-text p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.about-list li {
    position: relative;
    padding-right: 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.about-list li::before {
    content: "●";
    position: absolute;
    right: 0;
    top: 0.1rem;
    font-size: 0.65rem;
    color: #c8141c;
}

.about-image img {
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13);
}

/* Products */

.product-category {
    margin-bottom: 3rem;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f9fafc);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2933;
}

.category-header span {
    font-size: 0.9rem;
    color: #6b7280;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: #ffffff;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
}

.product-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.product-card h4 {
    margin: 0.9rem 1rem 0.3rem;
    font-size: 1rem;
}

.product-card p {
    margin: 0 1rem 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.products-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px dashed #c8141c;
    background-color: #fff7f7;
    font-size: 0.9rem;
    text-align: center;
}

/* Services */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

.service-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* Clients */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.client-card {
    background-color: #ffffff;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

/* CTA */

.cta-section {
    background: radial-gradient(circle at top left, #fce7e9, #fdf2e9);
    padding: 3rem 0;
}

.cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.cta-text h2 {
    margin: 0 0 0.5rem;
}

.cta-text p {
    margin: 0;
    color: #4b5563;
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-info h3,
.contact-form-wrapper h3 {
    margin-top: 0;
}

.contact-block {
    margin-bottom: 1rem;
}

.contact-block h4 {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
}

.contact-block p {
    margin: 0.1rem 0;
    font-size: 0.9rem;
}

.contact-form {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border-radius: 0.8rem;
    border: 1px solid #d1d5db;
    padding: 0.55rem 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c8141c;
    box-shadow: 0 0 0 1px rgba(200, 20, 28, 0.15);
}

.form-note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Footer */

.main-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 1.25rem 0;
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-note {
    color: #6b7280;
}

/* Responsive */

@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        padding: 5rem 0 3.5rem;
    }

    .hero-text {
        padding: 1.5rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: #ffffff;
        padding: 0.75rem 1.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        transform-origin: top;
        transform: scaleY(0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .main-nav.open {
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .header-container {
        padding-block: 0.4rem;
    }

    .logo-text h1 {
        font-size: 0.9rem;
    }

    .hero-text h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-text {
        padding: 1.25rem 1.3rem;
    }

    .section {
        padding: 3rem 0;
    }
}