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

body {
    background: #0b0b0b;
    color: #ffffff;
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
}

.navbar .logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.navbar .logo span {
    color: #00a8ff;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

.nav-links a {
    color: #dddddd;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00a8ff;
    background: rgba(0, 168, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: url("../images/hero-banner.png") center center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 40px;
}

.overlay h1 {
    font-size: 64px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 0 35px rgba(0, 153, 255, 0.6);
}

.overlay h1 span {
    color: #00a8ff;
}

.overlay p {
    margin-top: 20px;
    font-size: 22px;
    max-width: 850px;
    color: #dddddd;
    font-weight: 400;
}

.btn {
    margin-top: 40px;
    display: inline-block;
    padding: 14px 40px;
    background: #00a8ff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.4);
}

.btn:hover {
    background: #0088cc;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.6);
}

/* Cards Section */
#cards {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 20px;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 45px;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #00a8ff;
    margin: 12px auto 0;
    border-radius: 2px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    display: block;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(0, 168, 255, 0.15);
    border-color: rgba(0, 168, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 168, 255, 0.3);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.card p {
    color: #d7d7d7;
    font-size: 15px;
    line-height: 1.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #888888;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #070707;
    font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .overlay h1 {
        font-size: 38px;
    }

    .overlay p {
        font-size: 16px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* 404 Error Page Styles */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #0b0b0b;
    text-align: center;
    padding: 20px;
}

.error-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 50px 30px;
    backdrop-filter: blur(12px);
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.error-code {
    font-size: 100px;
    font-weight: 900;
    line-height: 1;
    color: #00a8ff;
    text-shadow: 0 0 35px rgba(0, 168, 255, 0.6);
    margin-bottom: 20px;
}

.error-container h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #ffffff;
}

.error-container p {
    color: #cccccc;
    font-size: 16px;
    margin-bottom: 35px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.error-actions .btn {
    margin-top: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid #00a8ff;
    color: #00a8ff;
    box-shadow: none;
}

.btn-outline:hover {
    background: #00a8ff;
    color: #ffffff;
}

/* About Page Styles */
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-header h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
}

.about-header h1 span {
    color: #00a8ff;
    text-shadow: 0 0 25px rgba(0, 168, 255, 0.5);
}

.about-header p {
    font-size: 20px;
    color: #cccccc;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(12px);
}

.about-card h2 {
    font-size: 24px;
    color: #00a8ff;
    margin-bottom: 15px;
}

.about-card p {
    color: #dddddd;
    font-size: 16px;
    line-height: 1.9;
}

.about-features {
    background: rgba(0, 168, 255, 0.05);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 50px;
}

.about-features h2 {
    font-size: 30px;
    margin-bottom: 35px;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-item h3 {
    font-size: 20px;
    color: #00a8ff;
    margin-bottom: 10px;
}

.feature-item p {
    color: #cccccc;
    font-size: 15px;
}

.about-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .about-header h1 {
        font-size: 30px;
    }
    .about-header p {
        font-size: 16px;
    }
    .about-container {
        padding-top: 140px;
    }
}
