@charset "UTF-8";

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', 'Arial', sans-serif;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,248,255,0.95) 100%),
        url('./img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Beautiful gradient background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 162, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 120, 200, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 255, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Loading screen - beautiful white-based design */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, #ffffff 0%, #f8fafc 25%, #e2e8f0 50%, #f1f5f9 75%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: loadingFadeOut 1s ease-out 2.5s forwards;
}

.loading-content {
    text-align: center;
    color: #64748b;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dotBounce {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-text {
    font-size: 1.1em;
    font-weight: 500;
    color: #475569;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes loadingFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

/* Main container */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    animation: containerFadeIn 1.2s ease-out;
    position: relative;
}

@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media screen and (min-width: 768px) {
    .container {
        flex-direction: row;
        height: 100vh;
    }
}

/* Profile section */
.profile-section {
    width: 100%;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-right: none;
    position: relative;
    animation: profileSlideIn 1s ease-out 0.3s both;
    overflow-y: hidden;
    height: 100vh;
    box-sizing: border-box;
}

/* Remove scrollbars completely */
.profile-section::-webkit-scrollbar {
    display: none;
}

.profile-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes profileSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media screen and (min-width: 768px) {
    .profile-section {
        width: 400px;
        border-right: 1px solid rgba(226, 232, 240, 0.6);
        height: 100vh;
        padding: 35px 30px 25px;
        justify-content: flex-start;
    }
}

/* Profile image */
.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    margin-top: 10px;
    pointer-events: none;
    animation: profileImageFloat 6s ease-in-out infinite;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(255, 255, 255, 0.9),
        0 0 0 6px rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

@keyframes profileImageFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(255, 255, 255, 0.9),
        0 0 0 8px rgba(99, 102, 241, 0.2);
}

/* Profile name */
.profile-name {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes textShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.profile-description {
    color: #64748b;
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95em;
    line-height: 1.4;
    animation: fadeInUp 1s ease-out 0.6s both;
    flex-shrink: 0;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Links container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    animation: linksSlideIn 1s ease-out 0.8s both;
    overflow: visible;
    flex-grow: 1;
    justify-content: flex-start;
    min-height: 0;
}

@keyframes linksSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Link items */
.link-item, .not-link-item {
    display: flex;
    align-items: center;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    box-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(226, 232, 240, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.link-item {
    cursor: pointer;
}

.not-link-item {
    cursor: default;
}

.link-item::before, .not-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.6s;
}

.link-item:hover::before, .not-link-item:hover::before {
    left: 100%;
}

.link-item:hover, .not-link-item:hover {
    background: 
        linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Link icon container */
.link-item .link-icon-container,
.not-link-item .link-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 14px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.link-item .link-icon-container img,
.link-item .link-icon-container svg,
.not-link-item .link-icon-container img,
.not-link-item .link-icon-container svg {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    transition: all 0.3s ease;
}

.link-item:hover .link-icon-container,
.not-link-item:hover .link-icon-container {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Link text */
.link-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    justify-content: center;
    flex: 1;
}

.link-text .link-primary {
    font-weight: 600;
    color: #1e293b;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.link-text .link-secondary,
.link-text .id {
    font-size: 0.85em;
    color: #64748b;
    transition: color 0.3s ease;
    margin-top: 2px;
}

.link-item:hover .link-text .link-primary,
.not-link-item:hover .link-text .link-primary {
    color: #6366f1;
}

.link-item:hover .link-text .link-secondary,
.link-item:hover .link-text .id,
.not-link-item:hover .link-text .link-secondary,
.not-link-item:hover .link-text .id {
    color: #475569;
}

/* Commits section */
.commits-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: commitsSlideIn 1s ease-out 1s both;
    position: relative;
    background: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 250, 252, 0.3) 100%);
}

@keyframes commitsSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.commits-header {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 32px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.commits-header h2 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
}

.commits-list-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
    background: transparent;
}

/* Custom scrollbar for commits */
.commits-list-container::-webkit-scrollbar {
    width: 8px;
}

.commits-list-container::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 10px;
}

.commits-list-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.commits-list-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

@media screen and (max-width: 767px) {
    .commits-section {
        display: none; /* Hide commits on mobile as requested */
    }
    
    .container {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }
    
    .profile-section {
        height: 100vh;
        padding: 20px 15px 15px;
        justify-content: flex-start;
        overflow-y: hidden;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
        margin-top: 5px;
    }
    
    .profile-name {
        font-size: 1.15em;
        margin-bottom: 8px;
    }
    
    .profile-description {
        font-size: 0.85em;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .links-container {
        gap: 9px;
        max-width: 100%;
        width: 100%;
        justify-content: flex-start;
        flex-grow: 1;
        padding-bottom: 10px;
    }
    
    .link-item, .not-link-item {
        padding: 11px;
        border-radius: 12px;
    }
    
    .link-item .link-icon-container,
    .not-link-item .link-icon-container {
        width: 36px;
        height: 36px;
        margin-right: 11px;
        border-radius: 9px;
    }
    
    .link-item .link-icon-container img,
    .link-item .link-icon-container svg,
    .not-link-item .link-icon-container img,
    .not-link-item .link-icon-container svg {
        width: 22px;
        height: 22px;
    }
    
    .link-text .link-primary {
        font-size: 0.9em;
    }
    
    .link-text .link-secondary,
    .link-text .id {
        font-size: 0.8em;
    }
    
    /* Ensure no overflow on mobile */
    body, html {
        overflow: hidden;
        height: 100vh;
    }
}

.commits-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.commit-item {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: commitItemFadeIn 0.6s ease-out both;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.commit-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.commit-item:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes commitItemFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.commit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
    transition: left 0.6s;
}

.commit-item:hover::before {
    left: 100%;
}

.commit-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.commit-repo {
    margin-bottom: 8px;
}

.commit-repo a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.commit-repo a:hover {
    text-decoration: underline;
    color: #4f46e5;
}

.commit-message {
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.5;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.commit-item:hover .commit-message {
    color: #1e293b;
}

.commit-date {
    color: #64748b;
    font-size: 0.85em;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.commit-item:hover .commit-date {
    color: #475569;
}

.language-info {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.commit-item:hover .language-info {
    color: #475569;
}

.language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.commit-item:hover .language-dot {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Copy message animation */
.copy-message {
    animation: copyMessageSlide 3s ease-out;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

@keyframes copyMessageSlide {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.9);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.9);
    }
}

/* Floating particles effect */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

.particle:nth-child(odd) {
    background: rgba(139, 92, 246, 0.2);
}

.particle:nth-child(3n) {
    background: rgba(236, 72, 153, 0.2);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Ripple effect */
@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Mobile specific adjustments */
@media screen and (max-width: 767px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.4em;
    }
    
    .links-container {
        max-width: 100%;
        width: 100%;
    }
    
    body::before {
        background-size: 40px 40px, 25px 25px, 35px 35px;
    }
    
    .container {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }
}