:root {
    --primary: #18181b;
    /* Graphite/Charcoal */
    --primary-dark: #000000;
    --accent: #c26d2e;
    /* Vibrant Copper */
    --accent-light: #e08e55;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f4f4f5;
    /* Zinc 100 for subtle grey background */
    --white: #ffffff;
    --shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.text-gold {
    color: var(--accent);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    padding: 20px 0;
}

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

.logo img {
    height: 50px;
}

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

.nav a {
    font-weight: 500;
    color: var(--primary);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    /* Hidden */
    width: 250px;
    height: 100%;
    background: var(--white);
    z-index: 1100;
    padding: 20px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 20px;
}

.sidebar-nav li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sidebar-nav a {
    display: block;
    font-size: 1.1rem;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    /* Taller */
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    /* Modern angled bottom */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #152238 0%, #0a111c 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-pattern.svg');
    background-size: 300px;
    /* Large pattern */
    background-repeat: repeat;
    opacity: 0.4;
    /* Subtle transparency */
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.8rem;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--accent-light);
}

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

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

.full-width {
    width: 100%;
    text-align: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

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

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

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

/* Section Common */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

/* About */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 500;
}

.about-cards {
    flex: 1;
    display: grid;
    gap: 20px;
}

.card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border-right: 3px solid var(--accent);
}

/* Services */
.services {
    background: var(--bg-light);
    /* Light background for professionalism */
    position: relative;
    padding-top: 100px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: none;
    border-top: 4px solid transparent;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    transition: var(--transition);
    width: 300px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Ensure hand cursor */
}

.service-card:hover {
    transform: translateY(-15px);
    border-top-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

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

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* Button override for dark card */
.service-btn {
    color: var(--accent);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: rgba(21, 34, 56, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

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

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

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-btn {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content {
    padding: 40px;
}

.modal-content h2 {
    text-align: center;
    color: var(--primary);
}

.modal-content p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* Footer */
.footer {
    background: #1a202c;
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-contact a {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

    /* 2 Column Services on Mobile */
    .services-grid {
        gap: 15px;
        /* Smaller gap */
    }

    .service-card {
        width: calc(50% - 15px);
        /* 2 items per row */
        padding: 20px 15px;
        /* Reduced padding */
    }

    .service-icon svg {
        width: 30px;
        height: 30px;
    }

    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .service-card p {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
}