/*
Theme Name: Astrologer Ashim Chakraborty
Theme URI: https://astrologerashim.com
Author: Antigravity
Description: Premium Mystic Astrology Theme (Augury Style)
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: ashim-chakraborty
*/

/* =========================================
   1. Design System: Augury (Black & Gold)
   ========================================= */
:root {
    /* Colors - AUTHENTIC AUGURY */
    --color-bg-body: #050505;
    --color-bg-card: #0a0a0a;
    --color-primary: #d4af37;
    --color-primary-light: #e6c891;
    --color-accent: #8c693a;

    /* Text */
    --color-text-main: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-white: #ffffff;

    /* Borders & Glass */
    --border-gold: 1px solid rgba(212, 175, 55, 0.2);
    --glass-bg: rgba(0, 0, 0, 0.85);

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Jost', sans-serif;

    /* Layout */
    --container-width: 1240px;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #050505;
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    background-image: url('assets/images/body-bg.png');
    background-size: 100% 100%;
    background-repeat: repeat-y;
    background-attachment: fixed;
}

/* Fix for Inner Pages (Content hidden behind absolute header) */
body:not(.home) .site-main {
    padding-top: 140px;
    /* Clear the header */
    min-height: 80vh;
}

/* Ensure container width is respected on pages */
body:not(.home) .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--color-primary-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* =========================================
   3. Header: Transparent & Split Layout
   ========================================= */
.site-header {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 25px 0;
    border-bottom: none;
    transition: background 0.3s;
}

.split-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Nav Menus */
.main-navigation {
    flex: 1;
}

.main-navigation.left-nav ul {
    justify-content: flex-end;
    padding-right: 40px;
}

.main-navigation.right-nav ul {
    justify-content: flex-start;
    padding-left: 40px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}

.main-navigation a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #e0e0e0;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Centered Logo */
.centered-logo {
    flex: 0 0 auto;
    margin: 0;
    text-align: center;
    width: auto;
}

.mystik-logo {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    line-height: 1;
}

.logo-star {
    font-size: 1.2rem;
    color: var(--color-primary);
    vertical-align: middle;
    opacity: 0.8;
}

/* =========================================
   4. Hero Section
   ========================================= */
/* =========================================
   4. Hero Section - RESTORED
   ========================================= */
.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Equal split */
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    padding-top: 100px;
    gap: 20px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

/* Image Fix: Constrain height and preventing blow-up */
.hero-portfolio-image {
    width: auto;
    max-width: 100%;
    height: 80vh;
    /* Fixed height relative to viewport */
    max-height: 750px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.6));
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 40px;
    text-align: left;
}

.hero-super-title {
    display: block;
    margin-bottom: 25px;
    letter-spacing: 3px;
    opacity: 0.8;
}

.hero-title-1 {
    font-size: 3rem;
    display: block;
    line-height: 1.1;
    font-weight: 300;
    margin: 0;
    letter-spacing: 1px;
}

.hero-title-2 {
    font-size: 4.5rem;
    color: var(--color-primary);
    font-style: italic;
    display: block;
    line-height: 1.1;
    margin: 5px 0 20px 0;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    font-family: var(--font-heading);
}

.hero-title-3 {
    font-size: 2.2rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 300;
    display: block;
    margin-top: 10px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #bbb;
    max-width: 550px;
    margin-top: 25px;
    margin-bottom: 45px;
    line-height: 1.8;
    border-left: 2px solid var(--color-primary);
    padding-left: 20px;
}

