@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: none;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;   
  
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* CSS Variables */
:root {
  --bg-color: #000;
  --primary-color: #29A632;
  --secondary-color: #f3f3f3;
  --third-color: #abaaaa;
}
/* Hero wrapper container */
#hero-wrapper {
  position: relative;
  overflow: hidden;
}

/* Canvas’ı wrapper’ın tamamına yay */
#starfield {
  position: fixed;    /* sayfada kaydırmaya bağlı hareket etmez */
  top: 0;             /* üstten 0 */
  left: 0;            /* soldan 0 */
  width: 100vw;       /* yatayda tüm viewport genişliği */
  height: 100vh;      /* dikeyde tüm viewport yüksekliği */
  background-color: var(--bg-color);
  z-index: -1;        /* içeriklerin arkasında kalması için */
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: transparent;
  padding: 3rem 5rem;
  position: relative;
  z-index: 0;
}

.heroContainer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 7rem 5rem;
}

/* Header and Navigation */
.hero .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 8vh;
  opacity: 0;
  -webkit-animation: fadeDown 0.4s ease forwards 0.2s;
          animation: fadeDown 0.4s ease forwards 0.2s;
}

.hero .logo {
  width: 15rem;
}

.hero .logo img {
  width: 7rem;
  height: 7rem;
}

