/* Projects Module CSS */
.projects-section {
  position: relative;
  overflow: hidden;
  padding: 50px 0;
}

.projects-header {
  display: none;
}

.projects-filter {
  display: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  padding-top: 20px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  transform: translateY(0);
  border: 1px solid var(--border-color);
  max-width: 400px;
  margin: 0 auto;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 180px !important;
  max-height: 180px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.8s ease;
  margin: 0 auto;
  display: block;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
  gap: 15px;
  margin: 0 auto;
}

.project-card:hover .project-buttons {
  transform: translateY(0);
  opacity: 1;
}

.project-content {
  padding: 20px;
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  transition: all 0.3s ease;
}

.project-card:hover .project-content {
  background: linear-gradient(135deg, var(--card-bg), var(--card-bg-hover));
}

.project-category {
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000 !important;
  transition: all 0.3s ease;
  text-align: center;
}

.project-card:hover .project-title {
  color: var(--secondary-color);
}

.project-description {
  color: #333 !important;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.project-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-link {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

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

.project-link i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(3px);
}

/* Project Modal */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background-color: var(--background-light);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s ease 0.1s;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.project-modal.active .modal-container {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  position: relative;
  height: 50vh;
  max-height: 400px;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
  background-color: #3367d6;
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
  max-height: calc(90vh - 400px);
  overflow-y: auto;
}

