/* General Styles */
body {
    font-family: 'Nunito', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    font-size: 18px;
    line-height: 1.8;
}

/* Header */
header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.4em;
    font-weight: 300;
    letter-spacing: 1px;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 1.1em;
}

header nav a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 15px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 20px;
}

footer p {
    font-size: 1.1em;
}

/* Container */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(to bottom, #fff, #f9f9f9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content */
.content h2 {
    color: #4CAF50;
    margin-bottom: 15px;
    text-align: center;
}

.content p {
    text-align: justify;
    font-size: 1.2em;
}

/* Image */
.image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #333;
    font-weight: bold;
    text-decoration: underline;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-size: 1em;
    line-height: 1.6;
    backdrop-filter: blur(5px);
}

.tooltip:hover .tooltiptext,
.tooltip-click .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 30px;
}

.gallery-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

/* Loading indicator */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scroll-top.visible {
    opacity: 1;
}

/* Buy me a coffee section */
.buyme-coffee {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

/* Navigation link effects */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Social Media Icons */
.social-links {
    margin-bottom: 10px;
}

.social-icon {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon-img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes the icon white */
}