@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --bg-dark: #0F1115;
    --bg-medium: #151922;
    --bg-light: #1A1F2B;
    --primary: #D4AF37;
    --primary-hover: #b5952f;
    --secondary: #C7CEDB;
    --secondary-light: #E5E7EB;
    --accent: #A78BFA;
    --text-main: #FFFFFF;
    --text-muted: #D1D5DB;
    --transition: all 0.3s ease;
    --font-main: 'Tajawal', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.domain-name {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
    font-family: monospace;
    color: var(--primary);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

.logo span {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 400;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 1rem;
    font-weight: 500;
}

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

.nav-cta {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--primary-hover);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 17, 21, 0.2), rgba(15, 17, 21, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease forwards;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(15, 17, 21, 0.5);
}

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

.service-card {
    background: var(--bg-medium);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    transition: var(--transition);
}

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

.project-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-link {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 21, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.gallery-overlay span {
    color: var(--primary);
    font-size: 2rem;
}

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

.article-card {
    background: var(--bg-medium);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    border: 1px solid rgba(255,255,255,0.05);
}

.article-card:hover {
    border-color: var(--accent);
}

.article-img {
    height: 200px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-date {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-medium);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    border-radius: 4px;
    font-family: var(--font-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Inner Pages Header */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(to bottom, var(--bg-medium), var(--bg-dark));
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary);
}

/* Content Area for Legal Pages */
.content-area {
    background: var(--bg-medium);
    padding: 60px;
    border-radius: 8px;
    margin-bottom: 60px;
}

.content-area h2 {
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.content-area h2:first-child {
    margin-top: 0;
}

.content-area p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-area ul {
    margin-bottom: 20px;
    padding-right: 20px;
}

.content-area li {
    margin-bottom: 10px;
    color: var(--text-muted);
    list-style-type: disc;
}

/* Footer */
footer {
    background: var(--bg-light);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

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

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.footer-links a {
    color: var(--text-muted);
}

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

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    border-radius: 4px;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Project Details & Categories Enhancements */
.project-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.project-meta span {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-medium);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

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

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-right: 4px solid var(--primary);
    position: relative;
    transition: var(--transition);
}

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

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

.project-specs {
    background: var(--bg-medium);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.specs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.spec-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.spec-item p {
    color: var(--text-main);
    font-weight: 500;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.material-card {
    text-align: center;
    background: var(--bg-medium);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.material-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.material-card h4 {
    color: var(--text-main);
}

.cta-section {
    background: linear-gradient(to right, rgba(212, 175, 55, 0.05), var(--bg-dark));
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .nav-container ul { display: none; }
    .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-btns { flex-direction: column; }
    .section-padding { padding: 60px 0; }
    .content-area { padding: 30px; }
    .cta-section h2 { font-size: 2rem !important; }
}

/* Article Pages Enhancements */
.article-header-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.article-header-meta .category-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}
.article-header-meta .date {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.article-content-body {
    max-width: 900px;
    margin: 0 auto;
}
.article-content-body h2 {
    color: var(--primary);
    font-size: 2rem;
    margin: 50px 0 25px;
}
.article-content-body h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin: 35px 0 15px;
}
.article-content-body p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 25px;
}
.article-content-body ul, .article-content-body ol {
    margin-bottom: 25px;
    padding-right: 25px;
}
.article-content-body li {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 15px;
    list-style-type: disc;
}
.article-content-body blockquote {
    border-right: 4px solid var(--primary);
    padding: 25px 30px;
    background: rgba(212, 175, 55, 0.05);
    margin: 40px 0;
    border-radius: 8px 0 0 8px;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-main);
}