/* ==========================================================================
   1. GLOBAL STYLES & VARIABLES
   ========================================================================== */
:root {
    --accent-cyan: #00d4ff;
    --accent-gold: #D4AF37;
    --primary-dark: #2c3e50;
    --bg-dark: #0a192f;
    --bg-card: #112240;
    --text-main: #ccd6f6;
    --navbar-height: 90px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    scroll-padding-top: var(--navbar-height);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Fix to ensure any content right after the fixed navbar is never covered */
body > section:first-of-type,
body > main:first-of-type {
    margin-top: var(--navbar-height);
}

/* ==========================================================================
   2. NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    z-index: 1000;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    height: var(--navbar-height);
}

.nav-toggle {
    display: none;
}

/* Navbar Logo */
.logo img,
.logo_portrait {
    max-height: 62px;
    width: auto;
    display: block;
    padding: 4px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #a8b2d1;
    font-size: 1.15rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active-link {
    color: var(--accent-cyan);
}

/* Hamburger icon */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-cyan);
    transition: all 0.3s ease;
    display: block;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #8892b0;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

.header-wrapper {
    padding-top: 25px;
    padding-bottom: 60px;
    text-align: center;
}

/* Fixed selector string to completely center your landscape banner image */
.logo-landscape {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto 30px auto;
}

.arabic-sub {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.text-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-section h1 {
    font-size: 2.4rem;
    color: white;
    margin-bottom: 20px;
}

.partner-slogan {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--accent-cyan);
    font-weight: 500;
    max-width: 750px;
    margin: 0 auto;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* ==========================================================================
   4. GENERAL SECTIONS
   ========================================================================== */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

.experience-teaser,
.container:first-of-type {
    padding-top: 40px;
    padding-bottom: 60px;
}

#home.section {
    padding-top: 0;
}

#about {
    background-color: #0d1b2a;
    color: white;
}

.about-scroll-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) #1a2a3a;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.about-box {
    background: #ffffff;
    color: #2c3e50;
    padding: 25px;
    border-radius: 8px;
    flex: 1 1 calc(48% - 20px);
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--accent-gold);
}

.about-box h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Section Header Logo Centering Rules */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-portrait {
    display: block;
    margin: 0 auto 20px auto;
    max-height: 100px;
    width: auto;
}

/* ==========================================================================
   5. SERVICES GRID & CARDS
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    width: 100%;
}

.text-holder {
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
    width: 100%;
}

.card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
}

.card h3 {
    margin-bottom: 15px;
    color: white;
}

.card p {
    color: #8892b0;
}

/* Responsive image */
.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Wide hero image block (about page) */
.wide-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px;
    width: 100%;
}

/* ==========================================================================
   6. CTA & FOOTER
   ========================================================================== */
.experience-teaser {
    background-color: #112240;
    text-align: center;
    flex: 1;
}

.cta-button {
    display: inline-block;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(0, 212, 255, 0.1);
}

main, .section, .container, .experience-teaser {
    flex: 1;
}

footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    color: #8892b0;
    font-size: 0.75rem;
}

/* ==========================================================================
   7. CONTACT PAGE
   ========================================================================== */
#contact {
    background-color: var(--bg-dark);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.contact-logo {
    margin-bottom: 40px;
}

.logo_portrait_contact {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 35px;
}

.contact-details-center {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item h3 {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-item p {
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-cyan);
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-cyan);
}

.contact-footer-text {
    font-size: 0.8rem;
    opacity: 0.7;
    letter-spacing: 1px;
    margin-top: 30px;
}

/* ==========================================================================
   CONTACT HERO REDESIGN
   ========================================================================== */

