/**
 * BioLink - Modern Lüks Tasarım
 * Mobil öncelikli, glassmorphism, animasyonlar
 */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Renkler - Premium Mor-Pembe Paleti */
    --bg-darkest: #0C0950;
    --bg-dark: #161179;
    --bg-medium: #261FB3;
    --bg-light: #FBE4D6;
    --text-primary: #FBE4D6;
    --text-secondary: rgba(251, 228, 214, 0.85);
    --text-muted: rgba(251, 228, 214, 0.6);
    
    /* Gradient kombinasyonlar */
    --gradient-primary: linear-gradient(135deg, #0C0950 0%, #261FB3 100%);
    --gradient-accent: linear-gradient(135deg, #261FB3 0%, #FBE4D6 100%);
    --gradient-bg: linear-gradient(180deg, #0C0950 0%, #161179 50%, #261FB3 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(251, 228, 214, 0.08);
    --glass-border: rgba(251, 228, 214, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(12, 9, 80, 0.4);
    
    /* Spacing - Minimal */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius - Modern */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ana Sayfa Custom Scrollbar */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(251, 228, 214, 0.3), rgba(38, 31, 179, 0.4));
    border-radius: 10px;
    transition: all 0.3s;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(251, 228, 214, 0.5), rgba(38, 31, 179, 0.6));
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 228, 214, 0.3) var(--bg-darkest);
}

/* ============================================
   BACKGROUND GRADIENT & NOISE
   ============================================ */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(
            180deg,
            #0C0950 0%,
            #0e0a5d 15%,
            #100c6a 30%,
            #161179 45%,
            #1a1585 60%,
            #261FB3 75%,
            #1e1899 85%,
            #161179 95%,
            #0C0950 100%
        );
    background-size: 100% 400%;
    animation: gradientFlow 30s ease-in-out infinite;
}

.background-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(251, 228, 214, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(38, 31, 179, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(251, 228, 214, 0.06) 0%, transparent 60%);
    animation: floatCircles 25s ease-in-out infinite;
    mix-blend-mode: overlay;
}

.background-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.5;
    mix-blend-mode: overlay;
}

.background-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}

@keyframes gradientFlow {
    0%, 100% { 
        background-position: 0% 0%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 0% 100%;
        filter: hue-rotate(5deg);
    }
}

@keyframes floatCircles {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% { 
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.8;
    }
    66% { 
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.9;
    }
}


/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 580px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.profile-section {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeUp 0.6s ease-out;
}

/* Profil adı gizli - sadece SEO ve accessibility için */
.profile-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.avatar-wrapper {
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-light);
    box-shadow: 0 8px 24px rgba(251, 228, 214, 0.3), 0 0 40px rgba(38, 31, 179, 0.4);
    transition: all var(--transition-normal);
    animation: floatAvatar 6s ease-in-out infinite;
}

.avatar:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 12px 32px rgba(251, 228, 214, 0.5), 0 0 60px rgba(38, 31, 179, 0.6);
    animation-play-state: paused;
}

@keyframes floatAvatar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.profile-bio {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 228, 214, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(251, 228, 214, 0.25);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    text-decoration: none;
    font-size: 1.15rem;
    position: relative;
    animation: floatIcon 4s ease-in-out infinite;
}

.social-icon:nth-child(1) { animation-delay: 0s; }
.social-icon:nth-child(2) { animation-delay: 0.5s; }
.social-icon:nth-child(3) { animation-delay: 1s; }
.social-icon:nth-child(4) { animation-delay: 1.5s; }

.social-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--bg-light), var(--bg-medium));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--bg-light);
    border-color: var(--bg-light);
    color: var(--bg-darkest);
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 8px 24px rgba(251, 228, 214, 0.4);
    animation-play-state: paused;
}

.social-icon:hover::before {
    opacity: 1;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   LINKS SECTION
   ============================================ */
.links-section {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    animation: fadeUp 0.6s ease-out 0.15s both;
}

.link-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 1.125rem 1.5rem;
    background: rgba(251, 228, 214, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(251, 228, 214, 0.2);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 60px;
    box-shadow: 0 4px 16px rgba(12, 9, 80, 0.3);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-light), var(--bg-medium));
    opacity: 0;
    transition: all var(--transition-normal);
}

.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 228, 214, 0.1), transparent);
    transition: left 0.6s ease;
}

.link-card:hover::before {
    opacity: 1;
    width: 6px;
}

