a,
body,
div,
h1,
h2,
html,
iframe,
li,
p,
span,
ul {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

:root {
  --bg-primary: #002136;
  --bg-secondary: #00385c;
  --text-primary: #333;
  --text-secondary: #999;
  --card-bg: #fff;
  --card-border: #ccc;
  --link-color: #0872b4;
  --button-bg: #fff;
  --button-text: #333;
  --button-border: #ccc;
}

[data-theme="dark"] {
  --bg-primary: #002136;
  --bg-secondary: #00385c;
  --text-primary: #fff;
  --text-secondary: #ccc;
  --card-bg: #1a1a1a;
  --card-border: #333;
  --link-color: #4ba3e3;
  --button-bg: #333;
  --button-text: #fff;
  --button-border: #666;
}

[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #e0e0e0;
  --text-primary: #333;
  --text-secondary: #666;
  --card-bg: #fff;
  --card-border: #ddd;
  --link-color: #0872b4;
  --button-bg: #fff;
  --button-text: #333;
  --button-border: #ccc;
}

body {
  font-family: hero-new, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primary) 30%, var(--bg-secondary) 100%) fixed;
  background-color: var(--bg-primary);
}

ul {
  list-style: none;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

.inline {
  display: inline;
}

* {
  -webkit-transition: background-color 0.15s ease-out,
    color 0.15s ease-out, border-color 0.15s ease-out, fill 0.15s ease-out,
    -webkit-box-shadow 0.15s ease-out;
  transition: background-color 0.15s ease-out, color 0.15s ease-out,
    border-color 0.15s ease-out, fill 0.15s ease-out,
    -webkit-box-shadow 0.15s ease-out;
  transition: background-color 0.15s ease-out, color 0.15s ease-out,
    border-color 0.15s ease-out, fill 0.15s ease-out,
    box-shadow 0.15s ease-out;
  transition: background-color 0.15s ease-out, color 0.15s ease-out,
    border-color 0.15s ease-out, fill 0.15s ease-out,
    box-shadow 0.15s ease-out, -webkit-box-shadow 0.15s ease-out;
}

ul.inline {
  display: inline-block;
}

ul.inline > li {
  display: inline-block;
  vertical-align: baseline;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 10px;
}

.text.ellipsis {
  vertical-align: bottom;
  white-space: nowrap;
  overflow-x: hidden;
  max-width: 100%;
  display: inline-block;
  text-overflow: ellipsis;
}

.button {
  display: inline-block;
  text-align: center;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  cursor: pointer;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 14px;
  line-height: 28px;
  padding: 0 15px;
  background-color: var(--button-bg);
  border: 1px solid var(--button-border);
  color: var(--button-text);
}

.button:focus {
  outline-color: rgba(8, 114, 180, 0.4);
}

a.button {
  text-decoration: none !important;
}

.button.xlarge {
  font-size: 18px;
  line-height: 48px;
  padding: 0 30px;
}

.button.dark {
  color: #fff;
  -webkit-box-shadow: 0 0 0 1px hsla(0, 0%, 100%, 0.1);
  box-shadow: 0 0 0 1px hsla(0, 0%, 100%, 0.1);
}

.button.dark.primary {
  background-color: #0872b4;
  border-color: #0872b4;
}

main {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.profile.profile_view-scope-1Shwh {
  font-family: Tahoma, Helvetica, Verdana, sans-serif;
  line-height: 1.5;
  padding: 10px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  min-width: 320px;
  position: relative;
}

.profile.profile_view-scope-1Shwh .profile-content {
  color: #333;
  z-index: 1;
}

.profile.profile_view-scope-1Shwh .profile-content,
.profile.profile_view-scope-1Shwh .profile-content .body,
.profile.profile_view-scope-1Shwh .profile-content .head {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.profile.profile_view-scope-1Shwh .profile-content .body {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.profile.profile_view-scope-1Shwh .profile-content .body > * {
  width: 100%;
}

.profile.profile_view-scope-1Shwh .profile-content .body-content {
  padding: 30px 0 40px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.profile.profile_view-scope-1Shwh .profile-content .inset {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 20px;
  max-width: 440px;
  width: 100%;
}

.profile.profile_view-scope-1Shwh
  .profile-content
  section
  + section:not(:empty) {
  margin-top: 30px;
}

.profile.profile_view-scope-1Shwh
  .profile-content
  .name-headline
  section
  + section:not(:empty) {
  margin-top: 5px;
}

.profile.profile_view-scope-1Shwh .profile-content .image {
  background-color: #eee;
}

.profile.profile_view-scope-1Shwh .profile-content .name {
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.profile.profile_view-scope-1Shwh .profile-content .headline {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
}

.profile.profile_view-scope-1Shwh .profile-content .headline .role {
  display: inline-block;
  text-transform: capitalize;
}

.profile.profile_view-scope-1Shwh .profile-content .spotlight .button {
  min-width: 100%;
  -webkit-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}

.profile.profile_view-scope-1Shwh
  .profile-content
  .spotlight
  .button.dark {
  color: #fff;
  -webkit-box-shadow: inset 0 0 0 100px hsla(0, 0%, 100%, 0);
  box-shadow: inset 0 0 0 100px hsla(0, 0%, 100%, 0);
}

.profile.profile_view-scope-1Shwh
  .profile-content
  .spotlight
  .button
  .text.ellipsis {
  max-width: 244px;
}

.profile.profile_view-scope-1Shwh
  .profile-content
  .spotlight
  .button:before {
  font-size: 24px;
  width: 24px;
  margin-right: 10px;
  top: 2px;
  margin-left: -30px;
}

.profile.profile_view-scope-1Shwh .profile-content .bio {
  font-size: 16px;
  text-align: left;
  word-wrap: break-word;
}

@media only screen and (max-width: 430px) {
  .profile.profile_view-scope-1Shwh .profile-content .bio {
    max-width: 100%;
  }
}

.profile.profile_view-scope-1Shwh .profile-content .social-links {
  max-width: 470px;
}

.profile.profile_view-scope-1Shwh .profile-content .social-links li {
  padding: 0;
  margin: 12.5px;
  width: 36px;
  height: 36px;
  font-size: 30px;
  line-height: 36px;
  cursor: pointer;
  display: block;
  -webkit-font-smoothing: antialiased;
  color: #999;
}

.profile.profile_view-scope-1Shwh .profile-content .social-links li svg {
  fill: #999;
  height: 100%;
  width: 100%;
}

.profile.profile_view-scope-1Shwh .profile-content .meta-header {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 200;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.profile.profile_view-scope-1Shwh .profile-content ul.inline {
  padding: 0;
  margin: 0;
  list-style: none;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.profile.profile_view-scope-1Shwh .profile-content ul.inline,
.profile.profile_view-scope-1Shwh .profile-content ul.meta-sections {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.profile.profile_view-scope-1Shwh .profile-content ul.meta-sections {
  font-size: 14px;
}

.profile.profile_view-scope-1Shwh
  .profile-content
  ul.meta-sections
  .meta-item {
  display: block;
}

@media only screen and (min-width: 641px) {
  .profile.profile_view-scope-1Shwh .profile-content ul.meta-sections {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
  }
}

@media only screen and (max-width: 640px) {
  .profile.profile_view-scope-1Shwh .profile-content ul.meta-sections {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .profile.profile_view-scope-1Shwh
    .profile-content
    ul.meta-sections
    .meta-section {
    width: 100%;
  }
}

.profile.profile_view-scope-1Shwh.small {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.profile.profile_view-scope-1Shwh.small.has-nav {
  padding-top: 10px;
}

.profile.profile_view-scope-1Shwh.small .profile-content {
  width: 620px;
  max-width: -webkit-calc(100vw - 10px);
  max-width: calc(100vw - 10px);
  text-align: center;
  background-color: var(--card-bg);
  color: var(--text-primary);
  -webkit-border-radius: 4px;
  border-radius: 4px;
  margin-top: 60px;
  border: 1px solid var(--card-border);
}

.profile.profile_view-scope-1Shwh.small .head .image {
  -webkit-box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 0.2),
    0 0 2px 0 rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 0.2),
    0 0 2px 0 rgba(0, 0, 0, 0.1);
  -webkit-border-radius: 50%;
  border-radius: 50%;
  margin: -60px auto 20px;
  width: 120px;
  height: 120px;
}

.profile.profile_view-scope-1Shwh.small .name-headline {
  padding-left: 20px;
  padding-right: 20px;
}

.image {
  width: 120px;
  height: 120px;
  background-image: url(https://ersah.in/mersahin.jpg?q=40&amp;dpr=2&amp;auto=format&amp;fit=max&amp;w=120&amp;h=120&amp;rect=452,0,2664,2664);
  background-size: cover;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center center;
}

.flag {
  width: 32px;
  height: 24px;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 2px;
}

.social-icon {
  width: 48px;
  height: 32px;
  object-fit: contain;
  border: none;
  border-radius: 0;
}

/* RTL dil desteği için stiller */
[dir="rtl"] {
    text-align: right;
    unicode-bidi: bidi-override;
}

/* Bayraklar için RTL istisnası */
[dir="rtl"] section:has(.btnLang) {
    direction: ltr;
    display: flex;
    justify-content: center;
    flex-direction: row;
}

[dir="rtl"] .btnLang {
    direction: ltr;
    display: inline-block;
    margin: 0 2px;
}

[dir="rtl"] .bio,
[dir="rtl"] .education,
[dir="rtl"] .meta-item,
[dir="rtl"] .role,
[dir="rtl"] .location {
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

[dir="rtl"] .meta-header {
    direction: ltr;
    text-align: center;
}

[dir="rtl"] .social-links ul.inline {
    direction: rtl;
}

/* Arapça metin için özel stil */
[lang="ar"] {
  font-family: "Traditional Arabic", "Arabic Typesetting", Arial, sans-serif;
}

[lang="ar"] .bio p,
[lang="ar"] .role,
[lang="ar"] .location,
[lang="ar"] .education .meta-header,
[lang="ar"] .education .meta-item {
  direction: rtl;
  unicode-bidi: embed;
  text-align: right;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.skill-category {
    width: 100%;
}

.skill-category h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    min-width: 100px;
    width: auto;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-10px) rotateY(10deg);
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.skill-card.clicked {
    animation: bounce 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

.skill-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    width: 100%;
    padding: 0 0.5rem;
}

.skill-icon img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.skill-card:hover .skill-icon img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
}

.skill-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0 0.5rem;
    width: 100%;
}

.skill-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    align-items: stretch;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.bio p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
    cursor: pointer;
}

/* RTL dil desteği için biyografi stilleri */
[dir="rtl"] .bio p {
    padding-left: 0;
    padding-right: 20px;
    text-align: right;
}

.bio p.visible {
    opacity: 1;
    transform: translateY(0);
}

.bio p:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 5px 20px;
}

.bio p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

/* RTL dil desteği için madde ikonları */
[dir="rtl"] .bio p::before {
    left: auto;
    right: 0;
}

.bio p:hover::before {
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* RTL dil desteği için hover efekti */
[dir="rtl"] .bio p:hover::before {
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing::after {
    content: '|';
    animation: cursor 0.8s infinite;
    margin-left: 2px;
}

.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #1a1a1a, #2c3e50);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-card:hover::before {
    transform: translateX(100%);
}

.matrix-effect {
    color: #00ff00 !important;
    text-shadow: 0 0 5px #00ff00;
    animation: matrixRain 1s infinite;
}

@keyframes matrixRain {
    0% { text-shadow: 0 0 5px #00ff00; }
    50% { text-shadow: 0 0 15px #00ff00; }
    100% { text-shadow: 0 0 5px #00ff00; }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 1rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid var(--card-border);
}

.cookie-banner.show {
    display: flex;
}

.cookie-banner p {
    margin: 0;
    padding-right: 1rem;
}

.cookie-banner .cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-banner button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.cookie-banner .accept {
    background: #4CAF50;
    color: white;
}

.cookie-banner .reject {
    background: #f44336;
    color: white;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-banner p {
        padding-right: 0;
    }
}

.cookie-settings {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: none;
}

.cookie-settings:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .cookie-settings {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Tema değiştirici düğmesi */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.theme-toggle i {
    font-size: 16px;
}

/* Mobil görünüm için tema değiştirici düğmesi */
@media (max-width: 768px) {
    .theme-toggle {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
        background: var(--card-bg);
        opacity: 0.8;
    }

    .theme-toggle span {
        display: none;
    }

    .theme-toggle i {
        font-size: 18px;
        margin: 0;
    }

    .theme-toggle:hover {
        opacity: 1;
    }
}

/* GitHub logosu için dark tema ayarı */
[data-theme="dark"] .social-icon[src*="github"] {
    filter: invert(1) brightness(100);
}

/* Light tema'da normal görünmesi için */
[data-theme="light"] .social-icon[src*="github"] {
    filter: none;
}

/* Hover efekti için özel ayar */
[data-theme="dark"] .social-link:hover .social-icon[src*="github"] {
    filter: invert(1) brightness(100) drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

[data-theme="light"] .social-link:hover .social-icon[src*="github"] {
    filter: brightness(0.8);
}

/* GitHub contribution chart stilleri */
.github-activity img {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
}

.github-activity .chart-link {
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
}

/* Skill ikonları için genel stil */
.skill-icon img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* Footer stili */
.footer {
    text-align: center;
    padding: 12px;
    margin-top: 40px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px 10px 0 0;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

.footer .cursor-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer .cursor-ai img {
    height: 20px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.footer a:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer {
        width: 95%;
        padding: 15px;
        font-size: 12px;
    }
    
    .footer .cursor-ai img {
        height: 16px;
    }
}