* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #1b2038 0%, #2a1b4e 50%, #431c5d 100%);
  min-height: 100vh;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mobilde Tam Yayılma, Masaüstünde Kart Görünümü */
.app-container {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) {
  .app-container {
    min-height: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin: 20px auto;
  }
}

/* Üst Arama Barı */
.search-bar {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a0a5c0;
  font-size: 14px;
  margin-bottom: 24px;
}

.search-bar input {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  margin-left: 8px;
  width: 100%;
}

/* Profil Kartı */
.profile-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.profile-avatar {
  width: 75px;
  height: 75px;
  border-radius: 20px;
  background: #c2c7cf;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 38px;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h5 {
  margin: 0 0 4px 0;
  font-weight: 700;
  font-size: 18px;
}

.profile-info .title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.profile-info .desc {
  font-size: 11px;
  color: #b0b5c0;
  margin: 0;
}

/* Grid & Butonlar */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 12px;
}

.app-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.app-item:active {
  transform: scale(0.95);
}

.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 6px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.app-label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

/* İkon Renkleri */
.bg-hakkimda { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.bg-projeler { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); color: #333; }
.bg-blog     { background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); }
.bg-galeri   { background: linear-gradient(135deg, #c32dd0 0%, #9026ac 100%); }
.bg-iletisim { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: #111; }
.bg-whatsapp { background: #25D366; }
.bg-youtube { background: #ff0033; }
.bg-facebook { background: #0866ff; }
.bg-instagram{ background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.bg-eposta   { background: linear-gradient(135deg, #ff5858 0%, #f09819 100%); }
.bg-telefon  { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

/* Dinamik Açılır Pencere (Modal) Styles */
.content-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1000;
  display: none;
}

.content-modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal-body-custom {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  max-height: 85vh;
  background: #24193d;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}

.modal-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.modal-header-custom h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.modal-content-area img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

.modal-content-area p {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.6;
}