* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --card-bg: #1a1a1a;
    --header-bg: #000000;
    --border-color: #262626;
    --modal-bg: #1a1a1a;
    --sidebar-bg: #000000;
    --sidebar-hover: #262626;
    --accent-color: white;
    --sidebar-bg-rgb: 0, 0, 0;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #262626;
    --card-bg: #fafafa;
    --header-bg: #ffffff;
    --border-color: #dbdbdb;
    --modal-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f5f5f5;
    --accent-color: #833AB4;
    --sidebar-bg-rgb: 255, 255, 255;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
}

.header {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.header>div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header a {
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header a:hover {
    background-color: var(--sidebar-hover);
    color: var(--accent-color);
    transform: translateX(5px);
}

.header a.active {
    background-color: var(--sidebar-hover);
    color: var(--accent-color);
}

.main {
    margin-left: 250px;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.intro-section {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 34, 37, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 3rem;
    margin: 0 auto;
    gap: 2rem;
    flex-direction: row;
}

.greeting-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.flag-icon {
    width: 40px;
    height: 25px;
    border-radius: 4px;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.greeting {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    padding-right: 0.5rem;
    border-right: 3px solid;
    transition: color 0.5s ease;
    white-space: nowrap;
}

@keyframes cursor-blink {
    50% {
        border-right-color: transparent;
    }
}

.main .Baslik {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.about-section {
    max-width: 1200px;
    margin: 2rem auto;
    background: rgba(32, 34, 37, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
}

.about-section h2 {
    color: #FFF;
    font-size: 2em;
    margin-bottom: 20px;
}

.main .social_buttons a {
    text-decoration: none;
    color: white;
    background-color: rgba(223, 223, 223, 0.1);
    padding: 15px 20px;
    border-radius: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.social_buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.social_buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: rgba(32, 34, 37, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.social_buttons a:hover {
    transform: translateY(-3px);
}

.main .social_buttons a#github:hover {
    background-color: #333;
    color: white;
    transition: background-color 0.3s, color 0.3s;
}

.main .social_buttons a#linkedin:hover {
    background-color: #5865f2;
    color: white;
    transition: background-color 0.3s, color 0.3s;
}

.section {
    position: absolute;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section.prev {
    transform: translateY(-100%);
}

.header a.active {
    background-color: #7289da;
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(32, 34, 37, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-icon {
    font-size: 2.5rem;
    color: #7289da;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.project-info p {
    color: #dcddde;
    font-size: 0.9rem;
}

.project-info a {
    color: #7289da;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.project-info a:hover {
    color: #5865f2;
    transition: color 0.3s ease;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.skill-card {
    background: rgba(32, 34, 37, 0.8);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #7289da;
}

.skill-name {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #7289da, #5865f2);
    transition: width 1.5s ease;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(32, 34, 37, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.about-content {
    padding: 2rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #7289da;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #dcddde;
}

.tech-stack {
    margin-top: 2rem;
}

.tech-stack h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.tech-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 2.5rem;
}

.tech-icons i {
    color: #7289da;
    transition: transform 0.3s ease;
}

.tech-icons i:hover {
    transform: translateY(-5px);
}

.contact-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    width: 170%;
    margin: auto;
    margin-right: 350px;
}

.contact-info {
    background: rgba(32, 34, 37, 0.8);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    color: #7289da;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #dcddde;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: #7289da;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #7289da;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-button.github:hover {
    background: #333;
    transform: translateY(-5px);
}

.social-button.instagram:hover {
    background: #E4405F;
    transform: translateY(-5px);
}

.social-button.linkedin:hover {
    background: #0A66C2;
    transform: translateY(-5px);
}

.contact-form {
    background: rgba(32, 34, 37, 0.8);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(47, 49, 54, 0.9);
    border: 1px solid rgba(114, 137, 218, 0.3);
    border-radius: 8px;
    color: #dcddde;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7289da;
}

.submit-btn {
    background: #7289da;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #5b6eae;
    transform: translateY(-2px);
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #36393f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 100px;
    height: 100px;
    background: url('loading.gif') center center no-repeat;
    background-size: contain;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .header {
        position: fixed;
        left: 0;
        top: 15px;
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0;
        background-color: rgba(var(--sidebar-bg-rgb), 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        border-bottom: 1px solid var(--border-color);
    }

    .header .logo {
        padding: 0.8rem 1.2rem;
        font-size: 1.2rem;
        font-weight: 600;
        margin: 15px auto 0;
    }

    .header .logo i {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }

    .header .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        padding: 0.5rem;
        background-color: rgba(var(--sidebar-bg-rgb), 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
    }

    .header .nav-links a {
        padding: 0.6rem;
        font-size: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        flex: 1;
        margin: 0 0.25rem;
    }

    .header .nav-links a i {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    .header .nav-links a.active {
        background: linear-gradient(45deg, #833AB4, #E1306C);
        color: white;
        transform: translateY(-2px);
    }

    .header .nav-links a i {
        font-size: 1.2rem;
    }

    .main {
        margin-left: 0;
        margin-top: 60px;
        margin-bottom: 75px;
        height: calc(100vh - 135px);
        overflow-x: hidden;
    }

    .section {
        transform: translateX(100%);
    }

    .section.active {
        transform: translateX(0);
    }

    .section.prev {
        transform: translateX(-100%);
    }

    .page-indicator {
        position: fixed;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 8px;
        z-index: 1001;
        padding: 12px 8px;
        background-color: rgba(var(--sidebar-bg-rgb), 0.5);
        backdrop-filter: blur(8px);
        border-radius: 30px;
    }

    .page-indicator .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--text-color);
        opacity: 0.3;
        transition: all 0.3s ease;
    }

    .page-indicator .dot.active {
        opacity: 1;
        height: 24px;
        border-radius: 10px;
        background: linear-gradient(180deg, #833AB4, #E1306C);
    }

    .theme-switcher {
        position: fixed;
        margin-top: 60px;
        left: 15px;
        z-index: 1001;
    }

    #theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background-color: rgba(var(--sidebar-bg-rgb), 0.5);
        backdrop-filter: blur(8px);
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-top: 150px;
    }
}

.social-links-about {
    margin-top: 2rem;
}

.social-links-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.social-links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(32, 34, 37, 0.8);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.5rem;
}

.social-link.github:hover {
    background: #333;
    transform: translateX(10px);
}

.social-link.linkedin:hover {
    background: #0A66C2;
    transform: translateX(10px);
}

.social-link.instagram:hover {
    background: #E4405F;
    transform: translateX(10px);
}

.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

#theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    transform: scale(1.1);
    background-color: var(--sidebar-hover);
    color: var(--accent-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--modal-bg);
    width: 95%;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h2::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #833AB4, #E1306C);
    border-radius: 6px;
}

.close {
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: var(--sidebar-hover);
}

.close:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow: hidden;
    background: var(--bg-color);
}

.modal-title-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-details {
    height: calc(100vh - 200px);
    max-height: calc(100vh - 200px);
    overflow: hidden;
}

.modal-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    padding: 16px;
    background: var(--bg-color);
}

.demo-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.demo-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.demo-header {
    background: var(--card-bg);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-title {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-title::before {
    content: '🚀';
    font-size: 1.2rem;
}

.demo-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.demo-button {
    background: var(--sidebar-hover);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.demo-button:hover {
    background: linear-gradient(45deg, #833AB4, #E1306C);
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(131, 58, 180, 0.2);
}

.demo-button[data-type="demo"] {
    background: linear-gradient(45deg, #833AB4, #E1306C);
    color: white;
    border-color: transparent;
    font-weight: 600;
}

.demo-button[data-type="demo"]:hover {
    background: linear-gradient(45deg, #E1306C, #833AB4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(131, 58, 180, 0.3);
}

.demo-content {
    flex: 1;
    position: relative;
    background: var(--card-bg);
    overflow: hidden;
}

#demoPreview {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
}

.demo-loading,
.demo-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-color);
    font-size: 1rem;
    height: 100%;
    text-align: center;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 8px;
}

.demo-loading i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #833AB4, #E1306C);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s ease-in-out infinite;
}

.demo-error i {
    font-size: 2.5rem;
    color: #E1306C;
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.readme-section {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.readme-container {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.readme-header {
    background: #1e1e1e;
    padding: 12px 16px;
    height: 38px;
    display: flex;
    align-items: center;
    position: relative;
}

.editor-controls {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.control:hover {
    transform: scale(1.1);
}

.control::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.control.red {
    background: #FF5F56;
}

.control.yellow {
    background: #FFBD2E;
}

.control.green {
    background: #27C93F;
}

.control.red::after {
    background: #FF3B30;
}

.control.yellow::after {
    background: #FFB700;
}

.control.green::after {
    background: #17BF2E;
}

.control:hover::after {
    opacity: 1;
}

.file-name {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.readme-content {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    max-height: calc(100% - 38px);
    padding: 20px;
    word-wrap: break-word;
    background: var(--bg-color);
}

.readme-content pre {
    background: var(--sidebar-hover);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.readme-content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}