/* === ROOT DEĞİŞKENLERİ === */
:root {
  --hero-drop-color:brightness(0) saturate(100%) invert(82%) sepia(41%) saturate(2891%) hue-rotate(354deg) brightness(101%) contrast(101%);

  --Logo-filter : brightness(0) saturate(100%);

  --bg-color: #ffffff;
  --text-color: #333333;
  --text-secondary-color: #686666;
  --header-bg: #ffffff;
  --header-shadow: rgba(0, 0, 0, 0.15);
  --primary-color: #007bff;
  --secondary-color: #76cdf5;
  --card-bg: #f8f8f8;
  --card-shadow: rgba(0,0,0,0.05);
  --btn-bg: #000000;
  --btn-text: #ffffff;
  --input-border: #ccc;
  --link-hover: #007bff;

  
  --bar-white: #e0e0e0;
  --bar-purple: #7d3cff;
  --bar-yellow: #ffc107;
  --bar-red: #e74c3c;
  --bar-blue: #1100ff;
  --bar-green: #28a745;
  --bar-navy: #0d83a1;


}
/* === DARK MODE === */
[data-theme="dark"] {
  --hero-drop-color:brightness(0) saturate(100%) invert(55%) sepia(100%) saturate(6078%) hue-rotate(201deg) brightness(104%) contrast(104%);
  
  --Logo-filter : brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(68deg) brightness(100%) contrast(104%);
  
  --bg-color: #121212;
  --text-color: #ffffff;
  --text-secondary-color: #777575;
  --header-bg: #1e1e1e;
  --header-shadow: rgba(0, 0, 0, 0.7);
  --primary-color: #76cdf5;
  --secondary-color: #007bff;
  --card-bg: #1a1a1a;
  --card-shadow: rgba(0,0,0,0.4);
  --btn-bg: #007bff;
  --btn-text: #ffffff;
  --input-border: #444;
  --link-hover: #76cdf5;
  
  --bar-white: #ffffff;
  --bar-purple: #9b6bff;
  --bar-yellow: #ffd95a; 
  --bar-red: #ff6b5a;     
  --bar-blue: #3633fc;   
  --bar-green: #020202; 
  --bar-navy: #90caf9;    
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Header */
header {
  width: 100%;
  height: 60px;
  background-color: var(--header-bg);
  box-shadow: 0 5px 8px var(--header-shadow);
  position: fixed; 
  top: 0;
  left: 0;
  z-index: 1000;
}

header nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5vw;  
}


header nav .Logo img {
  height: 30px;
  object-fit: contain;
  filter: var(--Logo-filter);
}

/* PC Navbar */
.pc-navbar {
  list-style: none;
  display: flex;
  gap: 2vw;
}

.pc-navbar li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.pc-navbar li a:hover {
  color: var(--link-hover); 
}

/* Mobil Navbar */
.mobile-navbar {
  display: none; 
  position: relative;
}

.mobile-navbar button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-color); 
  margin-left: 10px;
}

/* Mobil Menü Container */
.menu-container {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: var(--bg-color);
  width: 200px;
  box-shadow: 0 5px 8px var(--header-shadow);
  border-radius: 8px;
  overflow: hidden;
  height: 100vh;
}

.menu-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.menu-container ul li {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.menu-container ul li:last-child {
  border-bottom: none;
}

.menu-container ul li a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.3s ease;
}

.menu-container ul li a:hover {
  background-color: var(--link-hover);
  color: #fff;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .pc-navbar {
    display: none;
  }
  .mobile-navbar {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative; 
  width: 100%;
  height: 100vh;
  font-weight: bold;
  font-size: 20px;
  overflow: hidden;
}

.hero .img-container {
  z-index: -10;
}

.hero .img-container img {
  position: absolute;
  max-width: 100%;
  height: auto;
}

/* Resimlerin konumları */
.hero .img-container img:nth-child(2), .hero .img-container img:nth-child(1) {
  filter: var(--hero-drop-color);
}
.hero .img-container img:nth-child(1) {
  width: 25%;
  left: 0;
  top: 0;
}
.hero .img-container img:nth-child(2) {
  left: 20%;
  bottom: 0;
  width: 30%;
}
.hero .img-container img:nth-child(3) {
  right: 10%;
  bottom: 0;
  width: 30%;
  min-width: 500px;
}