.hero .navbar ul {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero .navbar ul li {
  list-style: none;
  padding: 3rem 0;
}

.hero .navbar ul li a {
  color: #66717e;
  font-size: 1.8rem;
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.hero .navbar ul li a .mask {
  position: relative;
  display: block;
  height: 1.8rem;
  overflow: hidden;
}

.hero .navbar ul li a .link-container {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}

.hero .navbar ul li a .title {
  font-size: 1.8rem;
  line-height: 1.8rem;
  height: 1.8rem;
  display: block;
  width: 100%;
  text-align: left;
  transition: transform 0.5s ease;
}

.hero .navbar ul li a .link-title1 {
  transform-origin: right center;
}

.hero .navbar ul li a .link-title2 {
  transform-origin: left center;
  transform: rotate(30deg);
}

.hero .navbar ul li a:hover .link-container {
  transform: translateY(-1.8rem);
}

.hero .navbar ul li a:hover .link-title1 {
  transform: rotate(30deg);
}

.hero .navbar ul li a:hover .link-title2 {
  transform: rotate(0);
}

.hero .navbar ul li a:hover {
  color: var(--secondary-color);
  transition: all 0.5s ease;
}

/* CV Button */
.hero .cv button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15rem;
  height: 5rem;
  color: #66717e;
  background-color: var(--bg-color);
  font-size: 1.8rem;
  border-radius: 0.2rem;
  border: 0.5px solid #66717e;
  cursor: pointer;
  transition: all 0.5s ease;
}

.hero .cv button:hover {
  -webkit-box-shadow: 0px 0px 5px 2px rgba(243,243,243,0.46);
          box-shadow: 0px 0px 5px 2px rgba(243,243,243,0.46);
  color: var(--secondary-color);
  border: 0.5px solid var(--secondary-color);
}

/* Hero Content */
.hero .heroContent {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: end;
  gap: 10rem;
  padding-bottom: 10rem;
}

.hero .heroContent .title h1 {
  font-size: 16rem;
  font-weight: 350 !important;
  background: linear-gradient(
    to bottom right,
    #959595 6%,
    #F3F3F3 45%,
    #FFFFFF 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          /* fallback for non-supporting browsers */
  display: inline-block;
}

.hero .heroContent .title h1 span {
  display: inline-block;
  opacity: 0;
  -webkit-transform: translateY(15rem);
          transform: translateY(15rem);
  background: linear-gradient(
    to bottom right,
    #959595 6%,
    #F3F3F3 45%,
    #FFFFFF 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .heroContent .title h1 .name-first {
  -webkit-animation: fadeUp 0.2s ease forwards 0.6s;
          animation: fadeUp 0.2s ease forwards 0.6s;
}

.hero .heroContent .title h1 .name-last {
  -webkit-animation: fadeUp 0.2s ease forwards 0.8s;
          animation: fadeUp 0.2s ease forwards 0.8s;
}

.hero .heroContent .subtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 10rem 0 0;
}

.hero .heroContent .subtitle h2 {
  color: var(--secondary-color);
  font-size: 4rem;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

/* Typing effect on subtitle */
.hero .heroContent .subtitle h2 span {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.1rem solid var(--secondary-color);
  width: 0;
  padding-right: 0.1rem;
  -webkit-animation: typing 1.5s steps(20) 1s forwards,
                     blink-caret 0.75s step-end 3 0.5s forwards,
                     hide-caret 0s linear 2.75s forwards;
          animation: typing 1.5s steps(20) 1s forwards,
                     blink-caret 0.75s step-end 3 0.5s forwards,
                     hide-caret 0s linear 2.75s forwards;
}

/* Read More Button */
.hero .heroContent .subtitle .readMore {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 7.5rem;
  background-color: var(--bg-color);
  color: var(--secondary-color);
  border: 0.5px solid var(--primary-color);
  border-radius: 0.2rem;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 600;
  opacity: 0;
  -webkit-animation: fadeInButton 0.5s ease 2.75s forwards;
          animation: fadeInButton 0.5s ease 2.75s forwards;
  transition: all 0.5s ease;
}

.hero .heroContent .subtitle .readMore::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--primary-color);
  pointer-events: none;
  transition: all 0.5s ease;
  -webkit-mask-image: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/urban-sprite.png");
          mask-image: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/urban-sprite.png");
  -webkit-mask-size: 3000% 100%;
          mask-size: 3000% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-mode: alpha;
          mask-mode: alpha;
}

.hero .heroContent .subtitle .readMore > * {
  position: relative;
  color: var(--secondary-color);
  font-size: 1.8rem;
  font-weight: 600;
}

.readMore.play-ani::before {
  -webkit-animation: ani 0.5s steps(29) forwards;
          animation: ani 0.5s steps(29) forwards;
}

.readMore.play-ani2::before {
  -webkit-animation: ani2 0.5s steps(29) forwards;
          animation: ani2 0.5s steps(29) forwards;
}

/* Keyframes */
@-webkit-keyframes typing {
  from { width: 0; }
  to   { width: 17ch; }
}
@keyframes typing {
  from { width: 0; }
  to   { width: 17ch; }
}

@-webkit-keyframes blink-caret {
  from, to { border-color: transparent; }
  50%      { border-color: var(--secondary-color); }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50%      { border-color: var(--secondary-color); }
}

@-webkit-keyframes hide-caret {
  to { border-right-color: transparent; }
}
@keyframes hide-caret {
  to { border-right-color: transparent; }
}

@-webkit-keyframes fadeInButton {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInButton {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@-webkit-keyframes ani {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to   { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}
@keyframes ani {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to   { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}

@-webkit-keyframes ani2 {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes ani2 {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

@-webkit-keyframes fadeUp {
  from {
    opacity: 0;
    z-index: -1;
    -webkit-transform: translateY(15rem);
            transform: translateY(15rem);
  }
  to {
    opacity: 1;
    z-index: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    z-index: -1;
    transform: translateY(15rem);
  }
  to {
    opacity: 1;
    z-index: 1;
    transform: translateY(0);
  }
}

@-webkit-keyframes fadeDown {
  from {
    opacity: 0;
    z-index: -1;
    -webkit-transform: translateY(-15rem);
            transform: translateY(-15rem);
  }
  to {
    opacity: 1;
    z-index: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes fadeDown {
  from {
    opacity: 0;
    z-index: -1;
    transform: translateY(-15rem);
  }
  to {
    opacity: 1;
    z-index: 1;
    transform: translateY(0);
  }
}


/*About Section*/

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about .aboutContainer {
  display: flex;
  flex-direction: column;
  gap: 10rem;
  justify-content: space-between;
  width: 100%;
  padding: 10rem 10%;
  overflow: hidden;
}


/* 2) Ortak stiller (her iki kutu için) */
.aboutBoxLeft,
.aboutBoxRight {
  position: relative; /* önemli */
  background-color: rgba(0, 0, 0, 0.3);
  width: 60rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
  opacity: 0;
  transition: all 0.7s ease;
    backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  will-change: transform;
}

.aboutBoxLeft {
  transform: translateX(-100px);
}

.aboutBoxRight {
  transform: translateX(100px);
}

/* Görününce uygulanacak haller */
.aboutBoxLeft.show {
  opacity: 1;
  transform: translateX(0);
}

.aboutBoxRight.show {
  opacity: 1;
  transform: translateX(0);
}

.aboutBoxLeft.show::after,
.aboutBoxRight.show::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.2rem;
  padding: 1px;
  background: linear-gradient(
    60deg,
    rgba(41,166,50,0.3),
    rgba(243,243,243,0.4),
    rgba(41,166,50,0.3)
  );
  background-size: 200% 200%;
  animation: glow-border 3s linear infinite;

  /* mask yoksa border gibi görünür */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  pointer-events: none;
}

.aboutBoxLeft.show::before,
.aboutBoxRight.show::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.2rem;
  z-index: -2;
  pointer-events: none;
  box-shadow: 0 0 18px 6px rgba(41, 166, 50, 0.25);
}





@keyframes glow-border {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* 3) Soldaki kutu sola, sağdaki kutu sağa yaslansın */
.aboutBoxLeft  { align-self: flex-start; }
.aboutBoxRight { align-self: flex-end; }

/* 4) İçi: imgWrapper */
.aboutBoxLeft .imgWrapper,
.aboutBoxRight .imgWrapper {
  width: 100%;
  height: 20rem; /* Kutunun içinde dengeli durması için yükseklik eklendi */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 5) imgWrapper içindeki img */
.aboutBoxLeft .imgWrapper img,
.aboutBoxRight .imgWrapper img {
  width: auto;
  height: 100%;
  object-fit: contain;
}


/* 6) İçi: textWrapper */
.aboutBoxLeft .textWrapper,
.aboutBoxRight .textWrapper {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
}

/* 7) Başlık */
.aboutBoxLeft .textWrapper h3,
.aboutBoxRight .textWrapper h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 450;
}

.aboutBoxLeft .textWrapper p,
.aboutBoxRight .textWrapper p {
  font-size: 1.6rem;
  color: var(--third-color);
  text-transform: none;
}


/* Skills Section */

#skills {
  background-color: transparent;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  height: 75vh;
  padding-left: 10%;
}

#skills .skillsContainer {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 90rem;
  min-height: 50rem;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10rem 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.7s ease;
}

#skills .skillsContainer.show {
  opacity: 1;
  transform: translateY(0);
}

#skill-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.skillsBar {
  width: 20%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
  transform: rotate(-90deg) translateY(-100%);
  transform-origin: center center;
  opacity: 0;
  transition:
    transform       0.5s ease 0.5s,
    opacity         0.5s ease 0.5s,
    padding-bottom 0.75s ease 0.75s,
    border-bottom   0.5s ease;
  border-bottom: 0.5px solid transparent;
}

.skillsBar.visible {
  transform: rotate(-90deg) translateY(0);
  opacity: 1;
  padding-bottom: 3rem;
}

.skillsBar.with-border {
  border-bottom: 0.5px solid var(--primary-color);
}

.skillsBar h2 {
  font-size: 3rem;
  letter-spacing: 0.5rem;
  color: var(--primary-color);
}

.skillsContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 30rem;
  max-height: 40rem;
  padding: 0 2rem;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

.skillsContent.visible {
  opacity: 1;
}

#skills .skillsContainer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.2rem;
  padding: 1px;
  background: linear-gradient(
    60deg,
    rgba(41,166,50,0.3),

    rgba(243,243,243,0.4),
    rgba(41,166,50,0.3)
  );
  background-size: 200% 200%;
  animation: glow-border 3s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  pointer-events: none;
}

#skills .skillsContainer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.2rem;
  z-index: -2;
  pointer-events: none;
  box-shadow: 0 0 18px 6px rgba(41,166,50,0.25);
}