.modal-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.modal-category {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-value {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.modal-btn {
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border: none;
}

.modal-btn-primary:hover {
  background-color: #3367d6;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.modal-btn-secondary {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-light);
}

.modal-btn-secondary:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-image {
    height: 160px !important;
    max-height: 160px !important;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    padding: 30px;
  }
  
  .modal-title {
    font-size: 1.8rem;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .modal-btn {
    width: 100%;
    justify-content: center;
  }
  
  .project-image {
    height: 140px !important;
    max-height: 140px !important;
  }
}

@media (max-width: 576px) {
  .projects-filter {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    text-align: center;
  }
  
  .modal-header {
    height: 40vh;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .project-image {
    height: 120px !important;
    max-height: 120px !important;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-description {
    font-size: 0.85rem;
  }
}

/* Oyun Container Stilleri */
.game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-container.active {
  opacity: 1;
  visibility: visible;
}

.phone-frame {
  position: relative;
  width: 260px !important;
  height: 520px !important;
  background-color: #000;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 0 30px rgba(0, 100, 255, 0.5);
  overflow: hidden;
  border: 8px solid #333;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.game-container.active .phone-frame {
  transform: scale(1);
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
  background-color: #fff;
}

.game-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.game-close-btn:hover {
  background-color: var(--accent-color-dark);
  transform: scale(1.1);
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
  .phone-frame {
    width: 240px !important;
    height: 480px !important;
  }
}

@media (max-width: 576px) {
  .phone-frame {
    width: 220px !important;
    height: 440px !important;
  }
}

/* Telefon Çerçevesi Modal Stilleri */
.phone-frame-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  padding: 20px;
}

.phone-frame-modal.active {
  opacity: 1;
  visibility: visible;
}

.phone-frame-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.8) translateY(50px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.phone-frame-modal.active .phone-frame-container {
  transform: scale(1) translateY(0);
}

.phone-device {
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 30px;
  border: 4px solid #252547;
  padding: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  box-shadow: 0 0 30px rgba(67, 97, 238, 0.3);
}

.phone-device:hover {
  box-shadow: 0 0 70px rgba(67, 97, 238, 0.5);
}

.phone-top {
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-speaker {
  width: 60px;
  height: 6px;
  background-color: #333;
  border-radius: 3px;
  position: relative;
}

.phone-speaker::before {
  content: '';
  position: absolute;
  right: -70px;
  top: -2px;
  width: 10px;
  height: 10px;
  background-color: #333;
  border-radius: 50%;
}

.phone-camera {
  position: absolute;
  right: 80px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at center, #222, #444);
  border-radius: 50%;
  border: 2px solid #333;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.5);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen iframe, 
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
  border: none;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
  z-index: 10;
  pointer-events: none;
}

.phone-bottom {
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-home-button {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #222, #333);
  border-radius: 50%;
  border: 2px solid #444;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.phone-home-button:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.phone-home-button::after {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid #555;
  border-radius: 3px;
}

.phone-frame-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--secondary-color);
  color: var(--text-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1001;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.phone-frame-close:hover {
  background-color: #3367d6;
  transform: rotate(90deg);
}

.phone-frame-close i {
  transition: all 0.3s ease;
}

.phone-frame-title {
  margin-top: 25px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.2s;
}

.phone-frame-modal.active .phone-frame-title {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Ayarlar */
@media (max-width: 992px) {
  .phone-device {
    width: 280px;
    height: 560px;
  }
}

@media (max-width: 768px) {
  .phone-device {
    width: 260px;
    height: 520px;
  }
  
  .phone-frame-close {
    top: -40px;
    right: -20px;
    width: 45px;
    height: 45px;
  }
  
  .phone-frame-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .phone-device {
    width: 240px;
    height: 480px;
  }
  
  .phone-frame-close {
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .phone-frame-title {
    font-size: 1.2rem;
    margin-top: 20px;
  }
}

/* Demoyu Oyna Butonu Stilleri */
.play-demo-btn {
  display: block;
  padding: 8px 16px;
  background-color: var(--secondary-color);
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin: 8px auto;
  text-align: center;
  width: auto;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.play-demo-btn:hover {
  transform: translateY(-2px);
  background-color: #3367d6;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.play-demo-btn i {
  font-size: 1rem;
  margin-right: 4px;
}

/* Ripple Efekti */
.button-ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Featured Projects Styles */
.projects-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
  justify-items: center;
  text-align: center;
}

.featured-project-item {
  position: relative;
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.featured-phone-device {
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 30px;
  border: 4px solid #252547;
  padding: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  box-shadow: 0 0 30px rgba(67, 97, 238, 0.3);
}

.featured-phone-device:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 50px rgba(67, 97, 238, 0.5);
}

.featured-phone-screen {
  flex: 1;
  width: 100%;
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.featured-phone-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.featured-phone-top {
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
}

.featured-phone-speaker {
  width: 60px;
  height: 6px;
  background-color: #333;
  border-radius: 3px;
  position: relative;
}

.featured-phone-speaker::before {
  content: '';
  position: absolute;
  right: -70px;
  top: -2px;
  width: 10px;
  height: 10px;
  background-color: #333;
  border-radius: 50%;
}

.featured-phone-bottom {
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.featured-phone-home {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #222, #333);
  border-radius: 50%;
  border: 2px solid #444;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.featured-phone-home::after {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid #555;
  border-radius: 3px;
}

.featured-project-title {
  color: #000;
  font-size: 1.3rem;
  margin: 15px auto;
  text-align: center;
  width: 100%;
  display: block;
  left: 0;
  right: 0;
  position: relative;
}

@media (max-width: 992px) {
  .featured-phone-device {
    width: 280px;
    height: 560px;
  }
  .projects-slider {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .featured-phone-device {
    width: 260px;
    height: 520px;
  }
  .projects-slider {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .featured-phone-device {
    width: 240px;
    height: 480px;
  }
}

.hero-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  width: 100%;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: center;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-character {
  width: 450px;
  height: auto;
  position: absolute;
  right: -250px;
  top: 50%;
  transform: translateY(-50%);
  animation: initialFloat 2s ease-out forwards;
}

@keyframes initialFloat {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@media (max-width: 1200px) {
  .hero-character {
    width: 450px;
    right: -180px;
  }
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .hero-character {
    width: 350px;
    right: -120px;
  }
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-character {
    width: 250px;
    right: -80px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero-character {
    display: none;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
} 