/* ===== FOOTER ===== */
.footer {
  background-color: var(--bg-secondary);
  padding: 40px 0;
  text-align: center;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    to bottom,
    var(--bg-primary),
    var(--bg-secondary)
  );
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  max-width: 1400px;
  margin: 0 auto 40px auto;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-code);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: rgba(11, 37, 54, 0.5);
  color: white;
  transform: translateY(-5px);
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-primary);
  animation: spin 1s infinite ease-in-out;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== TYPEWRITER EFFECT ===== */
.typewriter-text {
  overflow: hidden;
  margin: 0;
  letter-spacing: 0.05em;
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  min-height: 60px;
}

.typewriter-text .accent-text {
  color: rgba(162, 248, 91, 0.9);
}

/* ===== RESPONSIVE DESIGN ===== */

/* ===== STATS SECTION ===== */
.stats {
  background-color: var(--bg-primary);
  position: relative;
  padding: var(--section-padding);
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to bottom,
    var(--bg-secondary),
    var(--bg-primary)
  );
  z-index: 1;
}

.counter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 20px;
}

.counter-item {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.counter-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-top: 4px solid rgb(12, 97, 153);
}

.counter-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}

.counter-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 2px;
}

.counter-value {
  font-size: 3rem;
  font-weight: 700;
  color: rgb(12, 97, 153);
  font-family: var(--font-code);
  text-shadow: 0 0 10px rgba(12, 97, 153, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-top: 5px;
  letter-spacing: 1px;
}

/* ===== TÜM PROJELERİ GÖR BUTONU ===== */
.view-all-projects {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 20px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  color: var(--text-primary);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: none;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgb(12, 97, 153);
}

.view-all-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(12, 97, 153, 0.2), transparent);
  transition: all 0.5s ease;
}

.view-all-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  color: rgb(12, 97, 153);
}

.view-all-btn:hover::before {
  left: 100%;
}

.view-all-btn i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.view-all-btn:hover i {
  transform: translateX(5px);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--bg-primary);
  position: relative;
  padding: var(--section-padding);
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to bottom,
    var(--bg-secondary),
    var(--bg-primary)
  );
  z-index: 1;
}

.contact-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto 30px;
  padding: 0 20px;
}

.contact-item {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border-radius: 15px;
  padding: 30px;
  width: 300px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.contact-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-top: 4px solid rgb(12, 97, 153);
}

.contact-icon {
  font-size: 2.5rem;
  color: rgb(12, 97, 153);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.2);
  color: var(--accent-primary);
}

.contact-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.contact-text p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-text a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-text a:hover {
  color: rgb(12, 97, 153);
}

.social-container {
  max-width: 600px;
  margin: 0 auto 50px;
  text-align: center;
  padding: 30px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, rgba(40, 51, 69, 0.7), rgba(25, 33, 52, 0.9));
  color: var(--text-primary);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  color: rgb(12, 97, 153);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .contact-container {
    gap: 20px;
  }
  
  .contact-item {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== SURPRISE MODAL ===== */
.surprise-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.surprise-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.surprise-modal-content {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  margin: auto;
  padding: 0;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  transform: translateY(30px);
  transition: transform 0.4s ease;
  border-top: 4px solid rgb(12, 97, 153);
}

.surprise-modal.show .surprise-modal-content {
  transform: translateY(0);
}

.surprise-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.surprise-modal-body {
  padding: 30px;
  text-align: center;
}

.surprise-modal-body h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 600;
}

.surprise-modal-body p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-secondary);
  min-height: 100px;
}

#nextSurpriseBtn {
  margin-top: 10px;
  padding: 12px 30px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

#nextSurpriseBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

#surpriseText {
  animation: fadeIn 0.5s ease;
}