#skills h2 {
  color: var(--primary-color);
  font-size: 4rem;
}

#skill-description {
  max-width: 70%;
  max-height: 12rem;
  margin: 0 auto 3rem;
  font-size: 1.6rem;
  color: #ccc;
  overflow-y: auto;
  text-align: center;
  line-height: 1.6;
}

/* İkonlar */

.icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 5rem;
  max-width: 60rem;
  margin: 0 auto;
}

.iconWrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iconWrapper img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: 0.3s ease;
  cursor: pointer;
}

.iconWrapper img.active {
  filter: grayscale(0%);
  transform: scale(1.1);
}

@keyframes fadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-25rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


/* PORTFOLIO */
/* Portfolio Section */
.portfolio{
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  padding-bottom: 10rem;
}

.portfolioWrapper{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 5rem 5rem;
  align-items: center;
}

.portfolioWrapper h3{
  color: var(--primary-color);
  width: 25%;
  font-size: 4rem;
  letter-spacing: 0.3rem;
  text-align: center;
  padding: 0rem;
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-bottom 0.3s ease 0.5s, padding-bottom 0.4s ease 0.5s;
}

.portfolioWrapper h3.show {
  opacity: 1;
  transform: translateY(0);
  animation: fadeDown 0.7s ease forwards;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 3rem;
}

