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

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

:root {
    --primary-red: #ef1e35;
    --dark-red: #ef1e35;
    --dark-gray: #454646;
    --medium-gray: #454646;
    --light-gray: #95a5a6;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 73, 94, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(231, 76, 60, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Header Section */
.header {
    padding: 50px 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.logo-container {
    animation: fadeInDown 0.8s ease;
}

.logo-img {
    max-width: 150px;
    width: 100%;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-img:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

.header-subtitle {
    font-size: 1.4rem;
    color: #555;
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    position: relative;
    display: inline-block;
}

.header-subtitle::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    opacity: 0.5;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-red), var(--primary-red));
    border-radius: 2px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    display: flex;
    direction: ltr;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px solid rgba(231, 76, 60, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* خلفية الأيقونة الكبيرة */
.card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.03) 0%, transparent 70%);
    z-index: 0;
    transition: all 0.4s ease;
}

.card:hover::after {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.05) 0%, transparent 70%);
}

/* الأيقونة الكبيرة في الخلفية - الأيقونة */
.card-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    z-index: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 120px;
    color: rgba(44, 62, 80, 0.08);
}

.card:hover .card-bg-icon {
    opacity: 0.2;
    color: rgba(116, 16, 7, 0.208);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(231, 76, 60, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(231, 76, 60, 0.3);
}

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

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

/* التأكد من ظهور العناصر فوق الخلفية */
.card-icon,
.card-title,
.card-url,
.card-description {
    position: relative;
    z-index: 3;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    /* White background for the circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
    /* Red border */
    box-shadow:
        0 5px 12px rgba(231, 76, 60, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    /* Ensure image stays within the circle */
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.08);
    box-shadow:
        0 8px 20px rgba(231, 76, 60, 0.25),
        0 4px 10px rgba(44, 62, 80, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

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

.card-icon i {
    font-size: 1.7rem;
    color: white;
    transition: transform 0.3s ease;
}

.card-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure the entire image is visible */
    border-radius: 50%;
    padding: 5px;
    /* Add some padding to prevent image from touching the border */
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-shadow: #e8edf2 1px 1px 2px;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    z-index: 1;
    position: relative;
}

.card-url {
    font-size: 0.95rem;
    color: #e8edf2;
    font-family: 'Cairo', 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 1;
    position: relative;
    background: #ef1e35;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid rgba(231, 76, 60, 0.15);
    transition: all 0.3s ease;
}

.card:hover .card-url {
    background: #ef1e35;
    color: #e8edf2;
    transform: scale(1.05);
}

.card-description {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
    z-index: 1;
    position: relative;
    font-weight: 500;
    padding: 0 5px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 50px 20px 30px;
    margin-top: 80px;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--dark-red) 0%,
            var(--primary-red) 50%,
            var(--dark-red) 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 30px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-links a:hover::after {
    width: 100%;
}

.dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#dc1e3410 2px, transparent 2px);
    background-size: 30px 30px;
}

.icon {
    position: absolute;
    width: 35px;
    height: 35px;
    opacity: 0.2;
    transition: all 0.3s ease;
    rotate: calc(-2deg);
}

.icon:hover {
    opacity: 0.8;
    transform: scale(1.2);
    cursor: pointer;
    animation-play-state: paused;
    filter: drop-shadow(0 0 5px rgba(220, 30, 52, 0.5));
}

/* SVG Icon Styles */
.wifi-svg,
.globe-svg,
.cloud-svg {
    fill: #DC1E34;
    width: 100%;
    height: 100%;
}

/* WiFi Icons Positioning */
.wifi-icon-1 {
    top: 15%;
    left: 20%;
    animation: float 4s infinite ease-in-out;
}

.wifi-icon-2 {
    top: 45%;
    left: 75%;
    animation: float 5s infinite ease-in-out;
}

.wifi-icon-3 {
    top: 75%;
    left: 35%;
    animation: float 4.5s infinite ease-in-out;
}

/* Globe Icons Positioning */
.globe-icon-1 {
    top: 25%;
    left: 65%;
    animation: float 4.2s infinite ease-in-out reverse;
}

.globe-icon-2 {
    top: 60%;
    left: 15%;
    animation: float 4.8s infinite ease-in-out reverse;
}

.globe-icon-3 {
    top: 80%;
    left: 80%;
    animation: float 5.2s infinite ease-in-out reverse;
}

/* Cloud Icons Positioning */
.cloud-icon-1 {
    top: 55%;
    left: 45%;
    animation: float 4.3s infinite ease-in-out;
}

.cloud-icon-2 {
    top: 90%;
    left: 55%;
    animation: float 4.7s infinite ease-in-out;
}

.cloud-icon-3 {
    top: 10%;
    left: 85%;
    animation: float 5s infinite ease-in-out;
}

/* Floating Animation Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 35px 20px;
    }

    .logo-img {
        max-width: 120px;
    }

    .header-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }

    .card {
        padding: 25px 18px;
        min-height: 180px;
    }

    .card-bg-icon {
        width: 120px;
        height: 120px;
    }

    .card-icon {
        width: 55px;
        height: 55px;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-url {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .card-description {
        font-size: 0.85rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 25px 15px;
    }

    .logo-img {
        max-width: 120px;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .container {
        padding: 0 15px;
    }

    .card {
        min-height: 170px;
        padding: 25px 15px;
    }

    .card-bg-icon {
        width: 110px;
        height: 110px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon i {
        font-size: 1.4rem;
    }

    .card-url {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .card-description {
        font-size: 0.8rem;
    }
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.card {
    animation: fadeIn 0.6s ease backwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

/* تم إزالة floating animation للتركيز على المحتوى */