/* ============================================================
   Trigonal Project Management LLC - Main Stylesheet
   Colors: Deep Navy #1B2A6B | Cyan Blue #29ABE2 | White #FFFFFF
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary:       #1B2A6B;
    --primary-dark:  #141f52;
    --primary-light: #2a3d9a;
    --secondary:     #29ABE2;
    --secondary-dark:#1a8bbf;
    --accent:        #00C4FF;
    --white:         #FFFFFF;
    --light:         #F4F7FC;
    --light-gray:    #E8EDF5;
    --gray:          #8A95A8;
    --dark:          #0D1B3E;
    --text:          #2C3E50;
    --text-light:    #6B7A99;
    --border:        #DDE3EE;
    --shadow:        0 4px 24px rgba(27,42,107,0.10);
    --shadow-lg:     0 8px 48px rgba(27,42,107,0.18);
    --radius:        12px;
    --radius-lg:     20px;
    --radius-sm:     8px;
    --transition:    all 0.3s ease;
    --font-en:       'Inter', sans-serif;
    --font-ar:       'Cairo', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-en);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

body.rtl { font-family: var(--font-ar); }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Section ---- */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header .tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(41,171,226,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(41,171,226,0.5);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}
.btn-dark {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-dark:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--white);
}
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-lg { padding: 18px 42px; font-size: 1.05rem; }

