:root {
    --bg-glass: rgba(15, 23, 42, 0.6);
    --border-glass: rgba(255, 255, 255, 0.2);
    --pink-grad: linear-gradient(to right, #ff85a2, #ffffff, #ff85a2);
    --accent: #ff85a2;
    --success: #4CAF50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196F3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    background: url('https://giffiles.alphacoders.com/222/222829.gif') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #ffffff;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 2px solid var(--border-glass);
    padding: 30px;
    box-shadow: 0 0 30px rgba(255, 133, 162, 0.3);
    position: relative;
    margin: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 25px;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 15px var(--accent);
}

.avatar-decoration {
    position: absolute;
    top: -25px;
    left: -15px;
    width: 150px;
    height: auto;
    pointer-events: none;
    z-index: 2;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    background: var(--pink-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
    margin-bottom: 5px;
}

.profile-bio {
    font-size: 15px;
    color: #eee;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.badges-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-glass);
    transition: transform 0.3s;
}

.badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 133, 162, 0.2);
}

.badge i {
    font-size: 18px;
}

.location-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: #ddd;
    margin-bottom: 25px;
}

.location-info i {
    margin-right: 5px;
    color: var(--accent);
}

.stats-card {
    background: rgba(255, 133, 162, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--accent);
}

.stats-left h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 5px var(--accent);
}

.stat-item {
    font-size: 13px;
    margin: 5px 0;
    color: #eee;
}

.stat-item span {
    color: var(--accent);
    font-weight: bold;
    float: right;
    margin-left: 20px;
}

.stats-circle {
    width: 70px;
    height: 70px;
    border: 5px solid var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 22px;
    color: #fff;
    border-left-color: transparent;
    animation: spin 3s linear infinite;
}

/* Code Analyzer Styles */
.code-analyzer-section, .simulator-section, .terminal-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-glass);
}

.code-analyzer-section h3, .simulator-section h3, .terminal-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analyzer-tools {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.tool-btn:hover {
    background: rgba(255, 133, 162, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.tool-btn i {
    color: var(--accent);
    font-size: 18px;
}

.code-input-section {
    margin-bottom: 15px;
}

#code-input {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

#code-input:focus {
    outline: none;
    border-color: var(--accent);
}

.action-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #ff6b95;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.4);
}

.analysis-results {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-glass);
}

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

.result-header h4 {
    font-size: 16px;
    color: #fff;
}

#clear-results {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.results-content {
    font-family: monospace;
    font-size: 13px;
    max-height: 200px;
    overflow-y: auto;
}

/* Simulator Styles */
.simulator-controls {
    margin-bottom: 15px;
}

.function-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#function-select {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    min-width: 200px;
}

.input-params {
    margin-bottom: 15px;
}

#function-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    margin-bottom: 5px;
}

.input-hint {
    font-size: 12px;
    color: #aaa;
    margin-left: 5px;
}

.simulation-output {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-glass);
}

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

.output-header h4 {
    font-size: 16px;
    color: #fff;
}

.execution-time {
    font-size: 12px;
    color: #aaa;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
}

.output-content {
    font-family: monospace;
    font-size: 14px;
    min-height: 60px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Terminal Styles */
.terminal-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
}

.terminal-header {
    background: #333;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-size: 12px;
    color: #aaa;
    font-family: monospace;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.term-btn.minimize { background: #ffbd2e; }
.term-btn.maximize { background: #28ca42; }
.term-btn.close { background: #ff5f56; }

.terminal-body {
    padding: 15px;
    font-family: monospace;
}

.terminal-output {
    min-height: 150px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 13px;
}

.output-line {
    margin-bottom: 5px;
    color: #0f0;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.prompt {
    color: #0f0;
    margin-right: 10px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #0f0;
    font-family: monospace;
    font-size: 13px;
    outline: none;
}

/* Existing styles continue... */
.languages-section h3 {
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
    background: var(--pink-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.languages-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.lang-item {
    width: 100%;
}

.lang-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
}

.lang-info div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-info i { 
    font-size: 20px; 
    color: var(--accent);
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid var(--border-glass);
}

.social-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.4);
}

.social-btn i {
    font-size: 28px;
    margin-right: 15px;
}

.music-player {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--accent);
    margin-bottom: 25px;
}

.music-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: rotate 5s linear infinite;
    animation-play-state: paused;
}

.music-player.playing .music-thumb { animation-play-state: running; }

.music-info { 
    flex: 1; 
    overflow: hidden; 
}

.music-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.control-btn {
    background: var(--accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
}

/* Animation Keyframes */
@keyframes spin { 
    100% { 
        transform: rotate(360deg); 
    } 
}

@keyframes rotate { 
    from { 
        transform: rotate(0deg); 
    } 
    to { 
        transform: rotate(360deg); 
    } 
}

/* Result Styles */
.result-item {
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-item.success {
    background: rgba(76, 175, 80, 0.2);
    border-left: 4px solid var(--success);
}

.result-item.warning {
    background: rgba(255, 152, 0, 0.2);
    border-left: 4px solid var(--warning);
}

.result-item.error {
    background: rgba(244, 67, 54, 0.2);
    border-left: 4px solid var(--error);
}

.result-item.info {
    background: rgba(33, 150, 243, 0.2);
    border-left: 4px solid var(--info);
}

.result-icon {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 20px;
        margin: 10px;
    }
    
    .analyzer-tools {
        flex-direction: column;
    }
    
    .tool-btn {
        min-width: 100%;
    }
    
    .function-selector {
        flex-direction: column;
    }
    
    #function-select {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-name { 
        font-size: 26px; 
    }
    
    .social-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .social-btn i {
        font-size: 24px;
        margin-right: 10px;
    }
    
    .stats-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-left {
        margin-bottom: 15px;
    }
}