.portfolioContainer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background-color: transparent;
  margin-top: 3rem;
}

/* Fixed-size portfolioContent */
.portfolioContent{
  width: 55%;
  height: 60rem;
  background-color: transparent;
  display: flex;
  flex-wrap: nowrap;
  justify-content: start;
  padding: 5rem 0;
  position: relative;
}

.card{
  width: 8rem;
  background-size: cover;
  cursor: pointer;
  overflow: hidden;
  border-radius: .5rem;
  margin: 0 1rem;
  display: flex;
  align-items: flex-end;
  transition: .6s ease-out;
  filter: blur(4px) grayscale(50%);
  opacity: 0;
  transform: translateX(-25rem);
}

.card.show {
  opacity: 1;
  transform: translateX(0);
  animation: fadeLeft 1.5s ease forwards;
}

.card > .row {
  color: #fff;
  display: flex;
  flex-wrap: nowrap;
}

.card > .row > .icon{
  background: #223;
  color: #FFFFFF;
  border-radius: 50%;
  width: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px;
  filter: none;
}

.card > .row > .description{
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  height: 8rem;
  width: 5.2rem;
  opacity: 0;
  transform: translateY(3rem);
  transition-delay: .3s;
  transition: all .3s ease;
}

.description p{
  color: #abaaaa;
  padding-top: 0.5rem;
}

.description h4{
  text-transform: uppercase;
}

input{
  display: none;
}

input:checked + label {
  width: 80rem;
  filter: blur(0px);
}

input:checked + label .description {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.card[for="c1"] {
  background-image: url('./images/zombi1.jpg');
}
.card[for="c2"] {
  background-image: url('./images/easywallet.png');
}
.card[for="c3"] {
  background-image: url('./images/saglamlarmakina.png');
}
.card[for="c4"] {
  background-image: url('./images/canakkaleprotez.png');
}

/* Fixed-size portfolioText */
.portfolioText{
  width: 40%;
  height: 60rem;
  position: relative;
  display: flex;
  gap: 5rem;
  flex-direction: column;
  align-items: center;
  padding: 10rem 5rem;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  opacity: 0;
}

.portfolioText.show{
  opacity: 1;
  animation: fadeLeft 1.5s ease forwards;
}

/* İnce gradient border animasyonu */
.portfolioText::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.2rem;
  padding: 1px;
  background: linear-gradient(
    60deg,
    rgba(41,166,50,0.3),
    rgba(243,243,243,0.4),
    rgba(41,166,50,0.3)
  );
  background-size: 200% 200%;
  animation: glow-border 3s linear infinite;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* Hafif glow gölgesi */
.portfolioText::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.2rem;
  box-shadow: 0 0 18px 6px rgba(41,166,50,0.25);
  pointer-events: none;
  z-index: -2;
}

.portfolioText h4{
  font-size: 3rem;
  color: var(--primary-color);
  font-weight: 400;
  text-align: center;
  flex: 1;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 2rem;
}

.portfolioText p{
  color: var(--secondary-color);
  font-size: 1.6rem;
  font-weight: 200;
  text-align: start;
  line-height: 2.5rem;
  flex: 5;
  text-transform: none;
}

.portfolioText a{
  flex: 2;
  color:#66717e;
  padding: 2.5rem 5rem;
  background-color: transparent;
  border: 0.5px solid #66717e;
  font-size: 1.4rem;
  font-weight: 500;
  transition: all .3s ease;
}

.portfolioText a:hover{
  box-shadow: 0px 0px 5px 2px rgba(243,243,243,0.46);
  color: var(--secondary-color);
  border: 0.5px solid var(--secondary-color);
}

