/* ==================== BASE ==================== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    /*color*/
    --HC-primary-color-500: #161925;
    --HC-primary-color-300: #202536;
    --HC-secondary-color-500: #4D6CFA;
    --HC-secondary-color-700: #1A265E;
    --HC-accent-color-500: #E55934;
    --HC-accent-color-700: #B53817;
    --HC-natural-color-100: #E2E6F0;
    --HC-natural-color-200: #A6A6A6;
    --HC-natural-color-300: #666666;
    --HC-natural-color-400: #333333;
}

/* sora-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/sora-v17-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* sora-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/sora-v17-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* sora-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/sora-v17-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* sora-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/sora-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* sora-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/sora-v17-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* sora-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/sora-v17-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* sora-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/sora-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* sora-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/sora-v17-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html, body {
    height: 100%;
}

body { 
    display: flex;
    flex-direction: column;
    background-color: var(--HC-primary-color-500);
    font-family: "Sora", sans-serif;
    font-weight: normal;
}

a {
    text-decoration: none;
}

h1,h2,h3 {
    font-weight: bolder;
}

h1 {
    font-size: 36px;
    color: #fff; 
}

h2 {
    font-size: 28px;
    color: var(--HC-secondary-color-500);
}

h3 {
    color: #fff;
    font-size: 20px;
}

p {
    color: #fff;
    font-weight: 300;
}

/*h1, h2, h3 için responsivite*/
@media (max-width: 1024px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 16px;
    }
}

/* ==================== LAYOUT ==================== */
header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100px;
    padding: 25px 100px;
    background-color: var(--HC-primary-color-500);
    box-shadow: 0px 20px 20px rgba(0, 0, 0, 25%);
}

.inner-header {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

/* Responsive Header */
@media (max-width: 1300px) {
    header {
        height: auto;
        padding: 15px 20px;
    }

    .inner-header {
        flex-wrap: wrap;
    }

    main {
        flex-direction: column;
    }
}

main {
    display: flex;
    flex: 1;
    margin: 50px auto;
    gap: 50px;
}

.main {
    max-width: 700px;
    margin: 0 auto;
    flex-direction: column;
}

/*FOOTER*/

footer {
    width: 100%;
    background-color: var(--HC-primary-color-300);
    padding: 40px 20px;
}

@media (max-width: 992px) {
    footer {
        padding: 10px;
    }
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 10px 0;
    border-bottom: 2px solid var(--HC-natural-color-300);
}

footer a {
    font-size: 16px;
    color: var(--HC-natural-color-200);
    transition: color 0.3s ease;
}

@media (max-width: 992px) {
    footer a {
        font-size: 12px;
    }
}

footer a:hover {
    color: var(--HC-natural-color-300);
}

footer #mail-addres {
    color: var(--HC-accent-color-500);
    border-bottom: 2px solid var(--HC-natural-color-300);
    padding-bottom: 5px;
}

footer #mail-addres:hover {
    color: var(--HC-accent-color-700);
}

#footernote {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.github-icon {
    width: 50px;
    height: auto;
}

.copyright {
    font-size: 13px;
    color: var(--HC-natural-color-200);
}

@media (max-width: 992px) {
    .copyright {
        font-size: 8px;
    }
    .github-icon {
        width: 25px;
    }
}

.copyright::before {
    content: "© ";
    color: var(--HC-secondary-color-500);
    vertical-align: middle;
}

footer .logo {
    width: 70px;
    opacity: 0.5;
}

/*#logo responsivite*/
@media (max-width: 992px) {
    .logo {
        width: 230px;
    }

    footer .logo {
        width: 35px;
    }
}

/* ==================== UTILITIES ==================== */
.center-text { text-align: center; }

.flex { display: flex; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

.flex-1 { flex: 1; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }

.gap-5 { gap: 5px; }
.gap-30 { gap: 30px; }

/*Responsive durumlarda yukarıdan aşağı sığsınlar diye*/
@media (max-width: 769px) {
    .stack-mobile {
        flex-direction: column;
        align-items: stretch;
    }
}

.notactive {
    display: none;
}

.active {
    display: flex;
}

/* ==================== NAVBAR ==================== */
.nav-list {
    display: flex;
    list-style: none;
    gap: 18px; /* biraz nefes */
    align-items: center;
}

.nav-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px; /* icon + text arası */
}

