/* CSS Variables for Theme */
:root {
  --bg-color: #0f0c1b;
  --text-color: #e2d9f3;
  --accent-color: #c170d1;
  --accent-gradient: linear-gradient(135deg, #9c56b8, #c170d1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-accent: 'Dancing Script', cursive;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Curtain Splash Screen */
.curtain-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  pointer-events: none;
  animation: fadeOutContainer 2s 0.5s forwards;
}

@keyframes fadeOutContainer {
  0%, 85% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; display: none; }
}

.curtain {
  width: 50%;
  height: 100%;
  /* Velvet pleat texture with pixel units so percentage size can squish it */
  background: 
    repeating-linear-gradient(
      90deg, 
      rgba(0,0,0,0.4) 0px, 
      rgba(0,0,0,0) 15px, 
      rgba(255,255,255,0.05) 25px, 
      rgba(0,0,0,0.4) 40px
    ),
    linear-gradient(to bottom, #2b1145, #110521);
  background-size: 100% 100%; /* Will animate X to squish the gradient */
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.9);
  animation-duration: 2s; /* Slightly slower for grand effect */
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.6, 0.05, 0.15, 1); /* Smoother sweeping ease */
  pointer-events: auto;
  will-change: transform, border-radius, background-size;
}

/* Glowing edge where they meet, strictly limited to the connecting sides */
.curtain-left {
  animation-name: openLeft;
  border-right: 2px solid rgba(193, 112, 209, 0.6);
  box-shadow: inset -15px 0 20px -15px var(--accent-color), 0 0 30px rgba(0,0,0,0.9);
}

.curtain-right {
  animation-name: openRight;
  border-left: 2px solid rgba(193, 112, 209, 0.6);
  box-shadow: inset 15px 0 20px -15px var(--accent-color), 0 0 30px rgba(0,0,0,0.9);
}

@keyframes openLeft {
  0% { 
    transform: translateX(0); 
    border-bottom-right-radius: 0; 
    background-size: 100% 100%;
    visibility: visible; 
  }
  100% { 
    transform: translateX(-85%); 
    border-bottom-right-radius: 100% 130%; 
    background-size: 20% 100%; /* squishes the pleats */
    visibility: hidden; 
    pointer-events: none; 
  }
}

@keyframes openRight {
  0% { 
    transform: translateX(0); 
    border-bottom-left-radius: 0; 
    background-size: 100% 100%;
    visibility: visible; 
  }
  100% { 
    transform: translateX(85%); 
    border-bottom-left-radius: 100% 130%; 
    background-size: 20% 100%; /* squishes the pleats */
    visibility: hidden; 
    pointer-events: none; 
  }
}

/* Background Orbs for aesthetics */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: #9c56b8;
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: #ff6b6b;
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 30px) scale(1.1); }
}

/* Interactive Floating Petals */
.petal-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.petal-wrapper {
  position: absolute;
  top: -50px;
  /* Falling is handled by CSS */
  animation: fall linear infinite;
  will-change: transform;
}

.petal {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  filter: blur(1px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.shape-petal {
  width: 15px;
  height: 15px;
  background: var(--accent-gradient);
  border-radius: 50% 0 50% 50%;
  box-shadow: 0 0 10px var(--accent-color);
}

.shape-heart, .shape-rose {
  font-size: 20px;
  color: #c170d1;
  text-shadow: 0 0 8px rgba(193, 112, 209, 0.8);
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

/* Main Container (Glassmorphism) */
.glass-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  width: 90%;
  max-width: 600px;
  padding: 25px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header & Typography */
.brand-title {
  font-family: var(--font-accent);
  font-size: 4.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
  animation: titleGlow 2s infinite alternate ease-in-out;
}

@keyframes titleGlow {
  0% { filter: drop-shadow(0 0 6px rgba(193, 112, 209, 0.4)); }
  100% { filter: drop-shadow(0 0 16px rgba(193, 112, 209, 0.9)); }
}

/* Profile Picture */
.profile-pic-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: var(--accent-gradient);
  padding: 4px;
  box-shadow: 0 0 20px rgba(193, 112, 209, 0.4);
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: scale(0.8);
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-color);
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-pic-wrapper:hover img {
  transform: scale(1.1);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bio Section */
.bio {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #b8b2c8;
  margin-bottom: 30px;
}

.bio .highlight {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
}

/* Connect Section */
.connect-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1 1 calc(50% - 15px);
  min-width: 160px;
}

.social-card span, .social-card i {
  z-index: 1;
}

.social-card i {
  font-size: 1.4rem;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent-gradient);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: transparent;
}

.social-card:hover::before {
  opacity: 1;
}

/* Specific colors on hover removed to match site theme */

/* Highlight Card */
.highlight-card {
  background: var(--accent-gradient);
  flex: 1 1 100%;
  border: none;
  box-shadow: 0 4px 15px rgba(193, 112, 209, 0.3);
  font-weight: 600;
  margin-top: 5px;
}

.highlight-card::before {
  background: linear-gradient(135deg, #b062cc, #d97ceb);
}

/* Footer */
.footer {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (min-width: 768px) {
  .glass-container {
    padding: 60px;
  }
  .brand-title {
    font-size: 4.5rem;
  }
  .profile-pic-wrapper {
    width: 160px;
    height: 160px;
  }
  .bio {
    font-size: 1.2rem;
  }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .brand-title {
    font-size: 3.5rem;
    line-height: 1.1;
  }
  
  .glass-container {
    width: 95%;
    padding: 20px 15px;
  }

  .social-card {
    flex: 1 1 100%;
    min-width: 100%;
  }
}
