/* style.css - main stylesheet*/

/* Base Styles and Variables */
:root {
    --primary-color: #9370DB;
    --secondary-color: #4B0082;
    --accent-color: #B19CD9;
    --text-color: #f0f0f0;
    --dark-bg: #121212;
    --light-bg: #1a1a2e;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

a:hover {
    color: var(--primary-color);
}

/* Stars Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars {
    background: #000 url('https://i.imgur.com/YKY28eT.png') repeat;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    animation: twinkle 10s linear infinite;
}

@keyframes twinkle {
    from { background-position: 0 0; }
    to { background-position: -1000px 0; }
}

/* Header */
header {
    padding: 20px 0;
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.logo span {
    color: var(--primary-color);
}

.logo-tagline {
    font-family: var(--font-heading);
    font-size: 12px;
    color: white;
    font-style: italic;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.logo-tagline .not-equal {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover:after, nav ul li a.active:after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 100px 20px 5px 20px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(75, 0, 130, 0.4));
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(75, 0, 130, 0.3) 0%, rgba(0,0,0,0) 70%);
}

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

.hero h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #d0d0d0;
}

/* Hero Tagline Styling */
.tagline {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(177, 156, 217, 0.3);
    letter-spacing: 0.5px;
}

.tagline .not-equal {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.6);
}

/* Content Section (for homepage placeholder content) */
.content-section {
    padding: 80px 20px;
    background-color: rgba(0, 0, 0, 0.3);
}

.content-wrapper {
    max-width: 1200px; /* Match header-content max-width */
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 40px;
    border: 1px solid rgba(147, 112, 219, 0.2);
    backdrop-filter: blur(10px);
}

.content-wrapper p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #d0d0d0;
}

.content-wrapper p:last-child {
    margin-bottom: 0;
    
}/* Quote Generator */
.quote-section {
    padding: 80px 20px 5px 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

.mystical-quote-generator {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.quote-container {
    position: relative;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.2), rgba(147, 112, 219, 0.2));
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(147, 112, 219, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.quote-container:before, .quote-container:after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.quote-container:before {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(147, 112, 219, 0.2) 0%, rgba(0,0,0,0) 70%);
    animation: glow-1 4s infinite alternate;
}

.quote-container:after {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(75, 0, 130, 0.2) 0%, rgba(0,0,0,0) 70%);
    animation: glow-2 4s infinite alternate;
}

@keyframes glow-1 {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes glow-2 {
    0% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 0.8; transform: scale(1); }
}

.quote-text-wrapper {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

#quote-text {
    font-size: 24px;
    font-style: italic;
    line-height: 1.6;
    font-family: var(--font-heading);
    color: var(--text-color);
    transition: opacity 0.5s ease;
}

.quote-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.divider-line {
    height: 1px;
    width: 80px;
    background: linear-gradient(to right, transparent, rgba(147, 112, 219, 0.7), transparent);
}

.divider-star {
    margin: 0 15px;
    color: var(--primary-color);
    font-size: 20px;
}

#get-quote-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#get-quote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}

#get-quote-btn:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: -1;
    transition: all 0.3s ease;
}

#get-quote-btn:hover:before {
    left: 100%;
}

#loading {
    display: none;
    margin-top: 20px;
    color: var(--accent-color);
    font-size: 16px;
    font-style: italic;
    opacity: 0.8;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.feature {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(147, 112, 219, 0.1);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.feature h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.feature p {
    font-size: 16px;
    color: #d0d0d0;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    padding-top: 60px;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 8px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-logo .footer-tagline {
    font-family: var(--font-heading);
    font-size: 11px;
    color: white;
    font-style: italic;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-logo .footer-tagline .not-equal {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: bold;
}

.footer-logo p {
    color: #a0a0a0;
    font-size: 14px;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px; /* Space between items */
}

.footer-links ul li {
    margin-bottom: 0; /* Remove vertical margin */
}

.footer-links ul li a {
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(147, 112, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon i {
    font-size: 18px;
    color: var(--primary-color);
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.social-icon:hover i {
    color: white;
}

.footer-bottom {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(147, 112, 219, 0.2);
    font-size: 14px;
    color: #707070;
}

/* About Page Styles */
.about-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-section h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.about-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 40px;
    border: 1px solid rgba(147, 112, 219, 0.2);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
}

/* Blog Page Styles */
.blog-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.blog-section h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

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

.blog-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(147, 112, 219, 0.2);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 15px;
}

.blog-card p {
    font-size: 15px;
    color: #d0d0d0;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }

    .logo-tagline {
        font-size: 11px;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }

    .tagline {
        font-size: 20px;
    }
    
    #quote-text {
        font-size: 20px;
    }
    
    .feature {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero h2 {
        font-size: 30px;
    }

    .tagline {
        font-size: 18px;
    }

    .logo-tagline {
        font-size: 10px;
    }
    
    .quote-container {
        padding: 30px 20px;
    }
    
    #quote-text {
        font-size: 18px;
    }
    
    #get-quote-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .divider-line {
        width: 60px;
    }
}