:root {
  --primary: #4f8cff;
  --accent: #00b4d8;
  --bg-gradient: linear-gradient(135deg, #e0e7ff 0%, #f7f9fb 100%);
  --card-bg: #fff;
  --text: #222;
  --shadow: 0 8px 32px rgba(79, 140, 255, 0.10);
  --radius: 18px;
  --icon-bg: #f0f4fa;
  --icon-hover: #e3eaf5;
  --transition: 0.25s cubic-bezier(.4,2,.6,1);
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: url('../images/clouds.jpg') center center/cover no-repeat fixed;
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s;
}
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
  transition: color 0.3s;
}
.subtitle {
  color: var(--accent);
  font-size: 1.13rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
p {
  color: #444;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  line-height: 1.5;
}
.location {
  margin-top: 1.3rem;
  font-size: 1.01rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.location-icon {
  font-size: 1.15em;
}
.profile-pic {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.1rem;
  border: 3px solid #e0e7ff;
  box-shadow: 0 2px 12px rgba(79,140,255,0.06);
  animation: fadeIn 1s 0.2s both;
  background: #f3f7fa;
}
@keyframes fadeIn {
  from { opacity: 0;}
  to   { opacity: 1;}
}
.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--icon-bg);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(79,140,255,0.04);
  will-change: transform;
}
.social-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.social-link:hover {
  background: var(--icon-hover);
  transform: scale(1.13) rotate(-4deg);
  box-shadow: 0 6px 18px rgba(79,140,255,0.13);
}
.social-link img {
  width: 24px;
  height: 24px;
  display: block;
  filter: grayscale(0.15) contrast(1.15);
  transition: filter 0.2s;
}
.social-link:hover img {
  filter: none;
}
/* Dark mode toggle styles */
.toggle-dark {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--icon-bg);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79,140,255,0.04);
  transition: background 0.2s;
}
.toggle-dark:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.toggle-dark:hover {
  background: var(--icon-hover);
}
.toggle-dark img {
  width: 21px;
  height: 21px;
  pointer-events: none;
}
@media (max-width: 500px) {
  .card {
    padding: 2rem 1rem;
  }
  h1 {
    font-size: 1.4rem;
  }
  .toggle-dark {
    top: 12px;
    right: 12px;
  }
}
/* Dark mode styles */
body.dark {
  color: #f0f4fa;
}
body.dark .card {
  background: #232946;
  color: #f0f4fa;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
body.dark h1 {
  color: #90cdf4;
}
body.dark .subtitle {
  color: #64dfdf;
}
body.dark p {
  color: #ddd;
}
body.dark .location {
  color: #b6b6b6;
}
body.dark .social-link {
  background: #232946;
}
body.dark .social-link:hover {
  background: #2e3358;
}
body.dark .social-link img {
  filter: brightness(0) invert(1);
}
body.dark .social-link:hover img {
  filter: brightness(0) invert(1);
}
body.dark .toggle-dark {
  background: #232946;
}
body.dark .toggle-dark:hover {
  background: #2e3358;
}
body.dark .toggle-dark img {
  filter: brightness(0) invert(1);
}

.card {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 2.7rem 2.2rem; /* Keep padding on the card itself */
  text-align: center;
  /* max-width: 380px; */ /* Remove or adjust this if you want a wider card for two columns */
  max-width: 700px; /* Adjusted for two columns */
  width: 100%;
  transition: box-shadow var(--transition), background 0.4s;
  animation: fadeInUp 0.7s 0.1s both;
}

/* New styles for two-column layout */
.card-content {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 2rem; /* Space between columns */
  align-items: flex-start; /* Align items to the top */
  text-align: left; /* Align text to the left within columns */
}

.intro {
  flex: 2; /* Takes up more space */
  min-width: 280px; /* Minimum width before wrapping */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center profile pic, name, subtitle */
  text-align: center; /* Center text for these elements */
}

.intro .profile-pic {
  margin-bottom: 1.5rem; /* Increased margin */
}

.intro h1 {
   font-size: 2.5rem; /* Slightly larger for emphasis */
}

.intro .subtitle {
  margin-bottom: 1rem;
}

.intro p {
  text-align: center; /* Keep intro paragraph centered */
  margin-bottom: 0; /* Remove bottom margin if details are next */
}

.details {
  flex: 1; /* Takes up less space */
  min-width: 200px; /* Minimum width before wrapping */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content within details column */
  gap: 1.5rem; /* Space between location and social links */
  margin-top: 1rem; /* Add some space above details if intro p has margin */
}
.details .social-links {
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack them vertically */
  align-items: center;   /* Center them horizontally */
  gap: 1rem;             /* Adjust vertical gap */
  /* justify-content: center; /* This is less relevant for a column layout unless items have varying heights and you want to center them along the column axis */
}