/* Reset and Default Fonts */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #4a6fa5; /* Matches your blue background */
  color: #333333;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

#main {
  width: 100%;
  max-width: 900px;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Header / Hero Section */
.hero {
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.profile-container {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #d1d5db;
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 1.8rem;
  color: #111827;
}

.hero-text h2 {
  font-size: 1.2rem;
  color: #4b5563;
  margin-top: 4px;
}

.skills-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
  background-color: #eff6ff;
  padding: 4px 10px;
  border-radius: 6px;
}

.summary {
  margin-top: 14px;
  color: #4b5563;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Apps Grid */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #111827;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* App Card Layout */
.app-card {
  background: rgba(255, 255, 255, 0.45); /* Semi-transparent light surface */
  backdrop-filter: blur(20px) saturate(180%); /* Apple system backdrop blur & vibrancy */
  -webkit-backdrop-filter: blur(20px) saturate(180%); /* Safari support */
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  
  /* Glass border and multi-layered depth shadow */
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.07),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);
    
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Subtle lift interaction on hover */
.app-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 12px 40px 0 rgba(31, 38, 135, 0.12),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: #3b82f6; /* Placeholder color matching mockups */
  object-fit: cover;
  flex-shrink: 0;
}

.app-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.app-title-group h3 {
  font-size: 1rem;
  color: #1f2937;
}

.store-btn {
  font-size: 0.85rem;
  color: #1d4ed8;
  text-decoration: underline;
  font-weight: 500;
}

.store-btn:hover {
  color: #1e40af;
}

.app-description {
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.4;
}

/* Footer Section */
#footer {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.social-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px; /* Spacing between icon and label */
  transition: color 0.2s ease;
}

.social-link i {
  font-size: 1.1rem; /* Slightly larger icon size for proper visual weight */
}

.social-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Responsive Mobile Layout */
@media (max-width: 650px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  #footer {
    justify-content: center;
  }
}
/* Hide broken image icon frames */
img:not([src]), img[src=""] {
  opacity: 0;
}

/* Ensure images maintain clean rounded boundaries */
.app-logo, .profile-img {
  object-fit: cover;
  background-color: #cbd5e1;
}