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

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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: #090d16;
    color: #cbd5e1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Angled background line */
    background-image: 
        linear-gradient(125deg, rgba(13, 148, 136, 0.03) 0%, transparent 50%),
        linear-gradient(305deg, rgba(217, 119, 6, 0.03) 0%, transparent 50%);
}

/* ============ Header Navbar ============ */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #090d16;
    border-bottom: 3px solid #0d9488; /* Teal underline */
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 6%;
}

/* Angled cut on navbar corner for style */
.header-nav::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10%;
    width: 150px;
    height: 15px;
    background: #0d9488;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-right: 3px solid #d97706; /* Amber logo accent */
    padding-right: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 18px;
    position: relative;
    transition: all 0.25s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.nav-menu a:hover, .nav-menu a.active {
    color: #090d16;
    background: #0d9488;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-selector {
    display: flex;
    align-items: center;
    background: #111827;
    border: 1px solid rgba(13, 148, 136, 0.3);
}

.lang-selector a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.lang-selector a.active {
    background: #d97706;
    color: #090d16;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: transparent;
    color: #d97706;
    border: 2px solid #d97706;
    font-size: 13.5px;
    font-weight: 800;
    padding: 8px 22px;
    transition: all 0.25s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-login:hover {
    background: #d97706;
    color: #090d16;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid rgba(13, 148, 136, 0.4);
    color: #0d9488;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
}

/* ============ Hero Section ============ */
.main-wrapper {
    flex: 1;
    padding-top: 150px;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 850px;
    padding: 0 20px;
}

/* Geometric badge above title */
.hero-tag {
    display: inline-block;
    background: #111827;
    border-left: 4px solid #0d9488;
    border-right: 4px solid #d97706;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 20px;
    margin-bottom: 24px;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.hero-title {
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.hero-title span {
    color: #0d9488;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #94a3b8;
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto;
}

/* ============ Cards Layout ============ */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Slanted Polygon Card */
.slanted-card {
    grid-column: span 4;
    background: #111827;
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 36px 30px;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: #cbd5e1;
    /* Slanted technical cut at top-left and bottom-right */
    clip-path: polygon(24px 0%, 100% 0%, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0% 100%, 0% 24px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 260px;
}

/* Asymmetric Columns Layout */
.card-1 { grid-column: 1 / span 6; }
.card-2 { grid-column: 7 / span 6; }
.card-3 { grid-column: 3 / span 8; }
.card-4 { grid-column: 1 / span 6; }
.card-5 { grid-column: 7 / span 6; }

/* Glowing underlays for cards on hover */
.slanted-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #0d9488;
    transition: all 0.3s ease;
}

.slanted-card:nth-child(even)::before {
    background: #d97706;
}

.card-header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: #1f2937;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    transition: all 0.3s ease;
}

.slanted-card:nth-child(even) .card-icon {
    color: #d97706;
}

.card-num {
    font-size: 15px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: #94a3b8;
    flex-grow: 1;
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: #0d9488;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.slanted-card:nth-child(even) .card-arrow {
    color: #d97706;
}

/* Hover States */
.slanted-card:hover {
    background: #1f2937;
    border-color: #0d9488;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.slanted-card:nth-child(even):hover {
    border-color: #d97706;
}

.slanted-card:hover .card-icon {
    background: #0d9488;
    color: #090d16;
}

.slanted-card:nth-child(even):hover .card-icon {
    background: #d97706;
    color: #090d16;
}

.slanted-card:hover .card-arrow {
    transform: translateX(-6px);
}

/* ============ Footer ============ */
.footer {
    background: #06090f;
    border-top: 3px solid #d97706;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
    position: relative;
}

.footer::after {
    content: '';
    position: absolute;
    top: -15px;
    right: 10%;
    width: 150px;
    height: 15px;
    background: #d97706;
    clip-path: polygon(0 100%, 100% 100%, 80% 0, 20% 0);
}

.footer-text {
    font-size: 13.5px;
    color: #475569;
    font-weight: 700;
}

/* ============ Responsive Styles ============ */
@media (max-width: 1024px) {
    .grid-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .slanted-card {
        width: 100% !important;
        max-width: 550px;
    }
    .hero-title {
        font-size: 30px;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }
}