/* Keyframe Animations */
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-25rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-border {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/*CONTACT*/

/* Başlangıçta görünmez ve aşağıda */
.fade-up {
  opacity: 0;
  transform: translateY(15rem);
  transition: all 0.6s ease-out;
}

/* Görünür olduğunda animasyon başlar */
.fade-up.visible {
  animation: fadeUp 0.6s ease forwards;
}



/* Contact Section */
.contact {
  min-height: 75vh;
  height: auto;
  background-color: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem;
  backdrop-filter: blur(1px);
}

.contact-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-text {
  flex: 1 1 60rem;
}

.contact-text h5 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.contact-text h2 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.contact-text p {
  font-size: 1.6rem;
  color: #aaa;
  margin-bottom: 3rem;
  line-height: 1.6;
  text-transform: none;
}

.contact-socials {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-socials .social {
  display: flex;
  align-items: left;
  justify-content: start;
  gap: 2rem;
  color: var(--third-color);
}

.contact-socials .social:hover,
.contact-socials .social:hover a {
  color: var(--primary-color);
}

.contact-socials .social a {
  color: var(--third-color);
  font-size: 1.6rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: none;
  text-align: start;
}

.contact-socials .social i {
  font-size: 2rem;
  width: 2.4rem;
  display: inline-block;
  text-align: center;
}

.contact-image {
  flex: 1 1 40rem;
  display: flex;
  justify-content: center;
}

.contact-image img {
  width: 40rem;
  height: 40rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.2);
}


/* FOOTER */

.footer {
  width: 100%;
  height: 25vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 12rem 4rem 12rem;
  background-color: rgb(26, 25, 25, 0.5);
  backdrop-filter: blur(3px);
}

.footer .leftColumn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .leftColumn ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: center;
}

.footer .leftColumn ul li a {
  font-size: 1.6rem;
  color: var(--secondary-color);
  transition: color .3s ease;
}

.footer .leftColumn ul li a:hover {
  color: var(--primary-color);
}

.footer .middleColumn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 10rem;
}

.footer .middleColumn .middleTop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

/* ANIMATED ICONS */

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-mask {
  position: relative;
  display: block;
  height: 2rem;
  overflow: hidden;
}

.icon-container {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}

.icon1,
.icon2 {
  font-size: 2rem;
  line-height: 4rem;
  height: 4rem;
  display: block;
  color: var(--secondary-color);
  transition: transform 0.5s ease;
}

.icon1 {
  transform-origin: right center;
}

.icon2 {
  transform-origin: center;
}

.icon-link:hover .icon-container {
  transform: translateY(-4rem);
}

.icon-link:hover .icon2{
  color: var(--primary-color);
}


/* END ANIMATED ICONS */

.footer .middleColumn .middleBottom {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--secondary-color);
  padding-top: 2rem;
}

.footer .middleColumn .middleBottom p {
  color: var(--secondary-color);
  font-size: 1.6rem;
}

.footer .rightColumn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .rightColumn img {
  width: 10rem;
}

@media (max-width: 1399px) {
  .portfolioContainer{
     margin-top: 5rem;
  }

  .footer{
    height: 20rem;
  }

}


@media (max-width: 1199px) {

  .hero .heroContent .title h1{
    font-size: 14rem;
  }

#skills {
  padding-left: 0;
  justify-content: center;
}
  .portfolio {
    height: auto;
    padding-bottom: 8rem;
  }

  .portfolioWrapper {
    padding: 4rem 3rem;
  }

  .portfolioWrapper h3 {
    width: 50%;
    font-size: 3.5rem;
  }

  .portfolioContainer {
    flex-direction: column;
    gap: 3rem;
  }

  .portfolioContent {
    width: 100%;
    /* YÜKSEKLİĞİ MUTLAKA rem İLE BELİRT */
    height: 50rem;      /* örnek: 40rem, ihtiyaca göre değiştir */
    padding: 3rem 0;
    position: relative;
  }

  .card {
    width: 7rem;
    margin: 0 0.8rem;
  }

  .portfolioText {
    width: 100%;
    height: 40rem;
    padding: 6rem 3rem;
  }

  .portfolioText h4 {
    font-size: 2.5rem;
  }

  .portfolioText p {
    font-size: 1.4rem;
    line-height: 2.2rem;
  }

  .portfolioText a {
    padding: 2rem 4rem;
    font-size: 1.3rem;
  }

.contact-text {
  flex: 1 1 40rem;
}

.contact-image {
  flex: 1 1 30rem;
  display: flex;
  justify-content: center;
}


