/* ==========================================================================
   PODDIUM DESIGN SYSTEM & VARIABLES
   ========================================================================== */

:root {
  /* Colors */
  --plum: #7d0e42;
  --pink: #bc075b;
  --teal: #2ad0c4;
  --gold: #ffb800;
  --white: #ffffff;
  
  /* Background gradients & light mode foundations */
  --dark-bg: #ffffff;
  --glass-bg: rgba(252, 231, 243, 0.45); /* pastel magenta tinted glass */
  --glass-border: rgba(188, 7, 91, 0.15);
  --card-shadow: rgba(90, 2, 42, 0.06);
  
  /* Typography */
  --font-display: 'Comfortaa', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  /* Transition timings */
  --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  background-attachment: fixed;
  color: #58052e;
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: rgba(188, 7, 91, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pink);
}

/* ==========================================================================
   DYNAMIC AMBIENT GLOWS
   ========================================================================== */

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15; /* Soft radial accents for light background */
  pointer-events: none;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 1.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.glow-1 {
  background: radial-gradient(circle, rgba(188, 7, 91, 0.08) 0%, transparent 70%);
  width: 600px;
  height: 600px;
  top: -150px;
  left: -200px;
  animation: float-glow 20s infinite alternate ease-in-out;
}

.glow-2 {
  background: radial-gradient(circle, rgba(255, 184, 0, 0.08) 0%, transparent 70%);
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -150px;
  animation: float-glow 25s infinite alternate-reverse ease-in-out;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, 30px) scale(1.15);
  }
}

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: 540px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  position: relative;
}

/* ==========================================================================
   HEADER / PROFILE
   ========================================================================== */

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
}

.logo-wrapper {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrapper::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(188, 7, 91, 0.25);
  animation: rotate-dashed 24s linear infinite;
}

@keyframes rotate-dashed {
  100% {
    transform: rotate(360deg);
  }
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.brand-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  color: var(--pink);
}