.contact-hero-modern {
    position: relative;
    width: 100%;
    max-width: 1300px;
    min-height: 520px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 80px 30px;
    margin: 0 auto;

    border-radius: 22px;
    overflow: hidden;

    background-image:
        linear-gradient(
            rgba(5, 15, 25, 0.65),
            rgba(5, 15, 25, 0.72)
        ),
        url('images/office-work-space.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

.contact-hero-modern h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 20px;
    line-height: 1.08;
    max-width: 900px;
}

.contact-hero-modern p {
    max-width: 760px;
}

.contact-hero-description {
    color: #c7d0e0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.contact-card-modern {
    max-width: 750px;
    margin: 50px auto 0 auto;
    position: relative;
    z-index: 5;
}

.contact-card-modern .card {
    border-radius: 22px;
    backdrop-filter: blur(12px);
    background: rgba(17, 34, 64, 0.92);
}

.contact-tagline-modern {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {

    .contact-hero-modern {
        min-height: 430px;
        padding: 60px 20px;
        border-radius: 18px;
    }

    .contact-card-modern {
        margin-top: -40px;
        padding: 0 10px;
    }

    .contact-hero-modern h1 {
        font-size: 2rem;
    }

    .contact-hero-description {
        font-size: 1rem;
    }
}
/* ==========================================================================
   8. BACK TO TOP BUTTON
   ========================================================================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-cyan);
    color: #0a192f;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

#backToTop:hover {
    background-color: white;
    transform: scale(1.05);
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {

    body {
        overflow-x: hidden;
        width: 100%;
    }

    body > section:first-of-type,
    body > main:first-of-type {
        margin-top: var(--navbar-height);
    }

    /* Navbar */
    .hamburger {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--bg-card);
        padding: 20px;
        gap: 15px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-toggle:checked ~ .nav-menu {
        transform: translateX(0);
        display: flex;
    }

    .nav-container {
        padding: 0 15px;
    }

    /* Logos */
    .logo img,
    .logo_portrait {
        max-height: 42px;
    }

    .logo_portrait_contact {
        max-width: 200px;
    }

    .logo-landscape {
        max-width: 90%;
    }

    /* Hero */
    .hero {
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Sections */
    .section {
        padding: 40px 15px;
        width: 100%;
    }

    .text-section h1,
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        text-align: center;
    }

    .hero-subtext,
    .partner-slogan,
    .text-section p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 15px;
        text-align: center;
    }

    .text-holder {
        max-width: 100%;
        margin-bottom: 25px;
    }

    .text-holder p,
    .text-holder li {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* About */
    .about-box {
        flex: 1 1 100%;
        min-width: unset;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Contact */
    .direct-contact-box {
        max-width: 100%;
        padding: 0 10px;
    }

    .direct-contact-links a {
        font-size: 1rem;
        word-break: break-word;
    }
}

/* ==========================================================================
   ARABIC SUBTITLE STYLING
   ========================================================================== */
.arabic-hero-subtitle {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent-gold); /* Colors it your premium gold theme */
    text-align: center;
    margin: 15px auto 25px auto;
    direction: rtl;
}
/* ==========================================================================
   Ubuntu Geoscience - Layout Container & Typography Fixes (Updated)
   ========================================================================== */

/* Global container to constrain width and center content across the site */
.container {
    max-width: 1100px !important; 
    margin: 0 auto !important;    
    padding: 0 20px !important;   
    box-sizing: border-box;
}

/* Force the section title to be perfectly centered */
.technical-consultancy h2 {
    text-align: center !important;
    margin-top: 40px !important;
    margin-bottom: 30px !important;
    font-size: 2rem !important;
    width: 100% !important;
    display: block !important;
}

/* Center the paragraph block itself, but keep text readable */
.technical-consultancy .text-holder {
    max-width: 850px !important;   
    margin: 0 auto !important;     
    text-align: left !important;   /* Ensures paragraphs read cleanly left-to-right */
    display: block !important;
}

/* Force alignment and spacing directly onto the paragraphs */
.technical-consultancy .text-holder p {
    text-align: left !important;
    margin-bottom: 24px !important; /* Forces breathing room between paragraphs */
    font-size: 1.05rem !important;
    line-height: 1.7 !important;   /* Relaxes the text so it's easier to scan */
}

/* ==========================================================================
   PROJECT INQUIRY FORM
   ========================================================================== */

.project-inquiry-modern{
    max-width:1100px;
    margin:40px auto 50px auto;
}

.inquiry-card{
    padding:40px;
}

.project-form{
    max-width:900px;
    margin:30px auto 0;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.checkbox-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.form-group{
    margin-bottom:25px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    color:#ccd6f6;
    font-weight:500;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:14px;
    border:1px solid rgba(255,255,255,.15);
    background:rgba(255,255,255,.05);
    color:white;
    border-radius:8px;
    font-family:inherit;
}

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

.form-section{
    margin:30px 0;
}

.form-section h3{
    margin-bottom:15px;
    color:var(--accent-cyan);
}

.checkbox-grid label{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:0;
}

.checkbox-grid input{
    width:auto;
}

.submit-btn{
    background:var(--accent-cyan);
    color:#0a192f;
    border:none;
    padding:16px 32px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s ease;

    display:block;
    margin:30px auto 0;
}

.submit-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,212,255,.25);
}

@media(max-width:768px){

    .form-grid,
    .checkbox-grid{
        grid-template-columns:1fr;
    }

    .inquiry-card{
        padding:25px;
    }

}