/* Modern Horoscope Website - Optimized CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gold & Deep Blue Theme */
    --gold-primary: #d4af37;
    --gold-secondary: #f4d03f;
    --gold-dark: #b8941f;
    --deep-blue: #1a237e;
    --deep-blue-2: #283593;
    --teal: #00897b;
    --teal-light: #26a69a;
    --purple-dark: #4a148c;
    --purple-deep: #6a1b9a;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, var(--deep-blue), var(--purple-dark));
    --gradient-2: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    --gradient-3: linear-gradient(135deg, var(--teal), var(--teal-light));
    --gradient-bg: linear-gradient(135deg, #1a237e 0%, #283593 25%, #4a148c 50%, #6a1b9a 75%, #1a237e 100%);
    
    /* Text Colors */
    --text-light: #ffffff;
    --text-dark: #2d2d2d;
    --text-gray: #6b7280;
    --text-gold: var(--gold-primary);
    
    /* Backgrounds */
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-gold: rgba(212, 175, 55, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.4);
    --shadow-blue: 0 8px 32px rgba(26, 35, 126, 0.4);
}

/* Prevent white flash on load */
html {
    scroll-behavior: smooth;
    background: var(--deep-blue);
}

body {
    font-family: 'Sarabun', sans-serif;
    background: 
        linear-gradient(
            to bottom,
            rgba(26, 35, 126, 0.7) 0%,
            rgba(74, 20, 140, 0.6) 50%,
            rgba(26, 35, 126, 0.7) 100%
        ),
        url('../imges/galaxy-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    opacity: 1;
    visibility: visible;
    will-change: auto;
}

/* Stars Background - Simplified (with subtle overlay) */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
    background: radial-gradient(ellipse at center, rgba(106, 27, 154, 0.2) 0%, rgba(26, 35, 126, 0.1) 100%);
}

.stars-bg::before,
.stars-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.stars-bg::before {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 90px 10px, rgba(255,255,255,0.6), transparent);
    background-size: 400px 400px;
    animation: orbitalMove1 80s linear infinite;
}

.stars-bg::after {
    background-image: 
        radial-gradient(2px 2px at 40px 60px, rgba(212, 175, 55, 0.5), transparent),
        radial-gradient(1px 1px at 100px 100px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 150px 25px, rgba(255,255,255,0.5), transparent);
    background-size: 350px 350px;
    animation: orbitalMove2 100s linear infinite reverse;
}

@keyframes orbitalMove1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); }
    50% { transform: translate(0, -40px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes orbitalMove2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-25px, 25px) rotate(-90deg); }
    50% { transform: translate(0, 50px) rotate(-180deg); }
    75% { transform: translate(25px, 25px) rotate(-270deg); }
    100% { transform: translate(0, 0) rotate(-360deg); }
}

.orbital-stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.orbital-star {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 20px;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: var(--shadow-gold);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    color: var(--deep-blue);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        gap: 0;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        text-align: left;
    }
    
    .nav-links .nav-link:last-child {
        border-bottom: none;
    }
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--deep-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-btn-promote {
    background: var(--gradient-2);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-btn-promote:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
    .nav-btn-promote {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: none;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--deep-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
}

/* Main Wrapper */
.main-wrapper {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 30px 15px;
    }
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .content-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.title-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 0;
    text-align: center;
}

.title-logo {
    max-width: 420px;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3),
                0 0 60px rgba(212, 175, 55, 0.2);
    border: none;
    background: transparent;
    backdrop-filter: blur(5px);
    padding: 0;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
    mix-blend-mode: overlay;
    filter: brightness(1.05) contrast(0.9);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .title-logo {
        max-width: 300px;
        max-height: 300px;
        width: 80%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .title-logo {
        max-width: 280px;
        max-height: 280px;
        width: 85%;
        height: auto;
    }
}

.title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.title-line1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 15px rgba(212, 175, 55, 0.6),
                 0 0 30px rgba(212, 175, 55, 0.4),
                 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .title-line1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .title-line1 {
        font-size: 2rem;
    }
}

.title-line2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--gold-primary);
    line-height: 1.2;
    margin: 0;
    opacity: 0.75;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4),
                 0 0 20px rgba(212, 175, 55, 0.3),
                 0 2px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .title-line2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .title-line2 {
        font-size: 1.6rem;
    }
}

.description-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .description-text p {
        font-size: 1rem;
    }
}

.cta-box {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.cta-text {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
    }
}

.btn-start {
    background: var(--gradient-2);
    color: var(--text-dark);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    max-width: 250px;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

.btn-ads {
    background: #10b981;
    color: var(--text-light);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    max-width: 250px;
}

.btn-ads:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
    background: #059669;
}

/* Right Column */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: center;
}

@media (max-width: 1024px) {
    .section-title {
        text-align: left;
    }
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .zodiac-grid {
        grid-template-columns: 1fr;
    }
}

/* Zodiac Card - Optimized */
.zodiac-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    opacity: 1;
    will-change: transform, box-shadow;
}

.zodiac-card::before {
    display: none;
}

.zodiac-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                0 0 40px rgba(212, 175, 55, 0.6),
                0 0 60px rgba(212, 175, 55, 0.4),
                0 0 80px rgba(212, 175, 55, 0.2);
}

.zodiac-card:hover::before {
    display: none;
}

.zodiac-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
                0 0 30px rgba(212, 175, 55, 0.6),
                0 0 50px rgba(212, 175, 55, 0.4);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
}

.card-icon-wrapper {
    margin-bottom: 15px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.zodiac-symbol {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.card-content {
    width: 100%;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.zodiac-card:hover .card-title {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.card-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    transition: color 0.3s ease;
}

.zodiac-card:hover .card-date {
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    background: rgba(26, 35, 126, 0.4);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    padding: 25px 20px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-container p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Update Timestamp */
.update-timestamp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    z-index: 100;
    background: rgba(26, 35, 126, 0.5);
    backdrop-filter: blur(5px);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Zodiac Detail Page */
.zodiac-detail-page {
    width: 100%;
}

.zodiac-header-card {
    border-radius: 25px;
    padding: 50px 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    color: white;
}

@media (max-width: 768px) {
    .zodiac-header-card {
        padding: 35px 25px;
    }
}

.zodiac-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

@media (max-width: 768px) {
    .zodiac-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

.zodiac-icon-large {
    font-size: 5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .zodiac-icon-large {
        font-size: 4rem;
    }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.zodiac-detail-content .horoscope-card-detail {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .zodiac-detail-content .horoscope-card-detail {
        padding: 25px;
    }
}

.card-section {
    margin-bottom: 40px;
}

.card-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
    .card-section h2 {
        font-size: 1.5rem;
    }
}

.horoscope-text {
    font-size: 1.2rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .horoscope-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

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

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                0 0 40px rgba(212, 175, 55, 0.6),
                0 0 60px rgba(212, 175, 55, 0.4),
                0 0 80px rgba(212, 175, 55, 0.2);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.info-card:hover h3 {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.info-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.info-card:hover .info-value {
    color: rgba(255, 255, 255, 1);
}

.color-card {
    border-color: var(--card-color);
}

.color-display {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 15px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2),
                0 0 30px var(--card-color);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.no-horoscope-message {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.message-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    animation: iconFloat 3s ease-in-out infinite;
}

.no-horoscope-message h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.no-horoscope-message p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.sub-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
