body{

 background: var(--bg-gradient);
 font-weight: 600;
 font-family: 'Poppins', sans-serif;
 
 line-height: 1.6;
 overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
.maintitle{
  font-size: 50px;
  color:var(--heading-color);
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-content{
  display:flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  row-gap: 150px;
  margin: 40px 180px;
  padding: 60px ;
  gap: 300px  ;
  
  
}
.container{
  color: var(--text-primary);
  font-size: 20px ;
  scroll-margin-top: 150px  ;
  padding:2rem;
  background-color: var(--container-bg);
  border-radius: 30px;
  border: 1px solid var(--container-border);
  box-shadow: 0 0 10px 4px var(--container-shadow);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(50px);
}


.fade-in-section {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}


.fade-in-sectionX {
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}
.fade-in-sectionX.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}


.project-video{
  width:600px;
  border: 1px solid var(--container-border);
  border-radius: 20px;
  box-shadow: 0 0 10px 4px var(--container-shadow);
}



.project-container{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 64vw;
  
  gap: 40px;
  padding: 50px;
  margin: 50px;
  height: auto;
  
}
.project-container a{
  color: var(--heading-color);
  text-decoration: none;
  font-style: italic;
  transition: opacity 0.15s;
}

.project-container a:hover{
  opacity: 0.65;
}  

.icons{
  width: 50px;
  border-radius: 30px;
  padding: 20px;
  border: none;
 
}
.icon{
  height: 50px;
  
}
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  background: var(--container-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--container-border);
  border-radius: 25px;
  padding: 15px 12px;
  box-shadow: 0 8px 32px var(--container-shadow);
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor:auto;
  z-index: 1000;
  transform: translateY(0);
}

.scroll-indicator:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--container-shadow);
  opacity: 1;
}

.scroll-indicator.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.scroll-indicator .scroll-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
  animation: smoothFade 3s ease-in-out infinite;
}

.scroll-indicator .scroll-arrow {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--text-primary);
  border-radius: 50%;
  position: relative;
  animation: smoothPulse 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.scroll-indicator .scroll-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid var(--text-primary);
  animation: smoothArrow 3s ease-in-out infinite;
}

.scroll-indicator .scroll-dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.scroll-indicator .scroll-dots .dot {
  width: 3px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: dotFade 3s ease-in-out infinite;
}

.scroll-indicator .scroll-dots .dot:nth-child(1) {
  animation-delay: 0s;
}

.scroll-indicator .scroll-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-indicator .scroll-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes smoothPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes smoothArrow {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) translateY(-2px);
    opacity: 1;
  }
}