/* Metin kısmı */
.hero .description {
  position: absolute;
  top: 50%;          
  left: 5%;       
  transform: translateY(-50%);
  width: 90%;
  z-index: 10;
}

.hero .description .hi {
  color: #f7a335;
}

.hero .name {
  font-size: 45px;
  font-weight: bold;
  margin-top: 1rem;
}

.hero-skills-anim {
  font-family: monospace;
  align-items: center;
  margin-top: 1rem;
  color: var(--text-color);
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  width: 1ch;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero .buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* ✅ Responsive düzenlemeler */
@media (max-width: 992px) {
  .hero {
    position: relative;
    height: 1000px;
    top: 100px;
    text-align: center;
    overflow: hidden;
  }

  .hero .description {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
  }

  .hero .buttons-container {
    justify-content: center;
  }

  /* Resimlerin konumları */
.hero .img-container img:nth-child(1) {
  width: 55%;
  left: 0;
  top: 0;
}
.hero .img-container img:nth-child(2) {
  display: none;
}
.hero .img-container img:nth-child(3) {
  width: 30%;
  min-width: 500px;
  left: 50%;                /* ✅ ortalamak için */
  bottom: 10%;                /* ✅ alta sabitle */
  transform: translateX(-50%); /* ✅ tam ortala */
}

}

@media (max-width: 576px) {
  .hero .name {
    font-size: 24px;
  }
  .hero .hi {
    font-size: 18px;
  }
  .hero-skills-anim {
    font-size: 16px;
  }
  .hero .img-container img {
    width: 80% !important;
  }
}

.btn {
  padding: 1rem 2rem;
  border-radius: 4px;
  border: none;
  background-color: var(--btn-bg);
  cursor: pointer;
  font-size: 15px;
  text-decoration: none;
  color: var(--btn-text);
}

/* Containers */
.container {
  max-width: 100%;
  padding: 10%;
  padding-inline: 5%;
  margin-inline: 5%;
}
.container.flex {
  display: flex;
  gap: 50px;
}
.container .title {
  font-size: 50px;
  padding-bottom: 20px;
  font-weight: bold;
  text-align: left;

}
.container .desc {
  padding-bottom: 20px;
  color: var(--text-color);
}

/* Experience */
.experiance-info .year {
  text-align: center;
  margin-bottom: 20px;
}
.experiance-info .desc {
  text-align: center;
}
.experiance-info .year .number {
  font-size: 50px;
  font-weight: bold;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.experiance-info .year p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-secondary-color);
  line-height: 1.5;
}
.experiance-info .fature-other p {
  color: var(--text-color);
  transition: 0.5s;
  cursor: default;
  user-select: none;
}
.experiance-info .fature-other i {
  color: var(--primary-color);
  padding-right: 20px;
}
.experiance-info .fature-other p:hover {
  color: var(--primary-color);
}
.experiance-info .fature-other {
  display: flex;
  justify-content: center;
  align-items: center;
}
.experiance-info .fature-other .features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 30px;
}

/* Skills */
.skills-container .desc {
  color: var(--text-secondary-color);
}
.skills-container .skills .title {
  font-size: 30px;
  font-weight: normal;
  margin-block: 20px;
}
.skill {
  margin-bottom: 15px;
}
.skill-bar .skill .name {
  display: flex;
  justify-content: space-between;
}
.skill span {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}
.bar {
  background: var(--bar-white);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.fill {
  height: 100%;
  border-radius: 4px;
}
 
.purple { background: var(--bar-purple); }
.yellow { background: var(--bar-yellow); }
.red { background: var(--bar-red); }
.blue { background: var(--bar-blue); }
.black { background:var(--bar-black); }
.green { background:var(--bar-green); }
.navy {background:var(--bar-navy) ;}

/* Education & Experience Tabs */
.ex-ed-container {
  flex: 1;
  width: 100%;
}
.ex-ed-container .ex-ed-buttons {
  width: 100%;
  flex-wrap: nowrap;
  min-width: 300px;
  border: 2px solid var(--btn-bg);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}
.ex-ed-container .ex-ed-buttons button {
  width: 100%;
  background-color: transparent;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-color);
}
.ex-ed-container .ex-ed-buttons button:first-child {
  border-radius: 7px 0px 0px 7px;
}
.ex-ed-container .ex-ed-buttons button:last-child {
  border-radius: 0px 7px 7px 0px;
}
.ex-ed-container .ex-ed-buttons button:hover {
  background-color: var(--btn-bg);
  transition: 0.5s;
  color: white;
}
.ex-ed-container .ex-ed-buttons button.active {
  background-color: var(--btn-bg);
  color: white;
}

