/* =========================================
   Basics Theme - Minimalist & Clean
   ========================================= */

:root {
    /* Colors - Light Mode */
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-secondary: #666666;
    --border-color: #eeeeee;
    --hover-bg: #f5f5f5;

    /* Spacing */
    --container-width: 640px;
    --spacing-unit: 24px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Components */
    --avatar-border: #f5f5f5;
}

[data-theme="dark"] {
    /* Colors - Dark Mode */
    --bg-color: #111111;
    --text-main: #ffffff;
    --text-secondary: #888888;
    --border-color: #222222;
    --hover-bg: #1a1a1a;
    --avatar-border: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    margin-bottom: 60px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    background-color: var(--hover-bg);
    border: 2px solid var(--avatar-border);
    display: block;
    background-clip: padding-box;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.02);
}

.header-text h1 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.header-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
}

/* Navigation Tabs */
.tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--text-main);
    font-weight: 600;
}

/* Content Area */
.content {
    flex: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* List Items (Projects, Services, Contact) */
.list-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.list-item:hover:not(.static) {
    opacity: 0.7;
}

.list-item:last-child {
    border-bottom: none;
}

.item-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.item-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--hover-bg);
    padding: 4px 8px;
    border-radius: 4px;
}

.price-tag {
    font-size: 0.8rem;
    color: var(--text-main);
    background: var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.arrow {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.list-item:hover .arrow {
    transform: rotate(0deg);
    color: var(--text-main);
}

/* Text Content (About) */
.text-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.stack-list h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    font-size: 0.9rem;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.theme-toggle-text {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    color: var(--text-secondary);
}

.theme-toggle-text span {
    opacity: 0.5;
}

[data-theme="light"] .light-text {
    opacity: 1;
    font-weight: 600;
}

[data-theme="dark"] .dark-text {
    opacity: 1;
    font-weight: 600;
}

/* Language Toggle States */
:lang(tr) .tr-text {
    opacity: 1;
    font-weight: 600;
}

:lang(tr) .en-text {
    opacity: 0.5;
    font-weight: 400;
}

:lang(en) .en-text {
    opacity: 1;
    font-weight: 600;
}

:lang(en) .tr-text {
    opacity: 0.5;
    font-weight: 400;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-color);
    margin: auto;
    padding: 32px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 12px 24px;

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* List Items (Projects, Services, Contact) */
.list-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.list-item:hover:not(.static) {
    opacity: 0.7;
}

.list-item:last-child {
    border-bottom: none;
}

.item-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.item-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--hover-bg);
    padding: 4px 8px;
    border-radius: 4px;
}

.price-tag {
    font-size: 0.8rem;
    color: var(--text-main);
    background: var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.arrow {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.list-item:hover .arrow {
    transform: rotate(0deg);
    color: var(--text-main);
}

/* Text Content (About) */
.text-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.stack-list h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    font-size: 0.9rem;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.theme-toggle-text {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    color: var(--text-secondary);
}

.theme-toggle-text span {
    opacity: 0.5;
}

[data-theme="light"] .light-text {
    opacity: 1;
    font-weight: 600;
}

[data-theme="dark"] .dark-text {
    opacity: 1;
    font-weight: 600;
}

/* Language Toggle States */
:lang(tr) .tr-text {
    opacity: 1;
    font-weight: 600;
}

:lang(tr) .en-text {
    opacity: 0.5;
    font-weight: 400;
}

z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px);
align-items: center;
justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-color);
    margin: auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 550px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-main);
}

#modal-service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-main);
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.form-group.half {
    flex: 1;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background-color: var(--text-main);
    color: var(--bg-color);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.2s ease;
    margin-top: 10px;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Mobile */
@media (max-width: 600px) {
    .container {
        padding: 40px 20px;
    }

    .profile-header {
        gap: 16px;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .item-meta {
        width: 100%;
        justify-content: space-between;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-content {
        padding: 24px;
        width: 95%;
    }
}