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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important; /* Forces sharp corners everywhere */
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: #0b0f19;
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Technical Grid background */
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
}

/* ============ Header Navbar ============ */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 6%;
}

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

.logo-link img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
}

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

.nav-menu a {
    text-decoration: none;
    color: rgba(241, 245, 249, 0.7);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

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

.lang-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-selector a {
    text-decoration: none;
    color: rgba(241, 245, 249, 0.6);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.lang-selector a.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 20px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 4px 4px 0px rgba(56, 189, 248, 0.3);
    transition: all 0.2s ease;
}

.btn-login:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(56, 189, 248, 0.5);
}

.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
}

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

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

.hero-logo-box {
    margin-bottom: 24px;
}

.hero-logo {
    height: 110px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.25));
    border: 2px solid rgba(56, 189, 248, 0.4);
    padding: 8px;
    background: rgba(11, 15, 25, 0.6);
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    border-right: 4px solid #38bdf8;
    padding-right: 16px;
    display: inline-block;
    text-align: right;
}

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

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

/* Tech Card design */
.tech-card {
    grid-column: span 4;
    position: relative;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    height: 250px;
    cursor: pointer;
    text-decoration: none;
    color: #f1f5f9;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Specific alignments like original: 2 on right, 1 center, 2 left */
/* We will align them using CSS grid columns */
.card-1 { grid-column: 2 / span 5; } /* Row 1 Right */
.card-2 { grid-column: 7 / span 5; } /* Row 1 Left */
.card-3 { grid-column: 4 / span 6; } /* Row 2 Center */
.card-4 { grid-column: 2 / span 5; } /* Row 3 Right */
.card-5 { grid-column: 7 / span 5; } /* Row 3 Left */

.card-inner {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.card-header-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.05);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.card-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    color: rgba(56, 189, 248, 0.6);
    transition: all 0.3s ease;
}

/* Slide-up details on hover */
.card-details {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: #0f172a;
    border-top: 3px solid #38bdf8;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
    transition: bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-details p {
    font-size: 14.5px;
    line-height: 1.8;
    color: #cbd5e1;
}

/* Hover effects */
.tech-card:hover {
    border-color: #38bdf8;
    box-shadow: 8px 8px 0px rgba(56, 189, 248, 0.2);
    transform: translate(-4px, -4px);
}

.tech-card:hover .card-details {
    bottom: 0;
}

.tech-card:hover .card-icon {
    background: #38bdf8;
    color: #0b0f19;
    border-color: #38bdf8;
}

/* Colorful left accent lines for each card */
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 4px;
    background: transparent;
    z-index: 4;
}

.card-1::before { background: #10b981; } /* Green */
.card-2::before { background: #ef4444; } /* Red */
.card-3::before { background: #f59e0b; } /* Amber */
.card-4::before { background: #3b82f6; } /* Blue */
.card-5::before { background: #d946ef; } /* Purple */

/* ============ Footer ============ */
.footer {
    background: #070a12;
    border-top: 2px solid rgba(56, 189, 248, 0.2);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer-text {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}

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

@media (max-width: 900px) {
    .nav-menu {
        display: none; /* simple mobile drawer or hidden menu */
    }
    .hamburger-btn {
        display: block;
    }
}
