/* 
* Literario - The Literature Club
* Main Stylesheet
*/

/* ===== GLOBAL STYLES ===== */
:root {
    /* Color Palette - Light Mode */
    --primary-color: #8B0000; /* Maroon */
    --secondary-color: #D4AF37; /* Gold */
    --accent-color: #CD853F; /* Peru (brownish) */
    --background-color: #FFF8E7; /* Beige */
    --text-color: #4A4A4A; /* Dark Gray */
    --light-text: #F5F5F5; /* Off-white */
    --dark-text: #4A4A4A; /* Almost Black */
    --border-color: #E8D9B5; /* Light Brown */
    
    /* Dark Mode Colors */
    --dark-primary-color: #c41818; /* Brighter Maroon for dark mode */
    --dark-secondary-color: #FFD700; /* Brighter Gold for dark mode */
    --dark-accent-color: #E9967A; /* Brighter Peru for dark mode */
    --dark-background-color: #1E1E1E; /* Dark background */
    --dark-text-color: #E0E0E0; /* Light gray text */
    --dark-light-text: #FFFFFF; /* White text */
    --dark-dark-text: #CCCCCC; /* Light gray for headings */
    --dark-border-color: #444444; /* Dark border */
    
    /* Typography - Updated with more literary fonts */
    --heading-font: 'Cormorant Garamond', 'Playfair Display', serif;
    --body-font: 'Spectral', 'Lora', serif;
    --accent-font: 'Libre Baskerville', serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 15px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: url('../images/paper-texture.jpg');
    background-repeat: repeat;
    background-size: 400px;
    background-attachment: fixed;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
    color: var(--dark-text-color);
    background-color: var(--dark-background-color);
    background-image: url('../images/dark-paper-texture.jpg');
}

.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6 {
    color: var(--dark-dark-text);
}

.dark-mode a {
    color: var(--dark-primary-color);
}

.dark-mode a:hover {
    color: var(--dark-accent-color);
}

.dark-mode .divider-icon {
    background-color: var(--dark-background-color);
    color: var(--dark-primary-color);
}

.dark-mode .primary-btn {
    background-color: var(--dark-primary-color);
    color: var(--dark-light-text);
}

.dark-mode .primary-btn:hover {
    background-color: #e02020;
}

.dark-mode .secondary-btn {
    color: var(--dark-primary-color);
    border: 2px solid var(--dark-primary-color);
}

.dark-mode .secondary-btn:hover {
    background-color: var(--dark-primary-color);
    color: var(--dark-light-text);
}

.dark-mode .text-btn {
    color: var(--dark-primary-color);
}