@keyframes smoothFade {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dotFade {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
.indicator-scrolled{
  opacity: 0;
}

.contact{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  
}
.contact a {
  text-decoration: none;
  color: var(--text-primary) ;
  transition: all 0.15s;
  display: inline-block;
  padding: 0px;
}
.contact a:hover{
  opacity: 0.65;
  transform: scale(1.02d);
}

@media (max-width: 768px) {

  .main-content{
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    margin-top: 20vw;
    max-width: 90vw;
    padding:10%;
    gap: 100vw;
    font-weight: 400;
  }
 
  .project-container{
    flex-direction: column;
    width: auto;
    margin: 5%;
    padding: 5%;
  }

  .project-video {
    width: 100%;
    height: auto;
    
  }
  .maintitle{
    font-size: 16px;
  }
 
  .form {
    
    margin-top: 100px;
    width: auto;
  
  }

  .send-button {
    font-size: 14px;
    height: 32px;
  }
 
  .hero {
    height: 60vh;
    min-height: 400px;
    max-height: 500px;
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
    margin: 1rem 0;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .profile-img {
    width: 80px;
    height: 80px;
  }

  .cta-button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .scroll-indicator {
    bottom: 20px;
    right: 20px;
    padding: 12px 10px;
  }

  .scroll-indicator .scroll-text {
    font-size: 0.7rem;
  }

  .scroll-indicator .scroll-arrow {
    width: 18px;
    height: 18px;
  }

  .scroll-indicator .scroll-arrow::before {
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-top: 4px solid var(--text-primary);
  }

  .scroll-indicator .scroll-dots .dot {
    width: 2px;
    height: 2px;
  }
}

.footer{
  display: flex;
  justify-content: center;
  margin-bottom: 2%;
  color: var(--text-primary);
}

.form{
  display: flex;
  flex-direction: column;
  gap: 1vw;
  margin-top: 150px;
  
}
.send-button  {
  border: none;
  background-color: var(--button-bg);
  color: var(--button-text);
  border-radius: 6px;
  height: auto;
  transition: all 0.25s;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: bold;
}

.send-button:hover{
  opacity: 0.85;
  cursor: pointer;
  box-shadow: 0 10px 25px var(--container-shadow);
  color: var(--button-hover-text);
  background-color: var(--button-hover-bg);
}
.send-button:active{
  opacity: 0.65;
  transform: scale(0.95);
}

.text-input {
  height: 36px;
  padding: 8px 12px;
  border: 1px solid #444;
  background-color: var(--button-bg);
  color:  var(--button-text);
  outline: none;
  transition: all 0.25s;
  border-radius: 6px;
}

.text-input:focus {
  border-color: var(--bg-color);
  box-shadow: 0 0 5px var(--container-shadow);
  transform: scale(1.03);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  height: 70vh;
  min-height: 500px;
  max-height: 600px;
  padding: 2rem;
  background-color: var(--container-bg);
  border-radius: 30px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px); 
  border: 1px solid var(--container-border);
  box-shadow: 0 0 10px 4px var(--container-shadow);
  margin: 2rem 0;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.hero-content h2 {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.hero-content p {
  font-size: 0.95rem;
  max-width: 450px;
  margin: 0 auto 1.2rem auto;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cta-button:hover {
  background-color: var(--button-hover-bg);
  color: var(--button-hover-text);
 box-shadow: 0 1px 25px var(--container-shadow);
}

button:active{
  transform: scale(0.95);
}

.profile-img{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.8rem;
  box-shadow: 0px 0px 8px 5px var(--container-shadow);
  border: 2px solid #FFF5E1;
}

:root {
  --bg-gradient: linear-gradient(90deg, #647079 0%, #ffffff 100%);
  --bg-color: #f7f7f7; 
  --text-primary: #2a2a35;
  --text-secondary: #555555;
  --heading-color:#214967;
  --accent-color: var(--text-primary);

  --container-bg: rgba(255, 255, 255, 0.08);
  --container-border: rgba(255, 255, 255, 0.15);
  --container-shadow: rgba(46, 42, 42, 0.4);

  --black-font: #1a1a1a;
  --input-border: #444;
  --input-focus-shadow: rgba(148, 78, 139, 0.6);
  
  --button-bg:#214967;
  --button-text:#f7f7f7;
  --button-hover-bg:var(--button-text);
  --button-hover-text:var(--button-bg);

  --link-hover: #944e8b;
}

body.dark-mode {
 --bg-gradient:  linear-gradient(90deg, #13131a 0%, #1c1f2a 100%);
  --bg-color: #f7f7f7; 
  --text-primary: #FFF5E1;
  --text-secondary: #555555; 
  --heading-color:#94b9d4;
  --accent-color: var(--text-primary);

  --container-bg: rgba(255, 255, 255, 0.08);
  --container-border: rgba(255, 255, 255, 0.15);
  --container-shadow: rgba(56, 56, 61, 0.4);

  --button-bg:#f7f7f7dc;
  --button-text:#214967;
  --button-hover-bg:var(--button-text);
  --button-hover-text:var(--button-bg);

  --black-font: #fff5e1;
  --input-border: #444;
  --input-focus-shadow: rgba(148, 78, 139, 0.6);
  
  
}  /* LOADİNG SCREEN*/ 
    .loading-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--bg-gradient);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    }

    .loading-screen.hidden {
      opacity: 0;
      visibility: hidden;
    }

    .loading-logo {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--heading-color);
      margin-bottom: 2rem;
      animation: fadeInUp 1s ease-out;
    }

    .loading-spinner {
      width: 50px;
      height: 50px;
      border: 3px solid var(--container-border);
      border-top: 3px solid var(--text-primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-bottom: 1rem;
    }

    .loading-text {
      color: var(--text-primary);
      font-size: 1.1rem;
      font-weight: 500;
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes pulse {
      0%, 100% { opacity: 0.6; }
      50% { opacity: 1; }
    }

    .main-content, .header, .footer {
      opacity: 0;
      transition: opacity 0.5s ease-in;
    }

    .content-loaded {
      opacity: 1;
    }

    @media (max-width: 768px) {
      .loading-logo {
        font-size: 2rem;
      }
      
      .loading-spinner {
        width: 40px;
        height: 40px;
      }
      
      .loading-text {
        font-size: 1rem;
      }

      /* LOADİNG SCREEN*/
    }
    
/* Section backgrounds for visual separation */
.section-hero {
  background: linear-gradient(120deg, #e0e7ef 0%, #f7f7fa 100%);
  /* Hafif mavi-gri gradient */
}

.section-aboutme {
  background: linear-gradient(120deg, #f7f7fa 0%, #fbeffb 100%);
  /* Açık morumsu-beyaz gradient */
}

.section-skills {
  background: linear-gradient(120deg, #f7f7fa 0%, #eafaf1 100%);
  /* Hafif yeşilimsi-beyaz gradient */
}

.section-projects {
  background: linear-gradient(120deg, #f7f7fa 0%, #e8f0fe 100%);
  /* Hafif mavi-beyaz gradient */
}

.section-contact {
  background: linear-gradient(120deg, #f7f7fa 0%, #fffbe7 100%);
  /* Hafif sarımsı-beyaz gradient */
}

.section-hero,
.section-aboutme,
.section-skills,
.section-projects,
.section-contact {
  border-radius: 32px;
  margin-bottom: 48px;
  box-shadow: 0 4px 24px 0 rgba(46,42,42,0.07);
}

/* Dark Mode Section Backgrounds */
body.dark-mode .section-hero {
  background: linear-gradient(120deg, #1a1f2e 0%, #2a2f3e 100%);
  /* Koyu mavi-gri gradient */
}

body.dark-mode .section-aboutme {
  background: linear-gradient(120deg, #2a2f3e 0%, #2d1f2e 100%);
  /* Koyu morumsu gradient */
}

body.dark-mode .section-skills {
  background: linear-gradient(120deg, #2a2f3e 0%, #1f2e1f 100%);
  /* Koyu yeşilimsi gradient */
}

body.dark-mode .section-projects {
  background: linear-gradient(120deg, #2a2f3e 0%, #1f2a3e 100%);
  /* Koyu mavi gradient */
}

body.dark-mode .section-contact {
  background: linear-gradient(120deg, #2a2f3e 0%, #3e2f1f 100%);
  /* Koyu sarımsı gradient */
}

body.dark-mode .section-hero,
body.dark-mode .section-aboutme,
body.dark-mode .section-skills,
body.dark-mode .section-projects,
body.dark-mode .section-contact {
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .section-hero,
  .section-aboutme,
  .section-skills,
  .section-projects,
  .section-contact {
    border-radius: 18px;
    margin-bottom: 24px;
    padding: 2rem;
    
    font-size: 16px;
  }
}
    
.project-video:hover{
  transform: scale(1.4);
  z-index: 2;
}
.project.project-video::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(5px);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}


.container:not(#contact):not(#myskills):not(#project) {
  background: linear-gradient(120deg, #f7f7fa 0%, #fbeffb 100%);
}

#myskills.container {
  background: linear-gradient(120deg, #f7f7fa 0%, #eafaf1 100%);
}

#project.container {
  background: linear-gradient(120deg, #f7f7fa 0%, #e8f0fe 100%);
}

#contact.container {
  background: linear-gradient(120deg, #f7f7fa 0%, #fffbe7 100%);
}


body.dark-mode .container:not(#contact):not(#myskills):not(#project) {
  background: linear-gradient(120deg, #2a2f3e 0%, #2d1f2e 100%);
}

body.dark-mode #myskills.container {
  background: linear-gradient(120deg, #2a2f3e 0%, #1f2e1f 100%);
}

body.dark-mode #project.container {
  background: linear-gradient(120deg, #2a2f3e 0%, #1f2a3e 100%);
}

body.dark-mode #contact.container {
  background: linear-gradient(120deg, #2a2f3e 0%, #3e2f1f 100%);
}
