:root {
    color-scheme: dark;

    /* Colors */
    --bg-main: #000000;
    --text-title: #ffffff;
    --text-body: #a1a1aa; /* Soft slate/grey for premium readability */
    --text-muted: #52525b;
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-main);
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    overflow-x: hidden;
    position: relative;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: contentEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Minimal Language Switcher */
.lang-switcher {
    position: absolute;
    top: -2.5rem;
    right: 0;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-title);
}

.lang-btn.active {
    color: var(--text-title);
    font-weight: 700;
}

/* Two-Column Layout directly on black background */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 6rem;
    align-items: start;
    width: 100%;
}

/* Left Column: Profile, Name, Social Links */
.left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 4rem;
}

.profile-section {
    width: 260px;
    height: 260px;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-photo:hover {
    transform: scale(1.02);
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-title);
    letter-spacing: -0.02em;
}

/* Right Column: Bio Paragraphs */
.right-column {
    display: flex;
    flex-direction: column;
}

.bio-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.2rem;
    color: var(--text-body);
    font-weight: 400;
    text-align: left;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* Mockup Bold styling - brilliant white */
.bio-text strong {
    color: var(--text-title);
    font-weight: 600;
}

/* Ensure links maintain text appearance */
.bio-text a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}


/* Language Switcher Transitions */
.bio-text {
    display: none;
}

.bio-text.active {
    display: block;
    animation: textFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Page Entrance Animation */
@keyframes contentEntry {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Grid Configuration */
@media (max-width: 860px) {
    body {
        padding: 3rem 1.5rem;
    }
    
    .container {
        gap: 2rem;
    }
    
    .lang-switcher {
        position: relative;
        top: 0;
        align-self: center;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .left-column {
        position: relative;
        top: 0;
    }
    
    .profile-section {
        width: 200px;
        height: 200px;
        margin-bottom: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .bio-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.8rem;
    }
}

/* Accessibility - Reduced Motion settings */
@media (prefers-reduced-motion: reduce) {
    .container {
        animation: none;
    }
    .bio-text.active {
        animation: none;
    }
    .profile-photo:hover {
        transform: none;
    }
}

/* Social Links Layout under Profile Name */
.social-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-title);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-flex;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-links svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
}

/* Contact Dialog Modal Styles */
dialog#contact-dialog {
    background: #080808;
    color: var(--text-title);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 460px;
    width: calc(100% - 2rem); /* 1rem margin on left and right on mobile */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    position: fixed;
    inset: 0;
    margin: auto;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), display 0.4s allow-discrete;
}

dialog#contact-dialog[open] {
    opacity: 1;
    transform: scale(1);
}

@starting-style {
    dialog#contact-dialog[open] {
        opacity: 0;
        transform: scale(0.95);
    }
}


dialog#contact-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease, display 0.4s allow-discrete;
}

dialog#contact-dialog[open]::backdrop {
    opacity: 1;
}

@starting-style {
    dialog#contact-dialog[open]::backdrop {
        opacity: 0;
    }
}

/* Close Button styling */
.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px;
    display: inline-flex;
}

.close-btn:hover {
    color: var(--text-title);
}

.dialog-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, background-color 0.3s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
}

textarea.form-input {
    resize: none;
    min-height: 110px;
}

/* Submit & General Buttons */
.submit-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    background: #e2e8f0;
}

.submit-btn:disabled {
    background: #27272a;
    color: #71717a;
    cursor: not-allowed;
}

/* Success Message Container styling */
#success-container {
    text-align: center;
    padding: 1rem 0;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: #ffffff;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.success-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 2rem;
}

/* Show/hide form contents based on document language */
html[lang="tr"] .lang-en-field {
    display: none !important;
}

html[lang="en"] .lang-tr-field {
    display: none !important;
}

/* Redefining course touch targets */
@media (pointer: coarse) {
    .close-btn, .lang-btn, .social-links a {
        min-width: 44px;
        min-height: 44px;
    }
}

