:root {
    --bg-color: #e0e5ec; /* Slightly off-white to make white highlights visible */
    --text-color: #4a4a4a;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --primary-glow: rgba(255, 255, 255, 0.5);
    
    /* Subtle Rainbow Glow Gradient for Hovers */
    --rainbow-glow: -5px -5px 20px rgba(255, 0, 0, 0.1), 
                    5px 5px 20px rgba(0, 255, 255, 0.1), 
                    0px 0px 15px rgba(255, 0, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    /* Soft scroll behavior */
    scroll-behavior: smooth;
}

/* --- Layout Wrappers --- */
.content-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px; /* Space for bottom nav */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Helps push content visually */
}

/* --- Neumorphic Mixin Classes --- */
.neumorphic-box, .neu-card, .neumorphic-pill, .neu-btn {
    background: var(--bg-color);
    box-shadow: 9px 9px 16px var(--shadow-dark), 
                -9px -9px 16px var(--shadow-light);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- Hero Section (Top) --- */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-container {
    padding: 60px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    border-radius: 40px;
    transition: all 0.4s ease;
}

.hero-container:hover {
    box-shadow: var(--rainbow-glow);
    transform: translateY(-5px);
}

.logo-text {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #555;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 30px;
}

.neu-btn {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    outline: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.neu-btn:hover {
    color: #333;
    box-shadow: inset 5px 5px 10px var(--shadow-dark), 
                inset -5px -5px 10px var(--shadow-light);
}

/* --- Grid Section (Bottom) --- */
.card-grid-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    margin-bottom: 40px;
    font-size: 1.5rem;
    opacity: 0.6;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.neu-card {
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.neu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--rainbow-glow);
}

.icon-box {
    font-size: 2rem;
    color: #888;
    margin-bottom: 15px;
}

.neu-card h3 {
    margin-bottom: 10px;
    color: #444;
}

.neu-card p {
    font-size: 0.9rem;
    color: #888;
}

.bottom-spacer {
    height: 100px;
}

/* --- Bottom Navigation (Fixed) --- */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
}

.nav-list {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    list-style: none;
    border-radius: 50px; /* Pill shape */
}

.nav-item a {
    text-decoration: none;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.nav-item:hover a, .nav-item.active a {
    color: #333;
    text-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .logo-text { font-size: 2.5rem; }
    .bottom-nav { width: 95%; bottom: 10px; }
}


/* --- ADD TO BOTTOM OF style.css --- */

/* The Inverted Footer (Top of page) */
.inverted-footer {
    width: 100%;
    padding: 40px;
    text-align: center;
    margin-bottom: 60px; /* Space between footer and gallery */
    color: #777;
}

.footer-content h3 {
    margin-bottom: 20px;
    color: #555;
}

.social-links {
    margin-bottom: 20px;
}

.social-btn {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: #777;
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.social-btn:hover {
    color: #333;
    transform: scale(1.2);
}

.small-text {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.7;
}

/* Gallery Grid Styling */
.gallery-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

/* Detailed Site Card */
.site-card {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden; /* Clips the image corners */
    /* Neomorphic Shadow */
    box-shadow: 9px 9px 16px var(--shadow-dark), 
                -9px -9px 16px var(--shadow-light);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.site-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--rainbow-glow);
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.site-card:hover .card-image img {
    opacity: 1;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #444;
}

.card-content p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.4;
}

.small-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    text-decoration: none;
    align-self: flex-start;
}
/* Container to hold both buttons side-by-side */
.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes buttons to edges, or use 'gap' for closeness */
    gap: 15px;
    margin-top: 15px;
}

/* Specific style for the "View Code" link */
.code-link {
    font-size: 0.9rem;
    color: #666; /* Subtle color */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.code-link i {
    font-size: 1.1rem;
}

.code-link:hover {
    color: #000; /* Darker on hover */
    transform: scale(1.05);
}

