:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg-outer: #262626; /* Dark background behind the phone */
  --phone-border: #f1efe7; /* Cream/Off-white frame */
  
  /* Colors from the image */
  --theme-bg: linear-gradient(180deg, #0a4d7a 0%, #021a2b 100%);
  --link-bg: #051928;
  --link-border: rgba(255, 255, 255, 0.05);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --input-bg: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.2s ease-in-out;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-outer);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-main);
  line-height: 1.5;
}

/* Phone Frame Container */
.container {
  width: 100%;
  max-width: 420px;
  background: var(--phone-border);
  padding: 12px;
  border-radius: 60px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  position: relative;
}

/* Internal Card (The Screen) */
.card {
  background: var(--theme-bg);
  border-radius: 50px;
  padding: 45px 20px;
  text-align: center;
  min-height: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  overflow-y: auto;
  border: 1px solid var(--link-border);
}

/* Avatar Styling */
.avatar-wrapper {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  border: 4px solid #011321;
  padding: 2px;
  margin-bottom: 25px;
  background: transparent;
  overflow: hidden;
}

.avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
}

.bio {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 90%;
  word-wrap: break-word;
  font-weight: 500;
  opacity: 0.9;
}

/* Links Container */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-item {
  width: 100%;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  border-radius: 18px;
  text-decoration: none !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.link-item:hover {
  transform: translateY(-2px);
  background: #08243a;
}

/* Album Style (with large thumbnail) */
.link-album {
  padding: 10px;
  text-align: right;
}

.thumb {
  width: 65px !important;
  height: 65px !important;
  min-width: 65px !important;
  max-width: 65px !important;
  border-radius: 10px;
  object-fit: cover;
  margin-left: 15px; /* RTL spacing */
}

.link-album .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.link-album .title {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-album .subtitle {
  font-size: 13px;
  color: #6b7280; /* Greyish subtitle */
}

/* Social Style (centered with icon) */
.link-social {
  height: 65px;
  justify-content: center;
}

.link-social .icon-box {
  position: absolute;
  right: 12px; /* RTL position */
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.link-social .title {
  font-weight: 600;
  font-size: 17px;
  text-align: center;
  padding: 0 60px;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white !important;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* Forms Styling */
input, select, textarea {
  width: 100%;
  padding: 14px;
  background: var(--input-bg);
  border: 1px solid var(--link-border);
  border-radius: 12px;
  color: white;
  font-size: 15px;
  margin-bottom: 15px;
  outline: none;
}

input:focus, select:focus {
  border-color: var(--primary);
}

/* Footer */
.footer-links {
  margin-top: auto;
  padding-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.6;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Scrollbar Styling */
.card::-webkit-scrollbar {
  width: 5px;
}
.card::-webkit-scrollbar-track {
  background: transparent;
}
.card::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}