.dark-mode .text-btn:after {
    background-color: var(--dark-primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark-text);
    transition: color 0.3s ease;
}
.literarioH{
    color: black;
}
.dark-mode .literarioH{
    color: white;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

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

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

ul, ol {
    list-style: none;
}

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

.section {
    padding: var(--section-padding);
}

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

.section-divider {
    position: relative;
    height: 2px;
    width: 80px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
    transition: background-color 0.3s ease;
}

.dark-mode .section-divider {
    background-color: var(--dark-secondary-color);
}

.divider-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.section-subheading {
    font-style: italic;
    color: var(--accent-color);
    margin-top: 10px;
    transition: color 0.3s ease;
}

.dark-mode .section-subheading {
    color: var(--dark-accent-color);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: var(--heading-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.primary-btn:hover {
    background-color: #6B0000;
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.text-btn {
    background: none;
    color: var(--primary-color);
    padding: 0;
    position: relative;
    font-weight: 600;
}

.text-btn:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.text-btn:hover:after {
    width: 100%;
}

.text-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.text-btn:hover i {
    transform: translateX(5px);
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dark-mode .scroll-progress-container {
    background-color: rgba(255, 255, 255, 0.1);
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.1s ease;
}

.dark-mode .scroll-progress-bar {
    background-color: var(--dark-primary-color);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background-color: rgba(255, 248, 231, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.dark-mode .navbar.scrolled {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    color: black;
    text-decoration: none;
}

.dark-mode .logo a {
    color: white;
}

.logo img {
    height: 50px;
    border-radius: 10%;
    margin-right: 10px;
}

.logo span {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--light-text);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Fix for inline styles on nav links */
.nav-links a[style*="color: white"] {
    color: var(--light-text) !important;
}

.dark-mode .nav-links a[style*="color: white"] {
    color: var(--dark-light-text) !important;
}

.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.dark-mode .navbar.scrolled .nav-links a {
    color: var(--dark-primary-color);
}

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

.dark-mode .nav-links a:after {
    background-color: var(--dark-secondary-color);
}

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

.dark-mode .nav-links a:hover {
    color: var(--dark-secondary-color);
}

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

.nav-links a.active {
    color: var(--secondary-color);
}

.dark-mode .nav-links a.active {
    color: var(--dark-secondary-color);
}

.navbar.scrolled .nav-links a.active {
    color: var(--primary-color);
}

.dark-mode .navbar.scrolled .nav-links a.active {
    color: var(--dark-primary-color);
}

/* Dark Mode Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.navbar.scrolled .theme-toggle i {
    color: var(--primary-color);
}

.dark-mode .theme-toggle i {
    color: var(--dark-secondary-color);
}

.dark-mode .navbar.scrolled .theme-toggle i {
    color: var(--dark-primary-color);
}

.theme-toggle:hover i {
    color: var(--secondary-color);
}

.dark-mode .theme-toggle:hover i {
    color: var(--dark-accent-color);
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.dark-mode .hero-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-style: italic;
}

.hero-quote {
    margin: 40px 0;
    position: relative;
}

.hero-quote blockquote {
    font-size: 1.8rem;
    line-height: 1.4;
    position: relative;
    font-family: var(--heading-font);
}

.quote-mark {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-family: Georgia, serif;
    vertical-align: middle;
}

.quill-animation {
    position: relative;
    margin-top: 20px;
    height: 60px;
}

.quill {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    animation: quillWrite 5s infinite;
}

.ink-trail {
    position: absolute;
    top: 30px;
    left: 50%;
    height: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
    width: 0;
    animation: inkTrail 5s infinite;
}

.hero-buttons {
    margin-top: 40px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.scroll-indicator i {
    margin-top: 10px;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

/* ===== ABOUT PREVIEW SECTION ===== */
.about-preview {
    background-color: #fff;
}

.dark-mode .about-preview {
    background-color: var(--dark-background-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    z-index: -1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

/* ===== BOOKSHELF SECTION ===== */
.bookshelf-section {
    background-color: var(--background-color);
    position: relative;
}

.dark-mode .bookshelf-section {
    background-color: var(--dark-background-color);
}

.bookshelf-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/paper-texture-light.png');
    opacity: 0.1;
    z-index: 0;
}

.dark-mode .bookshelf-section:before {
    background-image: url('../images/paper-texture-dark.png');
    opacity: 0.05;
}

.bookshelf-container {
    position: relative;
    z-index: 1;
}

.bookshelf {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-image: url('../images/bookshelf.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    padding-bottom: 30px;
    margin-bottom: 50px;
}

.dark-mode .bookshelf {
    background-image: url('../images/bookshelf-dark.png');
    filter: brightness(0.85);
}

.book {
    width: 60px;
    height: 180px;
    margin: 0 10px;
    border-radius: 3px 0 0 3px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: -3px 5px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .book {
    box-shadow: -3px 5px 10px rgba(0, 0, 0, 0.4);
}

.book:hover {
    transform: translateY(-20px);
}

.book-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-family: var(--accent-font);
    font-size: 0.8rem;
    color: var(--light-text);
    width: 150px;
    text-align: center;
}

.book-details {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dark-mode .book-details {
    background-color: var(--dark-background-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.book-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.dark-mode .book-info h3 {
    color: var(--dark-primary-color);
}

.book-info p {
    margin-bottom: 20px;
}

/* ===== EVENTS PREVIEW ===== */
.events-preview {
    background-color: #fff;
}

.dark-mode .events-preview {
    background-color: var(--dark-background-color);
}

.events-countdown {
    text-align: center;
    margin-bottom: 20px;
    padding: 30px;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.event-actions {
    margin-top: 35px;
}
.dark-mode .events-countdown {
    background-color: rgba(40, 40, 40, 0.7);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.countdown-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dark-mode .countdown-header h3 {
    color: var(--dark-primary-color);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.countdown-item {
    margin: 0 15px;
    text-align: center;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.dark-mode .countdown-number {
    color: var(--dark-primary-color);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

.dark-mode .countdown-label {
    color: var(--dark-text-color);
}

.events-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.event-card {
    width: calc(50% - 20px);
    height: 300px;
    perspective: 1000px;
    margin-bottom: 30px;
}

.small-btn1 {
    padding: 8px 15px;
    color: var(--accent-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.small-btn1:hover {
    color: #fff; /* Change text color to white on hover */
    text-decoration: underline; /* Add underline on hover */
}
.dark-mode .small-btn1 {
    padding: 8px 15px;
    color: var(--accent-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.dark-mode .small-btn1:hover {
    color: #fff; /* Change text color to white on hover */
    text-decoration: underline; /* Add underline on hover */
}

.event-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .event-card-inner {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.event-card:hover .event-card-inner {
    transform: rotateY(180deg);
}

.event-card-front, .event-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 20px;
}

.event-card-front {
    background-color: #fff;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.dark-mode .event-card-front {
    background-color: var(--dark-background-color);
    color: var(--dark-text-color);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.dark-mode .event-date {
    background-color: var(--dark-primary-color);
    color: var(--dark-light-text);
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-card-front h4 {
    margin-top: 20px;
    color: var(--primary-color);
}

.dark-mode .event-card-front h4 {
    color: var(--dark-primary-color);
}

.event-location {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.dark-mode .event-location {
    color: var(--dark-text-color);
}

.event-card-back {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.dark-mode .event-card-back {
    background-color: var(--dark-primary-color);
    color: var(--dark-light-text);
}

.event-card-back h4 {
    color: #fff;
    margin-top: 20%;
}

.dark-mode .event-card-back h4 {
    color: var(--dark-light-text);
}

.event-time {
    margin: 15px 0;
    font-size: 0.9rem;
}

.events-more {
    text-align: center;
    margin-top: 20px;
}

/* ===== WRITER SPOTLIGHT SECTION ===== */
.writer-spotlight {
    background-color: var(--background-color);
    position: relative;
}

.dark-mode .writer-spotlight {
    background-color: var(--dark-background-color);
}

.writer-profile {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 1);
}
.dark-mode .writer-profile {
    background-color: var(--dark-background-color);
}

.writer-image {
    flex: 1;
    height: 400px;
    overflow: hidden;
}

.writer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-details {
    flex: 1;
    padding: 30px;
}

.writer-details h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.writer-title {
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.writer-quote {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
}

.writer-quote blockquote {
    font-style: italic;
    color: var(--dark-text);
}
.dark-mode .writer-quote blockquote {
    color: var(--light-text);
}
.writer-bio {
    margin-bottom: 20px;
}

/* ===== BLOG PREVIEW SECTION ===== */
.blog-preview {
    background-color: #fff;
}

.blog-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.blog-card {
    width: 350px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.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.1);
}

.blog-content {
    padding: 20px;
}

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

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.blog-link {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.blog-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(5px);
}

.blog-more {
    text-align: center;
    margin-top: 40px;
}

/* ===== QUOTE GENERATOR SECTION ===== */
.quote-generator {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0;
}

.dark-mode .quote-generator {
    background-color: var(--dark-primary-color);
    color: var(--dark-light-text);
}

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

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

#random-quote {
    font-size: 1.8rem;
    line-height: 1.4;
    font-family: var(--heading-font);
    margin-bottom: 20px;
}

.quote-author {
    font-style: italic;
    margin-bottom: 30px;
}

#new-quote-btn {
    background-color: var(--secondary-color);
    color: var(--dark-text);
}

#new-quote-btn:hover {
    background-color: #B8860B;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding-bottom: 3%;
}

.dark-mode .newsletter-section {
    background-color: var(--dark-primary-color);
    color: var(--dark-light-text);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
}

.form-group {
    display: flex;
    width: 100%;
    max-width: 500px;
}

.form-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-group button {
    border-radius: 0 5px 5px 0;
}

.form-message {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* ===== INSTAGRAM FEED ===== */
.instagram-feed {
    padding: 80px 0;
    background-color: #fff;
}

.dark-mode .instagram-feed {
    background-color: var(--dark-background-color);
}

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

.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1/1;
}

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

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dark-mode .instagram-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay a {
    color: #fff;
    font-size: 2rem;
}

.dark-mode .instagram-overlay a {
    color: var(--dark-light-text);
}

/*.section-header a {
    text-decoration: none;
}

.dark-mode .section-header a {
    color: var(--dark-text-color);
}

.dark-mode .section-header a:hover {
    color: var(--dark-accent-color);
}
*/
/* ===== FOOTER ===== */
.footer {
    background-color: #2A2A2A;
    color: var(--light-text);
    padding: 60px 0 30px;
}

.dark-mode .footer {
    background-color: #111111;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 90px;
    border-radius: 10%;
    margin-right: 10px;
}

.footer-logo h3 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links ul li a {
    color: #ccc;
}

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

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

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

.footer-bottom p {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
}

.footer-bottom i {
    color: #ff5e5e;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.dark-mode .back-to-top {
    background-color: var(--dark-primary-color);
    color: var(--dark-light-text);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* CSS for Star of the Month Section */
        .star-spotlight {
            background: linear-gradient(135deg, var(--background-color) 0%, rgba(212, 175, 55, 0.05) 100%);
            position: relative;
            overflow: hidden;
        }

        .star-spotlight::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"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23D4AF37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
            pointer-events: none;
        }

      /*  .section-header {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            z-index: 2;
        }

        .section-header h2 {
            font-family: var(--heading-font);
            font-size: 3.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }*/

       /* .section-divider {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 30px 0;
        }

        .section-divider::before,
        .section-divider::after {
            content: '';
            flex: 1;
            height: 2px;
            background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
            margin: 0 20px;
        }
            */

        .divider-icon {
            color: var(--secondary-color);
            font-size: 1.5rem;
            padding: 0 15px;
        }

        /* Star Profile */
        .star-profile {
            display: flex;
            align-items: center;
            gap: 60px;
            max-width: 1000px;
            margin: 0 auto;
            background: #fff;
            backdrop-filter: blur(10px);
            border-radius: 25px;
            padding: 50px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 1);
            border: 1px solid rgba(212, 175, 55, 0.2);
            position: relative;
            z-index: 2;
        }
        .dark-mode .star-profile {
       background-color: var(--dark-background-color);
        }

        .star-image {
            flex-shrink: 0;
            position: relative;
        }

        .star-image-container {
            width: 280px;
            height: 280px;
            border-radius: 50%;
            overflow: hidden;
            position: relative;
            border: 4px solid var(--secondary-color);
            box-shadow: 0 15px 35px rgba(139, 0, 0, 0.2);
        }

        .star-image-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(from 0deg, transparent, var(--secondary-color), transparent);
            animation: rotate 6s linear infinite;
            z-index: -1;
        }

        .star-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .star-image-container:hover img {
            transform: scale(1.05);
        }

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

        .star-badge {
            position: absolute;
            top: -10px;
            right: -10px;
            background: var(--primary-color);
            color: var(--light-text);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 8px 20px rgba(139, 0, 0, 0.3);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.4);
            }
            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 10px rgba(139, 0, 0, 0);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
            }
        }

        /* Star Details */
        .star-details {
            flex: 1;
        }

        .star-details h3 {
            font-family: var(--heading-font);
            font-size: 2.8rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .star-title {
            font-family: var(--accent-font);
            font-size: 1.3rem;
            color: var(--accent-color);
            font-weight: 600;
            margin-bottom: 25px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .star-description {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-color);
            margin-bottom: 30px;
            font-style: italic;
        }
        .dark-mode .star-description{
            color: white;
        }

        .star-achievements {
            margin-bottom: 30px;
        }

        .star-achievements h4 {
            font-family: var(--heading-font);
            font-size: 1.5rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .achievements-list {
            list-style: none;
        }

        .achievements-list li {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 1rem;
        }

        .achievements-list li::before {
            content: '★';
            color: var(--secondary-color);
            font-size: 1.2rem;
            margin-right: 12px;
        }

        /* Social Links */
        .star-social {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            text-decoration: none;
            font-size: 1.3rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .social-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 50%;
            transform: scale(0);
            transition: transform 0.3s ease;
        }

        .social-link:hover::before {
            transform: scale(1);
        }

        .social-link i {
            position: relative;
            z-index: 2;
            transition: color 0.3s ease;
        }

        .social-link.instagram {
            background: linear-gradient(45deg, #E4405F, #C13584, #833AB4);
            color: white;
        }

        .social-link.linkedin {
            background: #0077B5;
            color: white;
        }

        .social-link.twitter {
            background: #1DA1F2;
            color: white;
        }

        .social-link.github {
            background: #333;
            color: white;
        }

        .social-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .section-header h2 {
                font-size: 2.5rem;
            }

            .star-profile {
                flex-direction: column;
                text-align: center;
                gap: 40px;
                padding: 30px;
            }

            .star-image-container {
                width: 220px;
                height: 220px;
            }

            .star-details h3 {
                font-size: 2.2rem;
            }

            .star-title {
                font-size: 1.1rem;
            }

            .star-social {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .section-header h2 {
                font-size: 2rem;
            }

            .star-profile {
                padding: 20px;
            }

            .star-image-container {
                width: 180px;
                height: 180px;
            }

            .star-details h3 {
                font-size: 1.8rem;
            }
        }
