:root {
    --primary-color: #c4a484;
    --secondary-color: #a67c52;
    --accent-color: #d4b896;
    --warm-cream: #faf7f2;
    --cream-light: #f5f1eb;
    --cream-medium: #ede4d6;
    --warm-beige: #e6d7c7;
    --soft-brown: #b8956f;
    --text-primary: #5d4e37;
    --text-secondary: #8b7355;
    --text-muted: #a67c52;
    --bg-primary: #faf7f2;
    --bg-secondary: #f5f1eb;
    --shadow: 0 10px 25px rgba(93, 78, 55, 0.08);
    --shadow-hover: 0 20px 40px rgba(93, 78, 55, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --electric-blue: #4a9eff;
    --electric-cyan: #00d4ff;
    --electric-white: #ffffff;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--warm-beige) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
}

/* Hide default cursor on interactive elements */
body, a, button, input, textarea, select, [role="button"] {
    cursor: none;
}

/* Custom Cursor - Minimalist Particle Style */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid #c4a484;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: none;
    background: transparent;
    opacity: 1;
    top: 0;
    left: 0;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #a67c52;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

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

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.main-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.hero-section {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.profile-container {
    margin-bottom: 1.5rem;
}

.profile-image {
    margin-bottom: 0.75rem;
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.profile-photo-container {
    position: relative;
    width: 130px;
    height: 130px;
    animation: float 6s ease-in-out infinite;
    border-radius: 50%;
    overflow: hidden;
}

/* Outer rotating gradient ring */
.profile-photo-container::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    z-index: -2;
    animation: rotate 15s linear infinite;
    opacity: 0.4;
}

/* Inner subtle glow */
.profile-photo-container::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(196, 164, 132, 0.1) 70%, transparent 100%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 120% 30%; /* Fine-tuned positioning to perfectly center the face */
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.1);
}

.name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--secondary-color), var(--soft-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite alternate;
}

.title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(196, 164, 132, 0.4);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 164, 132, 0.4), transparent);
    transition: left 0.5s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.social-link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.social-link:hover[data-tooltip]::after {
    opacity: 1;
    bottom: -40px;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .profile-container {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #000;
        --text-primary: #000;
    }
    
    .social-link {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .profile-placeholder::before {
        animation: none;
    }
}
