/* ============================= */
/*           Ortak CSS           */
/* ============================= */

:root {
  --color-primary: #020060;
  --color-secondary: #0f3460;
  --color-accent: #4a90e2;
  --color-hover: #66b5ff;
  --color-background: #ffffff;
  --color-light-bg: #f5f7fa;
  --color-text: #2d3748; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;

  --font-size-logo-desktop: 8rem;
  --font-size-logo-tablet: 6rem;
  --font-size-logo-mobile: 4rem;  

  --font-size-h1-desktop: 8rem;
  --font-size-h1-tablet: 6rem;
  --font-size-h1-mobile: 4rem;

  --font-size-h2-desktop: 2.5rem;
  --font-size-h2-tablet: 2rem;
  --font-size-h2-mobile: 1.8rem;

  --font-size-h3-desktop: 1.5rem;
  --font-size-h3-mobile: 1.4rem;

  --font-size-body: 1rem;
  --font-size-body-mobile: 0.9rem;

  --font-size-button-desktop: 1.25rem;
  --font-size-button-mobile: 1rem;

  --font-size-footer: 0.8rem;

  --font-logo-family: "Figtree", sans-serif;
}

body {
  background-color: var(--color-light-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px; 
  margin: 0 auto;
  padding: 2rem;
  overflow: hidden;
}

@font-face {
  font-family: 'ArtemisLogo';
  src: url('path/to/your/artemis-font.woff2') format('woff2'),
       url('path/to/your/artemis-font.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--color-primary), var(--color-secondary) 80%);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--color-accent);
  /* Header için sabit height yerine yine 100vh tercih edilebilir */
  height: 100vh;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

header .content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

header h1 {
  animation: fadeInScales ease-out 3s both;
  font-size: var(--font-size-h1-desktop);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1rem;
  font-family: var(--font-logo-family);
  font-weight: 800;
  font-style: normal;
  color: #e2e8f0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  color: #a0aec0;
}

footer {
  background-color: #e2e8f0;
  color: #4a5568;
  text-align: center;
  padding: 0.5rem 0; 
  font-size: 0.8rem;
}

/* Glassmorphism Contact Form with Blue-Navy Tones */
#contactForm {
  /* Dark navy tinted background with transparency */
  background: rgba(6, 12, 29, 0.619);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.862);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 10, 151, 0.2);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
  color: #fff;
}

/* Form Heading */
#contactForm h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.8rem;
  color: #fff;
}

/* Form Labels */
#contactForm label {
  display: block;
  margin-top: 1rem;
  margin-left: 1rem;
  margin-right: auto;
  font-weight: 800;
  color: #ffffff; /* Light Steel Blue */
  text-align: left;
}

/* Input Fields and Textarea */
#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: background 0.3s ease;
}

/* Placeholder Styling */
#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #dcdcdc;
}

/* Focus State for Inputs */
#contactForm input:focus,
#contactForm textarea:focus {
  background: rgba(99, 122, 206, 0.505);
}

/* Submit Button */
#contactForm button {
  margin-top: 1.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

#contactForm button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}





@keyframes modalIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--color-hover);
}

.modal-content label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
}

textarea#user_message {
  height: 200px;
}

.modal-content button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-background);
  border: none;
  border-radius: 4px;
  font-size: var(--font-size-button-desktop);
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background: var(--color-hover);
}



/* ============================= */
/*  Artemis Birikim'e Özel CSS     */
/* ============================= */

/* Genel bölüm yüksekliği: Sabit height yerine içerik esneyebilsin diye min-height kullanıldı */
section {
  min-height: 100vh;
}

/* Features Bölümü */
.features {
  box-sizing: border-box;
  max-width: 100%;
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background-size: 400% 400%;
  animation: gradientAnimation 30s ease infinite;
  z-index: 0;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 30%; }
  50% { background-position: 80% 50%; }
  100% { background-position: 0% 40%; }
}

.features .container {
  position: relative;
  z-index: 1;
  height:90vh;
}

.features h2 {
  font-size: 2.5rem; 
  margin-bottom: 3rem;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  display: inline-block;
  color: #2d3748;
  overflow: hidden;
  white-space: nowrap;
}

.features h2::after {
  content: "";
  position: absolute;
  bottom: -0.75rem; 
  left: 50%;
  transform: translateX(-50%);
  width: 5rem; 
  height: 0.25rem;
  background-color: #4a90e2;
}

/* Feature Grid - Mobilde yatay scroll ekleniyor */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 2rem;
}

.feature {
  max-height: 100%;
  box-sizing: border-box;
  max-width: 100%;
  padding: 2.5rem;
  background-color: rgba(74, 144, 226, 0.1);
  border-radius: 1.25rem; 
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s;
  position: relative;
  transform-style: preserve-3d;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 144, 226, 0.2); 
}

