/* Custom Properties / Variables */
:root {
    --dark-grey: #3A3F44;
    --light-grey: #A7A9AC;
    --primary: #D12C5B;
    /* Pink/Red Industrial */
    --primary-hover: #A61E45;
    --white: #FFFFFF;
    --bg-light: #F5F7FA;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 6px;
    --box-shadow: 0 10px 30px -10px rgba(58, 63, 68, 0.15);
}

/* Reset & Default Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-grey);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    color: var(--dark-grey);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(209, 44, 91, 0.3);
}

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

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

.section-title {
    margin-bottom: 40px;
}

.section-title .subtitle {
    color: var(--primary);
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
    position: relative;
    padding-right: 15px;
}

.section-title .subtitle::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

header.scrolled .nav-links a {
    color: var(--dark-grey);
}

header.scrolled .logo h1 {
    color: var(--dark-grey);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

header.scrolled .nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: var(--dark-grey);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('1.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 63, 68, 0.9) 0%, rgba(58, 63, 68, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    color: var(--light-grey);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-grey);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-features i {
    color: var(--primary);
    font-size: 1.2rem;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(209, 44, 91, 0.3);
}

.experience-badge .number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Tajawal', sans-serif;
}

.experience-badge .text {
    font-size: 1.1rem;
    text-align: center;
    font-weight: 500;
}

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

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(167, 169, 172, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(58, 63, 68, 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(209, 44, 91, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary);
}

.service-card .icon-box i {
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .icon-box i {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Gallery Ribbon */
.gallery-ribbon {
    display: flex;
    width: 100%;
}

.gallery-item {
    flex: 1;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .gallery-ribbon {
        flex-direction: column;
    }
    .gallery-item img {
        height: 250px;
    }
}

/* Statistics */
.statistics {
    background-image: url('2.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    padding: 80px 0;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(58, 63, 68, 0.9);
}

.stats-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    color: var(--white);
}

.stat-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-item .counter {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.2rem;
    color: var(--light-grey);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-items {
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--light-grey);
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    padding: 40px 0;
    color: var(--white);
    border-top: 4px solid var(--primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-logo h3 {
    color: var(--white);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.fade-up {
    transform: translateY(40px);
}

.slide-right {
    transform: translateX(50px);
}

.slide-left {
    transform: translateX(-50px);
}

.scale-up {
    transform: scale(0.9);
}

.animate-fade-up {
    animation: fadeUpAnim 0.8s ease-out forwards;
}

.delay-1 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
    animation-delay: 0.6s;
}

@keyframes fadeUpAnim {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        right: 0;
        bottom: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-cta .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}