:root {
    --primary-color: #102542;
    --darker-primary: #0A192F;
    --accent-color: #B8DBD9;
    --text-color: #ffffff;
        --card-bg: rgba(184, 219, 217, 0.15);
    --card-hover-bg: var(--accent-color);
    --hover-glow: rgba(184, 219, 217, 0.6);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: radial-gradient(circle at top right, var(--primary-color), var(--darker-primary));
    color: var(--text-color);
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Subtle background pattern */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    mix-blend-mode: color-dodge;
    z-index: -1;
    pointer-events: none;
}

header {
    padding: 30px 50px;
    display: flex;
    justify-content: flex-start; /* Aligns to the right in RTL */
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(184, 219, 217, 0.3));
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    width: 100%;
    max-width: 1200px;
    perspective: 1000px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    background: var(--card-hover-bg);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(184, 219, 217, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    padding: 20px;
    transition: transform 0.3s ease;
}

.card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
}

.card-icon {
    width: 100%;
    height: 100%;
    stroke: var(--accent-color);
    stroke-width: 1.5;
    transition: stroke 0.3s ease;
}

.card:hover .card-icon {
    stroke: #fff;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 10px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.card:hover h2 {
    color: #fff;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: var(--primary-color);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 0 50px rgba(184, 219, 217, 0.2);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px; /* RTL */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-title {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.repo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.repo-item {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.repo-item:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateX(-5px); /* Move left in RTL */
}

.repo-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.repo-icon {
    width: 20px;
    height: 20px;
    fill: var(--accent-color);
    transition: fill 0.3s ease;
}

.repo-item:hover .repo-icon {
    fill: var(--primary-color);
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.github-btn {
    font-family: 'Cairo', sans-serif;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 240px;
    justify-content: center;
}

.github-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--hover-glow);
    transform: translateY(-2px);
}

.github-icon {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

.figma-btn {
    font-family: 'Cairo', sans-serif;
    background: transparent;
    border: 2px solid #F24E1E;
    color: #F24E1E;
    padding: 12px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 240px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.figma-btn:hover {
    background: #F24E1E;
    color: #fff;
    box-shadow: 0 0 20px rgba(242, 78, 30, 0.6);
    transform: translateY(-2px);
}

.figma-icon {
    width: 18px;
    height: 27px;
}

.info-section {
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    width: 100%;
    padding: 80px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.8rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(184, 219, 217, 0.2);
}

.lead-text {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

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

.info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(184, 219, 217, 0.2);
}

.info-card h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}



.info-card p, .info-card ul {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
}

.info-card ul {
    padding-right: 20px;
}

.info-card li {
    margin-bottom: 10px;
}

/* Footer & Hackathon Logo */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    color: var(--text-color);
    background: rgba(16, 37, 66, 0.3);
    backdrop-filter: blur(10px);
}

.hackathon-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hackathon-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.hackathon-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s ease;
}

.hackathon-logo:hover {
    transform: scale(1.05);
}

/* Mockups Section */
.mockups-section {
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.mockups-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mockup-card {
    flex: 1 1 220px;
    max-width: 280px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 219, 217, 0.3);
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(184, 219, 217, 0.2);
}

.mockup-image-container {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
}

.mockup-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mockup-card:hover .mockup-image-container img {
    transform: scale(1.05);
}

.mockup-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.mockup-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 768px) {
    header {
        justify-content: center;
    }
    
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        max-width: 340px;
        height: 120px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 30px;
        gap: 20px;
    }

    .icon-wrapper {
        margin-bottom: 0;
        width: 70px;
        height: 70px;
        padding: 15px;
    }

    .card h2 {
        margin-top: 0;
    }
}
