/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --accent-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Ensure the body takes the full height of the viewport */
    margin: 0; /* Remove default margin */
    display: flex;
    flex-direction: column;
}

body {
    position: relative; /* Ensure the pseudo-element is positioned relative to the body */
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000000;
    padding-top: 70px; /* For fixed navbar */
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed; /* Fix the background to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/background4.png') no-repeat center center fixed; /* Replace with your background image path */
    background-size: cover; /* Ensure the image covers the entire viewport */
    filter: blur(10px);
    z-index: -1; /* Place the background behind the content */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1; /* Allow the main content to grow and fill available space */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 60px 0;
}

.profile-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-text {
    flex: 1;
    min-width: 300px;
}

.profile-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.profile-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.linktree-button {
    display: inline-block;
    margin-top: 1px;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.linktree-button:hover {
    background-color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--dark-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Projects Section */
.projects {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.8); /* White background with 80% opacity */
    border-radius: 10px; /* Optional: Add rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.projects h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--dark-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 15px 20px 0;
    color: var(--dark-color);
}

.project-card p {
    padding: 10px 20px;
    color: #666;
}

.project-card .btn {
    margin: 10px 20px 20px;
}

/* Gallery Page */
.gallery {
    padding: 60px 0;
}

.gallery h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.gallery-description {
    text-align: center;
    font-size: 1.2rem;
    color: #000000;
    margin: 0 auto 40px; /* Center horizontally and add bottom margin */
    line-height: 1.6;
    max-width: 800px; /* Limit the width for better centering */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.art-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, z-index 0.3s ease;
    cursor: pointer;
}

/* .art-card.enlarged {
    transform: scale(1.5);
    z-index: 10;
    position: relative;
} */

.art-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.art-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.art-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    z-index: 2;
}

.art-info {
    padding: 20px;
}

.art-info h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.art-info p {
    margin-bottom: 8px;
    color: #666;
}

.art-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.art-button i {
    margin-right: 8px; /* Space between the icon and text */
    font-size: 18px;
}

.art-button:hover {
    background-color: var(--secondary-color);
}

/* Books Page */
.books {
    padding: 60px 0;
}

.books h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.book-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.book-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.book-info .meta {
    font-style: italic;
    color: #777;
    margin-bottom: 15px;
}

.book-info p {
    margin-bottom: 15px;
    color: #666;
    flex: 1;
}

/* Skills and Education Section */
.skills-education {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.skills-education h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 150px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Add hover effect */
}

.skill-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    background: rgba(255, 255, 255, 1); /* Fully opaque on hover */
}

.skill-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s ease; /* Add hover effect */
}

.skill-icon:hover {
    transform: scale(1.2); /* Slight zoom on hover */
}

.skill-card svg {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.skill-card h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.education {
    margin-top: 0px;
    margin: 20px auto;
}

.education h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.education p {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    margin-top: auto; /* Push the footer to the bottom */
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 15px;
    }
    
    .nav-links li {
        margin-left: 15px;
    }
    
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .projects-grid, .gallery-grid, .books-grid {
        grid-template-columns: 1fr;
    }
}

/* Background Credit */
.background-credit {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.background-credit a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}

.background-credit a:hover {
    color: var(--accent-color);
}

/* Scroll to Top Button Styles */
#scrollToTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    background: #23272a;
    color: #ffd700;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
#scrollToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}
body.dark-mode #scrollToTopBtn {
    background: #181a1b;
    color: #ffd700;
}

/* Floating button for Short Stories */
#scrollToShortStoriesBtn {
    position: fixed;
    bottom: 100px;
    left: 32px;
    z-index: 1000;
    background: #3498db;
    color: #ecf0f1;
    border: none;
    border-radius: 24px;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    opacity: 0.92;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}
#scrollToShortStoriesBtn:hover {
    background: #e74c3c;
    color: #ecf0f1;
    opacity: 1;
}

@media (max-width: 600px) {
    #scrollToShortStoriesBtn {
        left: 10px;
        bottom: 80px;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* Smaller Published Books Section */
.published-books {
    text-align: center;
}

.published-books .books-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.published-books .book-card {
    max-width: 220px;
    margin: 0;
    transition: transform 0.3s ease;
}

.published-books .book-card:hover {
    transform: scale(1.05);
}

.published-books .book-card img {
    height: 280px;
    object-fit: cover;
}

.published-books .book-info {
    padding: 10px;
    text-align: center;
}

.published-books .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
    width: 100%;
    justify-content: center;
}