.ex-ed-card {
  margin: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ex-ed-card .title {
  font-size: 18px;
  padding: 0;
  font-weight: bold;
}
.ex-ed-card hr {
  width: 40px;
}
.ex-ed-card .date {
  color: var(--secondary-color);
  text-decoration: underline;
}
.ex-ed-card .company {
  font-size: 15px;
  font-weight: bold;
}

.ex-container,
.ed-container {
  display: none;
}
.show {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Projects */
.projects-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}
.projects-container .card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--card-bg);
  box-shadow: 0 4px 10px var(--card-shadow);
  transition: transform 0.2s;
}
.projects-container .card img {
  width: 100%;
  height: auto;
  display: block;
}
.projects-container .card button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0,0,0,0.8);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  display: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.projects-container .card:hover {
  transform: scale(1.01);
}
.projects-container .card:hover button {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: flex;
  gap: 20px;
}
.form-row input {
  flex: 1;
}
input, textarea {
  padding: 15px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-color);
  color: var(--text-color);
}
textarea {
  resize: vertical;
}

/* Modal */
.modal-open { 
  cursor:pointer;
  margin:8px;
  padding:10px 16px;
  border-radius:8px;
  border:0;
  color:var(--text-color);
  font-weight:600;
}
.modal-btn {
  padding:8px 14px;
  border-radius:10px;
  border:0;
  cursor:pointer;
  font-weight:600;
}

/* Modal overlay */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  background: linear-gradient(180deg, rgba(2,6,23,0.6), rgba(2,6,23,0.7));
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  padding: 28px;
}
.modal[aria-hidden="false"] { display:flex; }

.modal-content {
  width: 100%;
  max-width: 920px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 12px 40px rgba(2,8,23,0.7), 0 2px 6px rgba(3,10,16,0.5);
  transform: translateY(18px) scale(0.995);
  opacity: 0;
  transition: transform 320ms cubic-bezier(.2,.9,.2,1), opacity 320ms ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(255,255,255,0.04);
}
.modal[aria-hidden="false"] .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 20px;
  gap:12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.modal-title {
  font-size: 18px;
  color: white;
  font-weight:700;
  letter-spacing:0.2px;
}
.close {
  background: transparent;
  color: #a8b3c7;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding:6px 10px;
  border-radius:8px;
  transition: background 160ms, color 160ms, transform 120ms;
}
.close:hover { background: rgba(255,255,255,0.02); color: white; transform: translateY(-2px); }
.modal-body {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  padding: 20px;
  align-items: start;
}
.modal-figure {
  position:relative;
  margin:0;
  width:100%;
  border-radius:12px;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.modal-figure img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:240px;
  aspect-ratio: 16/10;
  transition: transform 400ms ease;
}
.modal-figure:hover img { transform: scale(1.03); }
.img-badge {
  position:absolute;
  top:12px;
  left:12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  backdrop-filter: blur(4px);
}
.modal-text {
  color: white;
  font-size:15px;
  line-height:1.6;
}
.card-title { margin:0 0 8px 0; font-size:18px; color:white; }
.modal-footer {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-end;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.02);
  background: linear-gradient(180deg, rgba(255,255,255,0.005), rgba(255,255,255,0.01));
}

/* Responsive */
@media (max-width: 880px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-figure img { min-height:200px; }
}
@media (max-width:480px) {
  :root{ --max-width: 380px; }
  .modal-title { font-size:16px; }
  .close { font-size:22px; }
}
@media (max-width: 960px) {
  .container.flex {
    flex-direction: column;
  }
  .container.flex {
    flex: 1 1 100%;
  }
}
.theme-toggle{
  background-color: transparent !important;
  border: 0px;
  cursor: pointer;
  color: var(--text-color);
}
.theme-toggle:hover{
color: var(--link-hover)
}