/* --- 1. CORE VARIABLES & GLOBALS --- */
:root {
    --bg-cosmos: #090014;    
    --accent-orange: #F97E3C; 
    --text-white: #ffffff;    
    --text-dim: #cccccc; 
    --radius-sq-round: 4px; 
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cosmos);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- 2. NAVIGATION & LOGO --- */
.navbar {
    padding: 2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    background: linear-gradient(to bottom, var(--bg-cosmos) 40%, transparent 100%);
}

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

.brand-logo {
    display: block;
    width: 110px;
    height: 36px;
    background-image: url('assets/idaakiwumi-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.brand-logo:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 12px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle:hover .bar {
    background-color: var(--text-white);
}

.menu-toggle:hover {
    transform: scaleX(1.1);
}

.bar { 
    height: 2px; 
    width: 100%; 
    background-color: var(--accent-orange); 
    transition: 0.3s ease;
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-cosmos);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
    transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 1000;
}

.nav-links.active { right: 0; }
.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
}

.dropdown { display: flex; flex-direction: column; align-items: center; }
.dropdown-content {
    display: none;
    flex-direction: column; 
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
}
.dropdown:hover .dropdown-content { display: flex; }
.dropdown-content a { font-size: 1.2rem; color: var(--text-dim); text-decoration: none; }

/* --- 3. HOME PAGE (GALAXY SCROLL) --- */
body.home-page {
    scroll-snap-type: y mandatory;
}

.home-page .hero {
    scroll-snap-align: start;
    padding-bottom: 100px;
    align-items: flex-start; 
    height: auto;
    min-height: 100vh;
}

.home-page .project-card {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 10vh 2rem; 
}

/* --- GLOBAL HERO ALIGNMENT --- */
.hero, .origins-hero, .about-hero {
    padding-top: 180px !important; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}

/* Shared Typography */
.hero-heading {
    font-family: 'Playfair Display', serif;
    color: var(--accent-orange);
    font-size: clamp(2.5rem, 7vw, 3.5rem); /* Reduced from 4.5rem */
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subline {
    font-size: 1.3rem;
    color: var(--text-white);
    max-width: 800px;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.highlight {
    color: var(--text-white);
    -webkit-text-stroke: 1px var(--accent-orange);
}

/* --- 4. PROJECT CARD STYLING --- */
.project-image {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: center;
}

.project-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0px 30px 60px rgba(0,0,0,0.9));
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-info {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 10vh; 
    z-index: 10;
}

.project-info h3 {
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    color: var(--accent-orange);
}

.project-info p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* --- 5. BUTTONS & LINKS --- */
.btn-primary {
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-sq-round);
    text-decoration: none;
    font-weight: 600;
    background-color: var(--accent-orange);
    color: var(--bg-cosmos);
    display: inline-block;
    transition: 0.3s ease;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(249, 126, 60, 0.3);
}

.project-link, #load-more {
    display: inline-block;
    color: var(--text-white);
    background: transparent;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent-orange);
    padding: 12px 24px;
    border-radius: var(--radius-sq-round);
    transition: 0.3s;
    cursor: pointer;
}

.project-link:hover, #load-more:hover {
    background-color: var(--accent-orange);
    color: var(--bg-cosmos);
}

/* --- 6. ABOUT (VISION) PAGE --- */
.about-page { scroll-snap-type: none !important; }

.about-hero {
    min-height: 100vh;
    padding-bottom: 100px;
    background: radial-gradient(circle at 10% 20%, rgba(249, 126, 60, 0.05) 0%, transparent 50%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-visual { position: relative; }

.image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    background: #1a1a1a;
    border-radius: var(--radius-sq-round);
    overflow: hidden;
    filter: grayscale(100%) contrast(110%);
    transition: 0.5s ease;
}

.image-wrapper:hover { filter: grayscale(0%); }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(249, 126, 60, 0.1);
    border: 1px solid var(--accent-orange);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    color: var(--accent-orange);
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-orange);
    animation: blink 2s infinite;
}

.bio-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

.specialties { margin: 2.5rem 0; }

