/* Modern About Section Styles */

.modern-about-container {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInDown 1s ease;
}

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  color: #404040;
  margin: 0 0 15px 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title-main {
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 18px;
  background: linear-gradient(120deg, #8d7bff 0%, #d946ef 55%, #ff74b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin: 0;
}

/* Main Grid */
.about-grid {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 40px;
  align-items: start;
}

/* 3D Model Showcase */
.model-showcase {
  position: sticky;
  top: 100px;
}

.model-wrapper {
  position: relative;
  background: linear-gradient(120deg, #171a2b 0%, #36206f 45%, #d42d88 100%);
  border-radius: 30px;
  padding: 30px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-wrapper > * {
  position: relative;
  z-index: 1;
}

.model-wrapper::before,
.model-wrapper::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.30;
  z-index: 0;
  pointer-events: none;
}

.model-wrapper::before {
  top: -145px;
  left: -130px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 0, 200, 0.95), rgba(255, 0, 200, 0) 62%),
    radial-gradient(circle at 65% 60%, rgba(255, 249, 0, 0.80), rgba(255, 249, 0, 0) 58%);
}

.model-wrapper::after {
  right: -145px;
  bottom: -150px;
  background:
    radial-gradient(circle at 35% 35%, rgba(0, 246, 255, 0.90), rgba(0, 246, 255, 0) 62%),
    radial-gradient(circle at 70% 65%, rgba(127, 0, 255, 0.75), rgba(127, 0, 255, 0) 58%);
}

.model-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 56px rgba(0, 0, 0, 0.42);
}

.model-wrapper model-viewer {
  border-radius: 20px;
}

.profile-photo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.wave-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
}

.wave-button:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.wave-button:active {
  transform: scale(0.95);
}

.wave-emoji {
  font-size: 28px;
  animation: wave 0.5s ease-in-out;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-20deg); }
}

.wave-button:hover .wave-emoji {
  animation: wave 0.5s ease-in-out infinite;
}

.model-label {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.model-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #667eea;
}

