/* Modern Professional Portfolio - Ultra-Clean Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Modern Design System Variables */
:root {
    /* Ultra-Modern Color Palette */
    --primary: #6366f1;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutral Palette */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* Dark Theme Colors */
    --dark-bg: #0f0f23;
    --dark-surface: #1a1a2e;
    --dark-elevated: #16213e;
    --dark-border: rgba(255, 255, 255, 0.06);
    --dark-text: #e2e8f0;
    --dark-text-secondary: #94a3b8;
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-aurora: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(28,100%,74%,1) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, hsla(189,100%,56%,1) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, hsla(355,100%,93%,1) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, hsla(340,100%,76%,1) 0px, transparent 50%),
                     radial-gradient(at 0% 100%, hsla(22,100%,77%,1) 0px, transparent 50%),
                     radial-gradient(at 80% 100%, hsla(242,100%,70%,1) 0px, transparent 50%),
                     radial-gradient(at 0% 0%, hsla(343,100%,76%,1) 0px, transparent 50%);
    
    /* Sophisticated Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.3);
    --shadow-colored: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
    
    /* Modern Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Spacing Scale */
    --spacing-0: 0;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;
    --spacing-32: 8rem;
    
    /* Border Radius Scale */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-4xl: 2rem;
    --radius-full: 9999px;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;
    --text-9xl: 8rem;
    
    /* Z-Index Scale */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-auto: auto;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--dark-text);
    background: var(--dark-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Modern Background with Animated Gradient Mesh */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--dark-bg);
    overflow: hidden;
}

.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    opacity: 0.4;
    animation: meshFloat 20s ease-in-out infinite;
    filter: blur(100px);
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: noiseMove 10s linear infinite;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-8) var(--spacing-4);
    position: relative;
    z-index: 1;
}

/* Ultra-Modern Profile Card */
.profile-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-4xl);
    box-shadow: 
        var(--shadow-2xl),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    position: relative;
    transition: var(--transition-slow);
    animation: cardEntrance 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        var(--shadow-colored),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        var(--shadow-glow);
}

.profile-card:hover::before {
    opacity: 1;
}

/* Card Content Grid */
.card-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    min-height: 500px;
}

/* Profile Image Section */
.profile-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-12);
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(6, 182, 212, 0.05) 50%,
        rgba(245, 158, 11, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.profile-image-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    filter: blur(80px);
    animation: orbitRotate 20s linear infinite;
}

.image-container {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 280px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    transition: var(--transition-slow);
    transform-style: preserve-3d;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: grayscale(20%) contrast(1.1) brightness(1.05);
}

.image-border {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-aurora);
    border-radius: calc(var(--radius-3xl) + 3px);
    z-index: -1;
    opacity: 0.8;
    animation: borderPulse 3s ease-in-out infinite;
}

.floating-indicators {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.indicator {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-400);
    border-radius: 50%;
    animation: floatIndicator 4s ease-in-out infinite;
}

.indicator:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.indicator:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.indicator:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 2s;
}

.indicator:nth-child(4) {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

/* Content Section */
.profile-content {
    padding: var(--spacing-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: rgba(15, 15, 35, 0.6);
}

/* Typography & Text Elements */
.greeting {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--primary-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-2);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.name {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-4);
    background: linear-gradient(135deg, 
        var(--white) 0%, 
        var(--primary-300) 30%, 
        var(--secondary) 70%, 
        var(--accent) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease-in-out infinite, fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.title {
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--dark-text-secondary);
    margin-bottom: var(--spacing-6);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.bio {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: var(--spacing-8);
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.highlight-text {
    position: relative;
    font-weight: 600;
    color: var(--primary-300);
}

/* Modern Social Links */
.social-section {
    margin-bottom: var(--spacing-8);
}

.social-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--dark-text-secondary);
    margin-bottom: var(--spacing-4);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.1s forwards;
}

.social-links {
    display: flex;
    gap: var(--spacing-3);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.3s forwards;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: var(--dark-text);
    font-size: var(--text-lg);
    text-decoration: none;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: var(--white);
}

/* CTA Button */
.cta-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.5s forwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-8);
    background: var(--gradient-primary);
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-2xl);
    border: none;
    cursor: pointer;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: var(--transition-normal);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-colored), var(--shadow-glow);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-icon {
    transition: var(--transition-normal);
}

.cta-button:hover .cta-icon {
    transform: translateX(4px);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: var(--spacing-8);
    right: var(--spacing-8);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: var(--dark-text);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: var(--transition-spring);
    backdrop-filter: blur(10px);
    z-index: var(--z-50);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes noiseMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-20px, -20px); }
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatIndicator {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .card-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .profile-image-section {
        padding: var(--spacing-8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .image-container {
        width: 220px;
        height: 220px;
    }
    
    .profile-content {
        padding: var(--spacing-8);
        text-align: center;
    }
    
    .name {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: var(--spacing-4) var(--spacing-3);
    }
    
    .profile-card {
        border-radius: var(--radius-3xl);
    }
    
    .profile-image-section,
    .profile-content {
        padding: var(--spacing-6);
    }
    
    .image-container {
        width: 180px;
        height: 180px;
    }
    
    .name {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        margin-bottom: var(--spacing-3);
    }
    
    .bio {
        font-size: var(--text-base);
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: var(--text-base);
    }
    
    .cta-button {
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--text-base);
    }
    
    .theme-toggle {
        top: var(--spacing-4);
        right: var(--spacing-4);
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .profile-image-section,
    .profile-content {
        padding: var(--spacing-4);
    }
    
    .image-container {
        width: 160px;
        height: 160px;
    }
    
    .social-links {
        gap: var(--spacing-2);
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: var(--text-sm);
    }
}

/* Light Theme Styles */
.light-theme {
    --dark-bg: #ffffff;
    --dark-surface: #f8fafc;
    --dark-elevated: #f1f5f9;
    --dark-border: rgba(0, 0, 0, 0.06);
    --dark-text: #1f2937;
    --dark-text-secondary: #6b7280;
}

.light-theme .background-container {
    background: var(--white);
}

.light-theme .gradient-mesh {
    opacity: 0.2;
}

.light-theme .profile-card {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

.light-theme .profile-content {
    background: rgba(255, 255, 255, 0.6);
}

.light-theme .social-link {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--gray-700);
}

/* Performance & Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    .profile-card {
        border: 2px solid var(--dark-text);
    }
    
    .social-link,
    .cta-button {
        border: 2px solid currentColor;
    }
}

/* Selection Styling */
::selection {
    background: var(--primary-500);
    color: var(--white);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-400);
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary-400);
    outline-offset: 2px;
}