.nav-trigger, .nav-trigger a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-trigger img {
    width: 32px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-group:hover img {
    transform: translateY(-2px);
}

.category-name-bottom {
    color: var(--HC-natural-color-200);
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.3px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  box-shadow: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  cursor: pointer;
}

.line {
    width: 100%;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* aktifken X olsun */
.menu-toggle.active .line:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}
.menu-toggle.active .line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .line:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}

.nav-group.open .dropdown-menu {
  display: flex;
}

@media (max-width: 1300px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    width: 100%; /*Navigasyon tüm ekranı kaplasın diye.*/
  }

  .nav-list {
      display: none; /* hamburger ile açılacak */
      flex-direction: column;
      gap: 15px;
      margin-top: 15px;
  }

  /*Navigasyon toggle basınca gözüksün diye*/
  .nav-list.active {
      display: flex;
  }
}


/* ==================== BUTTONS ==================== */
.btn {
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 25%);
    font-size: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    padding: 5px 10px;
    width: 120px;
    border: none;
    transition: 
        background-color 0.25s ease,
        border 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;

}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

@media (max-width: 576px) {
    .btn {
        width: 85px;
        font-size: 16px;
    }
}

.btn--accent {
    background-color: var(--HC-accent-color-500);
    border: 3px solid var(--HC-accent-color-500);  /* btn-outline ile aynı boyutta olsun diye bir trick*/
    color: #fff;
}

.btn--accent:hover {
    background-color: var(--HC-accent-color-700);
    border-color: var(--HC-accent-color-700);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.btn--accent:active {
    background-color: var(--HC-accent-color-700);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.btn--outline {
    border: 3px solid var(--HC-secondary-color-500);
    background-color: transparent;
    color: var(--HC-natural-color-200);
}

.btn--outline:hover {
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    background-color: var(--HC-secondary-color-500);
}

.btn--outline:active {
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/*I disabled the default button settings and fixed the copy button */
.btn--copy {
    width: auto;
    height: auto;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.btn--copy img {
    width: 32px;
    height: 32px;
}

/*#copy-btn responsivite*/
@media (max-width: 576px) {
    .btn--copy img {
        width: 24px;
        height: 24px;
    }
}  

.btn-hero {
    width: auto;
    height: auto;
    background: none;
    border: none;
    outline: none;
    transition: transform 0.3s ease-in-out;
}

.btn-hero:hover {
    transform: translateY(-5px);
    
}
/* ==================== CALCULATOR ==================== */
.calculator-container {
    border: 2px solid var(--HC-secondary-color-500);
    border-radius: 10px;
    padding: 20px;
    max-width: 700px;
    margin: 50px auto;
}

@media (max-width: 992px) {
    .calculator-container {
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .calculator-container {
        padding: 10px;
        max-width: 300px;
    }
}

#result-group {
    gap: 0;
}

#result-area {
    border-top: 1px solid var(--HC-natural-color-400);
    gap: 5px;
    padding-top: 10px;
}  

/* ==================== CARD ==================== */
.cards {
    margin: 20px 0px;
    width: 100%;    
    display: flex;
    flex-direction: row;    
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;

}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 260px;
    height: 260px;
    background-color: var(--HC-primary-color-300);
    box-shadow: 0px 12px 10px rgba(0, 0, 0, 25%);
    border-radius: 40px;
    text-align: center;
    padding: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card img {
    width: 70px;
    height: 70px;
}

.card p {
    color: var(--HC-natural-color-200);
    font-size: 16px;
}

@media (max-width: 1024px) {
    .cards {
        flex-direction: column;
    }
    .card {
        width: 250px;
        height: 250px;
    }

    .card img {
        width: 70px;
        height: 70px;
    }

    .card p {
        font-size: 16px;
    }
}
/* ==================== DROPDOWN ==================== */
.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--HC-primary-color-300);
  border-radius: 8px;
  width: max-content;
  white-space: nowrap;
  z-index: 10000;
  list-style: none;
}

/* Desktop */
@media (min-width: 1300px) {
  .nav-group:hover .dropdown-menu {
    display: flex;
  }
}

/* Mobile */
@media (max-width: 1299px) {
  .nav-group.open .dropdown-menu {
    display: flex;
  }
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--HC-natural-color-200);
  font-size: 16px;
  transition: background-color 0.2s ease;
  text-align: left;
}

