:root {
    --primary-color: #0d2c54;
    /* Deep Blue from logo ish */
    --secondary-color: #c92a2a;
    /* Red from logo ish */
    --accent-color: #e9ecef;
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-off-white: #f4f6f9;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #b01b1b;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.section-title p {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(13, 44, 84, 0.85), rgba(13, 44, 84, 0.7)), url('../images/industrial-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Logo watermark pattern overlay */
.hero::before,
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/oc-logo.png');
    background-repeat: repeat;
    background-size: 160px auto;
    opacity: 0.05;
    filter: brightness(0) invert(1);
    pointer-events: none;
    z-index: 0;
}

.hero>*,
.cta-section>* {
    position: relative;
    z-index: 1;
}

/* Fallback if no hero image */
.hero-fallback {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4a82 100%);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features/About */
.features {
    background-color: var(--bg-light);
    background-image: url('../images/industrial-pattern.png');
    /* Subtle pattern */
    background-blend-mode: multiply;
    background-size: 400px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Products Preview */
.products-preview {
    background-color: var(--bg-off-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    background-color: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-category {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(13, 44, 84, 0.9), rgba(13, 44, 84, 0.9)), url('../images/industrial-machinery.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: #081d38;
    color: #adb5bd;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    color: #adb5bd;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Animation Utilities */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Basic delays for sequential animations */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero,
    .cta-section {
        background-attachment: scroll;
    }
}

/* =============================================
   CONTACT PAGE
   ============================================= */

/* Page Hero (reusable for inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4a82 100%);
    color: var(--text-light);
    padding: 70px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    font-size: 1rem;
    font-weight: 500;
}

.alert i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.alert a {
    font-weight: 700;
    text-decoration: underline;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Contact Grid */
.contact-section {
    background-color: var(--bg-off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 50px;
    align-items: start;
}

/* Info Column */
.contact-info-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 800;
}

.contact-info-sub {
    color: #6c757d;
    margin-bottom: 35px;
    line-height: 1.7;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
    background: white;
    padding: 22px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}

.info-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.info-card h4 {
    color: var(--primary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-card p,
.info-card a {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-card a:hover {
    color: var(--secondary-color);
}

/* Form Column */
.contact-form-wrap {
    background: white;
    border-radius: 12px;
    padding: 45px 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.required {
    color: var(--secondary-color);
}

.form-control {
    padding: 13px 16px;
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    background-color: #fafafa;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 44, 84, 0.12);
    background-color: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230d2c54' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-submit:hover {
    gap: 14px;
}

/* Contact – Mobile */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 30px 22px;
    }
}

/* =============================================
   RTL Styles (Arabic)
   ============================================= */
[dir="rtl"] {
    text-align: right;
}


[dir="rtl"] .hero-content p {
    margin-right: auto;
    margin-left: auto;
}

[dir="rtl"] .btn-outline {
    margin-left: 0 !important;
    margin-right: 15px;
    /* Overrides inline style flip */
}

[dir="rtl"] .info-card {
    align-items: flex-start;
}

[dir="rtl"] .info-icon {
    margin-left: 18px;
    margin-right: 0;
}

[dir="rtl"] .footer-links a {
    padding-left: 0;
    transition: padding-right var(--transition);
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .form-control {
    text-align: right;
}

[dir="rtl"] select.form-control {
    background-position: left 16px center;
}

[dir="rtl"] .alert i {
    margin-left: 15px;
    margin-right: 0 !important;
}

[dir="rtl"] .btn-submit i {
    margin-right: 0;
    margin-left: 10px;
    transform: scaleX(-1);
}