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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
}

body.controls-hidden .color-controls,
body.controls-hidden .logo-controls,
body.controls-hidden .position-slider {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.color-controls,
.logo-controls,
.position-slider,
.resources-toggle,
.social-links {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.banner {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #2c6b4c 0%, #8eb95b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: padding-bottom 0.6s ease-in-out;
}

.text-content {
    color: #d4f5d2;
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.95;
    -webkit-text-stroke: 1px #0d3d1f;
    text-stroke: 1px #0d3d1f;
    transition: all 0.6s ease-in-out;
}

.logo {
    width: 12rem;
    height: 12rem;
    transition: all 0.6s ease-in-out;
}

/* Responsive scaling */
@media (max-width: 1200px) {
    .text-content {
        font-size: 4.5rem;
    }

    .logo {
        width: 9rem;
        height: 9rem;
    }

    .banner {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .banner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .text-content {
        font-size: 3rem;
        text-align: center;
    }

    .logo {
        width: 7rem;
        height: 7rem;
    }
}

.color-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.logo-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.master-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #0d3d1f;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 100;
}

.master-toggle:hover {
    transform: scale(1.05);
}

.position-slider {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 16px;
    background: white;
    border: 2px solid #0d3d1f;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 160px;
}

.position-slider label {
    color: #0d3d1f;
    font-size: 0.65rem;
    text-align: center;
    margin: 0;
}

.position-slider input[type="range"] {
    width: 130px;
    cursor: grab;
}

.position-slider input[type="range"]:active {
    cursor: grabbing;
}

.resources-toggle {
    position: fixed;
    left: 20px;
    top: 25%;
    padding: 8px 16px;
    background: white;
    border: 2px solid #0d3d1f;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 100;
}

.resources-toggle:hover {
    transform: scale(1.05);
}

.social-links-container {
    position: fixed;
    top: 75vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 99;
    transition: top 0.6s ease-in-out;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 90vw;
    transition: opacity 0.4s ease-in-out;
}

.social-links.visible {
    opacity: 1;
    pointer-events: auto;
}

.social-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #0d3d1f;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #0d3d1f;
    text-align: center;
}

.social-btn:hover {
    background: #d4f5d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #0d3d1f;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-width: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Resources Panel Styles */
.resources-panel {
    position: fixed;
    left: -400px;
    /* Hidden by default */
    top: 0;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 200;
    transition: left 0.3s ease-in-out;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resources-panel.open {
    left: 0;
}

.resources-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.resources-header h2 {
    color: #0d3d1f;
    font-size: 1.5rem;
}

.close-resources {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0d3d1f;
}

.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #0d3d1f;
    border-radius: 8px;
    font-size: 1rem;
}

.resource-item {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0d3d1f;
    transition: transform 0.2s;
}

.resource-item:hover {
    transform: translateX(5px);
    background: #e8f5e9;
}

.resource-title {
    font-weight: 600;
    color: #0d3d1f;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.resource-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #d4f5d2;
    color: #0d3d1f;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}