:root {
    --primary-blue: #0a3d62;
    --secondary-blue: #1e88e5;
    --gold: #f9ca24;
    --dark-gold: #f0932b;
    --light-gray: #f5f6fa;
    --dark-gray: #2f3640;
    --section-bg: #ffffff;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
}

header, footer {
    color: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header {
    background: linear-gradient(135deg, var(--primary-blue), #0c2461);
    padding: 3em 1.5em 2.5em;
    min-height: auto;
    position: relative;
    overflow: hidden;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    position: relative;
    z-index: 1;
}

.logo-container img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    padding: 5px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.5s, box-shadow 0.5s;
}

.logo-container img:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.logo-text h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 900;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.logo-text p {
    margin: 0.5em 0 0;
    font-size: 1.1em;
    color: var(--gold);
    font-weight: 600;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 620px;
    text-align: right;
}

.hero-visual {
    flex: 1 1 360px;
    max-width: 460px;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.hero-visual:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249,202,36,0.25), rgba(10,61,98,0.25));
    mix-blend-mode: multiply;
    z-index: 1;
}

.hero-visual:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    background: var(--gold);
    opacity: 0.8;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 2;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.hero-visual-caption {
    position: absolute;
    top: 18px;
    left: 12px;
    background: rgba(255,255,255,0.9);
    color: var(--primary-blue);
    padding: 0.35em 1.1em;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 3;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-visual-caption:before {
    content: '\f1ad';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
}

.hero-eyebrow,
.eyebrow {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95em;
    margin-bottom: 0.5em;
    display: inline-block;
}

.hero-content h2 {
    margin: 0;
    font-size: 2.4em;
    color: #fff;
}

.hero-content h2:after {
    display: none;
}

.hero-lead {
    font-size: 1.15em;
    opacity: 0.9;
    margin: 1em 0 1.5em;
    color: rgba(255,255,255,0.95);
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
}

.hero-list li {
    position: relative;
    padding-right: 1.8em;
    margin-bottom: 0.6em;
    font-weight: 600;
}

.hero-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--gold);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.primary-cta,
.secondary-cta {
    min-width: 220px;
}

.secondary-cta {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    box-shadow: none;
}

.secondary-cta:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.hero-certifications {
    margin-top: 1.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
}

.cert-pill {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4em 1em;
    border-radius: 999px;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.hero-stats {
    margin-top: 2.5em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1em;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1.2em;
    text-align: center;
    color: #fff;
}

.stat-value {
    font-size: 2em;
    font-weight: 900;
    color: var(--gold);
}

.stat-label {
    font-size: 0.95em;
    opacity: 0.85;
}

nav {
    background: linear-gradient(to left, var(--secondary-blue), #1976d2);
    padding: 1em;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

nav a {
    color: white;
    margin: 0 1.5em;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease-out;
    padding: 0.5em 0;
    position: relative;
    display: inline-block;
}

nav a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gold);
    bottom: 0;
    right: 0;
    transition: width 0.3s ease-out;
}

nav a:hover:after {
    width: 100%;
    right: auto;
    left: 0;
}

section {
    padding: 2.5em;
    background: var(--section-bg);
    margin: 2em auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    max-width: 1000px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--gold);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

h2 {
    color: var(--primary-blue);
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 1em;
    position: relative;
    padding-bottom: 0.5em;
}

h2:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--dark-gold));
    bottom: 0;
    right: 0;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    margin-bottom: 2em;
}

.section-intro p {
    margin: 0 auto 1em;
    max-width: 750px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    align-items: start;
}