.footer{
  padding: 2rem 5rem;
}

}


@media (max-width: 992px) {


.hero .navbar ul {
  gap: 2rem;
}

.hero .logo {
  width: 5rem;
  height: 5rem;
}

.hero .navbar ul li a {
  font-size: 1.4rem;
}
 .hero .heroContent {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0rem;
}

.hero .heroContent .title h1 {
  font-size: 10rem;
  display: flex;
  gap: 4rem;
  text-align: center;
  padding: 4rem 0;
}
  
  .hero .heroContent .subtitle{
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
  }

  /* 3) Soldaki kutu sola, sağdaki kutu sağa yaslansın */
.aboutBoxLeft  { align-self:center; }
.aboutBoxRight { align-self: center; }

#skills{
  margin-top: 5rem;
  padding: 5rem 0;
  padding-left: 10%;
  width: 90%;
  min-height: 75vh;
}

#skills .skillsContainer {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  width: 100%;
  gap: 5rem;
}


.skillsBar {
  width: 50%;
  height: 20%;
  transform: rotate(0deg) translateY(-100%);
}

.skillsBar.visible {
  transform: rotate(0deg) translateY(0);
  padding-bottom: 1.5rem;
}

.skillsBar h2 {
  font-size: 2rem;
}

#skill-description {
  max-width: 80%;
  max-height: auto;
  margin: 0 auto 3rem;
  font-size: 1.4rem;
  color: #ccc;
  overflow-y: hidden;
  text-align: center;
  line-height: 1.5;
}


.portfolio{
  margin-top: 5rem;
}





}

