/* =========================================================
   PROFILE CARD SECTION — scoped styles
   Every rule is scoped under #profile-card, so it's safe to
   drop into a page that already has its own html/body/*
   styles without any conflicts. No global resets included.
========================================================= */

#profile-card {
  --primary: #ef4323;
  --primary-dark: #1d4ed8;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;

  width: 100%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  position: relative;
  z-index: 10;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

#profile-card *,
#profile-card *::before,
#profile-card *::after {
  box-sizing: border-box;
}

.header.hero {
    height: 40vh;
    min-height: 40vh; /* height kurayathirikkan */
}

/* ---- Header ---- */
#profile-card .header {
  background: var(--dark);
  padding: clamp(16px, 3vw, 26px) clamp(16px, 4vw, 40px);
  text-align: left;
  position: relative;
}

#profile-card .header-glass {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 22px);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: clamp(12px, 2.5vw, 18px) clamp(14px, 3vw, 22px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#profile-card .profile-container {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}

#profile-card .profile-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 50%;
  transform: scale(1.05);
  z-index: 1;
}

#profile-card .profile-image {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  z-index: 2;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

#profile-card .header-text {
  min-width: 0;
}

#profile-card .name {
  color: white;
  font-size: clamp(36px, 3.8vw, 48px);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

#profile-card .title {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  margin-top: 2px;
}

#profile-card .quick-links-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}

@media (max-width: 380px) {
  #profile-card .header-glass {
    gap: 12px;
    padding: 12px 14px;
  }
  #profile-card .profile-container,
  #profile-card .profile-image {
    width: 60px;
    height: 60px;
  }
}

/* ---- Content ---- */
#profile-card .content {
  padding: clamp(24px, 4vw, 40px) clamp(18px, 4vw, 36px) clamp(18px, 3vw, 28px);
}

#profile-card .section {
  margin-bottom: 15px;
}

/* ---- Contact icons grid ---- */
#profile-card .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

#profile-card .contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#profile-card .icon-container {
  width: 100%;
  height: 90px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

#profile-card .icon-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#profile-card .icon-container img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

#profile-card .contact-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 5px;
  font-weight: 500;
}

/* ---- Social icons grid ---- */
#profile-card .social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

#profile-card .social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#profile-card .social-container {
  width: 100%;
  height: 90px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

#profile-card .social-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#profile-card .social-container img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

#profile-card .social-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

/* ---- Save vCard button ---- */
#profile-card .contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

#profile-card .save-contact-btn {
  width: auto;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#profile-card .save-contact-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

#profile-card .save-contact-btn:active {
  transform: translateY(0);
}

@keyframes profileCardPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#profile-card .pulse {
  animation: profileCardPulse 1s infinite;
}

/* ---- More About Us gallery (Bootstrap grid: row / col-12 col-md-6) ---- */
#profile-card .more-about-us {
  width: 100%;
  padding: 30px clamp(16px, 4vw, 40px) 10px;
}

#profile-card .more-about-us .container-fluid {
  max-width: 100%;
}

#profile-card .more-about-us__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  text-align: left;
  padding: 0 0 16px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#profile-card .more-about-us__label i {
  color: var(--primary);
}

#profile-card .more-about-us__divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--light-gray) 20%, var(--light-gray) 80%, transparent);
  margin: 30px 0;
}

#profile-card .more-about-us__img-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transition: var(--transition);
  background: var(--light);
}

#profile-card .more-about-us__img-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

#profile-card .more-about-us__img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease;
}

#profile-card .more-about-us__img-wrap:hover .more-about-us__img {
  transform: scale(1.04);
}

/* ---- Toast (sits outside #profile-card in the markup, kept separately scoped) ---- */
.profile-card-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}

.profile-card-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.profile-card-toast i {
  font-size: 20px;
}

/* ---- Small screens ---- */
@media (max-width: 480px) {
  #profile-card .name { font-size: 38px; }
  #profile-card .contact-grid,
  #profile-card .social-grid { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
  #profile-card .contact-actions { flex-direction: column; }
  #profile-card .save-contact-btn { width: 100%; }
  #profile-card .icon-container,
  #profile-card .social-container { height: 80px; padding: 10px; }
  #profile-card .icon-container img,
  #profile-card .social-container img { max-height: 50px; }
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  #profile-card [data-aos] {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
  #profile-card .more-about-us__img-wrap,
  #profile-card .more-about-us__img,
  #profile-card .icon-container,
  #profile-card .social-container,
  #profile-card .pulse {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* Desktop / Tablet screens-il maathram work aakan */
@media (min-width: 768px) {
  .custom-container {
    width: auto;
    margin-left: 100px;
    margin-right: 100px;
  }
}

/* Mobile-il small side padding venamenkil (optional) */
@media (max-width: 767px) {
  .custom-container {
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
  }
}