.feature:hover {
  background-color: rgba(74, 144, 226, 0.2);
  transform: translateY(-0.75rem) rotateY(10deg);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.feature h3 {
  font-size: 1.5rem; 
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem; 
  font-weight: 700;
  color: #2d3748;
}

.feature p {
  font-size: 1rem; 
  line-height: 1.6;
  color: #4a5568; 
}

/* How It Works Bölümü - İçeriğin tamamı erişilebilir olması için scroll ekleniyor */
.how-it-works {
  padding: 5rem 0;
  background: linear-gradient(150deg, #e0e9f8, #cce7ff 70%);
  text-align: center;
  min-height: 100vh;
  overflow-y: auto;
}

.how-it-works h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  display: inline-block;
  color: #2d3748;
  overflow: hidden;
  white-space: nowrap;
}

.how-it-works h2::after {
  content: "";
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 0.25rem;
  background-color: #4a90e2;
}

.hiw-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.steps-wrapper{
  display: flex;
  flex-direction: column;
  justify-content: center;

}

/* Adım (step) elemanları */
.steps {
  margin-block-end: 3rem;
  margin-inline: auto;

}

.steps:nth-of-type(odd) {
  margin-left: 10%;
  margin-right: auto;
}

.steps:nth-of-type(even) {
  margin-left: auto;
  margin-right: 10%;
}

@media (max-width: 768px) {
  .steps {
      margin-inline: 1rem;
  }
  .step {
      width: 90%;
  }
}

.step {
  position: relative;
  height: 360px;
  width: 720px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
}

.step-number {
  display: block;
  width: fit-content;
  margin: 0 auto 1.25rem;
  font-size: 2.5rem;
  font-weight: bold;
  color: #4a90e2;
  text-align: center;
  position: relative;
}

.step-number::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,144,226,0.4) 0%, rgba(74,144,226,0) 70%);
  z-index: -1;
}

.step h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #2d3748;
}

.step p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
}

/* CTA Bölümü */
.cta {
  background-color: #edf2f7; 
  color: #2d3748;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.square {
  position: absolute;
  background-color: rgba(74, 144, 226, 0.2); 
  border-radius: 0.625rem; 
  animation: rotateAndScale linear infinite;
}

.square:nth-child(1) {
  top: 10%;
  left: 2%;
  width: 5rem; 
  height: 5rem;
  animation-duration: 15s;
}

.square:nth-child(2) {
  top: 80%;
  right: 10%;
  width: 3.75rem;
  height: 3.75rem;
  animation-duration: 12s;
}

.square:nth-child(3) {
  top: 5%;
  right: 5%;
  width: 6.25rem;
  height: 6.25rem;
  animation-duration: 18s;
}

.square:nth-child(4) {
  top: 55%;
  right: 20%;
  width: 6.25rem;
  height: 6.25rem;
  animation-duration: 18s;
}

.square:nth-child(5) {
  top: 80%;
  right: 50%;
  width: 6.25rem;
  height: 6.25rem;
  animation-duration: 18s;
}

.square:nth-child(6) {
  top: 50%;
  right: 65%;
  width: 6.25rem;
  height: 6.25rem;
  animation-duration: 18s;
}

@keyframes rotateAndScale {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: rotate(180deg) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.5;
  }
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem; 
  text-transform: uppercase;
  font-weight: 700;
  color: #2d3748;
  overflow: hidden;
  white-space: wrap;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1.25rem 3rem; 
  background: linear-gradient(135deg, #4a90e2, #66b5ff);
  color: #fff;
  text-decoration: none;
  border-radius: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 0.5rem 1rem rgba(74, 144, 226, 0.5);
  position: relative;
  overflow: hidden;
  animation: animate__animated animate__pulse animate__infinite animate__slower;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0.75rem 1.5rem rgba(74, 144, 226, 0.7);
  animation: none;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.7s ease;
}

.cta-button:hover::before {
  left: 100%;
}

@media screen and (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  header h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: var(--font-size-h1-tablet);
  }
}

@media (max-width: 992){
  .feature-grid{
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: var(--font-size-h1-mobile);
  }
  header p {
    font-size: 1rem;
  }
}


@media (max-width: 480px) {
  .feature-grid { 
      display: flex;
      overflow-x: auto;
      gap: 1rem;
      padding: 1rem;
      -webkit-overflow-scrolling: touch;
  }
  .feature-grid::-webkit-scrollbar {
      display: none;
  }
  .feature {
      flex: 0 0 280px;
  }

  /* .steps alanında kenar boşluklarını azaltıyoruz */
  .steps-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;

  }
  .steps {
    width: 70%;
    margin-inline: auto;
  }
  /* .step elemanlarında genişlik %90, yüksekliği otomatik olarak ayarlanıyor */
  .step {
    width: 90%;
    height: auto;
    padding: 1rem; /* İçerik yoğunluğuna göre padding azaltıldı */
  }
  /* Başlık ve metin boyutlarını mobil için küçültüyoruz */
  .step h3 {
    font-size: 1.2rem;
  }
  .step p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  /* Adım numarası boyutunu da mobilde biraz küçültüyoruz */
  .step-number {
    font-size: 2rem;
  }
}


@media (max-width: 400px) {
  header h1{
    font-size: 3rem;
  }
  .about-us h2 {
      font-size: 1.8rem;
  }
  .about-us p {
      font-size: 1rem;
      max-width: 90%;
  }
  .feature h3{
    font-size: 1.2rem;
  }
  .cta h2{
    font-size: 1.6rem;
  }
}