/*
 * Subham Shree Jyothidam - Cosmic Material Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #040814;
    --bg-gradient: radial-gradient(circle at 50% 0%, #0d1635 0%, #040814 70%);
    --panel-bg: rgba(10, 17, 40, 0.6);
    --panel-border: rgba(229, 169, 59, 0.12);
    --panel-border-hover: rgba(229, 169, 59, 0.4);
    
    --color-gold: #e5a93b;
    --color-gold-light: #f5d082;
    --color-gold-gradient: linear-gradient(135deg, #f5d082 0%, #e5a93b 50%, #b87b1c 100%);
    
    --text-white: #f8fafc;
    --text-silver: #94a3b8;
    --text-muted: #64748b;
    
    --shadow-glow: 0 0 25px rgba(229, 169, 59, 0.15);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.6);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg-main);
    background-image: var(--bg-gradient);
    color: var(--text-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--color-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(4, 8, 20, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--panel-border);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 52px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.03);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-silver);
    padding: 8px 0;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--color-gold-light);
}

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

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(6, 11, 28, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    width: 250px;
    padding: 12px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin-bottom: 4px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-silver);
    border-radius: 6px;
}

.dropdown-menu a:hover {
    background: rgba(229, 169, 59, 0.08);
    color: var(--color-gold-light);
    padding-left: 18px;
}

/* Call to Action Button */
.cta-button {
    background: var(--color-gold-gradient);
    color: #040814;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-glow);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(229, 169, 59, 0.35);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-outline {
    background: transparent;
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold);
    box-shadow: none;
}

.cta-outline:hover {
    background: var(--color-gold-gradient);
    color: #040814;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition-smooth);
}

/* Main Layout Wrapper */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Section Common Styles */
section {
    padding: 80px 20px;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--color-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 38px;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-silver);
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

/* Glass Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--panel-border-hover);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

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

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

/* Hero Section Specifics */
.hero-section {
    padding: 120px 20px 100px 20px;
    background-image: linear-gradient(to right, rgba(4, 8, 20, 0.92) 30%, rgba(4, 8, 20, 0.7) 100%), url("../images/zodiac-signs-horoscope-background-concept-fantasy-mystery-black-min-scaled.jpg");
    background-size: cover;
    background-position: center center;
    border-bottom: 1px solid var(--panel-border);
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--color-gold-light);
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-silver);
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(229, 169, 59, 0.12) 0%, transparent 70%);
    z-index: 0;
}

.hero-image {
    z-index: 1;
    border-radius: 20px;
    border: 1px solid rgba(229, 169, 59, 0.15);
    box-shadow: var(--shadow-card);
    animation: floating 6s ease-in-out infinite;
}

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

/* Service Card Component */
.service-card {
    position: relative;
    border-radius: 16px;
    padding: 30px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--panel-border-hover);
    box-shadow: 0 15px 35px rgba(229, 169, 59, 0.1);
}

.service-icon {
    font-size: 40px;
    color: var(--color-gold);
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(135deg, #f5d082 0%, #e5a93b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-white);
}

.service-text {
    color: var(--text-silver);
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-link {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link:hover {
    color: var(--color-gold-light);
    gap: 10px;
}

/* Forms & Material Input */
.contact-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-smooth);
    outline: none;
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    border-color: var(--color-gold);
    background: rgba(229, 169, 59, 0.03);
    box-shadow: 0 0 15px rgba(229, 169, 59, 0.08);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form label {
    font-size: 14px;
    color: var(--text-silver);
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

/* Reviews / Testimonials Slider */
.review-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.review-stars {
    color: #FBBF24;
    font-size: 18px;
    margin-bottom: 12px;
}

.review-text {
    font-style: italic;
    color: var(--text-silver);
    font-size: 14.5px;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 600;
    color: var(--text-white);
    font-size: 15px;
}

/* GalleryMasonry */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Footer Section */
footer {
    background: #020409;
    border-top: 1px solid var(--panel-border);
    padding: 80px 20px 30px 20px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-silver);
    font-size: 15px;
    margin-top: 15px;
    max-width: 320px;
}

.footer-heading {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--color-gold-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

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

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

.footer-links a {
    color: var(--text-silver);
    font-size: 14.5px;
}

.footer-links a:hover {
    color: var(--color-gold-light);
    padding-left: 6px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-silver);
}

.social-icon:hover {
    background: var(--color-gold-gradient);
    color: #040814;
    transform: translateY(-2px);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 15px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(4, 8, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: var(--transition-smooth);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 20px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
