/* Hero Animations */
.title-line {
    display: block;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes gentlePulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    }
}

/* Image Container Animations */
.image-container {
    width: 380px;
    height: 380px;
    position: relative;
    border-radius: 50%;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentlePulse 4s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(34, 224, 255, 0.15) 45%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    background: var(--surface-strong);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text);
    border: 2px solid var(--border-strong);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 20;
}

.floating-icon:hover {
    transform: scale(1.1);
    background: var(--surface-strong);
    border-color: var(--violet);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.floating-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.floating-icon:hover::after {
    opacity: 1;
}

.icon-1 {
    top: 30px;
    left: 30px;
    animation: orbit 12s linear infinite;
    animation-delay: 0s;
}

.icon-2 {
    top: 30px;
    right: 30px;
    animation: orbit 12s linear infinite;
    animation-delay: 2s;
}

.icon-3 {
    bottom: 30px;
    left: 30px;
    animation: orbit 12s linear infinite;
    animation-delay: 4s;
}

.icon-4 {
    bottom: 30px;
    right: 30px;
    animation: orbit 12s linear infinite;
    animation-delay: 6s;
}

.icon-5 {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    animation: orbit 12s linear infinite;
    animation-delay: 1s;
}

.icon-6 {
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    animation: orbit 12s linear infinite;
    animation-delay: 3s;
}

/* Floating Profile Image */
.floating-profile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 3px solid var(--border-strong);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: heartbeat 4s ease-in-out infinite;
}

.profile-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--gradient-full);
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.floating-profile:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: var(--surface-strong);
    border-color: var(--violet);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.profile-floating-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.4s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.floating-profile:hover .profile-floating-image {
    transform: scale(1.1);
}

@keyframes heartbeat {
    0% { transform: translate(-50%, -50%) scale(1); }
    14% { transform: translate(-50%, -50%) scale(1.1); }
    28% { transform: translate(-50%, -50%) scale(1); }
    42% { transform: translate(-50%, -50%) scale(1.1); }
    70% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeIn 0.8s ease 2s forwards;
}

.scroll-text {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-line {
    width: 2px;
    height: 20px;
    background: var(--text-dim);
    border-radius: 1px;
    animation: scrollLine 2s infinite;
}

.arrow-head {
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: rotate(45deg);
    animation: scrollHead 2s infinite;
}

@keyframes scrollLine {
    0%, 100% { height: 20px; opacity: 0.8; }
    50% { height: 30px; opacity: 1; }
}

@keyframes scrollHead {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(-45deg) translateY(0); }
    40% { transform: rotate(-45deg) translateY(-10px); }
    60% { transform: rotate(-45deg) translateY(-5px); }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineExpand {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Profile Image Animations */
.profile-image-container {
    position: relative;
    width: 250px;
    height: 250px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    animation: float 3s ease-in-out infinite;
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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