@media (max-width: 768px) {
 .hero .navbar ul {
 display: none;
}

.hero .heroContent .title h1{
    font-size: 6rem;
    gap: 2rem;
    flex-direction: column;
  }

  .hero .heroContent .subtitle h2{
    font-size: 3rem;
    text-align: center;
  }

  .hero .heroContent .subtitle .readMore{
    padding: 1.5rem 3rem;
  }

  .hero .heroContent .subtitle .readMore > *{
    font-size: 1.4rem;
    font-weight: 400;
  }


  /* Container’ı dikey yığ ve boşlukları azalt */
  .about .aboutContainer {
    flex-direction: column;
    gap: 5rem;
    padding: 8rem 5%;
  }

  /* Kutular tam genişlikte ve iç padding küçültülmüş */
  .aboutBoxLeft,
  .aboutBoxRight {
    width: 100%;
    max-width: none;
    padding: 1.5rem 2rem;
    align-self: center; /* ortala */
  }

  /* Görsel yüksekliğini küçült */
  .aboutBoxLeft .imgWrapper,
  .aboutBoxRight .imgWrapper {
    height: 15rem;
  }

  /* Metin bloğu iç boşluk ve gap azalt */
  .aboutBoxLeft .textWrapper,
  .aboutBoxRight .textWrapper {
    padding: 1rem;
    gap: 1.5rem;
  }

  /* Başlık ve paragraf font boyutları biraz daha küçük */
  .aboutBoxLeft .textWrapper h3,
  .aboutBoxRight .textWrapper h3 {
    font-size: 2rem;
  }
  .aboutBoxLeft .textWrapper p,
  .aboutBoxRight .textWrapper p {
    font-size: 1.4rem;
  }

  /* 1) Kutuya position:relative ekleyin ki içindeki resmi absolute konumlayabilelim */
  .aboutBoxLeft,
  .aboutBoxRight {
    position: relative;
    /* isteğe bağlı: iç boşlukları daraltmak isterseniz */
    padding: 1.5rem 2rem;
  }

  /* 2) imgWrapper’i tüm kutuyu kaplayacak şekilde absolute yapın */
  .aboutBoxLeft .imgWrapper,
  .aboutBoxRight .imgWrapper {
    position: absolute;
    inset: 0;           /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    z-index: -1;        /* metnin arkasına it */
    overflow: hidden;   /* taştığı yerde kırpsın */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 3) <img>’i de kutuyu dolduracak şekilde ölçekleyin */
  .aboutBoxLeft .imgWrapper img,
  .aboutBoxRight .imgWrapper img {
    width: 60%;
    height: 80%;
    object-fit: cover;  /* kırpmadan kutuya sığdır */
    display: block;
    filter: opacity(0.5);
  }

  /* 4) Metin katmanını öne alın */
  .aboutBoxLeft .textWrapper,
  .aboutBoxRight .textWrapper {
    position: relative;
    z-index: 1;
  }

    /* 1) Section yüksekliği + padding */
  #skills {
    height: auto;
    padding: 4rem 5% 4rem 5%;
    width: 100%;
  }

  /* 2) Container dikey yığ, genişlik ayarları */
  #skills .skillsContainer {
    flex-direction: column;
    width: 90%;
    min-height: auto;
    padding: 4rem 2rem;
  }

  /* 3) Başlık küçült */
  #skill-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  /* 4) Yan bar’ı düzleştir + görünür yap */
  .skillsBar,
  .skillsBar.visible {
    transform: none !important;
    opacity: 1 !important;
    padding-bottom: 1rem !important;
    margin-bottom: 2rem;
    width: auto;
    height: auto;
  }
  .skillsBar.with-border {
    border-bottom-width: 1px;
  }
  .skillsBar h2 {
    font-size: 2rem;
    letter-spacing: 0.3rem;
  }

  /* 5) Ana başlık font */
  #skills h2 {
    font-size: 3rem;
  }

  /* 6) Açıklama metni genişlet + font küçült */
  #skill-description {
    max-width: 95%;
    max-height: none;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
  }

  /* 7) İçerik kutusu boyutunu esnet */
  .skillsContent {
    min-height: auto;
    max-height: none;
    padding: 1rem;
  }

  /* 8) İkonlar ve boyutları */
  .icons {
    gap: 2rem;
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }
  .iconWrapper img {
    max-width: 60%;
    max-height: 60%;
  }


    /* 1) Section dikey yığ & paddingi azalt */
  .portfolio {
    flex-direction: column;
    height: auto;
    padding: 4rem 2rem 2rem;
  }

  /* 2) Wrapper iç padding küçült */
  .portfolioWrapper {
    padding: 2.5rem 1.5rem;
  }
  .portfolioWrapper h3 {
    width: 100%;
    font-size: 2.5rem;
    letter-spacing: 0.2rem;
    padding-bottom: 1.5rem;
  }

  /* 3) Card + metin konteyneri dikey düzen */
  .portfolioContainer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2rem;
    gap: 1.5rem;
  }

  /* 4) Kartlar yatay scroll’lu, boyut küçült */
  .portfolioContent {
    width: 100%;
    height: auto;
    padding: 1.5rem 0;
    display: flex;
    overflow-x: auto;
  }
  .card {
    width: 6rem;
    height: 16rem;
    margin: 0 .5rem;
  }

  /* 5) Seçili kart genişlik ayarı (isteğe bağlı) */
  input:checked + label {
    width: 80%;
  }

  /* 6) Metin kutusunu tam genişlik yap & padding küçült */
  .portfolioText {
    width: 100%;
    padding: 2.5rem 1.5rem;
    margin-top: 1.5rem;
  }
  .portfolioText h4 {
    font-size: 2rem;
    padding-bottom: 0rem;
  }
  .portfolioText p {
    font-size: 1.4rem;
    line-height: 1.8rem;
  }
  .portfolioText a {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }


  .contact-image{
    flex: 1 1 25rem;
  }

  .contact-image img{
    width: 25rem;
    height: 25rem;
  }

  .footer {
    padding: 1rem;
  }
  .footer .leftColumn ul li a,
  .footer .middleColumn .middleBottom p {
    font-size: 1.2rem;
  }
  .footer .middleColumn .middleTop {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .footer .rightColumn img {
    width: 6rem;
  }

  

  /* Scrollbar gizle (Chrome, Edge, Safari) */
body::-webkit-scrollbar {
  display: none;
}

/* Scrollbar gizle (Firefox) */
body {
  scrollbar-width: none;
}

/* Scrollbar gizle ve yer kaplamasını da engelle */
html, body {
  overflow-y: scroll;        /* scroll açık ama görünmez */
  scrollbar-width: none;     /* Firefox için */
  -ms-overflow-style: none;  /* Internet Explorer için */
}


}

@media (max-width: 500px) {
  .footer{
    flex-direction: column;
    padding: 3rem 0;
  }


  .footer .rightColumn{
    display: none;
  }

  .footer .leftColumn ul{
    flex-direction: row;
    justify-content: center;
    font-size: 2rem;
  }

  .footer .middleColumn{
    padding-top: 0;
  }
}