.loading-ring {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Info Cards Grid */
.info-cards {
  display: flex;
  gap: 25px;
  align-items: start;
}

.info-column {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Stack two cards in one grid cell (Education + Research) */
.info-card-stack {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
}

.profile-card,
.bio-card,
.skills-card,
.cta-card {
  background: linear-gradient(120deg, #171a2b 0%, #36206f 45%, #d42d88 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.profile-card > *,
.bio-card > *,
.skills-card > *,
.cta-card > * {
  position: relative;
  z-index: 1;
}

.profile-card::before,
.bio-card::before,
.skills-card::before,
.cta-card::before,
.profile-card::after,
.bio-card::after,
.skills-card::after,
.cta-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

.profile-card::before,
.bio-card::before,
.skills-card::before,
.cta-card::before {
  top: -130px;
  left: -120px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 0, 200, 0.95), rgba(255, 0, 200, 0) 62%),
    radial-gradient(circle at 65% 60%, rgba(255, 249, 0, 0.80), rgba(255, 249, 0, 0) 58%);
}

.profile-card::after,
.bio-card::after,
.skills-card::after,
.cta-card::after {
  right: -130px;
  bottom: -130px;
  background:
    radial-gradient(circle at 35% 35%, rgba(0, 246, 255, 0.90), rgba(0, 246, 255, 0) 62%),
    radial-gradient(circle at 70% 65%, rgba(127, 0, 255, 0.75), rgba(127, 0, 255, 0) 58%);
}

/* Slightly tighter padding for the skills card only */
.skills-card {
  padding: 22px;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.profile-card:hover,
.bio-card:hover,
.skills-card:hover,
.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 32px rgba(14, 14, 44, 0.28);
}

/* PhotoCircle (PCR) card under 3D model */
.pcr-card {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd400 0%, #ffef7a 55%, #fff6c9 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pcr-card__media {
  display: block;
  line-height: 0;
  height: 448px;
  overflow: hidden;
  background: transparent;
}

.pcr-card__media img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Foreground image is never cropped */
.pcr-card__img {
  object-fit: contain;
  padding: 0;
}

.pcr-card__content {
  padding: 18px 20px 20px;
  color: #222;
}

.pcr-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pcr-card__logo-link {
  display: inline-block;
  line-height: 0;
  flex: 0 0 auto;
}

.pcr-card__logo-link img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pcr-card__title h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #b48a00;
  line-height: 1.2;
}

.pcr-card__role {
  margin-top: 3px;
  font-weight: 800;
  color: #222;
}

.pcr-card__meta {
  margin-top: 2px;
  font-size: 0.92rem;
  color: #444;
}

.pcr-card__text {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

/* Research card under Education */
.research-card {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #00c6ff 0%, #b8f1ff 60%, #e9fbff 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.research-card__media {
  display: block;
  line-height: 0;
  height: 240px;
  overflow: hidden;
}

.research-card__media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
}

.research-card__content {
  padding: 18px 20px 20px;
  color: #0b2a35;
}

.research-card__content h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.research-card__title-link {
  color: #005f99;
  text-decoration: none;
}

.research-card__title-link:hover {
  text-decoration: underline;
}

.research-card__text {
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}


/* Profile Card */
.profile-card {
  text-align: center;
  color: #fff;
}

.profile-image {
  width: 120px;
  height: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 15px;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Desktop view - larger circular profile picture */
@media (min-width: 969px) {
  .profile-image {
    width: 150px;
    height: 150px;
  }
}

/* Mobile view - keep smaller for space */
@media (max-width: 480px) {
  .profile-image {
    width: 100px;
    height: 100px;
  }
}

.card-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.profile-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 10px 0;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.profile-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-badge-link .material-symbols-outlined {
  font-size: 26px;
  line-height: 1;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

.profile-badge-link:hover {
  transform: translateY(-1px) scale(1.06);
  opacity: 0.9;
}

.profile-card .role {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 10px 0;
}

.profile-card .location {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 20px 0;
}

.quick-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Bio Card */
.bio-card h4 {
  margin: 0 0 15px 0;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}

.bio-card p {
  margin: 0 0 20px 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
  font-size: 15px;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
}

.interest-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

/* Skills Card */
.skills-card h4 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #00f6ff 0%, #ff00c8 100%);
  border-radius: 10px;
  transition: width 1s ease;
  animation: progressLoad 1.5s ease;
}

@keyframes progressLoad {
  from { width: 0; }
}

/* Education Card */
.education-card h4 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #1a1a2e;
  font-weight: 700;
  transition: color 0.35s ease;
}

.education-card {
  border-radius: 28px;
  transition: background-color 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  cursor: pointer;
}

.edu-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

/* Color coding for each education */
.rait-edu .edu-content strong {
  color: #d32f2f !important;
}

.narayana-edu .edu-content strong {
  color: #1976d2 !important;
}

.omkar-edu .edu-content strong {
  color: #f57c00 !important;
}

.edu-dot {
  display: none;
}

.edu-icon {
  width: 44px;
  height: 44px;
  margin-right: 10px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.edu-content strong {
  display: block;
  font-size: 15px;
  color: #667eea;
  font-weight: 700;
  margin-bottom: 5px;
  transition: color 0.35s ease;
}

.edu-content strong a {
  color: inherit;
  text-decoration: none;
}

.edu-content strong a:hover {
  text-decoration: underline;
}

.edu-content span {
  font-size: 13px;
  color: #666;
  transition: color 0.35s ease;
}

/* Interactive hover states for individual education rows */
.education-card:has(.rait-edu:hover) {
  background-color: #d32f2f;
}

.education-card:has(.narayana-edu:hover) {
  background-color: #1976d2;
}

.education-card:has(.omkar-edu:hover) {
  background-color: #f57c00;
}

.education-card:has(.edu-item:hover) h4 {
  color: #fff;
}

.education-card:has(.rait-edu:hover) .rait-edu .edu-content strong,
.education-card:has(.narayana-edu:hover) .narayana-edu .edu-content strong,
.education-card:has(.omkar-edu:hover) .omkar-edu .edu-content strong {
  color: #fff !important;
}

.education-card:has(.edu-item:hover) .edu-content span {
  color: rgba(255, 255, 255, 0.92);
}

/* CTA Card */
.cta-card {
  display: block;
}

.cta-card h4 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  color: white;
  transform: translateY(-2px);
}

/* Floating Tech Icons */
.floating-tech {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  z-index: 1;
}

.section-header {
  position: relative;
  z-index: 2;
}

.float-icon {
  position: absolute;
  width: 36px;
  height: 36px;
  opacity: 0.62;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.float-icon:nth-child(1) { top: 62%; left: 4%; }
.float-icon:nth-child(2) { top: 62%; right: 4%; }
.float-icon:nth-child(3) { top: 10%; left: 12%; }
.float-icon:nth-child(4) { top: 10%; right: 12%; }
.float-icon:nth-child(5) { top: 42%; left: 16%; }
.float-icon:nth-child(6) { top: 42%; right: 16%; }
.float-icon:nth-child(7) { top: 2%; left: 34%; }
.float-icon:nth-child(8) { top: 2%; right: 34%; }
.float-icon:nth-child(9) { top: 78%; left: 26%; }
.float-icon:nth-child(10) { top: 78%; right: 26%; }

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .about-grid {
    grid-template-columns: 400px 1fr;
    gap: 30px;
  }
  
  .model-wrapper {
    height: 450px;
  }
}

@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .model-showcase {
    position: relative;
    top: 0;
  }
  
  .model-wrapper {
    height: 500px;
  }
  
  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .modern-about-container {
    padding: 60px 15px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .info-cards {
    flex-direction: column;
  }
  
  .model-wrapper {
    height: 400px;
    padding: 20px;
  }
  
  .wave-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .wave-emoji {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 28px;
  }
  
  .model-wrapper {
    height: 350px;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .info-cards {
    flex-direction: column;
  }
  
  .floating-tech {
    display: none;
  }
  
  .section-badge {
    font-size: 12px;
    padding: 6px 16px;
  }
  
  .section-subtitle {
    font-size: 14px;
  }
}

/* Extra small devices (below 380px) */
@media (max-width: 380px) {
  .modern-about-container {
    padding: 40px 10px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .model-wrapper {
    height: 300px;
    padding: 15px;
    border-radius: 20px;
  }
  
  .info-card {
    padding: 15px;
    border-radius: 12px;
  }
  
  .cta-btn {
    padding: 10px 12px;
    font-size: 12px;
    gap: 6px;
  }
  
  .btn-icon {
    font-size: 16px;
  }
}