/* ---- Preloader ---- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo { width: 120px; margin: 0 auto 20px; }
.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(41,171,226,0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); color: var(--white); }
.rtl .back-to-top { right: auto; left: 30px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(27,42,107,0.97);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(27,42,107,0.25);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
body.rtl .navbar-inner {
    flex-direction: row;
}
.navbar-brand { display: flex; align-items: center; }
.navbar-logo { height: 52px; width: auto; transition: var(--transition); }
.navbar.scrolled .navbar-logo { height: 44px; }

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
body.rtl .navbar-menu {
    flex-direction: row;
}
.navbar-menu li a {
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.navbar-menu li a:hover,
.navbar-menu li.active a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}
.navbar-menu li a:hover::after,
.navbar-menu li.active a::after { transform: scaleX(1); }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.88);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    transition: var(--transition);
}
.lang-switcher:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}
.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,42,107,0.92) 0%, rgba(20,31,82,0.85) 50%, rgba(41,171,226,0.15) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(41,171,226,0.2);
    border: 1px solid rgba(41,171,226,0.4);
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}
.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--secondary); }
.hero p {
    color: rgba(255,255,255,0.82);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 620px;
}
.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}
.hero-scroll i { font-size: 1.2rem; color: var(--secondary); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Hero Shapes */
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(41,171,226,0.08);
    animation: float 8s ease-in-out infinite;
}
.hero-shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation-delay: 0s; }
.hero-shape-2 { width: 250px; height: 250px; bottom: 100px; right: 200px; animation-delay: 3s; }
.hero-shape-3 { width: 150px; height: 150px; top: 200px; right: 400px; animation-delay: 1.5s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.05;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    position: relative;
}
.stat-item {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}
.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}
.stat-item:last-child::after { display: none; }
.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(41,171,226,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--secondary);
}
.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { background: var(--light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, rgba(27,42,107,0.08), rgba(41,171,226,0.12));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    transform: scale(1.1);
}
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image-wrapper {
    position: relative;
}
.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.about-image-main:hover img { transform: scale(1.04); }
.about-badge-card {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border-radius: var(--radius);
    padding: 20px 28px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(41,171,226,0.4);
}
.about-badge-card .number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}
.about-badge-card .text { font-size: 0.85rem; opacity: 0.9; }
.about-content .tag { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 20px; }
.about-content > p { margin-bottom: 32px; }
.about-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.about-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, rgba(27,42,107,0.08), rgba(41,171,226,0.12));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    transition: var(--transition);
}
.about-feature:hover .about-feature-icon {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
}
.about-feature-text h4 { font-size: 1rem; margin-bottom: 4px; }
.about-feature-text p { font-size: 0.9rem; margin: 0; }

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-section { background: var(--light); }
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.filter-btn {
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--border);
    color: var(--text-light);
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.project-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-image img { transform: scale(1.08); }
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(27,42,107,0.85) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay-link {
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
}
.project-overlay-link:hover { background: var(--secondary); border-color: var(--secondary); color: var(--white); }
.project-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.project-info { padding: 24px; }
.project-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-info p { font-size: 0.9rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.project-meta span {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}
.project-meta span i { color: var(--secondary); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.04;
}
.testimonials-section .section-header h2,
.testimonials-section .section-header .tag { color: var(--white); }
.testimonials-section .section-header p { color: rgba(255,255,255,0.7); }
.swiper-testimonials { padding-bottom: 60px !important; }
.testimonial-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    line-height: 1;
    color: var(--secondary);
    opacity: 0.4;
    position: absolute;
    top: 16px;
    left: 28px;
    font-family: Georgia, serif;
}
.testimonial-stars { color: #FFD700; font-size: 0.9rem; margin-bottom: 16px; }
.testimonial-text {
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 700;
    flex-shrink: 0;
}
.testimonial-author-info h4 { color: var(--white); font-size: 1rem; margin-bottom: 2px; }
.testimonial-author-info p { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin: 0; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.4) !important; }
.swiper-pagination-bullet-active { background: var(--secondary) !important; }

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-section { background: var(--white); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}
.team-image img { width: 100%; height: 100%; object-fit: cover; }
.team-social {
    position: absolute;
    inset: 0;
    background: rgba(27,42,107,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}
.team-card:hover .team-social { opacity: 1; }
.team-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
}
.team-social a:hover { background: var(--secondary); color: var(--white); }
.team-info { padding: 24px 20px; }
.team-info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.team-position {
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.team-info p { font-size: 0.88rem; margin: 0; }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section { background: var(--light); }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-image img { transform: scale(1.06); }
.blog-content { padding: 24px; }
.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.blog-meta span {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}
.blog-meta span i { color: var(--secondary); }
.blog-category {
    display: inline-block;
    background: rgba(41,171,226,0.1);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}
.blog-content h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.blog-content p { font-size: 0.9rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more {
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.blog-read-more:hover { gap: 10px; color: var(--primary); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -200px;
    right: -100px;
}
.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    bottom: -100px;
    left: -50px;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { color: var(--white); margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.contact-info-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.rtl .contact-info-card:hover { transform: translateX(-6px); }
.contact-info-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
}
.contact-info-text h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-text p, .contact-info-text a { font-size: 0.92rem; margin: 0; color: var(--text-light); }
.contact-info-text a:hover { color: var(--secondary); }
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.form-group label span { color: #e74c3c; }
.form-control {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(41,171,226,0.12);
}
.form-control.error { border-color: #e74c3c; }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
}
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.08;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumb a, .breadcrumb span {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .separator { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--secondary); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); }
.footer-top { padding: 80px 0 60px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
}
.footer-logo { height: 56px; width: auto; margin-bottom: 20px; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: var(--white); transform: translateY(-3px); }
.footer-heading {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}
.rtl .footer-heading::after { left: auto; right: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.footer-links a i { color: var(--secondary); font-size: 0.7rem; }
.footer-links a:hover { color: var(--white); padding-left: 6px; }
.rtl .footer-links a:hover { padding-left: 0; padding-right: 6px; }
.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.footer-contact li i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin: 0; }
.footer-credit a { color: rgba(255,255,255,0.4); font-size: 0.82rem; display: flex; align-items: center; gap: 5px; }
.footer-credit a:hover { color: var(--secondary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item::after { display: none; }
}

@media (max-width: 768px) {
    .navbar-menu, .navbar-actions .btn { display: none; }
    .navbar-toggle { display: flex; }
    .navbar-menu.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary);
        justify-content: center;
        align-items: center;
        z-index: 999;
        gap: 8px;
    }
    .navbar-menu.open li a { font-size: 1.3rem; padding: 14px 24px; }
    .hero-btns { flex-direction: column; align-items: flex-start; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .contact-form-card { padding: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-badge-card { right: 0; bottom: -16px; }
    .section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2rem; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* Animations */
[data-aos] { transition-duration: 0.7s !important; }
