/* Main Styles for Ahsant Loyalty Program Website */

/* Variables */
:root {
    --primary-color: #4B0082; /* Ø§Ù„Ø¨Ù†ÙØ³Ø¬ÙŠ */
    --secondary-color: #FFD700; /* Ø§Ù„Ø°Ù‡Ø¨ÙŠ */
    --light-purple: #9370DB;
    --light-gold: #FFEB99;
    --dark-purple: #2A004D;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --font-family: 'Tajawal', 'Tajawal', sans-serif;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    direction: rtl;
    text-align: right;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--dark-gray);
}

section {
    padding: 80px 0;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand {
    padding: 0;
}

.logo {
    height: 60px;
}

.navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
    background-color: rgba(75, 0, 130, 0.05);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
    color: var(--white);
    padding: 150px 0 100px;
    text-align: center;
}

.hero-logo {
    height: 150px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--light-gold);
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-content h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.about-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.feature-list .icon {
    color: var(--secondary-color);
    margin-left: 15px;
    font-size: 1.2rem;
}

.feature-list .text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Rewards Section */
.rewards-section {
    background-color: var(--light-gray);
}

.rewards-table {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rewards-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.rewards-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border: none;
}

.rewards-table td {
    padding: 15px;
    text-align: center;
    vertical-align: middle;
    border-color: #eee;
    font-size: 1.1rem;
}

.rewards-table tr:nth-child(even) {
    background-color: rgba(75, 0, 130, 0.05);
}

.rewards-table tr:hover {
    background-color: var(--light-gold);
    transition: all 0.3s ease;
}

/* Calculator Section */
.calculator-section {
    background-color: var(--white);
}

.calculator-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    height: 50px;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(75, 0, 130, 0.25);
}

.result-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: none;
}

.result-item {
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    background-color: var(--light-gray);
}

.result-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.result-item p {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
}

/* Terms Section */
.terms-section {
    background-color: var(--light-gray);
}

.terms-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.terms-list {
    list-style: none;
    padding: 0;
}

.terms-list li {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.terms-list .number {
    background-color: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-weight: 600;
}

.terms-list .text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    padding-top: 8px;
}

/* Registration Section */
.register-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
    color: var(--white);
}

.register-section .section-header h2,
.register-section .section-header p {
    color: var(--white);
}

.register-section .section-header h2::after {
    background-color: var(--secondary-color);
}

.register-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.register-card label {
    color: var(--primary-color);
}

.form-check {
    margin-top: 20px;
}

.form-check-label {
    color: var(--dark-gray);
    margin-right: 10px;
}

/* Footer */
.footer {
    background-color: var(--dark-purple);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer p {
    color: var(--light-gray);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-gray);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    color: var(--secondary-color);
    margin-left: 10px;
    font-size: 1.2rem;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-left: 10px;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-purple);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-logo {
        height: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .result-item {
        margin-bottom: 15px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}