.dropdown-menu a:hover {
    background-color: var(--HC-accent-color-500);
    color: white;
}
/* ==================== ABOUT ==================== */
.about {
  position: relative;
  background: var(--HC-primary-color-300);
  border: 1px solid rgba(77, 108, 250, 0.18);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(77, 108, 250, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s, box-shadow 0.25s;
  max-width: 700px;
  margin: 0px auto;
}

@media (max-width: 992px) {
    .about {
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 10px;
        max-width: 300px;
    }
}

.about:hover {
  border-color: rgba(77, 108, 250, 0.32);
  box-shadow:
    0 0 0 1px rgba(77, 108, 250, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.about::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 0;
  bottom: 12%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--HC-secondary-color-500) 20%,
    var(--HC-secondary-color-500) 80%,
    transparent
  );
  opacity: 0.85;
}

.about::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 5%,
    rgba(77, 108, 250, 0.35) 40%,
    rgba(77, 108, 250, 0.35) 60%,
    transparent 95%
  );
}

.about h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--HC-secondary-color-500);
  margin: 0 0 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about .divider {
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(77, 108, 250, 0.25),
    rgba(77, 108, 250, 0.08) 70%,
    transparent
  );
  margin-bottom: 1rem;
}

.about p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--HC-natural-color-200);
  margin: 0;
}

.about p + p {
  margin-top: 0.85rem;
}

.about h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--HC-secondary-color-500);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.about pre {
  background: rgba(77, 108, 250, 0.05);
  border: 1px solid rgba(77, 108, 250, 0.15);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0 0.75rem;
  overflow-x: auto;
  position: relative;
}

.about pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(77, 108, 250, 0.3), transparent);
  border-radius: 8px 8px 0 0;
}

.about pre code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--HC-natural-color-200);
  background: none;
  padding: 0;
}

.about ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.about ul li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--HC-natural-color-200);
  padding: 0.4rem 0.75rem 0.4rem 1.25rem;
  background: rgba(77, 108, 250, 0.06);
  border: 1px solid rgba(77, 108, 250, 0.12);
  border-radius: 8px;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.about ul li::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(77, 108, 250, 0.5);
}

.about ul li:hover {
  background: rgba(77, 108, 250, 0.1);
  border-color: rgba(77, 108, 250, 0.22);
}

.about strong {
  color: var(--HC-accent-color-500);
  font-weight: 600;
}

/* ==================== FORM ==================== */
label, #result-group {
    font-size: 24px;
    color: var(--HC-natural-color-100);
    font-weight: bolder;
    white-space: nowrap;
}

input, select, textarea {
    background-color: var(--HC-primary-color-300);
    border: 1px solid var(--HC-natural-color-300);
    color: var(--HC-natural-color-200);
    height: 50px;
    font-size: 24px;
    border-radius: 10px;
    outline: none;
    padding: 0px 5px;
    width: 100%;
    transition: outline 0.3s ease-in-out, border 0.3s ease-in-out;
}

textarea {
    resize: vertical;
    font-size: 23px;
    height: auto;
    padding: 10px;
    line-height: 1.5;
    vertical-align: top;
    min-height: 120px;
}

output {
    display: block;
    width: 100%;
    padding: 16px 20px;
    margin-top: 12px;
    border: 1px solid var(--HC-natural-color-300);
    background-color: var(--HC-primary-color-300);
    border-radius: 10px;
    font-size: 28px;
    font-weight: normal;
    line-height: 1.4;
    color: #fff;
    white-space: normal;
    word-wrap: break-word;
    min-height: 120px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    transition: border 0.3s ease-in-out;
}

input::placeholder {
    font-size: 24px;
}

@media (max-width: 992px) {
    label, #result-group {
        font-size: 16px;
    }

    output {
        font-size: 16px;
    }
    input, select, textarea {
        font-size: 16px;
    }
    textarea {
        height: 100px;
    }

    input::placeholder {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    label, #result-group {
        font-size: 14px;
    }

    output {
        padding: 8px 10px;
        font-size: 14px;
        min-height: 100px;
    }

    input, select, textarea {
        font-size: 14px;
    }
    textarea {
        height: 100px;
    }

    input::placeholder {
        font-size: 14px;
    }
}

.mini-inpt, select {
    width: fit-content;
}

input:focus, select:focus, textarea:focus, output:hover {
    border-color: var(--HC-secondary-color-500); /* Üzerine gelince odaklamak için */
}