/* =====================
   UBUNTU THEME
   ===================== */

:root {
  /* Temel Ubuntu renkleri */
  --ubuntu-orange: #e95420;
  --ubuntu-purple: #77216f;

  /* Arkaplan */
  --bg-dark: #2c2c2c;     /* header/footer veya dark container */
  --bg-light: #f5f5f5;    /* sayfa arkaplanı */

  /* Yazı renkleri */
  --text-dark: #000000;   /* koyu yazı */
  --text-light: #f5f5f5;  /* açık yazı, dark modda kullanılacak */

  /* Card arkaplan ve border */
  --card-bg-light: #ffffff;
  --card-bg-dark: #ffffff;
  --card-text-light: #111111;
  --card-text-dark: #f5f5f5;

  --border-color: #ddd;
}

/* DARK MODE */
[data-theme="dark"] {
  --bg-light: #505050;        /* sayfa arkaplanı */
  --text-dark: #f5f5f5;       /* normal yazı */
  --text-light: #616161;      /* alt yazı / secondary */
  
  --card-bg-light: #79306f;   /* card arkaplan */
  --card-bg-dark: #313131;    /* hover veya farklı card */
  --card-text-light: #f5f5f5; /* card yazı */
  --card-text-dark: #ffffff;  /* önemli yazılar için */

  --border-color: #555;
}


/* =====================
   RESET & BASE
===================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Ubuntu", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =====================
   CONTAINER
===================== */
.container {
    max-width: 1200px;
    min-width: 600px;
    margin: auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}



/* =====================
   MAIN
===================== */
.site-main {
    gap: 3rem;
    padding: auto;
   

}
.contact-form-side {
    flex: 1;
    background: var(--card-bg-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.field { position: relative; margin-bottom: 2.5rem; }
.field input, .field textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid var(--border-color);
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
}
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Başlangıçta gizli ve tıklanamaz */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Görünürken tıklanabilir */
    transform: translateY(0);
}

/* SVG Daire Ayarı */
.progress-circle {
    position: absolute;
    top: 0; left: 0;
    fill: none;
    stroke: var(--ubuntu-orange, #E95420); /* İlerleme rengi */
    stroke-width: 4;
    transition: stroke-dashoffset 10ms linear;
}

/* Arka plandaki silik daire (isteğe bağlı) */
#progress-path {
    stroke-dasharray: 307.919;
    stroke-dashoffset: 307.919;
}

/* Ortadaki Ok İkonu */
.arrow-icon {
    z-index: 2;
    color: var(--ubuntu-orange, #E95420);
    transition: transform 0.3s ease;
}

#backToTop:hover .arrow-icon {
    transform: translateY(-3px);
}


/* SVG'nin butonu taşıp sayfaya yayılmasını engelle */
.progress-circle {
    display: block;
    width: 100%;
    height: 100%;
}
.field label {
    position: absolute;
    left: 0;
    top: 10px;
    opacity: 0.5;
    transition: 0.3s ease;
    pointer-events: none;
}

.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    opacity: 1;
    color: var(--ubuntu-orange);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--ubuntu-orange);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--ubuntu-purple);
}
/* ===== BLOG GRID ===== */
.blog {
  padding: 3rem 1.5rem;
  
}

.blog-container {
  max-width: 1200px;
  margin: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: linear-gradient(145deg, var(--card-bg-dark), var(--card-bg-light));
  border-radius: 18px;
  padding: 1.8rem;
  transition: transform .3s ease, box-shadow .3s ease;
  backdrop-filter: blur(4px);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(233,84,32,.25);
}

.blog-card h3 {
  color: var(--card-text-light);
  margin-bottom: .4rem;
}

.blog-card .post-date {
  font-size: 0.85rem;
  opacity: .7;
  margin-bottom: .6rem;
}

.blog-card p {
  font-size: .95rem;
  line-height: 1.5;
  opacity: .85;
}
.blog-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-card a.read-more {
  color: var(--ubuntu-orange);
  font-weight: 500;
  margin-top: 1rem;
  display: inline-block;
}
.blog-search {
  padding: 2rem 1.5rem;
  text-align: center;
}

#search-input {
  width: 100%;
  max-width: 500px;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* ===== SERVICES ===== */
.services {
    
  min-width: 800px;
  margin: auto;
  background:var(--card-bg-dark);
 
  padding: 2.5rem 3rem;
  border-radius: 18px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.295);
}
.services-grid {
   
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Card */
.service-card {
    background: var(--card-bg-light);
    border-radius: 18px;
    padding: 2.2rem;
    transition: transform .35s ease, box-shadow .35s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(233, 84, 32, .35);
}

/* Icon */
.service-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 1rem;
}

/* Text */
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: .6rem;
    color: var(--ubuntu-orange);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: .9;
}

/* ===== TIMELINE WRAPPER ===== */
.timeline {
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg,
            rgba(233, 84, 32, .06),
            transparent);
}

.timeline-container {
    max-width: 1100px;
    margin: auto;
}

/* ===== GRID ===== */
.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* ===== COLUMN ===== */
.timeline-column {
    position: relative;
}

/* ===== LIST ===== */
.timeline-list {
    margin-top: 2.5rem;
    padding-left: 2.2rem;
    border-left: 3px solid rgba(233, 84, 32, .35);
}

