/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-green: #7ee787;
    --accent-blue: #58a6ff;
    --accent-purple: #bc8cff;
    --accent-orange: #ffa657;
    --accent-red: #f85149;
    --accent-pink: #ff6b9d;
    --accent-cyan: #00d4ff;
    --border-color: #30363d;
    --terminal-bg: #0d1117;
    --terminal-text: #f0f6fc;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-secondary);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    border: 1px solid var(--border-color);
}

/* Terminal Header Styles */
.terminal-header {
    background: var(--terminal-bg);
    border-bottom: 1px solid var(--border-color);
    font-family: 'Fira Code', monospace;
}

.terminal-bar {
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn.close { background: var(--accent-red); }
.btn.minimize { background: var(--accent-orange); }
.btn.maximize { background: var(--accent-green); }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.terminal-content {
    padding: 2rem;
    background: var(--terminal-bg);
}

.terminal-line {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt {
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.1rem;
}

.command {
    color: var(--accent-blue);
    font-weight: 500;
}

.terminal-output {
    margin-left: 1rem;
    margin-bottom: 2rem;
}

.ascii-art {
    color: var(--accent-purple);
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ascii-art pre {
    font-family: 'Fira Code', monospace;
    white-space: pre;
    overflow-x: auto;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-blue);
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-item i {
    color: var(--accent-green);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
}

.contact-item i {
    color: var(--accent-blue);
    width: 20px;
}

/* Main Content */
.main-content {
    padding: 2rem;
    background: var(--bg-secondary);
}

.section {
    margin-bottom: 3rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.section h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
}

.section h3 i {
    color: var(--accent-blue);
}

/* Code Skills Section */
.code-skills {
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.code-header {
    background: var(--bg-tertiary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.code-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 5px 5px 0 0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--terminal-bg);
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-blue);
}

.code-actions {
    display: flex;
    gap: 0.5rem;
}

.code-actions i {
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.code-actions i:hover {
    color: var(--accent-blue);
    background: var(--bg-primary);
}

.code-content {
    padding: 0;
    background: var(--terminal-bg);
}

.code-content pre {
    margin: 0;
    padding: 1.5rem;
    background: var(--terminal-bg);
    color: var(--terminal-text);
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-content code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Highlights Section */
.highlights {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #3498db;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
}

.highlight-item i {
    font-size: 1.5rem;
    color: #3498db;
    width: 30px;
}

/* Skills Section */
.skill-category {
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.skill-category h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
    border-color: var(--accent-blue);
}

/* Language-specific skill tag colors */
.skill-tag.python { border-left: 3px solid #3776ab; }
.skill-tag.c { border-left: 3px solid #00599c; }
.skill-tag.matlab { border-left: 3px solid #e16737; }
.skill-tag.web { border-left: 3px solid #f7df1e; }
.skill-tag.rust { border-left: 3px solid #ce422b; }

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

.project-card.featured::before {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    height: 6px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue);
}

.project-card.featured {
    border: 2px solid var(--accent-green);
    box-shadow: 0 5px 20px rgba(126, 231, 135, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.project-role {
    background: linear-gradient(135deg, var(--accent-red), #c0392b);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-details h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.project-details ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.project-details li {
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, var(--accent-green), #2ecc71);
    color: var(--bg-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Fira Code', monospace;
}

/* Education Section */
.education-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-blue);
    border: 1px solid var(--border-color);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-header h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.education-location {
    color: var(--text-secondary);
    font-style: italic;
}

.education-degree {
    color: var(--accent-blue);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    border-color: var(--accent-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .profile-info h2 {
        font-size: 1.2rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section h3 {
        font-size: 1.5rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .header {
        padding: 1rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .skill-tags, .tech-tags {
        justify-content: center;
    }
}

/* New Elements Styles */
.tagline {
    color: var(--accent-cyan);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(126, 231, 135, 0.3);
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Achievements Section */
.achievements {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #1a1f2e 100%);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.1);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.achievement-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1419 100%);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: var(--accent-cyan);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-content h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.achievement-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Personal Section */
.personal {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #1a1f2e 100%);
    border: 1px solid var(--accent-pink);
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.1);
}

.personal-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.personal-item {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1419 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.personal-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
}

.personal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
    border-color: var(--accent-pink);
}

.personal-item h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.personal-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Enhanced Skills */
.skill-category {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1419 100%);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 5px 20px rgba(88, 166, 255, 0.1);
}

.skill-category h4 {
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Project Cards */
.project-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1419 100%);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

.achievement-card {
    animation: slideInLeft 0.6s ease-out;
}

.personal-item {
    animation: slideInRight 0.6s ease-out;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.achievement-icon {
    animation: float 3s ease-in-out infinite;
}

.achievement-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.achievement-icon:nth-child(3) {
    animation-delay: 1s;
}

.achievement-icon:nth-child(4) {
    animation-delay: 1.5s;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
