/* styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Page-specific backgrounds – replace URLs with real paths */
body.bg-home        { background-image: url('home-bg.jpeg');     }
body.bg-about       { background-image: url('about-bg.jpeg');    }
body.bg-features    { background-image: url('features-bg.jpeg'); }
body.bg-contact     { background-image: url('contact-bg.jpeg');  }

body.bg-artist,
body.bg-photographer,
body.bg-author      { background-image: url('home-bg.jpeg'); }

/* Dark overlay for readability */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 40, 0.65);
    z-index: -2;
    pointer-events: none;
}

/* ────────────────────────────────────────
   Header & Navigation
───────────────────────────────────────── */

header {
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    background: rgba(10, 31, 68, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Desktop layout */
@media (min-width: 769px) {
    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
    }

    .logo {
        margin-right: auto;
    }

    .logo img {
        height: 200px;
        width: 250px;
    }

    .nav-links {
        display: flex;
        gap: 2.2rem;
        list-style: none;
    }

    .nav-links a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        padding: 0.5rem 0.8rem;
        transition: color 0.3s;
    }

    .nav-links a:hover {
        color: #00aaff;
    }

    .hamburger {
        display: none;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
    }

    .logo img {
        height: 150px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 24px;
        cursor: pointer;
        z-index: 101;
    }

    .hamburger span {
        width: 100%;
        height: 4px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* X animation */
    #menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    #menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 31, 68, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2.5rem 0;
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        z-index: 99;
    }

    #menu-toggle:checked ~ .nav-links {
        transform: scaleY(1);
        opacity: 1;
    }

    .nav-links a {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        font-size: 1.15rem;
    }
}

/* Dropdown (Spotlight) */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 31, 68, 0.95);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 200;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: none;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #00aaff;
}

/* Mobile dropdown adjustment */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        transform: none;
        left: auto;
        width: 100%;
        background: transparent;
        box-shadow: none;
        padding-left: 2rem;
    }
}

/* ────────────────────────────────────────
   Main content
───────────────────────────────────────── */

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 5%;
    text-align: center;
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

section {
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.project-card {
    background: rgba(30, 45, 85, 0.9);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 170, 255, 0.25);
}

.project-card img {
    width: 100%;
    height: 350px;
    object-fit: contain;     /* ← changed from contain — usually better for portfolios */
    border-bottom: 3px solid #00aaff;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: #00aaff;
    margin-bottom: 0.8rem;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056b3;
}

/* Form & buttons */
form {
    max-width: 500px;
    margin: 2rem auto;
    text-align: left;
}

input, textarea {
    width: 100%;
    padding: 0.9rem;
    margin: 0.8rem 0;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a3a;
    color: white;
}

button {
    background: #00aaff;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
}

button:hover {
    background: #0088cc;
}

/* Spotlight / gallery pages */
.spotlight-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: rgba(20, 30, 60, 0.75);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.artwork img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

footer {
    color: white;
    text-align: center;
    padding: 2.5rem 5%;
    margin-top: 4rem;
}

.menu-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;     /* prevents any accidental interaction */
}