:root {
    --primary: #2a2f4f;
    --secondary: #ffffff;
    --accent: #0f0f1b;
    --text: #f8f7f7;
    --bg: #0f0f1b;
    --card-bg: #1a1a2e;
    --hover: #4a4e69;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
  }
  


  body {
    background-color: var(--bg);
    color: #fff;
    overflow-x: hidden;
  }
  
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: 0.5s;
    backdrop-filter: blur(10px);
  }
  
  header.sticky {
    background: rgba(15, 15, 27, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  

  
  .navbar a {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    margin-left: 4rem;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
  }
  
  .navbar a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: right;
  }
  
  .navbar a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  #menu-icon {
    font-size: 2rem;
    cursor: pointer;
    display: none;
  }
  
  section {
    min-height: 100vh;
    padding: 6rem 9% 2rem;
  }
  
  .home {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  
  .home-content {
    max-width: 600px;
    z-index: 10;
  }
  
  .home-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .home-content h1 span {
    color: var(--accent);
  }
  
  .home-content .text-animate {
    position: relative;
    width: max-content;
  }
  
  
  .home-content .text-animate h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2rem;
  }
  
  .home-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  
  .social-links {
    display: flex;
    margin-top: 2rem;
  }
  
  .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 1rem;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-10px);
  }
  
  .home-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .home-img .glowing-circle {
    position: relative;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .home-img .glowing-circle::after {
    content: "";
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    background: var(--bg);
    animation: glow 5s ease-in-out infinite;
  }
  
  @keyframes glow {
    0%,
    100% {
      box-shadow: 0 0 50px var(--primary), 0 0 100px var(--secondary),
        0 0 150px var(--accent);
    }
    50% {
      box-shadow: 0 0 100px var(--primary), 0 0 150px var(--secondary),
        0 0 200px var(--accent);
    }
  }
  
  .home-img .glowing-circle .image {
    position: relative;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    border: 4px solid var(--accent);
  }
  
  .home-img .glowing-circle .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary);
    border-radius: 3rem;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.5s;
    border: 2px solid transparent;
    margin-top: 15px;
  }
  
  .btn:hover {
    background: transparent;
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--secondary);
  }
  
  .about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--bg);
    padding-top: 8rem;
  }
  
  .heading {
    font-size: 3rem;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
  }
  
  .heading span {
    color: white;
  }
  
  .about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
  }
  
  .about-img {
    position: relative;
    width: 30rem;
    height: auto;
    border-radius: 1rem;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 0 30px rgba(142, 105, 220, 0.3);
  }
  
  .about-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s;
  }
  
  .about-img:hover img {
    transform: scale(1.05);
  }
  
  .about-text {
    flex: 1;
    min-width: 300px;
  }
  
  .about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
  }

  *,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
  color: #ffffff;
  background: #0f0f1b;
}

.container {
  max-width: 80rem;
  width: 100%;
  padding: 4rem 2rem;
  margin: 0 auto;
}

.main .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 3rem;
  padding: 0rem;
  margin: 48px auto;
  max-width: 1200px;
  width: 100%;
}

