:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --bg-color: #0a192f;
    --text-color: #e6f1ff;
    --card-bg: #112240;
    --nav-bg: rgba(10, 25, 47, 0.85);
}

/* Dark mode colors */
[data-theme="dark"] {
    --bg-color: #0a192f;
    --text-color: #e6f1ff;
    --card-bg: #112240;
}

/* Light mode colors */
[data-theme="light"] {
    --bg-color: #f4f4f9;
    --text-color: #333;
    --card-bg: #ffffff;
}

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

body {
    font-family: 'Fira Code', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

/* Theme Switch */
.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.terminal-prompt {
    color: var(--primary-color);
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Terminal Window */
.terminal-window {
    background: #1e1e1e;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 800px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px;
    display: flex;
    align-items: center;
}

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

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-buttons span:nth-child(1) { background: #ff5f56; }
.terminal-buttons span:nth-child(2) { background: #ffbd2e; }
.terminal-buttons span:nth-child(3) { background: #27c93f; }

.terminal-title {
    color: #999;
    font-size: 0.8rem;
    margin-left: 20px;
}

.terminal-content {
    padding: 20px;
    font-family: 'Fira Code', monospace;
}

.terminal-content p {
    margin: 10px 0;
    color: #fff;
}

.response {
    color: #27ae60;
    margin-left: 20px;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-level {
    background: rgba(46, 204, 113, 0.1);
    height: 8px;
    border-radius: 4px;
    margin-top: 1rem;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-tags {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-tags span {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    background: var(--card-bg);
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.github { background: #24292e; }
.linkedin { background: #0077b5; }
.email { background: #ea4335; }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Sections Common Styles */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero, .skills, .projects, .contact {
    animation: fadeIn 1s ease-out;
}