:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --text-primary: #e6edf3;
    --accent: #ffca28;
    --cta: #ff5252;
    --code-bg: #1e2430;
    --border: #30363d;
}

.creative-mode {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --text-primary: #e0e0e0;
    --accent: #ffca28;
    --cta: #ff5252;
    --code-bg: #2a2a4a;
    --border: #3d3d6e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Fira Code", monospace;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition:
        background-color 0.5s ease,
        color 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}
/* Terminal Styles */
.terminal-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    padding: 20px;
    margin: 40px 0;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Pixel art styling */
.pixel-art {
    width: 300px;
    height: auto;
    order: 1;
}

.img-renders {
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}
@media (max-width: 768px) {
    .terminal-container {
        flex-direction: column-reverse;
    }

    .pixel-art {
        width: 200px;
    }
}
.terminal {
    flex: 1;
    max-width: 600px;
    order: 2;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
}

.terminal-dot:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-dot:nth-child(3) {
    background-color: #27c93f;
}

.terminal-content {
    font-family: "Fira Code", monospace;
    line-height: 1.8;
}

.prompt {
    color: var(--accent);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--accent);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.typing-text {
    display: inline;
}

/* Theme Toggle Styles */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    font-family: "Fira Code", monospace;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.toggle-switch:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--accent), var(--cta));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    overflow: hidden;
}

.toggle-slider:before {
    position: absolute;
    content: "💻";
    height: 32px;
    width: 32px;
    left: 4px;
    bottom: 4px;
    background-color: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.mode-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.developer-label {
    padding-left: 40px;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.creative-label {
    padding-right: 40px;
    color: rgba(255, 255, 255, 0.6);
}

/* Creative mode (checked) */
input:checked + .toggle-slider {
    background: linear-gradient(to right, var(--cta), var(--accent));
}

input:checked + .toggle-slider:before {
    content: "🎨";
    transform: translateX(160px);
}

input:checked + .toggle-slider .developer-label {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: none;
}

input:checked + .toggle-slider .creative-label {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.section-title {
    font-size: 32px;
    margin: 80px 0 40px;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    position: relative;
}

.section-title::before {
    content: "#";
    color: var(--cta);
    margin-right: 8px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-img {
    height: 180px;
    background-color: var(--code-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-description {
    font-size: 16px;
    color: #a8b2c0;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background-color: rgba(255, 202, 40, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.project-link {
    display: inline-block;
    background-color: var(--cta);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.project-link:hover {
    background-color: #ff3b3b;
}

.skills {
    margin: 80px 0;
}

.skill-graph {
    background-color: var(--bg-secondary);
    border-radius: 6px;
    padding: 30px;
    border: 1px solid var(--border);
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.skill-node {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-node.main {
    width: 120px;
    height: 120px;
    background-color: var(--cta);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.skill-node.ai {
    width: 100px;
    height: 100px;
    background-color: var(--accent);
    top: 25%;
    left: 30%;
    transform: translate(-50%, -50%);
}

.skill-node.integration {
    width: 90px;
    height: 90px;
    background-color: #7e57c2;
    top: 60%;
    left: 25%;
    transform: translate(-50%, -50%);
}

.skill-node.web {
    width: 80px;
    height: 80px;
    background-color: #26a69a;
    top: 30%;
    right: 20%;
    transform: translate(-50%, -50%);
}

.skill-node.automation {
    width: 85px;
    height: 85px;
    background-color: #5c6bc0;
    bottom: 25%;
    right: 25%;
    transform: translate(-50%, -50%);
}

.skill-connection {
    position: absolute;
    height: 2px;
    background-color: var(--border);
    transform-origin: 0 0;
    z-index: 1;
}

.about {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 60px 0;
}

.about-content {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex: 1 1 400px;
}

.about-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent);
}

.about-text {
    margin-bottom: 20px;
    color: #a8b2c0;
}

.code-block {
    background-color: var(--code-bg);
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 3px solid var(--accent);
    overflow-x: auto;
}

.code-line {
    display: flex;
    white-space: normal;
}

.line-number {
    color: #6a737d;
    padding-right: 16px;
    min-width: 30px;
    text-align: right;
    user-select: none;
    white-space: normal;
}

.code-comment {
    color: #6a737d;
}

.code-keyword {
    color: #ff7b72;
}

.code-string {
    color: #a5d6ff;
}

.code-function {
    color: #d2a8ff;
}

.code-variable {
    color: #79c0ff;
}

.code-indent-1 {
    margin-left: 20px;
}

.contact {
    margin: 80px 0;
    text-align: center;
}

.profile-img {
    width: 100%;
    height: auto;
    max-width: 400px; /* Existing rule */
    display: block; /* Better than float for responsiveness */
    margin: 20px auto; /* Center horizontally */
    float: none !important; /* Override existing float */
}
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: "Fira Code", monospace;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--cta);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: "Fira Code", monospace;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #ff3b3b;
}

footer {
    background-color: var(--bg-secondary);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-link {
    color: var(--text-primary);
    font-size: 24px;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--accent);
}

.footer-text {
    color: #6a737d;
    font-size: 14px;
}

/* Waka time charts */

.waka {
    margin: 40px 0;
}

.waka h1 {
    text-align: center;
    margin-bottom: 30px;
}

.waka-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.waka-chart {
    background-color: rgba(8, 6, 2, 0.05);
    border-radius: 8px;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.waka-chart:hover {
    transform: translateY(-5px);
}

.waka-chart h3 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 15px;
    font-family: "Fira Code", sans-serif;
}

.waka-chart figure {
    margin: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.waka-chart embed {
    width: 100%;
    height: 100%;
    border: none;
}

.mobile {
    margin-top: 10px;
}

.mobile a {
    color: var(--accent);
    margin: 0 5px;
}

.project-meta {
    background-color: var(--main-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
}

.meta-label {
    font-weight: bold;
    min-width: 150px;
    color: #555;
}

.meta-value {
    flex: 1;
}

.meta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.meta-link {
    display: inline-flex;
    align-items: center;
    background-color: #333;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.disabled {
    pointer-events: none;
    color: gray; /* Optional: visually indicate the disabled state */
    text-decoration: none;
}

.meta-link:hover {
    background-color: #555;
}

.project-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.project-header {
    margin-bottom: 2rem;
}
/*Social Tray*/
.social-tray {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: fit-content;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--code-bg);
    border: 1px solid var(--border);
}

.social-icon i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon:hover i {
    transform: scale(1.15);
}

/* Platform-specific hover colors */
.social-icon.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}
.social-icon.github:hover {
    background: #333;
    border-color: #333;
}
.social-icon.email:hover {
    background: var(--cta);
    border-color: var(--cta);
}
.social-icon.instagram:hover {
    background: #e1306c;
    border-color: #e1306c;
}
.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

/* Creative mode adaptation */
.creative-mode .social-icon {
    border-radius: 8px;
    background: var(--code-bg);
    border: 1px solid var(--border);
}

.creative-mode .social-icon:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .social-tray {
        gap: 1rem;
        padding: 1rem;
    }
    .social-icon {
        width: 38px;
        height: 38px;
    }
    .social-icon i {
        font-size: 1rem;
    }
}