/* ===== ITEM ===== */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.95rem;
    top: .4rem;
    width: 14px;
    height: 14px;
    background: var(--ubuntu-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(233, 84, 32, .2);
}

/* ===== TEXT ===== */
.timeline-date {
    font-size: .85rem;
    opacity: .7;
}

.timeline-item h3 {
    margin: .4rem 0 .2rem;
    font-size: 1.15rem;
    color: var(--ubuntu-orange);
}

.timeline-item h4 {
    font-weight: 500;
    opacity: .85;
    margin-bottom: .5rem;
}

.timeline-item p {
    line-height: 1.6;
    opacity: .9;
}

/* ===== PROJECTS ===== */
.projects {
    padding: 2rem 1.5rem;
     min-width: 800px;
  margin: auto;
  background:var(--card-bg-dark);
  padding: 2.5rem 3rem;
  border-radius: 18px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.295);
}

.projects-container {
    max-width: 1200px;
    margin: auto;
}

.section-subtitle {
    opacity: .75;
    margin-bottom: 3rem;
}

/* ===== GRID ===== */
.projects-grid {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== CARD ===== */
.project-card {
    background:var(--card-bg-light);
    border-radius: 18px;
    padding: 1.8rem;
    transition: transform .3s ease, box-shadow .3s ease;
    backdrop-filter: blur(6px);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);


}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}

/* ===== CARD CONTENT ===== */
.project-card h3 {
    color: var(--ubuntu-orange);
    margin-bottom: .4rem;
}

.project-card p {
    font-size: .95rem;
    opacity: .85;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    opacity: .8;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* ===== LINK ===== */
.project-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--ubuntu-orange);
    font-weight: 500;
}

/* ===== CONTACT ===== */
.contact {
     min-width: 800px;
  margin:1%;
  
  background: var(--card-bg-dark);
  padding: 2.5rem 3rem;
  border-radius: 18px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.295);
}



.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* ===== INFO ===== */
.contact-info h3 {
    color: var(--ubuntu-orange);
    margin-bottom: .6rem;
}

.contact-info p {
    opacity: .85;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: .8rem;
    font-size: 1rem;
}

.contact-info a {
    color: var(--ubuntu-orange);
}

/* ===== FORM ===== */
.contact-form {
    background: rgba(255, 255, 255, .03);
    padding: 2rem;
    border-radius: 18px;
    backdrop-filter: blur(6px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .9rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(0, 0, 0, .25);
    color: inherit;
}

.contact-form button {
    width: 100%;
    padding: .9rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg,
            var(--ubuntu-orange),
            #77216f);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 84, 32, .5);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Language Switch ===== */
.language-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.language-switch button {
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--ubuntu-orange);
  background: transparent;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: "Ubuntu", sans-serif;
}

.language-switch button:hover {
  background: var(--ubuntu-orange);
  color: var(--bg-light);
}

.language-switch button.active {
  background: var(--ubuntu-orange);
  color: var(--bg-light);
  box-shadow: 0 4px 12px rgba(233, 84, 32, 0.35);
}




/* İlerleme Çemberi */
.progress-circle {
    position: absolute;
    fill: none;
    stroke-width: 4;
}

#progress-path {
    stroke: var(--ubuntu-orange); /* İlerleme rengi */
    stroke-dasharray: 307.919; /* Çemberin tam çevresi */
    stroke-dashoffset: 307.919; /* Başlangıçta boş */
    transition: stroke-dashoffset 10ms linear;
}

/* Arka plan halkası (Opsiyonel - silik turuncu) */
.progress-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid rgba(233, 84, 32, 0.1);
    border-radius: 50%;
}

/* İçteki Ok Simgesi */
.arrow-icon {
    background: var(--ubuntu-purple);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}


/* ===== SERVICES & PROJECTS RESPONSIVE ===== */
@media (max-width: 768px) {
    .container,
    .post-article,
    .center-slide,
    .services,
    .projects,
    .contact {
        min-width: 100%;
        width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
}.slide-inner {
    flex-direction: column; /* Resim üstte, yazı altta */
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  /* Services grid alt alta */
  .services-grid {
    grid-template-columns: 1fr !important;  /* tüm kartlar tek sütun */
    gap: 1.5rem;
  }

  /* Projects grid alt alta */
  .projects-grid {
    grid-template-columns: 1fr !important;  /* tüm projeler tek sütun */
    gap: 1.5rem;
  }

  /* Card paddingları mobil uyumlu */
  .service-card,
  .project-card {
    padding: 1.5rem;
  }
}
/* Modern HR */
hr {
  border: none; /* varsayılan kenarlığı kaldır */
  height: 2px; /* çizgi kalınlığı */
  background: linear-gradient(
    to right,
    rgba(233, 84, 32, 0),        /* turuncu transparan başı */
    var(--ubuntu-orange),         /* canlı turuncu ortası */
    rgba(119, 33, 111, 0)        /* mor transparan ucu */
  );
  margin: 1rem 0; /* üst ve alt boşluk */
  border-radius: 1px; /* hafif yuvarlatma */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* hafif derinlik efekti */
  transition: background 0.3s ease;
}

/* DARK MODE uyumu */
[data-theme="dark"] hr {
  background: linear-gradient(
    to right,
    rgba(233, 84, 32, 0), 
    var(--ubuntu-orange), 
    rgba(119, 33, 111, 0)
  );
}
