:root {
    --bg-deep: #0b0f19;
    --bg-card: #131b2e;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(212, 175, 55, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
}

.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
}

.orbiting-planet {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: rotateOrbit var(--speed) linear infinite;
}

.planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.floating-zodiac-ring {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatRing 4s ease-in-out infinite;
}

@keyframes floatRing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #b45309);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.text-ticker-wrap {
    background: rgba(212, 175, 55, 0.1);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
}

.text-ticker-move {
    display: inline-block;
    animation: tickerMove 200s linear infinite;
}

.text-ticker-item {
    display: inline-block;
    color: var(--gold-light);
    font-weight: 600;
    font-size: 16px;
    padding: 0 15px;
}

.text-ticker-star {
    display: inline-block;
    color: var(--gold);
    padding: 0 10px;
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.about-section {
    padding: 80px 5%;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image-frame {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title h2 {
    font-size: 30px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 15px;
}

.packages-section {
    padding: 40px 5%;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.package-card:hover {
    transform: translateY(-5px);
}

.package-card.featured {
    border: 2px solid var(--gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
    position: relative;
}

.package-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    margin: 20px 0;
}

.package-price span {
    font-size: 14px;
    color: var(--text-secondary);
}

.package-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: right;
}

.package-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.package-features li i {
    color: var(--gold);
    margin-left: 8px;
}

.astrology-features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

.astro-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
}

.astro-feature-card h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 20px;
}

.astro-feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.compat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.compat-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--gold-light);
}

.zodiac-finder-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 50px 5%;
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 20px;
}

.finder-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.finder-select {
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.finder-btn {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.horoscopes-grid-section {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.horoscopes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.zodiac-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.zodiac-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.zodiac-icon-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--gold);
}

.zodiac-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-main);
}

.zodiac-card .dates {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.zodiac-meta {
    display: flex;
    justify-content: space-around;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.videos-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.video-card, .gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.video-content {
    padding: 15px;
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-card p {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.ticker-wrap {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    padding: 15px 0;
    margin: 50px 0;
}

.ticker-move {
    display: inline-block;
    animation: tickerMoveRight 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 25px;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
}

.ticker-item i {
    color: var(--gold);
    margin-left: 8px;
}

@keyframes tickerMoveRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--gold);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--bg-deep);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .about-container {
        flex-direction: column;
    }
}
.about-image-frame {
    width: 100%;
    max-width: 380px;
    height: 450px;
    border-radius: 12px;
    border: 2px solid var(--gold);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
    position: relative;
    background: #000;
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    /* جعل الصورة تبدأ من الأعلى تماماً لضمان ظهور الرأس والوجه بوضوح */
    object-fit: cover;
    object-position: top center; 
    display: block;
}

/* تأثير النجوم المتحركة داخل الإطار */
.star-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold);
    animation: moveStar 3s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes moveStar {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0.2;
    }
    50% {
        opacity: 1;
        transform: translateY(-15px) scale(1.2);
    }
    100% {
        transform: translateY(-30px) scale(0.8);
        opacity: 0;
    }
}
html {
    scroll-behavior: smooth;
}