.link-card:hover::after {
    left: 100%;
}

.link-card:hover {
    transform: translateX(8px);
    border-color: rgba(251, 228, 214, 0.4);
    box-shadow: 0 8px 32px rgba(38, 31, 179, 0.5), 0 0 40px rgba(251, 228, 214, 0.2);
    background: rgba(251, 228, 214, 0.15);
}

.link-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
    color: var(--bg-light);
    filter: drop-shadow(0 2px 4px rgba(38, 31, 179, 0.4));
}

.link-title {
    flex: 1;
    font-size: 0.975rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.link-arrow {
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
    color: var(--bg-light);
}

/* ============================================
   CONTACT BUTTON
   ============================================ */
.contact-section {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.btn-contact {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(251, 228, 214, 0.9) 100%);
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--bg-darkest);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 6px 24px rgba(251, 228, 214, 0.35), 0 0 40px rgba(251, 228, 214, 0.2);
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-contact:hover::before {
    width: 300px;
    height: 300px;
}

.btn-contact:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(251, 228, 214, 0.5), 0 0 60px rgba(251, 228, 214, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-contact:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-contact i,
.btn-contact span {
    position: relative;
    z-index: 1;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    animation: fadeIn var(--transition-normal);
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.modal-content {
    position: relative;
    background: rgba(12, 9, 80, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(251, 228, 214, 0.15);
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(251, 228, 214, 0.1) inset,
        0 0 100px rgba(38, 31, 179, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid rgba(251, 228, 214, 0.08);
    background: linear-gradient(180deg, rgba(251, 228, 214, 0.03) 0%, transparent 100%);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--bg-light);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.modal-close {
    background: rgba(251, 228, 214, 0.05);
    border: 1px solid rgba(251, 228, 214, 0.1);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    color: var(--bg-light);
    background: rgba(251, 228, 214, 0.15);
    border-color: rgba(251, 228, 214, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* Custom Scrollbar - Minimal & Şık */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(251, 228, 214, 0.03);
    border-radius: 10px;
    margin: 8px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(251, 228, 214, 0.3), rgba(251, 228, 214, 0.15));
    border-radius: 10px;
    transition: all 0.3s;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(251, 228, 214, 0.5), rgba(251, 228, 214, 0.3));
}

/* Firefox Scrollbar */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 228, 214, 0.3) rgba(251, 228, 214, 0.03);
}

/* ============================================
   FORM
   ============================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 1.125rem;
}

.form-row .form-group {
    margin-bottom: 1.125rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(251, 228, 214, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8125rem 1rem;
    background: rgba(251, 228, 214, 0.05);
    border: 1px solid rgba(251, 228, 214, 0.12);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: rgba(251, 228, 214, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(251, 228, 214, 0.4);
    background: rgba(251, 228, 214, 0.08);
    box-shadow: 0 0 0 3px rgba(251, 228, 214, 0.08);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23FBE4D6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #0C0950;
    color: #FBE4D6;
    padding: 0.75rem;
    font-size: 0.9375rem;
}

.form-group select option:hover,
.form-group select option:checked,
.form-group select option:focus {
    background: #261FB3;
    color: #FBE4D6;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-group textarea::-webkit-scrollbar {
    width: 6px;
}

.form-group textarea::-webkit-scrollbar-track {
    background: rgba(251, 228, 214, 0.03);
    border-radius: 10px;
}

.form-group textarea::-webkit-scrollbar-thumb {
    background: rgba(251, 228, 214, 0.2);
    border-radius: 10px;
}

.form-group textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 228, 214, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 1.0625rem;
    background: linear-gradient(135deg, rgba(251, 228, 214, 1) 0%, rgba(251, 228, 214, 0.95) 100%);
    border: none;
    border-radius: 14px;
    color: var(--bg-darkest);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    letter-spacing: 0.05em;
    position: relative;
    margin-top: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(251, 228, 214, 0.25);
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-submit:hover:not(:disabled)::before {
    left: 100%;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(251, 228, 214, 0.4);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-result {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-result.success {
    background: rgba(76, 175, 80, 0.15);
    color: #a5d6a7;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-result.error {
    background: rgba(244, 67, 54, 0.15);
    color: #ef9a9a;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.8s ease-out both;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .profile-bio {
        font-size: 1.0625rem;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .link-card {
        padding: 1.125rem 1.5rem;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 600px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .modal-content {
        animation: none;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--bg-light);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

