/* Base styles */
:root {
    --bg-color: #0f0f0f;
    --text-color: #e6e6e6;
    --highlight-color: #64ffda;
    --secondary-color: #8892b0;
    --transition-time: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s;
}
body.loaded {
    opacity: 1;
}


/* Container */
.container {
    max-width: 800px;
    padding: 2rem;
    margin: 0 auto;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Avatar */
.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    perspective: 600px;
}

.avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: var(--highlight-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 600;
    margin: 0 auto;
    border: 3px solid var(--highlight-color);
    transition: transform var(--transition-time) ease-in-out;
}

.avatar-placeholder:hover {
    transform: scale(1.05);
}

.avatar {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--highlight-color);
    transition: color 0.6s, border-color 0.6s;
    z-index: 1;
    cursor: pointer;
}
.avatar:hover {
    box-shadow: 0 0 8px 1px var(--avatar-glow), 0 1px 4px rgba(0,0,0,0.12);
    transition: box-shadow 0.3s;
}

.avatar-container::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    background: conic-gradient(
        #64ffda, #f08080, #b39ddb, #81d4fa, #a5d6a7, #64ffda
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.avatar-container:hover::after {
    opacity: 1;
    animation: spin-border 1.2s linear infinite;
}

.avatar-flipped::after {
    opacity: 0 !important;
    animation: none !important;
    transition: opacity 0.5s !important;
}

.avatar-flipped:hover::after {
    opacity: 0 !important;
    animation: none !important;
}

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

/* Text content */
.text-content {
    max-width: 600px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--highlight-color);
    transition: color 0.6s, border-color 0.6s;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}


p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact {
    margin-top: 2rem;
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--highlight-color);
    transition: opacity var(--transition-time) ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    opacity: 0.8;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .avatar-placeholder, .avatar {
        width: 120px;
        height: 120px;
        font-size: 2.2rem;
    }
    .avatar-message {
        font-size: 1.1rem;
        padding: 0 0.5em;
    }
}

.contact a {
    transition: color 0.6s, border-color 0.6s;
}

.fade-tech {
    opacity: 0;
    transition: opacity 0.4s;
}

.flip-tech {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(.4,2,.6,1);
    transform-origin: 50% 50%;
    will-change: transform;
}
.flip-tech.flipping {
    transform: rotateY(90deg);
}

#tech-flip.flip-tech {
    display: inline-block;
    min-width: 60px;
    max-width: 110px;
    text-align: left;
    vertical-align: bottom;
    white-space: nowrap;
}

.type-cursor {
    display: inline-block;
    width: 1ch;
    animation: blink-cursor 1s steps(1) infinite;
    color: var(--highlight-color);
}

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

.avatar-flip {
    transition: transform 0.5s cubic-bezier(.4,2,.6,1);
    transform-style: preserve-3d;
}
.avatar-flipped {
    transform: rotateY(180deg);
}
.avatar-flip .avatar {
    opacity: 1;
    transition: opacity 0.2s 0.1s;
}
.avatar-flipped .avatar {
    opacity: 0;
    transition: opacity 0.1s;
}
.avatar-message {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--highlight-color);
    background: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
    transform: rotateY(0deg);
    backface-visibility: hidden;
    text-align: center;
    word-break: break-word;
    white-space: pre-line;
}
.avatar-flipped .avatar-message {
    opacity: 1;
    transition: opacity 0.2s 0.2s;
    transform: rotateY(180deg);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.avatar-flipped .avatar:hover {
    box-shadow: none !important;
}

a[href*='linkedin.com'] {
    border-bottom: none !important;
    padding-left: 0.2em;
    vertical-align: middle;
} 