/* File path: assets/css/index.css */

/* Local Font Definition */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* General Body Styling */
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* Light background */
    font-family: 'Vazirmatn', sans-serif; /* Use local Persian font */
    direction: rtl; /* Set direction to Right-to-Left */
}

/* Container for consistent content width */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.btn-tertiary,
.btn-hero-primary,
.btn-hero-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem; /* Rounded corners */
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.btn-primary {
    background-color: #3b82f6; /* Blue */
    color: #ffffff;
    border: 2px solid #3b82f6;
}
.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #a855f7; /* Purple */
    color: #ffffff;
    border: 2px solid #a855f7;
}
.btn-secondary:hover {
    background-color: #9333ea;
    border-color: #9333ea;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-tertiary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}
.btn-tertiary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Hero Section Specific Buttons */
.btn-hero-primary {
    background-color: #3b82f6; /* Blue */
    color: #ffffff;
    border: 2px solid #3b82f6;
    padding: 1rem 2.5rem;
    font-size: 1.125rem; /* lg text */
}
.btn-hero-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    background-color: transparent;
    color: #3b82f6; /* Blue */
    border: 2px solid #3b82f6;
    padding: 1rem 2.5rem;
    font-size: 1.125rem; /* lg text */
}
.btn-hero-secondary:hover {
    background-color: #e0f2fe; /* Light blue */
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section Styling */
.hero-section {
    background: linear-gradient(135deg, #e0f7fa, #e8eaf6); /* Light gradient background */
    border-radius: 1rem;
    margin: 2rem auto;
    max-width: 90%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Feature Card Styling */
.feature-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 3.5rem; /* Adjust for smaller screens */
    }
    .hero-section p {
        font-size: 1.125rem; /* Adjust for smaller screens */
    }
    .hero-section .space-x-4 {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    header nav a {
        width: 100%;
    }
}
