﻿@font-face {
    font-family: 'YBakh';
    src: url('YekanBakh.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'YBakh' !important;
    background: #e0e5ec;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Header Styles */
.neumorphism-header {
    background: #e0e5ec;
    box-shadow: 8px 8px 20px #babecc, -8px -8px 20px #ffffff;
    padding: 1rem 0;
    position: sticky;
    z-index: 999;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
}

.header {
    display: flex;
}

    .header img {
        width: 50px;
        margin: 5px;
    }

.logo {
    font-size: 2rem;
    color: #555;
    margin: 5px;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

    .nav a {
        text-decoration: none;
        padding: 0.6rem 1.2rem;
        border-radius: 2rem;
        background: #e0e5ec;
        box-shadow: inset 6px 6px 12px #babecc, inset -6px -6px 12px #ffffff;
        color: #555;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .nav a:hover {
            background: #d6dce5;
            box-shadow: 4px 4px 10px #babecc, -4px -4px 10px #ffffff;
        }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #555;
        border-radius: 2px;
        transition: 0.3s;
    }

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 80px;
        right: 1rem;
        background: #e0e5ec;
        border-radius: 1rem;
        box-shadow: 6px 6px 12px #babecc, -6px -6px 12px #ffffff;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        display: none;
    }

        .nav.active {
            display: flex;
        }

    .menu-toggle {
        display: flex;
    }
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.neumorphic-card {
    background: #e0e5ec;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 8px 8px 20px #babecc, -8px -8px 20px #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .neumorphic-card:hover {
        transform: translateY(-6px);
        box-shadow: 6px 6px 16px #007470, -6px -6px 16px #007470;
        cursor:pointer
    }

    .neumorphic-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 15px;
        margin-bottom: 1rem;
        box-shadow: inset 4px 4px 8px #c1c8d0, inset -4px -4px 8px #ffffff;
    }

    .neumorphic-card h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: #444;
    }

    .neumorphic-card p {
        color: #666;
        margin-bottom: 1.5rem;
    }

.neu-button,
.neu-button-dashboard {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    border-radius: 30px;
    border: none;
    background: #e0e5ec;
    box-shadow: 6px 6px 12px #babecc, -6px -6px 12px #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #333;
    font-weight: 500;
    font-family: 'YBakh' !important;
    text-decoration: none;
}

    .neu-button:hover,
    .neu-button-dashboard:hover {
        box-shadow: inset 2px 2px 6px #babecc, inset -2px -2px 6px #ffffff;
        background: #d4d8df;
    }

.glass {
    border-radius: 20px;
    padding: 30px 30px;
    box-shadow: 0 12px 20px 0px #ffffff, 0 -15px 20px #ffffff;
    text-align: center;
    display: inline-flex;
    float: inline-start;
    margin-top: 2rem;
    margin-right: 0.5rem;
}

.animatedTextHeader {
    color: black;
    text-align: center;
    font-family: 'YBakh' !important;
    font-size: 30px;
    padding: 5px;
    letter-spacing: 0.2rem;
    text-decoration: none;
}
.animatedTextDashboard {
    color: black;
    text-align: center;
    font-family: 'YBakh' !important;
    font-size: 15px;
    letter-spacing: 0.15rem;
    text-decoration: none;
    font-weight: bold;
}

.typewriter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem;
}

    .typewriter p {
        font-family: 'YBakh' !important;
        font-size: 1.5rem;
        overflow: hidden;
        white-space: nowrap;
        border-right: 1px solid;
        animation: typing 5s steps(23) forwards, blink 1s step-end infinite;
    }

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.neumorphic-footer {
    background: #e0e5ec;
    box-shadow: inset 8px 8px 16px #c5c9cc, inset -8px -8px 16px #ffffff;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.95rem;
    direction: rtl;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

.footer-links {
    margin-top: 10px;
}

    .footer-links a {
        text-decoration: none;
        margin: 0 10px;
        color: #007bff;
        font-weight: bold;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: #0056b3;
        }


.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
}

    .theme-toggle input[type="checkbox"] {
        display: none;
    }

    .theme-toggle label {
        width: 60px;
        height: 30px;
        background: linear-gradient(145deg, #e6ebf2, #cfd4dc);
        border-radius: 30px;
        position: relative;
        cursor: pointer;
        box-shadow: inset 2px 2px 5px #c5c9cc, inset -2px -2px 5px #ffffff;
        transition: all 0.4s ease;
        display: inline-block;
    }

        .theme-toggle label::before {
            content: "";
            position: absolute;
            top: 3px;
            right: 4px;
            width: 24px;
            height: 24px;
            background: linear-gradient(145deg, #007470, #007470);
            border-radius: 50%;
            transition: all 0.4s ease;
            box-shadow: 3px 3px 6px #bbb, -3px -3px 6px #fff;
        }

    .theme-toggle input:checked + label {
        background: linear-gradient(145deg, #262931, #343842);
    }

        .theme-toggle input:checked + label::before {
            background: linear-gradient(110deg, #f0f0f0, #cfcfcf);
            right: 32px;
        }

body.dark-mode {
    background: #2c2f36;
    color: #f0f0f0;
}


    body.dark-mode .footer-alt,
    body.dark-mode .neumorphism-header,
    body.dark-mode .neumorphic-footer {
        background: #2c2f36;
        box-shadow: inset 10px 10px 20px #1f2127, inset -10px -10px 20px #3a3e45;
    }

    body.dark-mode .glass {
        background: transparent;
        color: #e0e5ec;
    }
    body.dark-mode .logo {
        font-weight: normal;
    }

    body.dark-mode a,
    body.dark-mode h2,
    body.dark-mode h1,
    body.dark-mode p,
    body.dark-mode .footer-links a,
    body.dark-mode .footer-column ul li a {
        color: #e0e5ec;
    }

    body.dark-mode .neumorphic-card,
    body.dark-mode .neu-button {
        background: #2c2f36;
        color: #e0e5ec;
        box-shadow: 3px 3px 15px #e0e5ec, -3px -3px 15px #e0e5ec;
    }

        body.dark-mode .neu-button:hover {
            background: #1d1e22;
        }



@media (prefers-color-scheme: dark) {
    body {
        background: #2c2f36;
        color: #f0f0f0;
    }

    .neumorphism-header,
    .neumorphic-footer {
        background: #2c2f36;
        box-shadow: inset 10px 10px 20px #1f2127, inset -10px -10px 20px #3a3e45;
    }

    .glass {
        background: transparent;
        color: #e0e5ec;
    }

    .logo,
    a,
    h2,
    h1,
    p,
    .footer-links a,
    .footer-column ul li a {
        color: #e0e5ec;
    }

    .neumorphic-card,
    .neu-button {
        background: #2c2f36;
        color: #e0e5ec;
        box-shadow: 3px 3px 15px #e0e5ec, -3px -3px 15px #e0e5ec;
    }

        .neu-button:hover {
            background: #1d1e22;
        }
}