/* Pagination Container */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

/* Base Button Style */
.page-btn {
    background: #e0e5ec;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    box-shadow: 
        5px 5px 10px #bebebe, 
        -5px -5px 10px #ffffff;
    transition: all 0.2s ease;
}

/* Hover Effect */
.page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        6px 6px 12px #bebebe, 
        -6px -6px 12px #ffffff;
}

/* Active State (Current Page) */
.page-btn.active {
    color: #fff;
    background: var(--shadow-dark); /* Or your site's accent color */
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.2);
}

/* Disabled State (First/Last page buttons) */
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- ADD TO BOTTOM OF style.css --- */

/* About Page Layout */
.about-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* The Manifesto Text Area */
.manifesto-box {
    padding: 40px;
    text-align: left;
    line-height: 1.8;
    color: #555;
    background: var(--bg-color); /* Ensure background matches */
}

.manifesto-box h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card .role {
    color: #888;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-card .desc {
    font-style: italic;
    color: #666;
}

/* Bottom Header (The Start Point for About Page) */
.bottom-header-section {
    text-align: center;
    padding-top: 50px;
}

.big-title {
    font-size: 3.5rem;
    color: #444;
    text-shadow: 2px 2px 5px rgba(255,255,255,1), 
                 -2px -2px 5px rgba(163,177,198,0.3);
}

.sub-text {
    font-size: 1.2rem;
    color: #888;
    margin-top: 10px;
}
/* ADD THIS TO css/style.css if missing */

/* Collab Section Layout */
.collab-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Step Cards with Badges */
.step-card {
    position: relative;
    text-align: left;
    padding: 40px;
    overflow: visible; 
}

.step-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #444;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Code Blocks & File Tree (Inset Look) */
.code-block, .file-tree {
    background: #e0e5ec;
    border-radius: 15px;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #333;
    /* This creates the "hole in the screen" look */
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    overflow-x: auto;
    margin-top: 15px;
}

.file-tree ul { list-style: none; padding-left: 20px; }
.file-tree li { margin: 8px 0; color: #555; }
.highlight-folder { color: #333; font-weight: 700; }
.badge { background: #ff6b6b; color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; margin-left: 10px; }
.nested-projects { border-left: 2px dashed #ccc; margin-left: 5px; }
.new-project { color: #2ecc71; }
.comment { color: #888; font-style: italic; }


/* --- ADD TO BOTTOM OF style.css --- */

/* Creator Section Styling */
.creator-section {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.creator-profile {
    display: flex;
    flex-direction: column; /* Mobile first */
    align-items: center;
    padding: 40px;
    gap: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .creator-profile {
        flex-direction: row;
        text-align: left;
    }
}

.profile-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--bg-color);
    /* Double shadow for depth */
    box-shadow: 9px 9px 16px var(--shadow-dark), 
                -9px -9px 16px var(--shadow-light);
    flex-shrink: 0;
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 5px;
}

.profile-info .role {
    color: #ff6b6b; /* Accent color */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.profile-info .bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.stats-row {
    display: flex;
    justify-content: center; /* Center on mobile */
    gap: 30px;
}

@media (min-width: 768px) {
    .stats-row { justify-content: flex-start; }
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat strong {
    font-size: 1.2rem;
    color: #444;
}

.stat span {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
}

/* Open Source Section */
.os-section {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.wide-card {
    padding: 40px;
    text-align: center;
}

.wide-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.wide-card p {
    margin-bottom: 20px;
}


/* Tech Stack Icons */
.tech-section {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.icon-card {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #777;
    transition: all 0.3s ease;
}

.icon-card:hover {
    color: #333;
    transform: translateY(-5px);
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.faq-card {
    padding: 25px;
    text-align: left;
}

.faq-card h4 {
    color: #444;
    margin-bottom: 10px;
}

.faq-card p {
    font-size: 0.9rem;
    color: #777;
}
