* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #66ea78 0%, #4ba257 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Dark mode */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .container {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .profile-card,
body.dark-mode .card {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

body.dark-mode .card:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode .tagline {
    color: #e0e0e0;
}

body.dark-mode .about-text {
    color: #b0b0b0;
}

body.dark-mode .floating-header .header-content {
    background: rgba(30, 30, 30, 0.8);
}

body.dark-mode .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .lang-menu {
    background: rgba(30, 30, 30, 0.95);
}

body.dark-mode .lang-menu a {
    color: #e0e0e0;
}

body.dark-mode .lang-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .copyright {
    color: #888;
}

body.dark-mode .settings-button {
    background: rgba(30, 30, 30, 0.95);
}

body.dark-mode .settings-button:hover {
    background: rgba(40, 40, 40, 0.95);
}

body.dark-mode .settings-panel {
    background: #2a2a3e;
    color: #e0e0e0;
}

body.dark-mode .settings-header {
    border-bottom-color: #444;
}

body.dark-mode .settings-header h2 {
    color: #e0e0e0;
}

body.dark-mode .settings-close {
    color: #aaa;
}

body.dark-mode .settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .settings-tabs {
    background: #1e1e2e;
    border-bottom-color: #444;
}

body.dark-mode .settings-tab {
    color: #aaa;
}

body.dark-mode .settings-tab:hover {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .settings-tab.active {
    color: #66ea78;
    border-bottom-color: #66ea78;
}

body.dark-mode .setting-item {
    border-bottom-color: #444;
}

body.dark-mode .setting-label {
    color: #e0e0e0;
}

body.dark-mode .setting-description {
    color: #aaa;
}

body.dark-mode .setting-item select {
    background: #1e1e2e;
    color: #e0e0e0;
    border-color: #444;
}

/* Dark mode - tooltips, achievements, eggs */
body.dark-mode .skill-tooltip {
    background: #2a2a3e;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .skill-tooltip .bar {
    background: #1e1e2e;
}

body.dark-mode .skill-tooltip .bar-fill {
    background: #66ea78;
}

body.dark-mode .achievement-toast {
    background: rgba(42, 42, 62, 0.95);
    border-left-color: #66ea78;
}

body.dark-mode .achievement-badge {
    background: rgba(42, 42, 62, 0.95);
}

body.dark-mode .tutorial-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .tutorial-card {
    background: #2a2a3e;
    color: #e0e0e0;
}

body.dark-mode .tutorial-header {
    background: #66ea78;
    color: #0d2a14;
}

body.dark-mode .btn-secondary {
    background: #1e1e2e;
    color: #e0e0e0;
}

body.dark-mode .easter-eggs-button {
    background: #66ea78;
    color: #0d2a14;
}

body.dark-mode .easter-eggs-panel {
    background: #2a2a3e;
}

body.dark-mode .easter-eggs-panel h3 {
    color: #e0e0e0;
}

body.dark-mode .egg-item {
    background: #1e1e2e;
    color: #e0e0e0;
}

body.dark-mode .close-eggs-btn {
    background: #66ea78;
    color: #0d2a14;
}

body.dark-mode .settings-overlay {
    background: rgba(0, 0, 0, 0.75);
}

/* No animations mode */
body.no-animations,
body.no-animations * {
    transition: none !important;
    animation: none !important;
}

/* Floating Header */
.floating-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.header-content {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-btn:hover {
    background: #66ea78;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 234, 120, 0.3);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    cursor: pointer;
    border: none;
    outline: none;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 150px;
    z-index: 1001;
}

.lang-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    transition: background 0.2s;
}

.lang-menu a:hover {
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 20px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .nav-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nav-buttons {
        gap: 6px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.container {
    max-width: 600px;
    width: 100%;
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid #66ea78;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.tagline {
    color: #666;
    font-size: 16px;
}

/* Section */
.section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-text {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #66ea71;
}

.logo, .project-icon, .contact-icon {
    font-size: 32px;
}

.card span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Skill tooltip */
.skill-tooltip {
    position: fixed;
    background: #ffffff;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    z-index: 1002;
    border: 1px solid #eee;
}

.skill-tooltip .bar {
    margin-top: 8px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}

.skill-tooltip .bar-fill {
    height: 100%;
    background: #66ea78;
    width: 0;
    transition: width 0.3s ease;
}

/* Achievement toast */
/* Achievement toasts (Minecraft-like at top-right) */
.achievement-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievement-toast {
    background: rgba(34,34,34,0.95);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-left: 4px solid #66ea78;
}

.achievement-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Achievement mode badge */
.achievement-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(34,34,34,0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 1002;
}

/* Tutorial overlay */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1004;
}

.tutorial-card {
    background: #fff;
    color: #333;
    width: 90%;
    max-width: 520px;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.25);
    overflow: hidden;
}

.tutorial-header {
    background: #66ea78;
    color: #0d2a14;
    padding: 12px 16px;
    font-weight: 800;
}

.tutorial-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.tutorial-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px 16px;
}

.btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary { background: #66ea78; color: #0d2a14; }
.btn-secondary { background: #f0f0f0; color: #333; }

/* Easter egg side button */
.easter-eggs-button {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #66ea78;
    color: #0d2a14;
    padding: 10px 14px;
    border-radius: 12px 0 0 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1003;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.easter-eggs-button:hover { filter: brightness(1.05); }

/* Easter egg panel */
.easter-eggs-panel {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) scale(0.95);
    background: #ffffff;
    width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.28);
    z-index: 1004;
    opacity: 0;
    padding: 16px 18px 18px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.easter-eggs-panel.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.easter-eggs-panel h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #222;
}

.egg-item {
    background: #f5f5f5;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.egg-item.unlocked { border-left: 4px solid #66ea78; }
.egg-item.locked { border-left: 4px solid #ccc; opacity: 0.7; }

.close-eggs-btn {
    align-self: flex-end;
    background: #66ea78;
    color: #0d2a14;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
}

.close-eggs-btn:hover { filter: brightness(1.08); }

/* Responsive */
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-card h1 {
        font-size: 24px;
    }
    
    .section h2 {
        font-size: 20px;
    }
}

/* Footer Copyright */
.copyright {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #666;
    font-size: 12px;
    z-index: 100;
}

/* Settings button */
.settings-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 24px;
}

.settings-button:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

/* Settings panel */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.settings-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.settings-panel {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.settings-overlay.show .settings-panel {
    transform: scale(1);
}

.settings-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.settings-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.settings-close:hover {
    background: #f0f0f0;
    color: #333;
}

.settings-tabs {
    display: flex;
    padding: 0 24px;
    gap: 8px;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
}

.settings-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-family: 'Nunito', sans-serif;
}

.settings-tab:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.02);
}

.settings-tab.active {
    color: #4ba257;
    border-bottom-color: #4ba257;
}

.settings-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

.setting-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.setting-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.setting-item select,
.setting-item input[type="checkbox"] {
    cursor: pointer;
}

.setting-item select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    background: white;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.setting-button {
    padding: 10px 20px;
    background: #4ba257;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}

.setting-button:hover {
    background: #3d8847;
}

.setting-button.danger {
    background: #dc3545;
}

.setting-button.danger:hover {
    background: #c82333;
}
