:root {
    --bg-dark: #050507;
    --window-bg: rgba(15, 19, 24, 0.95);
    --primary: #3b82f6;
    --secondary: #06b6d4;
    /* Cyan */
    --accent: #6366f1;
    --text: #ffffff;
    --text-dim: #94a3b8;
    --border: 1px solid rgba(255, 255, 255, 0.08);
    --glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 80px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.bg-glow {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-1 {
    top: -10%;
    left: -10%;
    background: var(--primary);
}

.bg-glow-2 {
    bottom: -10%;
    right: -10%;
    background: var(--secondary);
}

.container {
    max-width: 1600px;
    width: 92%;
    margin: 0 auto;
    padding-top: 40px;
}

.mac-window {
    background: var(--window-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: var(--border);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
    margin-bottom: 50px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.window-header {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: var(--border);
    height: 45px;
}

.window-body {
    display: flex;
    height: 650px;
    overflow: hidden;
}

.profile-section {
    width: 340px;
    flex-shrink: 0;
    padding: 30px;
    border-right: var(--border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    overflow-y: auto;
}

.discord-rpc {
    margin-top: auto;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 15px;
    border: var(--border);
}

.terminal-section {
    flex-grow: 1;
    background: #09090b;
    padding: 30px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.terminal-section::-webkit-scrollbar {
    width: 10px;
}

.terminal-section::-webkit-scrollbar-track {
    background: #09090b;
}

.terminal-section::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid #09090b;
}

.terminal-section::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

@media (max-width: 1024px) {
    .window-body {
        flex-direction: column;
        height: auto;
    }

    .profile-section {
        width: 100%;
        border-right: none;
        border-bottom: var(--border);
        height: auto;
    }

    .terminal-section {
        height: 500px;
    }
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.traffic-lights span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
    opacity: 0.7;
}

.window-body {
    display: grid;
    grid-template-columns: 340px 1fr;
    min-height: 550px;
}

.profile-section {
    padding: 40px 30px;
    border-right: var(--border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
}

#discord-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.05);
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid #131518;
}

.online {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.idle {
    background: #f59e0b;
}

.dnd {
    background: #ef4444;
}

.offline {
    background: #747f8d;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.subtitle {
    color: var(--secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    margin-bottom: 25px;
    padding: 5px 12px;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.social-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: auto;
}

.s-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
    border: var(--border);
}

.s-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.discord-rpc {
    width: 100%;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 15px;
    border: var(--border);
}

.discord-rpc.hidden {
    display: none;
}

.rpc-header {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.rpc-content {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.rpc-images {
    position: relative;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
}

#rpc-large-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

#rpc-small-image {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #18181b;
    background: #000;
}

.rpc-details {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rpc-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpc-text {
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpc-timer {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.terminal-section {
    background: #09090b;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.code-editor {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a1a1aa;
    white-space: pre-wrap;
}

.kwd {
    color: #c678dd;
}

.cls {
    color: #e5c07b;
}

.str {
    color: #98c379;
}

.mth {
    color: #61afef;
}

.cmt {
    color: #5c6370;
    font-style: italic;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

.content-flow {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    align-items: start;
    width: 100%;
    margin-top: 20px;
}

.col-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    white-space: nowrap;
}

.section-title i {
    color: var(--primary);
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #e4e4e7;
}

@media (max-width: 1024px) {
    .content-flow {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.02);
    border: var(--border);
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.timeline-container {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--secondary);
    margin-bottom: 8px;
    display: block;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: var(--border);
    transition: 0.3s;
}

.timeline-content:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #fff;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: var(--border);
    padding: 25px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 14px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}


.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.project-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: auto;
    transition: 0.3s;
}

.project-link:hover {
    gap: 10px;
    color: #fff;
}

.main-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: var(--border);
}

.mail-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.mail-link:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.5;
}

@media (max-width: 1200px) {

    .container {
        width: 95%;
    }

    .window-body {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 1024px) {

    .window-body {
        grid-template-columns: 1fr;
    }

    .profile-section {
        border-right: none;
        border-bottom: var(--border);
        flex-direction: row;
        justify-content: space-around;
        padding: 20px;
        text-align: left;
    }

    .avatar-wrapper {
        margin-bottom: 0;
        width: 100px;
        height: 100px;
        margin-right: 20px;
    }

    .social-buttons {
        margin-top: 10px;
    }

    .discord-rpc {
        margin-top: 0;
        width: 300px;
        margin-left: auto;
    }

    .content-flow {
        grid-template-columns: 1fr 1fr;
    }

    .projects-container {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .avatar-wrapper {
        margin: 0 auto 20px auto;
    }

    .discord-rpc {
        width: 100%;
        margin-top: 20px;
        margin-left: 0;
    }

    .content-flow {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .projects-container {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-section {
    background: #09090b;
    padding: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}