.brand-tagline {
  font-size: 0.95rem;
  font-weight: 300;
  color: #7d2a54;
  line-height: 1.5;
  max-width: 340px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-badge {
  background: rgba(188, 7, 91, 0.1);
  color: #ffc9e3;
  border: 1px solid rgba(188, 7, 91, 0.25);
  padding: 6px 16px;
  box-shadow: 0 4px 12px rgba(188, 7, 91, 0.05);
}

/* ==========================================================================
   LINKS SECTION: STRUCTURAL
   ========================================================================== */

.content-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section-header {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
  color: var(--pink);
  padding-left: 4px;
}

.section-subheader {
  font-size: 0.8rem;
  font-weight: 400;
  color: #7d2a54;
  margin-bottom: 16px;
  padding-left: 4px;
  opacity: 0.8;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* ==========================================================================
   CARD BASE STYLING (GLASSMORPHISM)
   ========================================================================== */

.link-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: #58052e;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(252, 231, 243, 0.75); /* pastel magenta tinted glass */
  border: 1px solid rgba(188, 7, 91, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px var(--card-shadow);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.link-card:hover {
  transform: translateY(-2px);
  background: var(--pink); /* brand magenta on hover */
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(188, 7, 91, 0.25);
}

.link-card:active {
  transform: translateY(1px) scale(0.99);
}

.card-content {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.card-icon-container {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(188, 7, 91, 0.05);
  border: 1px solid rgba(188, 7, 91, 0.12);
  color: var(--pink);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.contact-avatar-wrapper {
  background: #ffffff !important;
  border: 1px solid rgba(188, 7, 91, 0.18) !important;
  border-radius: 50% !important;
  padding: 0 !important;
  overflow: hidden;
  width: 76px !important; /* Made larger to occupy ~25% of the card height/width */
  height: 76px !important;
  margin-right: 12px;
  flex-shrink: 0;
}

.contact-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-email {
  display: inline-block;
  margin-top: 5px;
  font-weight: 700;
  color: var(--pink);
  transition: color var(--transition-fast);
}

.link-card:hover .contact-email {
  color: var(--white);
}

.link-card:hover .card-icon-container {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: var(--white) !important;
}

.link-card:hover .contact-avatar-wrapper {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.card-icon {
  width: 22px;
  height: 22px;
}

.card-text {
  flex-grow: 1;
  padding-right: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.1px;
  color: #58052e;
  transition: color var(--transition-fast);
}

.link-card:hover .card-title {
  color: var(--white);
}

.card-desc {
  font-size: 0.8rem;
  font-weight: 400; /* Made bolder for readability */
  color: #7d2a54;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.link-card:hover .card-desc {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   FEATURED / MAIN WEB LINK
   ========================================================================== */

.main-web-card {
  border: 1px solid rgba(188, 7, 91, 0.25);
  box-shadow: 0 8px 32px rgba(188, 7, 91, 0.12);
}

.main-web-card .card-icon-container {
  background: rgba(188, 7, 91, 0.08);
  border: 1px solid rgba(188, 7, 91, 0.2);
  color: var(--pink);
}

.main-web-logo-wrapper {
  background: transparent !important;
  border: none !important;
  padding: 4px;
}

.card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-web-card:hover {
  background: var(--pink) !important;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 40px rgba(188, 7, 91, 0.3);
}

.featured-badge {
  background: var(--teal); /* Cyan accent */
  color: #58052e;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(42, 208, 196, 0.2);
  align-self: flex-start;
  margin-top: -2px;
}

.link-card:hover .featured-badge {
  background: var(--white);
  color: var(--pink);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Pulsating icon animation */
.pulse-svg {
  animation: pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

/* ==========================================================================
   PUBLICATION CARDS (UNIFIED COMPACT GROUP LIST)
   ========================================================================== */

.pub-group-card {
  background: rgba(252, 231, 243, 0.75); /* pastel magenta tinted glass */
  border: 1px solid rgba(188, 7, 91, 0.14);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pub-item {
  display: block;
  padding: 20px 24px;
  text-decoration: none;
  color: #58052e;
  position: relative;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.pub-item:hover {
  background: var(--pink); /* brand magenta on hover */
  color: var(--white);
}

.pub-divider {
  height: 1px;
  background: rgba(188, 7, 91, 0.08); /* subtle divider */
  margin: 0 24px;
}

.pub-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  padding-right: 28px; /* space for arrow */
}

.pub-year {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.year-2025 {
  background: rgba(255, 184, 0, 0.15); /* Gold accent */
  color: #8c6200; /* Dark gold for high contrast */
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.pub-item:hover .year-2025 {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.year-2024 {
  background: rgba(188, 7, 91, 0.05);
  color: #58052e;
  border: 1px solid rgba(188, 7, 91, 0.12);
}

.pub-item:hover .year-2024 {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.pub-item-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #58052e;
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.pub-item:hover .pub-item-title {
  color: var(--white);
}

.pub-item-desc {
  font-size: 0.8rem;
  font-weight: 400; /* Bolder for high readability */
  color: #7d2a54;
  line-height: 1.4;
  max-width: 88%;
  transition: color var(--transition-fast);
}

.pub-item:hover .pub-item-desc {
  color: rgba(255, 255, 255, 0.95);
}

.pub-item-arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(90, 2, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.pub-item-arrow svg {
  width: 18px;
  height: 18px;
}

.pub-item:hover .pub-item-arrow {
  color: var(--white);
  transform: translateY(-50%) translateX(4px);
}

/* ==========================================================================
   PRODUCTS GRID
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

@media (min-width: 380px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.product-card {
  position: relative;
  text-decoration: none;
  color: #58052e;
  border-radius: 16px;
  background: rgba(252, 231, 243, 0.75); /* pastel magenta tinted glass */
  border: 1px solid rgba(188, 7, 91, 0.14);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px var(--card-shadow);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  background: var(--pink); /* brand magenta on hover */
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(188, 7, 91, 0.25);
}

.product-card:active {
  transform: translateY(1px);
}

.prod-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.product-card:hover .prod-icon-wrapper {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: var(--white) !important;
}

.prod-icon {
  width: 22px;
  height: 22px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
  color: #58052e;
  transition: color var(--transition-fast);
}

.product-card:hover .product-name {
  color: var(--white);
}

.product-desc {
  font-size: 0.72rem;
  font-weight: 400; /* Made bolder for readability */
  color: #7d2a54;
  line-height: 1.35;
  margin-bottom: 12px;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  transition: color var(--transition-fast);
}

.product-card:hover .product-desc {
  color: rgba(255, 255, 255, 0.9);
}

.prod-link-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pink);
  position: relative;
  z-index: 2;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.product-card:hover .prod-link-text {
  color: var(--white);
}

/* Individual product card styling customizations */
/* Librery Theme (Dark Red/Burgundy #811920) */
.card-librery {
  background: rgba(129, 25, 32, 0.08) !important;
  border-color: rgba(129, 25, 32, 0.15) !important;
}

.card-librery .product-name {
  color: #811920 !important;
}

.card-librery .product-desc {
  color: rgba(129, 25, 32, 0.72) !important;
}

.card-librery .prod-icon-wrapper {
  color: #811920;
  background: rgba(129, 25, 32, 0.08);
  border: 1px solid rgba(129, 25, 32, 0.25);
}

.librery-logo-wrapper {
  border-radius: 50% !important;
  background: #ffffff !important;
  border: none !important;
  padding: 0 !important;
  overflow: hidden;
}

.prod-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08); /* Zoom in slightly to hide the baked-in black border of the JPG */
}

.card-librery:hover {
  background: #811920 !important;
  box-shadow: 0 12px 30px rgba(129, 25, 32, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.card-librery:hover .product-name {
  color: var(--white) !important;
}

.card-librery:hover .product-desc {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* podbuddy Theme (Cyan Accent Icon) */
.card-podbuddy {
  background: rgba(42, 208, 196, 0.08) !important;
  border-color: rgba(42, 208, 196, 0.15) !important;
}

.card-podbuddy .product-name {
  color: #17938a !important;
}

.card-podbuddy .product-desc {
  color: rgba(23, 147, 138, 0.75) !important;
}

.card-podbuddy .prod-icon-wrapper {
  color: var(--teal);
  background: rgba(42, 208, 196, 0.08);
  border: 1px solid rgba(42, 208, 196, 0.25);
}

.podbuddy-logo-wrapper {
  border-radius: 50% !important;
  background: #ffffff !important;
  border: none !important;
  padding: 0 !important;
  overflow: hidden;
}

.card-podbuddy:hover {
  background: #2ad0c4 !important;
  box-shadow: 0 12px 30px rgba(42, 208, 196, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.card-podbuddy:hover .product-name {
  color: var(--white) !important;
}

.card-podbuddy:hover .product-desc {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Scriva Theme (Yellow/Gold Accent Icon) */
.card-scriva {
  background: rgba(255, 184, 0, 0.08) !important;
  border-color: rgba(255, 184, 0, 0.15) !important;
}

.card-scriva .product-name {
  color: #8c6200 !important;
}

.card-scriva .product-desc {
  color: rgba(140, 98, 0, 0.75) !important;
}

.card-scriva .prod-icon-wrapper {
  color: var(--gold);
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.25);
}

.card-scriva:hover {
  background: #ffb800 !important;
  box-shadow: 0 12px 30px rgba(255, 184, 0, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.card-scriva:hover .product-name {
  color: var(--white) !important;
}

.card-scriva:hover .product-desc {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* LITA Theme (Brand Magenta Accent Icon) */
.card-lita {
  background: rgba(180, 180, 180, 0.12) !important;
  border-color: rgba(180, 180, 180, 0.2) !important;
}

.card-lita .product-name {
  color: #555555 !important;
}

.card-lita .product-desc {
  color: rgba(85, 85, 85, 0.75) !important;
}

.card-lita .prod-icon-wrapper {
  color: #666666 !important;
  background: rgba(180, 180, 180, 0.15) !important;
  border: 1px solid rgba(180, 180, 180, 0.3) !important;
}

.card-lita:hover {
  background: #d9d9d9 !important;
  box-shadow: 0 12px 30px rgba(180, 180, 180, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.card-lita:hover .product-name {
  color: #222222 !important; /* Dark charcoal for contrast on light gray background */
}

.card-lita:hover .product-desc {
  color: rgba(34, 34, 34, 0.85) !important;
}

/* ==========================================================================
   INFO & ACKNOWLEDGEMENT SECTION
   ========================================================================== */

.info-section {
  margin-top: 48px;
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.office-address {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  color: #58052e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.address-icon {
  width: 14px;
  height: 14px;
  color: var(--pink);
  flex-shrink: 0;
}

.acknowledgement {
  font-size: 0.66rem;
  font-weight: 400;
  color: #7d2a54;
  opacity: 0.65;
  line-height: 1.45;
  max-width: 440px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.profile-footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: rgba(90, 2, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(252, 231, 243, 0.5);
  border: 1px solid rgba(188, 7, 91, 0.12);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.social-icons a svg {
  width: 20px;
  height: 20px;
}

.social-icons a:hover {
  transform: translateY(-3px);
  color: var(--white) !important;
  background: var(--pink);
  border-color: var(--pink);
}

.social-icons a[aria-label="Instagram"]:hover {
  background: #e1306c;
  border-color: #e1306c;
}

.social-icons a[aria-label="LinkedIn"]:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.social-icons a[aria-label="Twitter"]:hover {
  background: #000000;
  border-color: #000000;
}

.copyright {
  font-size: 0.72rem;
  font-weight: 300;
  color: #7d2a54;
  opacity: 0.65;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-heart {
  animation: heartBeat 1.4s infinite;
  transform-origin: center;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); }
  70% { transform: scale(1); }
}


/* ==========================================================================
   PAGE ENTRY ANIMATIONS
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.fade-in.animated {
  opacity: 1;
  transform: translateY(0);
}
