/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Navigation Bar Styling */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333333;
    z-index: 1000;
    padding: 10px 0;
    font-family: 'Arial', sans-serif;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    padding: 8px 15px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Roboto', sans-serif; /* Unique font for links */
}

/* Navigation Bar Link Hover Effect */
nav ul li a:hover {
    background-color: #80e0a7; /* Light green hover effect */
    color: white;
    border-radius: 4px;
}

/* Title Section Styling */
#title {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 80px 20px;
    font-family: 'Montserrat', sans-serif; /* Clean and modern font for title */
}

#title .title-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Bebas Neue', sans-serif; /* Bold font for main title */
}

#title .title-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    font-family: 'Georgia', serif; /* Elegant font for description */
}

/* Section Styling */
.section {
    margin-bottom: 50px;
    padding: 40px 20px;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Playfair Display', serif; /* Elegant serif font for section titles */
    color: #333;
}

.section p {
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-family: 'Open Sans', sans-serif; /* Clean and easy-to-read font for body text */
    color: #555;
}

/* Section Background Colors */
#about {
    background-color: #f0f0f0;
}

#projects {
    background-color: #e9e9e9;
}

#art {
    background-color: #e9e9e9;
}

#writings {
    background-color: #e9e9e9;
}

#contact {
    background-color: #cce7ff;
}

/* Adding light green accents for sections */
.section h2 {
    color: #57ac7a; /* Light green accent for section headings */
}

.section p {
    color: #6b6b6b; /* Slightly darker gray for readability */
}

/* Expanded Description */
.expanded-description {
    display: none;
}

.expanded-description.visible {
    display: block;
    margin-top: 15px;
    font-size: 1rem;
    color: #333;
    font-family: 'Lora', serif; /* Changed to Lora font for the expanded description */
}

/* Carousel Container */
.carousel {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: auto;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.carousel-images img {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    height: auto;
}

/* Arrows */
button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

/* Writing Preview */
.writing-preview {
    display: none;
    padding: 10px;
    background-color: #f4f4f4;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.writing-container {
    position: relative;
}

.writing-image {
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    height: auto;
}

.preview-frame {
    width: 100%;
    height: 500px;
    border: none;
}

.writing-preview p {
    font-size: 1rem;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

/* Grid Layout for Projects, Art, and Writings */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.grid-item[onclick] {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.grid-item[onclick]:hover {
    background-color: #edffdd;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.grid-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.grid-item.text {
    text-align: left;
}

.grid-item.image img {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    height: auto;
}

.grid-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif; /* Different font for subtitles */
}

.grid-item p {
    font-size: 0.9rem;
    color: #555;
    font-family: 'Open Sans', sans-serif; /* Clean font for grid text */
}

/* Light green hover effect on grid items */
.grid-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #e0f7e6; /* Light green hover effect */
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
    }
}