/* ==========================================
   Al-Sawas - Design V2: Classic Professional
   ========================================== */

   :root {
    --primary: #1a1a2e;
    --secondary: #d4af37;
    --accent: #c9a961;
    --dark: #0f0f1e;
    --light: #f5f5f5;
    --gray: #8b8b8b;
    --white: #ffffff;
    --border: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    direction: rtl;
}

/* English Language Support */
html[lang="en"] body {
    font-family: 'Roboto', sans-serif;
    direction: ltr;
}

html[lang="en"] .nav-link::after {
    left: auto;
    right: 0;
}

html[lang="en"] .value-number {
    right: auto;
    left: 20px;
}

html[lang="en"] .service-number {
    right: auto;
    left: 20px;
}

html[lang="en"] .service-link {
    flex-direction: row-reverse;
}

html[lang="en"] .service-link i {
    transform: rotate(180deg);
    margin-left: 0;
    margin-right: 8px;
}

html[lang="en"] .scroll-top {
    right: 30px;
    left: auto;
}

html[lang="en"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 10px;
}

html[lang="en"] .data-table th,
html[lang="en"] .data-table td {
    text-align: left;
}

html[lang="en"] .data-table .number-cell {
    text-align: center;
}

html[lang="en"] .nav-link::after {
    right: auto;
    left: -18px;
}

html[lang="en"] .nav-link:hover::after {
    left: -22px;
}

html[lang="en"] .mobile-card-number {
    left: auto;
    right: 15px;
}

html[lang="en"] .mobile-card-label,
html[lang="en"] .mobile-card-value {
    padding-right: 0;
    padding-left: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid var(--secondary);
    background: rgba(255, 255, 255, 0.99);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 10px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), #ffd700);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -18px;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover::after {
    opacity: 1;
    right: -22px;
}

.nav-links li:last-child .nav-link::after {
    display: none;
}

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

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4e 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
    position: relative;
    overflow: hidden;
}

.lang-toggle::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;
}

.lang-toggle:hover::before {
    left: 100%;
}

.lang-toggle:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(26, 26, 46, 0.05);
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        overflow-y: auto;
        border-left: 3px solid var(--secondary);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu-overlay {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 30px 0;
        align-items: stretch;
    }
    
    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link {
        display: block;
        padding: 18px 30px;
        font-size: 1rem;
        border-right: 4px solid transparent;
        transition: all 0.3s ease;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
        border-right-color: var(--secondary);
        padding-right: 35px;
        transform: none;
    }
    
    html[lang="en"] .nav-link:hover,
    html[lang="en"] .nav-link.active {
        border-right-color: transparent;
        border-left-color: var(--secondary);
        padding-right: 30px;
        padding-left: 35px;
    }
    
    html[lang="en"] .nav-menu {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 3px solid var(--secondary);
    }
    
    html[lang="en"] .nav-menu.active {
        left: 0;
        right: auto;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .lang-toggle {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="1"/></pattern><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 35px;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Section Styles */
section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto 25px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* About Section */
.about {
    background: var(--white);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 70px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.value-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(26, 26, 46, 0.05);
    line-height: 1;
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.value-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.value-description {
    color: var(--gray);
    line-height: 1.7;
}

/* Services Section */
.services {
    background: var(--light);
}

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

.service-card {
    background: var(--white);
    padding: 45px 35px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(26, 26, 46, 0.03);
    line-height: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-description {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.service-link:hover {
    gap: 15px;
    color: var(--secondary);
}

/* Equipment Section */
.equipment {
    background: var(--light);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.equipment-card {
    background: var(--white);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.equipment-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.equipment-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--light);
    position: relative;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipment-card:hover .equipment-overlay {
    opacity: 1;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.1);
}

.equipment-btn {
    padding: 12px 30px;
    background: var(--secondary);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.equipment-btn:hover {
    background: var(--white);
    color: var(--primary);
}

.equipment-info {
    padding: 25px;
    text-align: center;
}

.equipment-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

/* Why Us Section */
.why-us {
    background: var(--dark);
    color: var(--white);
}

.why-us .section-title {
    color: var(--white);
}

.why-us .title-underline {
    background: var(--secondary);
}

.why-us .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.feature-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: var(--white);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.contact-info {
    color: var(--gray);
    font-size: 1.05rem;
}

.contact-info a {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-right: 10px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--dark);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    display: none;
    border: 2px solid var(--secondary);
}

.scroll-top:hover {
    background: transparent;
    color: var(--secondary);
}

.scroll-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   Steel Fabrication & Data Tables Sections
   ========================================== */

/* Steel Fabrication Section - Redesigned */
.steel-fabrication {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.steel-fabrication::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.steel-fabrication::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.steel-fabrication .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.steel-fabrication .section-title {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.steel-fabrication .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 0;
    font-weight: 400;
}

.steel-fabrication-layout {
    position: relative;
    z-index: 1;
}

/* Main Image Section */
.steel-main-image-wrapper {
    margin-bottom: 60px;
}

.steel-main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.steel-main-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
}

.steel-main-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.steel-main-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    text-align: center;
    color: var(--white);
}

.overlay-content i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: block;
    animation: pulse 2s infinite;
}

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

.overlay-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Content Cards Grid */
.steel-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.steel-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.steel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.steel-card:hover::before {
    transform: scaleX(1);
}

.steel-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.steel-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
}

.steel-card:hover .steel-card-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.steel-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.steel-card-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Description Section */
.steel-description-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.steel-description-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 35px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: all 0.4s ease;
}

.steel-description-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    transform: translateX(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.description-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.description-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.description-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Gallery Section */
.steel-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--secondary);
    transform: scale(0.5);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Data Tables Section */
.data-tables-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 90px 0;
    position: relative;
}