.specialties h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.specialties ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.specialties li {
    position: relative;
    padding-left: 20px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.specialties li::before {
    content: "→";
    position: absolute; left: 0;
    color: var(--accent-orange);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- 7. ORIGINS PAGE (STRICT SPACING FIX) --- */
.origins-page .origins-hero {
    padding-top: 180px !important;
    padding-bottom: 0px !important; /* Removed bottom padding */
    min-height: auto; 
    text-align: center;
}

.origins-page .hero-subline {
    margin: 0 auto 1.5rem; /* Centered with very small bottom margin */
    text-align: center;
}

.origins-page .work-section {
    padding-top: 0; /* Gallery starts immediately after text */
}

.origins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    padding-top: 0;
}

.origins-page .project-card {
    min-height: auto; 
    margin-bottom: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(249, 126, 60, 0.1);
    border-radius: var(--radius-sq-round);
    text-decoration: none;
    display: block;
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.4s ease;
}

.origins-page .project-card:hover {
    background: rgba(249, 126, 60, 0.05);
    border-color: var(--accent-orange);
    transform: translateY(-10px) !important;
}

.origins-page .project-image img {
    max-height: 250px;
    width: 100%;
    object-fit: scale-down;
}

.origins-page .project-info {
    text-align: left;
    margin-top: 1.5rem;
    padding-bottom: 0;
}

.origins-page .project-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.pagination-wrapper {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 5rem;
}

.archive-item { display: none; }
.archive-item.is-visible {
    display: block;
    animation: fadeIn 0.8s ease forwards;
}

/* --- 8. FOOTER --- */
.footer {
    width: 100%;
    padding: 40px 0;
    background: var(--bg-cosmos); /* Ensure it's not transparent */
    color: var(--text-dim);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    position: relative;
    scroll-snap-align: end;
    margin-top: auto; /* Pushes it to the bottom of the flex container */
}

.home-page .footer { scroll-snap-align: end; }

/* --- 9. RESPONSIVE --- */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-visual { max-width: 400px; margin: 0 auto 3rem; }
    .specialties ul { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .brand-logo { width: 90px; height: 30px; }
    .home-page .project-card { min-height: 100vh; }
    .origins-grid { grid-template-columns: 1fr; }
    .hero-heading { font-size: 2.8rem; }
}

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

/* --- 10. UTILITIES --- */
.project-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.work-section {
    min-height: 100vh;
    padding-bottom: 100px;
}

/* --- 11. BACK TO TOP BUTTON --- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--accent-orange);
    color: var(--bg-cosmos);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: var(--radius-sq-round);
    z-index: 3000;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

#backToTop.show { display: flex; }
#backToTop:hover {
    background-color: var(--text-white);
    transform: translateY(-5px);
}

/* --- 12. PROTECTED PAGE STYLES --- */
.protected-page {
    /* Changed from overflow:hidden to allow scrolling if the screen is small */
    overflow-y: auto; 
    min-height: 100vh;
}

.protected-hero {
    min-height: 100vh;
    padding: 100px 0; /* Adds room for the navbar and footer */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(249, 126, 60, 0.08) 0%, transparent 70%);
}

.protected-content {
    max-width: 700px; /* Slimmed down slightly for better focus */
    width: 90%;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(249, 126, 60, 0.15);
    border-radius: var(--radius-sq-round);
    backdrop-filter: blur(15px);
    animation: fadeIn 1s ease-out;
}

/* Password Form Layout */
.password-form {
    margin: 2rem 0;
    width: 100%;
}

.input-group {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

#password-input {
    flex: 1;
    min-width: 0; /* Allows it to shrink on mobile */
    max-width: 300px; /* Prevents it from getting absurdly wide */
    padding: 1.2rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(249, 126, 60, 0.3);
    border-right: none;
    border-radius: var(--radius-sq-round) 0 0 var(--radius-sq-round);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    -webkit-text-security: disc !important;
    text-security: disc !important;
}

.password-form .btn-primary {
    padding: 0 1.5rem;
    height: auto;
    border-radius: 0 var(--radius-sq-round) var(--radius-sq-round) 0;
    background-color: var(--accent-orange);
    color: var(--bg-cosmos);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 2px solid var(--accent-orange);
    cursor: pointer;
}

/* Mobile Fix */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
    #password-input {
        border-right: 2px solid rgba(249, 126, 60, 0.3);
        border-radius: var(--radius-sq-round);
        max-width: 100%;
    }
    .password-form .btn-primary {
        border-radius: var(--radius-sq-round);
        padding: 1.2rem;
        margin-top: 10px;
    }
}