/* Modern CSS for Ibrahim Tapa Website Redesign */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&display=swap');

:root {
    --bg-color: #fcfbf9;
    /* Paper-like off-white */
    --text-color: #222222;
    /* Ink black */
    --accent-color: #d13030;
    /* Ink red */
    --light-gray: #e0e0e0;
    --nav-bg: rgba(252, 251, 249, 0.95);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', serif;
    /* Global font */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    /* Global font */
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

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

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    border-bottom: 1px dashed var(--light-gray);
}

section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
    /* Removed uppercase */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: padding var(--transition-speed);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    /* Removed uppercase */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-family: 'Merriweather', serif;
    font-size: 0.9rem;
    /* Smaller text */
    font-weight: 400;
    position: relative;
    text-transform: lowercase;
    /* Enforce lowercase */
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- Hero Section --- */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/EminonuOriginal.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* Removed blur for sharpness */
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content img.signature {
    max-width: 800px;
    width: 90%;
    filter: drop-shadow(0px 0px 15px rgba(255, 255, 255, 1));
    /* Strong white glow */
}

.hero-tagline {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: #222;
    margin-top: 10px;
    font-weight: 300;
    /* White background added */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Biography --- */
.bio-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.bio-image {
    flex: 1;
    min-width: 300px;
}

.bio-image img {
    border-radius: 10px;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
}

.bio-text {
    flex: 2;
    font-size: 1.1rem;
    min-width: 300px;
}

.bio-text p {
    margin-bottom: 1.5rem;
}

.vefat-notice {
    margin-top: 2rem;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--text-color);
    font-style: italic;
}

/* --- Gallery Grids --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    break-inside: avoid;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-speed);
}

.gallery-item:hover img {
    opacity: 0.9;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(100%);
    transition: transform var(--transition-speed);
    text-align: center;
    font-size: 0.9rem;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* --- NFTs Button --- */
.nft-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.nft-btn:hover {
    background-color: #a02020;
    transform: translateY(-2px);
    color: #fff;
}

/* --- Contact & Footer --- */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
    text-align: center;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-info a {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 5px solid #fff;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    font-family: 'Merriweather', serif;
}

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

    .hamburger {
        display: block;
        margin-right: 20px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-speed);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 10px 0;
        /* Compact spacing */
    }

    .hero-content img.signature {
        max-width: 90%;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .bio-content {
        flex-direction: column;
    }

    .bio-image,
    .bio-text {
        width: 100%;
    }
}