:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --glow-color: rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: white;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.background-gradient {
    display: none;
}


.ambient-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

@keyframes gradientShift {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.1) rotate(1deg);
    }
}

.main-content {
    width: 100%;
    max-width: 900px;
    z-index: 10;
    position: relative;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(50px);
    height: 320px;
    overflow: hidden;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.card:hover {
    transform: translateY(-1px) scale(1.005);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}



.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 25%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 25%, transparent 50%);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    padding-top: 0;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    top: 0;
}

.avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 16px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    overflow: visible;
    flex-shrink: 0;
    will-change: transform;
    contain: none;
}


.avatar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    opacity: 0;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    z-index: 1;
    display: block;
}

.status-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #000000;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator.online {
    background-color: #23a55a;
}

.status-indicator.idle {
    background-color: #f0b132;
}

.status-indicator.dnd {
    background-color: #f23f43;
}

.status-indicator.dnd::after {
    content: '';
    width: 10px;
    height: 2px;
    background-color: #000000;
    border-radius: 1px;
}

.status-indicator.offline {
    background-color: #80848e;
}

.status-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.status-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.status-indicator:hover .status-tooltip {
    opacity: 1;
}

.profile-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
    margin-top: 0;
}

.name {
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.title {
    margin: 0;
    line-height: 1.2;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.125rem;
    color: var(--text-muted);
    opacity: 0;
    margin-bottom: 0.5rem;
    position: relative;
    min-height: 1.5em;
}

.title::after {
    content: '|';
    color: white;
    animation: blink 1s infinite;
    font-weight: 400;
}

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

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.loading-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin: 2rem auto 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 1px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Terminal Section Styles */
.terminal-section {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    transition-delay: 0.3s;
}

.terminal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-window {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: 'Fira Code', 'Consolas', monospace;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.terminal-header {
    background: #323232;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

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

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27ca3f;
}

.terminal-title {
    color: #d4d4d4;
    font-size: 0.85rem;
    font-weight: 500;
}

.terminal-container {
    position: relative;
    background: #1e1e1e;
}

.terminal-body {
    height: 400px;
    overflow-y: auto;
    position: relative;
}

.terminal-body * {
    box-sizing: border-box;
}

.terminal-content {
    padding: 1rem 2rem 1rem 1.5rem;
    color: #d4d4d4;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Styled Native Scrollbar */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 0 0 12px 0;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

.terminal-body::-webkit-scrollbar-thumb:active {
    background: #6a6a6a;
}

/* Firefox scrollbar styling */
.terminal-body {
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #2d2d2d;
}

.terminal-line {
    margin-bottom: 0;
    line-height: 1.4;
}

.terminal-prompt {
    color: #4ade80;
    font-weight: bold;
}

.terminal-command {
    color: #60a5fa;
    margin-left: 0.5rem;
}

.terminal-cursor {
    color: #d4d4d4;
    animation: blink 1s infinite;
}

.terminal-cursor.blinking {
    animation: blink 1s infinite;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #60a5fa;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    outline: none;
    margin-left: 0.5rem;
    width: auto;
    min-width: 200px;
}

.terminal-input:focus {
    outline: none;
}

.interactive-line {
    display: flex;
    align-items: center;
    margin: 0.5rem 0 0 0;
}

.interactive-line .terminal-cursor {
    position: absolute;
    pointer-events: none;
}

@keyframes matrix {
    0% { color: #4ade80; }
    50% { color: #60a5fa; }
    100% { color: #4ade80; }
}

.terminal-output {
    margin: 0;
    padding: 0;
    min-height: 0;
}

.project-item {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #6366f1;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
}

.project-item:nth-child(2) {
    animation-delay: 0.3s;
}

.project-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-name {
    color: #60a5fa;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.project-tech {
    color: #4ade80;
    font-size: 0.8rem;
}

.project-links {
    margin-top: 0.5rem;
}

.project-link {
    color: #f59e0b;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.85rem;
}

.project-link:hover {
    color: #fbbf24;
    text-decoration: underline;
}


/* Prevent dragging on all elements */
img,
svg,
*::before,
*::after {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
a,
button,
.tech-icon,
.tech-icon *,
.time-display,
.time-display *,
.status-indicator,
.social-link {
    pointer-events: auto;
}

/* Allow browser cursor for dragging and form elements */
*[draggable="true"],
select,
input,
textarea {
    cursor: auto !important;
}


.terminal-input::selection {
    background: rgba(99, 102, 241, 0.3);
}



.time-display {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-display.loaded {
    opacity: 1;
    transform: translateY(0);
}

.time-display:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.clock-icon {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    transition: all 0.3s ease, transform 1.2s ease;
}

.time-display:hover .clock-icon {
    color: #e2e8f0;
    transform: rotate(360deg);
}

.clock-icon #hourHand,
.clock-icon #minuteHand {
    transition: transform 0.5s ease-out;
}

.about-section {
    margin-bottom: 0;
}

.description {
    color: var(--text-muted);
    line-height: 1.7;
    text-align: left;
    max-width: none;
    margin: 0;
}


.tech-stack {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    backdrop-filter: blur(10px);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tech-stack.loaded {
    opacity: 1;
    transform: translateY(0);
}

.tech-stack:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.tech-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: transform 0.2s ease;
}

.tech-icon svg {
    width: 22px;
    height: 22px;
}

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

.tech-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.tech-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.tech-icon:hover .tech-tooltip {
    opacity: 1;
}

.social-links {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-link:hover svg {
    transform: scale(1.1);
}

.social-link:nth-child(1):hover {
    color: #f0f6fc;
}

.social-link:nth-child(2):hover {
    color: #5865f2;
}
.pigeon-client-link {
    width: auto !important;
    padding: 0 12px !important;
    min-width: 40px;
}
.pigeon-client-text {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(196, 132, 252, 0.5), 0 0 20px rgba(124, 58, 237, 0.3);
}

.contact-section {
    text-align: left;
}

.contact-links {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
        border-radius: 16px;
        height: 280px;
    }
    
    
    .card-content {
        align-items: center;
        justify-content: center;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .avatar {
        margin: 0;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .tech-stack {
        bottom: 1.5rem;
        left: 1.5rem;
        gap: 0.4rem;
        padding: 0.4rem 0.6rem;
    }
    
    .tech-icon {
        width: 24px;
        height: 24px;
    }
    
    .tech-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .social-links {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.6rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .pigeon-client-link {
        padding: 0 10px !important;
    }
    
    .pigeon-client-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1rem;
        border-radius: 8px;
        height: 240px;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .tech-stack {
        bottom: 1rem;
        left: 1rem;
        gap: 0.35rem;
        padding: 0.35rem 0.5rem;
    }
    
    .tech-icon {
        width: 20px;
        height: 20px;
    }
    
    .tech-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .social-links {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .pigeon-client-link {
        padding: 0 8px !important;
    }
    
    .pigeon-client-text {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .background-gradient {
        animation: none;
    }
    
    .card {
        transition: none;
    }
    
    .skill-tag,
    .contact-link {
        transition: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}