/* Global Reset & Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #060a07;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navbar */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    margin: 20px auto;
    width: 90%;
    max-width: 1000px;
    background: rgba(12, 22, 15, 0.85);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: 40px;
    backdrop-filter: blur(12px);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #2e7d32;
    object-fit: cover;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-center:hover {
    color: #4caf50;
}

.nav-center .iconify {
    font-size: 1.3rem;
    color: #4caf50;
}

.menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: transform 0.2s;
}

.menu-btn:hover {
    transform: scale(1.1);
    color: #4caf50;
}

/* Mobile Dropdown Menu */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 65px;
    right: 10px;
    background: #0d1610;
    border: 1px solid rgba(46, 125, 50, 0.4);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.nav-dropdown.active {
    display: flex;
}

.nav-dropdown a {
    color: #d1d5db;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown a:hover {
    background: rgba(46, 125, 50, 0.25);
    color: #7cfc00;
}

.nav-dropdown .iconify {
    font-size: 1.2rem;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* Hero Section Base */
main.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    background: linear-gradient(
        90deg, 
        #7cfc00 0%, 
        #2e7d32 25%, 
        #00ff66 50%, 
        #1b5e20 75%, 
        #7cfc00 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientRoll 4s linear infinite;
}

@keyframes gradientRoll {
    0% { background-position: 0% center; }
    100% { background-position: -200% center; }
}

p.subtitle {
    color: #9ca3af;
    font-size: 1.15rem;
    margin-bottom: 40px;
}

/* Layout: Profile & Codeblock Readme */
.readme-section {
    display: flex;
    gap: 30px;
    width: 90%;
    max-width: 950px;
    margin-bottom: 40px;
    align-items: stretch;
    text-align: left;
}

.profile-card {
    background: rgba(12, 22, 15, 0.6);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}

.profile-avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid #7cfc00;
    margin-bottom: 14px;
    box-shadow: 0 0 15px rgba(124, 252, 0, 0.2);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.profile-handle {
    font-size: 0.9rem;
    color: #4caf50;
    font-family: monospace;
}

/* Codeblock Readme Window */
.codeblock-container {
    flex: 1;
    background: #09100a;
    border: 1px solid rgba(46, 125, 50, 0.4);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: "Fira Code", Monaco, Consolas, monospace;
}

.codeblock-header {
    background: #0f1c12;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(46, 125, 50, 0.3);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.codeblock-title {
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.codeblock-body {
    padding: 20px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #d1d5db;
}

.code-title {
    color: #7cfc00;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.code-comment {
    color: #4caf50;
    margin-bottom: 14px;
}

.code-section {
    color: #ffffff;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-link {
    color: #7cfc00;
    text-decoration: none;
    border-bottom: 1px dashed #7cfc00;
}

.code-link:hover {
    color: #ffffff;
}

.projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid #2e7d32;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.2);
}

.projects-btn:hover {
    background: #2e7d32;
    border-color: #7cfc00;
    box-shadow: 0 0 25px rgba(124, 252, 0, 0.4);
    transform: translateY(-2px);
}

.projects-btn .iconify {
    font-size: 1.2rem;
    color: #7cfc00;
    transition: transform 0.2s;
}

.projects-btn:hover .iconify {
    color: #ffffff;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .readme-section {
        flex-direction: column;
    }
    .hero-title {
        font-size: 3rem;
    }
}

/* Projects Container & Mod Cards */
.container {
    width: 90%;
    max-width: 800px;
    margin: 30px auto 60px auto;
}

h2.section-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #ffffff;
}

.project-card {
    background-color: #0b120d;
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    border-color: #4caf50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.mod-icon {
    width: 80px;
    height: 80px;
    background-color: #121d15;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.mod-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.card-description {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tag {
    background-color: rgba(46, 125, 50, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #7cfc00;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn .iconify {
    font-size: 1.2rem;
}

.btn-curseforge {
    background-color: #f16436;
    color: #ffffff;
}

.btn-curseforge:hover {
    background-color: #e04e1f;
    transform: translateY(-2px);
}

.btn-modrinth {
    background-color: #1bd96a;
    color: #05140a;
}

.btn-modrinth:hover {
    background-color: #15b858;
    transform: translateY(-2px);
}