/* Premium Gold Pill Button */
.btn-gold {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #F4E285 50%, var(--color-primary) 100%);
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    color: #000;
    background: linear-gradient(135deg, #FFF 0%, #F4E285 100%);
}

.btn-gold {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

/* =========================================
   5. Components (Cards, Buttons, etc.) - REFINED
   ========================================= */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 24px;
    /* Much softer corners */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Services Grid */
.services-section {
    padding: 100px 0;
    position: relative;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    color: var(--color-primary);
}

.section-subtitle {
    font-family: var(--font-body);
    color: #888;
    margin-top: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 50px 30px;
}

.service-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
    filter: sepia(100%) hue-rotate(5deg) saturate(1.5) brightness(0.8);
    /* Golden tone */
    transition: 0.3s;
}

.service-card:hover img {
    filter: none;
    /* Full color on hover */
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Zodiac Strip - GRID LAYOUT FIXED */
.zodiac-strip {
    padding: 60px 0;
    margin: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    width: 100%;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 6 columns = 2 neat rows */
    gap: 40px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zodiac-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 20px 0;
    /* Space for blob hover */
    text-decoration: none;
}

/* The Blob Shape */
.zodiac-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    transition: 0.3s;
}

.zodiac-item:hover .zodiac-blob {
    color: rgba(212, 175, 55, 0.2);
    transform: translate(-50%, -50%) scale(1.1);
}

.zodiac-item:hover {
    transform: translateY(-5px);
}

/* Icon Styling */
.zodiac-icon {
    width: 40px !important;
    height: 40px !important;
    color: var(--color-primary);
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zodiac-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* The Text */
.zodiac-name {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e0e0e0;
    position: relative;
    z-index: 2;
    margin: 0;
    font-weight: 500;
}

.zodiac-item:hover .zodiac-name {
    color: #fff;
}

.zodiac-dates {
    display: none;
}

/* Responsive Grid for Zodiac */
@media (max-width: 1024px) {
    .zodiac-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 per row on mobile */
        gap: 20px;
    }

    .zodiac-blob {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 450px) {
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Keep 3 to avoid long scroll */
        gap: 15px;
    }

    .zodiac-name {
        font-size: 0.7rem;
    }
}

/* =========================================
   Horoscope Internal Pages - FIXED
   ========================================= */

/* The Main Container Setup */
.horoscope-single-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Tabs Navigation */
.horoscope-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-link {
    background: rgba(255, 255, 255, 0.05);
    /* Glassy button */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 12px 25px;
    border-radius: 30px;
    /* Pill shape */
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tab-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.tab-link.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Content Box - Glassmorphism */
.horoscope-content-box {
    background: rgba(20, 20, 20, 0.6);
    /* Semi-transparent dark */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Header inside the box */
.horoscope-content-box h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.horoscope-date {
    display: block;
    color: var(--color-primary);
    font-style: italic;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Content Typography */
.horoscope-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Traits Grid (if present) */
.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.trait-box {
    text-align: left;
}

.trait-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.trait-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-col p {
    color: #888;
    font-size: 0.95rem;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: #555;
    font-size: 0.85rem;
}

/* Magic Cursor */
#magic-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    /* Gold dot */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    box-shadow: 0 0 10px var(--color-primary);
}

#magic-cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    /* Gold ring */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s;
}

/* Hover States */
#magic-cursor.active {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    /* Transparent gold */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

#magic-cursor-follower.active {
    border-color: transparent;
}

/* Hide Setup Guide */
.setup-guide-wrapper {
    display: none !important;
}

/* WooCommerce Overrides */
.woocommerce ul.products li.product {
    background: transparent !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.woocommerce span.onsale {
    background-color: var(--color-primary) !important;
    color: #000 !important;
}

.woocommerce a.button {
    background-color: transparent !important;
    border: 1px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.woocommerce a.button:hover {
    background-color: var(--color-primary) !important;
    color: #000 !important;
}


/* =========================================
   Mobile Responsiveness & Hamburger Menu (FIXED)
   ========================================= */

/* Default State: Hide Mobile Elements on Desktop */
.mobile-menu-toggle,
.mobile-menu-container {
    display: none !important;
}

/* Tablet & Mobile Styles (< 1024px) */
@media (max-width: 1024px) {

    /* Hide Desktop Navs */
    .desktop-only {
        display: none !important;
    }

    /* Mobile Toggle */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        position: absolute;
        left: 20px;
        top: 25px;
        /* Aligned with logo vertically */
        z-index: 10001;
    }

    .mobile-menu-toggle .bar {
        width: 30px;
        height: 2px;
        background: var(--color-primary);
        transition: 0.3s;
    }

    /* Toggle Animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Menu Container */
    .mobile-menu-container {
        display: none !important;
        /* Start hidden */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        z-index: 9999;
        padding-top: 100px;
        text-align: center;
        overflow-y: auto;
    }

    .mobile-menu-container.active {
        display: block !important;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
    }

    .mobile-nav li {
        margin-bottom: 30px;
    }

    .mobile-nav a {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    /* Layout Fixes */
    .header-container {
        justify-content: center;
        height: auto;
        padding-bottom: 20px;
    }

    /* Typography Fixes */
    html {
        font-size: 14px;
    }

    h1,
    .page-title,
    .hero-title-1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .hero-title-2 {
        font-size: 3rem !important;
    }

    .hero-title-3 {
        font-size: 2rem !important;
    }

    /* Image Fixes */
    .hero-portfolio-image {
        width: 100% !important;
        height: auto !important;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    /* Grid Collapse */
    .contact-grid,
    .services-grid,
    .hero-container,
    .ashim-services-grid {
        grid-template-columns: 1fr !important;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* Footer */
    .site-footer {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

/* Sun/Moon Grid (Top Small Cards) */
.astro-times-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.astro-time-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.astro-time-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.5);
}

.astro-time-item i {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.astro-time-item span {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.astro-time-item strong {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

@media(max-width: 768px) {
    .astro-times-grid {
        grid-template-columns: 1fr 1fr;
    }

    .panchang-grid {
        grid-template-columns: 1fr;
    }

    .controls-bar {
        flex-direction: column;
        border-radius: 20px;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
        /* Resize hero title on mobile */
    }
}