/**
 * Haneen Nemer - Main Stylesheet
 * Made With Love By HOSSAM ALZYOD - Mr.Server | https://hossam.net | i@hossam.net
 * Mobile-First Responsive Design
 */

/* Fonts are now self-hosted in fonts.css */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-arabic);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-arabic);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-black);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-gold-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Text Direction Utilities ===== */
.ltr-text {
    direction: ltr !important;
    text-align: left;
    display: inline-block;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 1025px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ===== Section Spacing ===== */
.section {
    padding: var(--spacing-xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--spacing-xxl) 0;
    }
}

/* ===== Buttons ===== */
button,
input[type="button"],
input[type="submit"] {
    text-decoration: none;
}

button:hover,
button:focus {
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--fs-body);
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-arabic);
    text-decoration: none;
    line-height: 1;
    min-height: 48px; /* Touch-friendly */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    color: var(--secondary-black);
    box-shadow: var(--shadow-gold);
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-gold-light) 0%, var(--primary-gold) 100%);
    color: var(--secondary-black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    text-decoration: none;
}

.btn-secondary {
    background: var(--secondary-black);
    color: var(--text-white);
    border: 2px solid var(--secondary-black);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--text-white);
}

/* ===== Tiger Pattern Decorations ===== */
.tiger-pattern {
    position: relative;
    overflow: hidden;
}

.tiger-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.05) 10px,
            rgba(212, 175, 55, 0.05) 20px
        );
    pointer-events: none;
    z-index: 1;
}

/* ===== Gold Accent Line ===== */
.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-bronze));
    margin: var(--spacing-sm) auto;
    border-radius: var(--radius-sm);
}

.gold-line.left {
    margin: var(--spacing-sm) 0;
}

/* ===== Card Styles ===== */
.card {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gold { color: var(--primary-gold); }
.text-white { color: var(--text-white); }
.text-black { color: var(--secondary-black); }

.bg-gold { background-color: var(--primary-gold); }
.bg-black { background-color: var(--secondary-black); }
.bg-cream { background-color: var(--bg-cream); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ===== Responsive Utilities ===== */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .hide-tablet { display: none !important; }
    .show-mobile { display: none !important; }
}

@media (min-width: 1025px) {
    .hide-desktop { display: none !important; }
}

/* ===== Loading Animation ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Fade In Animation ===== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Dividers - Neon Effect ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.15) 15%,
        rgba(212, 175, 55, 0.4) 30%,
        rgba(212, 175, 55, 0.7) 50%,
        rgba(212, 175, 55, 0.4) 70%,
        rgba(212, 175, 55, 0.15) 85%,
        transparent 100%
    );
    box-shadow:
        0 0 8px rgba(212, 175, 55, 0.3),
        0 0 15px rgba(212, 175, 55, 0.2),
        0 0 25px rgba(212, 175, 55, 0.1);
    position: relative;
    margin: 0;
    animation: neonGlow 3s ease-in-out infinite;
}

@keyframes neonGlow {
    0%, 100% {
        box-shadow:
            0 0 8px rgba(212, 175, 55, 0.3),
            0 0 15px rgba(212, 175, 55, 0.2),
            0 0 25px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow:
            0 0 12px rgba(212, 175, 55, 0.5),
            0 0 20px rgba(212, 175, 55, 0.3),
            0 0 35px rgba(212, 175, 55, 0.15);
    }
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow:
        0 0 8px rgba(212, 175, 55, 0.8),
        0 0 15px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3);
    animation: dividerPulse 2s ease-in-out infinite;
}

.section-divider::before {
    left: 8%;
}

.section-divider::after {
    right: 8%;
}

@keyframes dividerPulse {
    0%, 100% {
        box-shadow:
            0 0 8px rgba(212, 175, 55, 0.8),
            0 0 15px rgba(212, 175, 55, 0.5),
            0 0 20px rgba(212, 175, 55, 0.3);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow:
            0 0 12px rgba(212, 175, 55, 1),
            0 0 25px rgba(212, 175, 55, 0.7),
            0 0 35px rgba(212, 175, 55, 0.5);
        transform: translateY(-50%) scale(1.3);
    }
}

/* Divider with icon */
.section-divider-icon {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.15) 20%,
        rgba(212, 175, 55, 0.4) 40%,
        rgba(212, 175, 55, 0.6) 50%,
        rgba(212, 175, 55, 0.4) 60%,
        rgba(212, 175, 55, 0.15) 80%,
        transparent 100%
    );
    box-shadow:
        0 0 8px rgba(212, 175, 55, 0.3),
        0 0 15px rgba(212, 175, 55, 0.2);
    position: relative;
    margin: 0;
    animation: neonGlow 3s ease-in-out infinite;
}

.section-divider-icon::before {
    content: '\f005';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-gold);
    background: var(--secondary-black);
    padding: 10px 18px;
    font-size: 1.1rem;
    border-radius: 50%;
    text-shadow:
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 30px rgba(212, 175, 55, 0.3);
    animation: iconGlow 2.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes iconGlow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(212, 175, 55, 0.8),
            0 0 20px rgba(212, 175, 55, 0.5),
            0 0 30px rgba(212, 175, 55, 0.3);
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        text-shadow:
            0 0 15px rgba(212, 175, 55, 1),
            0 0 30px rgba(212, 175, 55, 0.7),
            0 0 45px rgba(212, 175, 55, 0.5);
        transform: translate(-50%, -50%) scale(1.1) rotate(180deg);
    }
}