.main .card {
  background: #ffffff0f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
  border-radius: 25px;
  overflow: hidden;
  padding: 12px;
  height: 300px;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.main .card:hover {
  background: linear-gradient(to bottom, #333333, #ffffff);
}

.main .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(128, 128, 128, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.main .card:hover::before {
  opacity: 1;
}

.main .card-image {
  width: 100%;
  height: 100%;
  padding: 4px;
  border-radius: 25px;
  position: relative;
  z-index: 2;
}

.main .card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  position: relative;
  z-index: 2;
}

@media only screen and (max-width: 900px) {
  .main .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 600px) {
  .main .container {
    grid-template-columns: 1fr;
  }
}

.main .card[data-visible="false"] {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.main .card[data-visible="true"] {
    opacity: 1;
    visibility: visible;
    height: 300px;
    transition: all 0.3s ease;
}

.button-container {
    text-align: center;
    margin: 2rem 0;
}

.gallery-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin: 0 10px;
}

.gallery-button:hover {
    background-color: #45a049;
}

.gallery-button:focus {
    outline: none;
}
  
  .icon {
    color: var(--text);
  }


  
  .skills {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: linear-gradient(to bottom, var(--bg), var(--primary));
  }
  
  .skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
  }
  
  .skills-box {
    position: relative;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.5s ease;
    overflow: hidden;
    z-index: 1;
  }
  
  .skills-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #232641, #ffffff91);
    z-index: -1;
    opacity: 0;
    transition: 0.5s;
  }
  
  .skills-box:hover::before {
    opacity: 1;
  }
  
  .skills-box:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent);
  }
  
  .skills-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
  }
  
  .skills-box p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }
  
  .skills-list span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--text);
    transition: 0.3s;
  }
  
  .skills-list span:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
  }
  
  .projects {
    padding-top: 8rem;
    background: var(--bg);
  }
  
  .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
  }
  
  .projects-box {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s;
  }
  
  .projects-box:hover {
    transform: scale(1.02);
  }
  
  .projects-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.5s;
  }
  
  .projects-box:hover img {
    transform: scale(1.1);
  }
  
  .projects-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0), var(--primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 1.5rem;
    transition: 0.5s;
  }
  
  .projects-box:hover .projects-layer {
    opacity: 1;
  }
  
  .projects-layer h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .projects-layer p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .projects-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: var(--accent);
    border-radius: 50%;
    text-decoration: none;
    transition: 0.5s;
  }
  
  .projects-layer a:hover {
    background: var(--secondary);
    transform: scale(1.1);
  }
  
  .contact {
    padding-top: 8rem;
    background: linear-gradient(to top, var(--bg), var(--primary));
  }
  
  .contact form {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }
  
  .contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .contact form .input-box input,
  .contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--text);
    background: var(--card-bg);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
    border: none;
    outline: none;
    transition: 0.3s;
  }
  
  .contact form .input-box input {
    width: 49%;
  }
  
  .contact form textarea {
    resize: none;
  }
  
  .contact form .input-box input:focus,
  .contact form textarea:focus {
    box-shadow: 0 0 15px var(--accent);
  }
  
  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--primary);
  }
  
  footer .footer-text {
    font-size: 1rem;
  }
  
  footer .footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--accent);
    border-radius: 0.8rem;
    text-decoration: none;
    transition: 0.5s;
  }
  
  footer .footer-iconTop a:hover {
    box-shadow: 0 0 20px var(--accent);
    transform: scale(1.1);
  }
  
  /* Animations */
  @keyframes floatImage {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-24px);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  @keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-20px);
    }
  }
  
  /* Particle Animation */
  .particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
  }
  
  .particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: moveParticle 8s linear infinite;
  }
  
  @keyframes moveParticle {
    0% {
      transform: translateY(0) translateX(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      transform: translateY(-500px) translateX(100px);
      opacity: 0;
    }
  }
  
  /* Responsive design */
  @media (max-width: 991px) {
    header {
      padding: 0.5rem 4%;
    }
  
    section {
      padding: 6rem 4% 2rem;
    }
  
    .home {
      padding: 0 4%;
    }
  
    .home-content h1 {
      font-size: 2.8rem;
    }
  
    .home-content .text-animate h3 {
      font-size: 1.8rem;
    }
  
    .home-img {
      width: 50%;
    }
  
    .home-img .glowing-circle,
    .home-img .glowing-circle::after {
      width: 22rem;
      height: 22rem;
    }
  
    .home-img .glowing-circle .image {
      width: 18rem;
      height: 18rem;
    }
  
    .skills-container {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .home {
      flex-direction: column;
      padding-top: 4rem;
    }
  
    .home-content {
      text-align: center;
      margin-bottom: 4rem;
      max-width: 100%;
    }
  
    .home-img {
      position: relative;
      width: 100%;
      height: auto;
      display: flex;
      justify-content: center;
      margin-top: 2rem;
    }
  
    .text-animate h3 {
      width: 100%;
    }
  
    .home-img .glowing-circle,
    .home-img .glowing-circle::after {
      width: 20rem;
      height: 20rem;
    }
  
    .home-img .glowing-circle .image {
      width: 16rem;
      height: 16rem;
    }
  
    .social-links {
      justify-content: center;
    }
  
    .about-content {
      flex-direction: column-reverse;
    }
  
    .about-img {
      width: 100%;
    }
  
    .skills-container {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
  
    .contact form .input-box input {
      width: 100%;
      margin: 0.7rem 0;
    }
  
    #menu-icon {
      display: block;
    }
  
    .navbar {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem 4%;
      background: rgba(15, 15, 27, 0.95);
      border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
      display: none;
      transition: 0.3s;
    }
  
    .navbar.active {
      display: block;
    }
  
    .navbar a {
      display: block;
      font-size: 1.5rem;
      margin: 2rem 0;
    }
  }
  
  @media (max-width: 450px) {
    html {
      font-size: 50%;
    }
  
    .home-img .glowing-circle,
    .home-img .glowing-circle::after {
      width: 18rem;
      height: 18rem;
    }
  
    .home-img .glowing-circle .image {
      width: 14rem;
      height: 14rem;
    }
  
    .heading {
      font-size: 2.5rem;
    }
  }

@media (max-width: 768px) {
  .projects {
    padding-top: 4rem; /* Üst padding'i azalttım */
    z-index: 10; /* Z-index ekledim diğer elementlerin üstünde kalması için */
    position: relative;
  }
  
  .projects-container {
    grid-template-columns: 1fr; /* Mobil görünümde tek sütun olacak */
    gap: 1.5rem; /* Boşluğu azalttım */
  }
  
  .projects-box {
    max-width: 100%; /* Genişliği ayarladım */
    margin: 0 auto; /* Ortaladım */
  }
  
  .projects-box img {
    height: 180px; /* Görsel yüksekliğini azalttım */
  }
  
  .projects-layer h4 {
    font-size: 1.2rem; /* Font boyutunu küçülttüm */
  }
  
  .projects-layer p {
    font-size: 0.9rem; /* Font boyutunu küçülttüm */
  }
}

/* Blog bölümünün z-index'ini arttırın, bu onu diğer öğelerin üstünde tutacaktır */
.projects {
  position: relative;
  z-index: 5;
}

/* Mobil görünümde home ve about bölümlerinin z-index'ini azaltın */
@media (max-width: 768px) {
  .home, .about, .skills {
    z-index: 1;
    position: relative;
  }
  
  /* Diğer bölümlerin üst üste binmesini engellemek için padding ve margin ayarları */
  .home {
    padding-bottom: 2rem;
  }
  
  .about {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .skills {
    padding-top: 2rem;
  }
  
  /* Footer'ın blog bölümünün üstüne gelmesini önleyin */
  footer {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
  }
  
  /* Üst üste binmeyi önlemek için bölümlere min-height ekleyin */
  section {
    min-height: auto; /* vh yerine auto kullanın */
    padding: 3rem 4% 2rem; /* Padding'i azaltın */
  }
  
  /* Blog container yüksekliğini ayarlayın */
  .projects-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Blog kutuları için özel görünürlük ve z-index ayarları */
.projects-box {
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10;
}

/* Tüm projeler için fix */
#projects {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
 