/*
 * NitaiGaur.org - Krishna Consciousness Website
 * Divine CSS Styling inspired by Lord Krishna
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Poppins:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* CSS Variables - Krishna Theme Colors */
:root {
    /* Primary Colors - Peacock Feather inspired */
    --krishna-blue: #1a5f7a;
    --peacock-blue: #0d6efd;
    --deep-blue: #0a2647;
    --divine-gold: #d4a574;
    --golden-yellow: #ffc107;
    --lotus-pink: #e8a0bf;
    --soft-pink: #fce4ec;
    --forest-green: #2d5a27;
    --peacock-green: #4a7c59;
    --cream: #fef9f3;
    --ivory: #fffef7;
    --sacred-saffron: #ff9933;

    /* Gradients */
    --divine-gradient: linear-gradient(135deg, #1a5f7a 0%, #4a7c59 50%, #2d5a27 100%);
    --golden-gradient: linear-gradient(135deg, #d4a574 0%, #ffc107 100%);
    --peacock-gradient: linear-gradient(180deg, #0a2647 0%, #1a5f7a 50%, #4a7c59 100%);
    --sunset-gradient: linear-gradient(135deg, #ff9933 0%, #e8a0bf 50%, #d4a574 100%);

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Poppins', sans-serif;
    --font-decorative: 'Great Vibes', cursive;

    /* Shadows */
    --soft-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --divine-shadow: 0 10px 40px rgba(26, 95, 122, 0.2);
    --golden-glow: 0 0 30px rgba(212, 165, 116, 0.4);
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background-color: var(--ivory);
    overflow-x: hidden;
}

/* Selection Styling */
::selection {
    background: var(--lotus-pink);
    color: var(--deep-blue);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--deep-blue);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--krishna-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--divine-gold);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 38, 71, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--soft-shadow);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-family: var(--font-decorative);
    font-size: 2.5rem;
    color: var(--golden-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

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

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

.nav-links a:hover {
    color: var(--golden-yellow);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--peacock-gradient);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,215,0,0.1)"/></svg>');
    background-size: 50px 50px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-subtitle {
    font-family: var(--font-decorative);
    font-size: 2rem;
    color: var(--golden-yellow);
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-title span {
    color: var(--golden-yellow);
    display: block;
    font-family: var(--font-decorative);
    font-size: 5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-mantra {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--lotus-pink);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.9s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 1.2s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--golden-gradient);
    color: var(--deep-blue);
    box-shadow: var(--golden-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.5);
    color: var(--deep-blue);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--golden-yellow);
}

.btn-secondary:hover {
    background: var(--golden-yellow);
    color: var(--deep-blue);
    transform: translateY(-3px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-om,
.floating-lotus {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-om:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-om:nth-child(2) { top: 60%; left: 5%; animation-delay: 2s; }
.floating-lotus:nth-child(3) { top: 30%; right: 10%; animation-delay: 1s; }
.floating-lotus:nth-child(4) { top: 70%; right: 15%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--golden-yellow);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

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

@keyframes scrollDown {
    0% { top: 8px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
section {
    padding: 100px 0;
}

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

.section-subtitle {
    font-family: var(--font-decorative);
    font-size: 1.5rem;
    color: var(--divine-gold);
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    color: var(--deep-blue);
    margin-bottom: 20px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--golden-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   MANTRA SECTION
   ============================================ */
.mantra-section {
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--cream) 100%);
    position: relative;
}

.mantra-slider {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.mantra-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--divine-shadow);
    position: relative;
    overflow: hidden;
}

.mantra-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 8rem;
    font-family: var(--font-heading);
    color: rgba(212, 165, 116, 0.2);
    line-height: 1;
}

.mantra-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--krishna-blue);
    margin-bottom: 20px;
    line-height: 1.5;
}

.mantra-meaning {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.mantra-source {
    font-size: 0.9rem;
    color: var(--divine-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mantra-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.mantra-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--krishna-blue);
    background: transparent;
    color: var(--krishna-blue);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mantra-nav button:hover {
    background: var(--krishna-blue);
    color: #fff;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--ivory);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--divine-shadow);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--divine-gold);
    border-radius: 20px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-placeholder {
    width: 100%;
    height: 400px;
    background: var(--divine-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 8rem;
}

.about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--krishna-blue);
}

.about-content p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--golden-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text {
    font-weight: 500;
    color: var(--deep-blue);
}

/* ============================================
   TEACHINGS SECTION
   ============================================ */
.teachings-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--soft-pink) 100%);
}

.teachings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.teaching-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: all 0.4s ease;
    position: relative;
}

.teaching-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--divine-shadow);
}

.teaching-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--golden-gradient);
}

.teaching-icon {
    width: 100%;
    height: 150px;
    background: var(--divine-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.teaching-content {
    padding: 30px;
}

.teaching-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--soft-pink);
    color: var(--krishna-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.teaching-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--deep-blue);
}

.teaching-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
}

.teaching-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--krishna-blue);
    font-weight: 600;
}

.teaching-link:hover {
    color: var(--divine-gold);
}

/* ============================================
   DAILY INSPIRATION
   ============================================ */
.inspiration-section {
    background: var(--peacock-gradient);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inspiration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M100 0 L200 100 L100 200 L0 100 Z" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: 100px 100px;
}

.inspiration-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.inspiration-section .section-title {
    color: #fff;
}

.inspiration-quote {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.6;
}

.inspiration-source {
    font-size: 1.1rem;
    color: var(--golden-yellow);
}

/* ============================================
   JOURNAL SECTION
   ============================================ */
.journal-section {
    background: var(--ivory);
}

.journal-preview {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.journal-preview p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--deep-blue);
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo-text {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--golden-yellow);
    font-weight: 600;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--golden-yellow);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-mantra {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--golden-yellow);
    margin-bottom: 15px;
    font-style: italic;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .navbar {
        padding: 10px 0;
        background: rgba(10, 38, 71, 0.95);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 38, 71, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title span {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .mantra-card {
        padding: 30px 20px;
    }

    .mantra-text {
        font-size: 1.5rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title span {
        font-size: 2.5rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--divine-gold); }
.text-blue { color: var(--krishna-blue); }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* Om Symbol Animation */
.om-symbol {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Peacock Feather Decorative Element */
.peacock-feather {
    position: relative;
}

.peacock-feather::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse, var(--peacock-blue) 20%, var(--peacock-green) 40%, var(--divine-gold) 60%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--soft-pink);
    border-top-color: var(--krishna-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
