:root {
    --primary-bg: #0a0a0a;
    --card-bg: rgba(16, 16, 16, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.15);
    --border-color: rgba(0, 255, 136, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

.no-js * {
    cursor: auto !important;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    min-height: 100vh;
    width: 100%;
    background-color: var(--primary-bg);
    background-image: linear-gradient(to bottom, rgba(0, 255, 136, 0.05) 1px, transparent 1px), linear-gradient(to right, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    overflow-x: hidden;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.js,
.js *,
.js body,
.js html {
    cursor: none !important;
}

@media (min-width: 769px) {
    .cursor {
        left: 0;
        top: 0;
        width: 8px;
        height: 8px;
        background-color: var(--accent-color);
        position: fixed;
        pointer-events: none;
        border-radius: 50%;
        mix-blend-mode: difference;
        z-index: 9999;
        box-shadow: 0 0 10px var(--accent-color);
        will-change: transform;
    }

    .cursor-border {
        left: 0;
        top: 0;
        width: 24px;
        height: 24px;
        background-color: transparent;
        border: 1px solid var(--accent-color);
        position: fixed;
        pointer-events: none;
        border-radius: 50%;
        z-index: 9998;
        transition: all 0.2s ease;
        will-change: transform;
    }

    .cursor.clicking {
        transform: scale(0.7);
    }

    .cursor-border.clicking {
        transform: scale(1.2);
        border-color: rgba(0, 255, 136, 0.5);
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
    background-clip: padding-box;
}

::selection {
    background-color: rgba(0, 255, 136, 0.3);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 10px var(--accent-glow);
}

.loading-text {
    color: var(--accent-color);
    font-size: 1rem;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

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

.copy-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--accent-color);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    transform: translateY(-60px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copy-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.copy-notification.hide {
    transform: translateY(-60px);
    opacity: 0;
}

.copy-notification i {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 900px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    margin: 0 auto;
}

.card-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    width: 100%;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.profile-picture-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 5px;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.social-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
}

.profile-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
}

.profile-button:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.noscript-contact {
    display: none;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 10px;
}

.noscript-contact p {
    margin: 8px 0;
    font-size: 0.85rem;
}

.noscript-contact a {
    color: var(--accent-color);
    text-decoration: none;
}

.no-js .noscript-contact {
    display: block;
}

.no-js .profile-buttons {
    display: none;
}

.content-section {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header-section {
    margin-bottom: 5px;
}

.main-title {
    font-size: 1.6rem;
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.intro-text {
    padding: 15px;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: left;
    margin-top: 0;
}

.intro-text p {
    margin: 0;
}

.tooltip {
    display: inline;
    position: relative;
    color: var(--accent-color);
    white-space: normal;
    border-bottom: 1px dotted var(--accent-color);
    cursor: help;
}

@media (min-width: 769px) {
    .tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: 250px;
        padding: 6px 10px;
        background: rgba(0, 0, 0, 0.9);
        color: var(--accent-color);
        border-radius: 4px;
        font-size: 0.8rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        border: 1px solid var(--border-color);
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        word-wrap: break-word;
    }

    .tooltip:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

.skills-section {
    padding: 15px;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.skills-section h2 {
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.skill-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: inline-block;
    font-weight: 500;
}

.skill-tag:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.projects-section {
    padding: 15px;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-section h2 {
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    flex: 1;
}

.project-card {
    position: relative;
    background: rgba(16, 16, 16, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 80px;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 136, 0.6);
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.project-card:hover::after {
    width: 100%;
}

.project-link {
    position: relative;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    width: 100%;
    height: 100%;
    padding: 15px;
}

.project-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.05);
}

.project-icon i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.2px;
}

.project-tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.gradient-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover .gradient-hover {
    opacity: 1;
}

@media (max-width: 900px) {
    .card-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-section {
        position: static;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        border-radius: 10px;
    }
    
    .card-layout {
        gap: 20px;
    }
    
    .main-title {
        font-size: 1.4rem;
    }
    
    .profile-section {
        padding: 15px;
        background: rgba(10, 10, 10, 0.7);
        border-radius: 12px;
        border: 1px solid var(--border-color);
        width: 100%;
        position: static;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .profile-picture-container {
        width: 120px;
        height: 120px;
        margin: 0 auto 10px auto;
    }
    
    .profile-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .profile-button {
        flex: 0 1 calc(50% - 5px);
        font-size: 0.85rem;
        padding: 8px 12px;
        min-height: 40px;
    }
    
    .intro-text {
        font-size: 0.92rem;
        line-height: 1.7;
        padding: 14px;
    }
    
    .projects-section {
        padding: 15px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tooltip::after {
        display: none;
    }
    
    .tooltip.active::after {
        content: attr(data-tooltip);
        display: block;
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        max-width: 320px;
        max-height: 80vh;
        overflow-y: auto;
        padding: 16px;
        background: rgba(0, 0, 0, 0.95);
        color: var(--accent-color);
        border-radius: 8px;
        font-size: 0.9rem;
        text-align: left;
        z-index: 1000;
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        word-wrap: break-word;
        animation: tooltipFadeIn 0.2s ease;
    }
    
    .tooltip-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .tooltip-overlay.active {
        display: block;
    }
    
    .copy-notification {
        top: 20px;
        right: 20px;
        font-size: 0.85rem;
        padding: 10px 14px;
    }
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .profile-section {
        padding: 12px;
    }
    
    .profile-picture-container {
        width: 100px;
        height: 100px;
        margin: 0 auto 12px auto;
    }
    
    .profile-button {
        flex: 0 1 100%;
        margin-bottom: 5px;
        font-size: 0.8rem;
        padding: 7px 10px;
        min-height: 36px;
    }
    
    .intro-text {
        padding: 12px;
        font-size: 0.88rem;
        line-height: 1.7;
    }
    
    .skills-section h2,
    .projects-section h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .project-title {
        font-size: 0.95rem;
    }
    
    .project-tag {
        font-size: 0.75rem;
    }
    
    .social-text {
        font-size: 0.85rem;
    }
    
    .projects-section {
        padding: 12px;
    }
    
    .project-card {
        min-height: 70px;
    }
    
    .project-link {
        padding: 12px;
    }
}