        @font-face {
            font-family: 'IRANSans';
            src: url('fonts/IRANSans(FaNum).ttf') format('truetype');
            font-weight: 400;
        }

        @font-face {
            font-family: 'IRANSans';
            src: url('fonts/IRANSans(FaNum)_Bold.ttf') format('truetype');
            font-weight: 700;
        }

        @font-face {
            font-family: 'IRANSans';
            src: url('fonts/IRANSans(FaNum)_Black.ttf') format('truetype');
            font-weight: 900;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'IRANSans', Tahoma, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #0c1424 0%, #0a0f1a 100%);
            color: #e0e0ff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-attachment: fixed;
        }

        /* Navbar Styles */
        nav {
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #2d3756;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .logo {
            font-size: 1.6rem;
            font-weight: 700;
            color: #60a5fa;
            display: flex;
            align-items: center;
        }

        .logo i {
            margin-left: 10px;
            /* Changed from margin-right for RTL */
            color: #3b82f6;
        }

        .nav-links {
            display: flex;
            gap: 25px;
        }

        .nav-links a {
            text-decoration: none;
            color: #cbd5e1;
            font-size: 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            padding: 5px 0;
        }

        .nav-links a:hover {
            color: #60a5fa;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            /* Changed from left: 0 */
            width: 0;
            height: 2px;
            background: #3b82f6;
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Main Content */
        main {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 50px 20px;
        }

        .cards-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 35px;
            max-width: 900px;
            width: 100%;
        }

        .card {
            background: rgba(15, 23, 42, 0.7);
            border: 1px solid #2d3756;
            border-radius: 8px;
            height: 220px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            /* Changed from left: 0 */
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #60a5fa, #3b82f6);
            transform: scaleX(0);
            transform-origin: right;
            /* Changed from left for RTL flow */
            transition: transform 0.4s ease;
        }

        .card:hover {
            background: rgba(23, 34, 62, 0.8);
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        }

        .card:hover::before {
            transform: scaleX(1);
        }

        .card-icon {
            font-size: 2.8rem;
            margin-bottom: 15px;
            color: #60a5fa;
            opacity: 0.9;
        }

        .card-title {
            font-size: 2.8rem;
            font-weight: 900;
            /* Used the Black font weight */
            margin-bottom: 12px;
            background: linear-gradient(90deg, #bfdbfe, #93c5fd);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: 1px;
        }

        .card-desc {
            font-size: 1rem;
            color: #94a3b8;
            text-align: center;
            max-width: 85%;
            font-weight: 400;
            line-height: 1.6;
        }

        /* Footer */
        footer {
            background: rgba(15, 23, 42, 0.95);
            padding: 25px;
            text-align: center;
            font-size: 0.95rem;
            color: #94a3b8;
            border-top: 1px solid #2d3756;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 25px;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: #60a5fa;
            text-decoration: none;
            transition: color 0.3s;
            direction: ltr;
            /* Keeps English links LTR even in RTL mode */
            display: inline-block;
        }

        .footer-links a:hover {
            color: #93c5fd;
            text-decoration: underline;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .cards-container {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .card {
                height: 180px;
            }

            .card-title {
                font-size: 2.3rem;
            }

            .nav-links {
                gap: 15px;
            }
        }

        @media (max-width: 480px) {
            nav {
                flex-direction: column;
                gap: 15px;
                padding: 15px;
            }

            .card {
                height: 160px;
            }

            .card-title {
                font-size: 2rem;
            }

            .card-desc {
                font-size: 0.9rem;
            }
        }