.data-table-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
    overflow-x: auto;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.data-table-wrapper:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.data-table-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    position: relative;
}

.data-table-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    border-radius: 2px;
}

.data-table-header h2 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.data-table-header p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-top: 10px;
    font-weight: 500;
}

.data-table-header-image {
    width: 100%;
    max-width: 700px;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    margin: 40px auto 0;
    display: block;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.data-table-header-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 40px;
    font-size: 1.05rem;
    background: var(--white);
    min-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a4e 100%);
    color: var(--white);
    position: relative;
}

.data-table thead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), #ffd700, var(--secondary));
}

.data-table th {
    padding: 22px 20px;
    text-align: right;
    font-weight: 700;
    font-size: 1.15rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.data-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.data-table td {
    padding: 18px 20px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: right;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.data-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.data-table tbody tr:nth-child(even) {
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
}

.data-table tbody tr:nth-child(odd) {
    background: var(--white);
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, #fff8e1 0%, #fffde7 100%);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
    border-right: 4px solid var(--secondary);
}

.data-table tbody tr:hover td {
    color: var(--primary);
    font-weight: 600;
}

.data-table .number-cell {
    text-align: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.4rem;
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
    min-width: 100px;
    position: relative;
    font-family: 'Roboto', 'Cairo', sans-serif;
}

.data-table tbody tr:nth-child(even) .number-cell {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.data-table tbody tr:nth-child(odd) .number-cell {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
}

.data-table tbody tr:hover .number-cell {
    background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Card View for Tables - All Screens */
.data-table-mobile-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.mobile-card-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
}

.mobile-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.mobile-card-label {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* padding-right: 80px; */
}

.mobile-card-value {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.5;
    /* padding-right: 80px; */
}

.mobile-card-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
    text-align: center;
    min-width: 60px;
    padding: 8px 12px;
    display: none;
}

.mobile-card-number-label {
    font-size: 0.65rem;
    color: var(--dark);
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-card-number-value {
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 800;
    display: block;
    line-height: 1;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Hide traditional table on all screens */
.data-table {
    display: none;
}

/* Professions Grid Styles */
.professions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.profession-card {
    background: linear-gradient(135deg, #f8f6f0 0%, #fff9e6 100%);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.profession-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.profession-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
}

.profession-card:hover::before {
    transform: scaleX(1);
}

.profession-label {
    font-size: 13px;
    color: #8b7355;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profession-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c2416;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .professions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .professions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profession-card {
        padding: 20px 15px;
    }
    
    .profession-name {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .data-table-mobile-card {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .data-table-mobile-card {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hide table wrapper scroll on mobile */
    .data-table-wrapper {
        overflow-x: visible;
        padding: 25px 15px;
    }
    
    .data-table-mobile-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mobile-card-item {
        margin-bottom: 0;
    }
}

/* Add subtle animation to table rows */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.data-table tbody tr {
    animation: fadeInRow 0.3s ease-out;
    animation-fill-mode: both;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.25s; }

/* Add icon effect to number cells */
.data-table .number-cell::before {
    content: 'âœ“';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.3;
    color: var(--primary);
    transition: all 0.3s ease;
}

.data-table tbody tr:hover .number-cell::before {
    opacity: 1;
    color: var(--white);
    transform: translateY(-50%) scale(1.2);
}

/* Responsive Tables */
@media (max-width: 768px) {
    .data-table-wrapper {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .data-table {
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .data-table th {
        font-size: 1rem;
        padding: 15px 10px;
    }
    
    .data-table .number-cell {
        font-size: 1.2rem;
        min-width: 70px;
    }
    
    .data-table-header h2 {
        font-size: 2rem;
    }
    
    .data-table-header-image {
        height: 250px;
        border-radius: 10px;
    }
    
    .steel-fabrication-images {
        grid-template-columns: 1fr;
    }
    
    .steel-fabrication-main-image img {
        height: 300px;
        max-width: 100%;
        border-radius: 10px;
    }
    
    .steel-fabrication-main-image::before {
        width: 90%;
    }
    
    .steel-fabrication .section-title {
        font-size: 2rem;
    }
    
    .steel-content-grid {
        grid-template-columns: 1fr;
    }
    
    .steel-description-section {
        grid-template-columns: 1fr;
    }
    
    .steel-main-image img {
        height: 350px;
    }
    
    .overlay-content h3 {
        font-size: 1.5rem;
    }
    
    .overlay-content i {
        font-size: 2rem;
    }
    
    .steel-card {
        padding: 30px 20px;
    }
    
    .steel-description-box {
        flex-direction: column;
        text-align: center;
    }
    
    .steel-gallery {
        grid-template-columns: 1fr;
    }
}

