:root {
    --bg-dark: #0a0a0a;
    --card-dark: #141414;
    --primary-red: #ff4d5a;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

nav {
    padding: 30px 5%;
    display: flex;
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo { height: 60px; filter: drop-shadow(0 0 10px rgba(255, 77, 90, 0.3)); }

.brand-name {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #251214 0%, var(--bg-dark) 70%);
}

.hero h1 { font-size: 4rem; margin: 0; letter-spacing: -2px; }
.hero p { color: var(--text-dim); font-size: 1.2rem; max-width: 600px; margin: 20px auto; }

/* Grid Ayarları */
.portfolio-grid {
    display: grid;
    /* Kartların genişliği min 320px olacak, sığarsa 3'ü yan yana gelir */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 5% 100px 5%; /* Paddingi biraz daralttım ki kartlara yer kalsın */
    max-width: 1400px; /* Genişliği artırdım 3 kart rahat sığsın */
    margin: 0 auto;
}

/* Kart Yapısı - Flex Düzeni */
.app-card {
    background: var(--card-dark);
    padding: 40px 30px;
    border-radius: 30px;
    border: 2px solid #222; /* Border kalınlığını 2px yaptım, renk değişimi belli olsun */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    
    /* Hizalama Sihri Burası: */
    display: flex;
    flex-direction: column;
    height: 100%; /* Grid hücresini tamamen kapla */
}

/* Görsel Alanı */
.app-visual {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.app-image {
    width: 140px;      
    height: 140px;      
    object-fit: cover;
    border-radius: 28px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.app-card h3 { 
    font-size: 1.8rem; 
    margin: 10px 0; 
    color: #fff;
}

/* Açıklama Alanı */
.app-card p { 
    color: var(--text-dim); 
    font-size: 1rem; 
    line-height: 1.5;
    margin-bottom: 30px; 
    
    /* Bu özellik description kısa kalsa bile butonları en alta iter */
    flex-grow: 1; 
}

/* Buton Alanı */
.store-buttons {
    margin-top: auto; /* Kartın en altına sabitle */
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Kawaii için çift buton düzeni */
.store-buttons.dual-buttons {
    gap: 8px;
}

/* Buton Genel Stil */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
    min-width: 140px; /* Butonların genişlikleri dengeli olsun */
}

/* Çift buton varsa biraz daha dar olabilirler */
.dual-buttons .btn {
    padding: 12px 15px;
    min-width: auto;
    font-size: 0.85rem;
}

.btn:hover { 
    transform: translateY(-3px); 
    opacity: 0.9;
}

/* Renkler */
.btn-android { background-color: #01875f; } /* Android Yeşili */
.btn-ios { background-color: #007AFF; }     /* iOS Mavisi */

/* --- KART HOVER EFEKTLERİ --- */

/* 1. Wordio - Turuncu */
.app-card.card-wordio:hover {
    transform: translateY(-10px);
    border-color: #FF8C00;
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.15);
}

/* 2. Kawaii - Sarı */
.app-card.card-kawaii:hover {
    transform: translateY(-10px);
    border-color: #FFD700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15);
}

/* 3. Truth or Dare - Kırmızı */
.app-card.card-tod:hover {
    transform: translateY(-10px);
    border-color: #FF3b30;
    box-shadow: 0 20px 40px rgba(255, 59, 48, 0.15);
}

footer {
    padding: 60px 20px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.legal-links { margin-top: 20px; }
.legal-links a { color: var(--text-dim); text-decoration: none; margin: 0 15px; font-size: 0.85rem; }
.legal-links a:hover { color: var(--primary-red); }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .hero h1 { font-size: 2.5rem; }
}