.about-list li {
    font-size: 1em;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.highlight-card {
    background: rgba(245, 246, 250, 0.9);
    border-radius: 12px;
    padding: 1.2em;
    display: flex;
    gap: 1em;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.highlight-card i {
    font-size: 1.6em;
    color: var(--gold);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5em;
}

.service-card {
    background: rgba(245, 246, 250, 0.9);
    border-radius: 12px;
    padding: 1.8em 1.5em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-top: 4px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.service-icon {
    font-size: 2em;
    color: var(--primary-blue);
    margin-bottom: 0.8em;
}

ul {
    padding-right: 1.5em;
}

ul li {
    padding: 0.8em 0;
    list-style-type: none;
    position: relative;
    padding-right: 2em;
    font-size: 1.1em;
}

ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
    position: absolute;
    right: 0;
    font-size: 1.2em;
}

footer {
    margin-top: 3em;
    padding: 2em;
    font-size: 1.1em;
    background: linear-gradient(135deg, #0c2461, var(--primary-blue));
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Q50,80 0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    z-index: 0;
}

footer p {
    position: relative;
    z-index: 1;
    margin: 0.5em 0;
}

.company-ids {
    max-width: 1000px;
    margin: 1.2em auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9em;
    padding: 0 1em;
}

.company-id-card {
    background: #fff;
    border: 1px solid #dde3ea;
    border-right: 4px solid var(--gold);
    border-radius: 12px;
    padding: 0.9em 1em;
    display: flex;
    align-items: center;
    gap: 0.8em;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    min-height: 74px;
}

.company-id-card i {
    color: var(--primary-blue);
    background: rgba(30, 136, 229, 0.12);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-id-label {
    display: block;
    color: #586274;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.15em;
}

.company-id-value {
    color: var(--primary-blue);
    font-size: 1.18rem;
    letter-spacing: 0.4px;
}

@media (max-width: 640px) {
    .company-ids {
        grid-template-columns: 1fr;
    }
}

button {
    background: linear-gradient(to right, var(--gold), var(--dark-gold));
    color: white;
    border: none;
    padding: 1em 2em;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-out;
    font-weight: bold;
    margin-top: 1em;
    box-shadow: 0 4px 10px rgba(249, 202, 36, 0.3);
    position: relative;
    overflow: hidden;
}

button:hover {
    background: linear-gradient(to right, var(--dark-gold), #e67e22);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(249, 202, 36, 0.4);
}

button:active {
    transform: translateY(1px);
}

button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.top-banner {
    background: linear-gradient(to right, var(--gold), var(--dark-gold));
    color: var(--primary-blue);
    padding: 1em;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.top-banner:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,3 Q50,10 0,3 Z" fill="rgba(255,255,255,0.2)"/></svg>');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: bottom;
}

.top-banner i {
    margin: 0 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.project-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5em;
    margin-bottom: 2.5em;
}

.project-summary {
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 1.5em;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    min-height: 200px;
}

.project-thumb {
    height: 105px;
    border-radius: 10px;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.9rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.project-thumb:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

.project-thumb i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.project-thumb--power { background: linear-gradient(135deg, #0f5ca8, #28a0e5); }
.project-thumb--wind { background: linear-gradient(135deg, #2786b5, #5dc0d9); }
.project-thumb--gas { background: linear-gradient(135deg, #b56f27, #f2a13a); }
.project-thumb--oil { background: linear-gradient(135deg, #3d4b5f, #697a92); }
.project-thumb--marine { background: linear-gradient(135deg, #13657d, #2ca7ba); }
.project-thumb--logistics { background: linear-gradient(135deg, #7a4b1d, #c6853b); }
.project-thumb--admin { background: linear-gradient(135deg, #58667a, #7f8fa6); }
.project-thumb--industrial { background: linear-gradient(135deg, #40536e, #67839f); }

.summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em 0.75em;
    margin-bottom: 1em;
}

.badge {
    background: rgba(14, 98, 181, 0.1);
    color: var(--primary-blue);
    padding: 0.3em 0.9em;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 700;
}

.year {
    font-weight: 700;
    color: var(--dark-gray);
}

.year--range {
    font-size: 0.82em;
    line-height: 1.3;
    max-width: 11em;
    text-align: end;
}

.project-summary h3 {
    margin: 0 0 0.5em;
    color: var(--primary-blue);
    font-size: 1.15em;
    font-weight: 800;
    line-height: 1.35;
}

.project-summary p {
    margin: 0;
    line-height: 1.65;
    color: #444;
}

.project-summary-cards .project-summary--extra {
    display: none;
}

.project-summary-cards.is-expanded .project-summary--extra {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.project-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    height: 220px;
}

.project-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease-out;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(10, 61, 98, 0.9);
    color: white;
    width: 100%;
    padding: 1.5em;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    margin: 0 0 0.5em;
    font-size: 1.3em;
    color: var(--gold);
}

.project-overlay p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.testimonial-container {
    display: flex;
    gap: 2em;
    margin-top: 2em;
    flex-wrap: wrap;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 2em;
    border-radius: 12px;
    flex: 1;
    min-width: 280px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid var(--gold);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.testimonial-card:before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
    font-size: 2.5em;
    position: absolute;
    top: 10px;
    right: 20px;
    opacity: 0.2;
}

.testimonial-card p {
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: bold;
    margin-top: 1.5em;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
}

.testimonial-author:before {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gold);
    margin-left: 10px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
    margin-top: 2em;
}

.client-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1em;
    text-align: center;
    font-weight: 700;
    background: rgba(245, 246, 250, 0.8);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5em;
    padding: 1em;
    background: rgba(245, 246, 250, 0.8);
    border-radius: 10px;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateX(-5px);
    background: rgba(249, 202, 36, 0.1);
}

.contact-item i {
    color: var(--gold);
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(249, 202, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-top: 0.2em;
}

.contact-item a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
    background: rgba(245, 246, 250, 0.8);
    padding: 2em;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.contact-form:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" opacity="0.05"><path d="M0,0 L100,0 L100,100 Q50,80 0,100 Z" fill="%230a3d62"/></svg>');
    background-size: cover;
    z-index: 0;
}

.contact-form h3 {
    position: relative;
    z-index: 1;
    color: var(--primary-blue);
    font-size: 1.8em;
    margin-top: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    position: relative;
    z-index: 1;
}

.form-group label {
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 1.1em;
}

.form-group input,
.form-group textarea {
    padding: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(249, 202, 36, 0.2);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.social-links {
    display: flex;
    gap: 1em;
    justify-content: flex-start;
    margin-top: 1.5em;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), #0c2461);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 1.2em;
    position: relative;
    overflow: hidden;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: var(--primary-blue);
}

.social-links a:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-links a:hover:after {
    opacity: 0.4;
}

/* Show More Button Styles */
.show-more-btn {
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    padding: 0.8em 1.5em;
    font-size: 1em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease-out;
    font-weight: bold;
    margin: 2em auto;
    display: block;
    box-shadow: 0 4px 10px rgba(10, 61, 98, 0.3);
}

.show-more-btn:hover {
    background: linear-gradient(to right, var(--secondary-blue), #1565c0);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(10, 61, 98, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 992px) {
    .project-gallery {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }
    
    .hero-list li {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 1.8em;
        margin: 1.5em;
    }

    /* شريط تنقل أفقي قابل للسحب — يمنع عمود الروابط الذي يأكل الشاشة على الموبايل والوضع الأفقي */
    nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 0.25rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 0.45rem 0.65rem;
        text-align: right;
    }

    nav a {
        flex: 0 0 auto;
        margin: 0;
        padding: 0.45rem 0.75rem;
        font-size: 0.88rem;
        white-space: nowrap;
    }
    
    .logo-container img {
        width: 120px;
        height: 120px;
    }
    
    .logo-text h1 {
        font-size: 1.7em;
    }
    
    .logo-text p {
        font-size: 1em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 100%;
    }
    
    .contact-form {
        padding: 1.5em;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-visual {
        max-width: 100%;
    }

    .project-thumb {
        height: 92px;
        font-size: 1.7rem;
    }
}

@media (max-width: 576px) {
    header {
        padding: 1.5em 1em;
    }
    
    .logo-container img {
        width: 100px;
        height: 100px;
    }
    
    .top-banner {
        font-size: 1em;
        padding: 0.8em;
    }
    
    section {
        padding: 1.5em;
        margin: 1em 0.5em;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8em;
    }
    
    .contact-item i {
        margin-bottom: 0.5em;
    }

    .company-ids {
        margin-top: 0.6em;
        padding: 0 0.5em;
    }

    .company-id-card {
        padding: 0.75em 0.8em;
    }
}

/* ارتفاع الشاشة قليل (مثل الموبايل بالعرض) — تقليل ارتفاع الشريط العلوي والتنقل */
@media (max-height: 480px) and (orientation: landscape) {
    .top-banner {
        font-size: 0.72rem;
        padding: 0.35rem 0.5rem;
        line-height: 1.35;
    }

    nav {
        padding: 0.3rem 0.5rem;
    }

    nav a {
        font-size: 0.78rem;
        padding: 0.3rem 0.55rem;
    }

    header {
        padding: 1rem 0.85rem 1.25rem;
    }
}