/* Modern CSS for Prashanth Varma's Personal Website */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #eff6ff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Modern gradient colors */
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --gradient-6: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Subtle background accent */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.03) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(147, 51, 234, 0.03) 0%, transparent 50%);
  z-index: -1;
}

/* Modern Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  padding: 1rem 0;
  border-radius: 0 0 20px 20px;
  margin: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.navbar-logo:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.navbar-brand-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.navbar-nav > li > a {
  font-weight: 500;
  color: var(--text-primary) !important;
  transition: var(--transition);
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--border-radius);
  margin: 0 0.25rem;
  position: relative;
  overflow: hidden;
}

.navbar-nav > li > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav > li > a:hover::before {
  width: 80%;
}

.navbar-nav > li > a:hover {
  color: var(--primary-color) !important;
  background-color: var(--bg-accent);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 50px 50px;
  margin: 0 20px 0 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.02) 50%, transparent 70%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border: none;
  border-radius: 2px;
  margin: 2rem auto;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Social Buttons */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 140px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
  transition: left 0.5s;
}

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

.social-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  color: var(--primary-color);
  text-decoration: none;
  border-color: rgba(102, 126, 234, 0.3);
}

.social-btn i {
  font-size: 1.1rem;
}

/* Section Styles */
.section {
  padding: 5rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.section:hover {
  transform: translateY(-2px);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  margin: 40px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-image {
  text-align: center;
}

.about-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-primary);
}

/* Expertise Section */
.expertise-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  margin: 40px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.skill-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.skill-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Insights Section */
.insights-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  margin: 40px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Publications Section */
.publications-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  margin: 40px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.publication-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  padding: 2rem;
  overflow: hidden;
}

.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.conference-paper:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

.master-thesis:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.publication-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.publication-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.publication-type i {
  font-size: 1.2rem;
}

.conference-paper .publication-type i {
  color: #2563eb;
}

.master-thesis .publication-type i {
  color: #10b981;
}

.publication-year {
  background: var(--bg-accent);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.publication-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.publication-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.publication-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.author {
  background: var(--bg-accent);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.publication-details {
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-item i {
  color: var(--primary-color);
  width: 16px;
}

.detail-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.detail-item a:hover {
  text-decoration: underline;
}

.publication-summary {
  margin-bottom: 1.5rem;
}

.publication-summary h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.publication-summary p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.research-highlights {
  background: var(--bg-accent);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.research-highlights h5 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.research-highlights ul {
  margin: 0;
  padding-left: 1.25rem;
}

.research-highlights li {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.publication-actions {
  text-align: center;
}

.publication-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.publication-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  color: white;
  text-decoration: none;
}

/* Research Impact */
.research-impact {
  margin-top: 3rem;
}

.impact-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  text-align: center;
}

.impact-card h3 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.impact-item {
  text-align: center;
}

.impact-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.impact-item h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.impact-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Connect Section */
.connect-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  margin: 40px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Twitter/X Section */
.twitter-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  margin: 40px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.twitter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.twitter-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.twitter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: rgba(29, 161, 242, 0.3);
}

.twitter-card .twitter-tweet {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.twitter-footer {
  text-align: center;
  margin-top: 2rem;
}

.twitter-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: rgba(29, 161, 242, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(29, 161, 242, 0.2);
  border: 1px solid rgba(29, 161, 242, 0.3);
}

.twitter-follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(29, 161, 242, 0.3);
  color: white;
  text-decoration: none;
  background: rgba(29, 161, 242, 1);
}

.twitter-follow-btn i {
  font-size: 1.1rem;
}

/* Responsive Twitter Grid */
@media (max-width: 768px) {
  .twitter-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .twitter-card {
    min-height: 250px;
  }
}



/* Social Media Insights Grid */
.social-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.social-insight-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  overflow: hidden;
}

.social-insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.linkedin-card:hover {
  border-color: rgba(0, 119, 181, 0.3);
}

.x-card:hover {
  border-color: rgba(0, 0, 0, 0.3);
}



.social-insight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.platform-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.platform-info i {
  font-size: 1.2rem;
}

.linkedin-card .platform-info i {
  color: #0077b5;
}

.x-card .platform-info i {
  color: #000000;
}



.social-insight-content {
  padding: 2rem;
  min-height: 450px;
}

/* LinkedIn Activity Container */
.linkedin-activity-container {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.embed-container {
  text-align: center;
  margin: 20px 0;
}

.embed-loading {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 3rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.embed-loading p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* LinkedIn Official Widget Display */
.linkedin-widget-container {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 600;
  color: #0077b5;
}

.widget-header i {
  font-size: 1.2rem;
}

.widget-content {
  padding: 1.5rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LinkedIn Widget Styling */
.LI-profile-badge {
  margin: 0 auto;
}

.LI-simple-link {
  color: #0077b5 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.LI-simple-link:hover {
  color: #005885 !important;
  text-decoration: underline !important;
}

.widget-actions {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid #f0f0f0;
  background: #f8f9fa;
}

.screenshot-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.screenshot-container:hover {
  transform: scale(1.02);
}

.linkedin-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 119, 181, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px 8px 0 0;
}

.screenshot-container:hover .screenshot-overlay {
  opacity: 1;
}

.overlay-content {
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.overlay-content i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.screenshot-actions {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-fallback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
}

.screenshot-fallback .fallback-content {
  text-align: center;
  color: var(--text-secondary);
}

.screenshot-fallback h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.author-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e0e0e0;
}

.author-details {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: #191919;
  font-size: 0.9rem;
  line-height: 1.2;
}

.author-title {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.2;
  margin-top: 0.25rem;
}

.post-time {
  color: #666;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.linkedin-icon {
  color: #0077b5;
  font-size: 1.2rem;
  margin-left: 1rem;
}

.post-content {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.post-content p {
  color: #191919;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  color: #191919;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.post-actions {
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #f3f2ef;
  color: #0077b5;
}

.like-btn:hover {
  color: #0a66c2;
}

.comment-btn:hover {
  color: #0a66c2;
}

.share-btn:hover {
  color: #0a66c2;
}

.post-link {
  text-align: center;
}

.view-original-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0077b5;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-original-btn:hover {
  background: #005885;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
}

.view-linkedin-btn, .visit-profile-btn, .view-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-linkedin-btn, .view-post-btn {
  background: #0077b5;
  color: white;
}

.view-linkedin-btn:hover, .view-post-btn:hover {
  background: #005885;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
}

.visit-profile-btn {
  background: #f3f2ef;
  color: #666;
  border: 1px solid #e0e0e0;
}

.visit-profile-btn:hover {
  background: #e8e6e1;
  color: #0077b5;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.embed-fallback {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 3rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-fallback {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 3rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}



.linkedin-embed-container {
  text-align: center;
  margin: 20px 0;
}

.linkedin-fallback {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 3rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}



.fallback-content {
  text-align: center;
}

.fallback-content h4 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.fallback-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.fallback-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.fallback-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0077b5, #005885);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.fallback-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
  color: white;
  text-decoration: none;
}

.x-link {
  background: linear-gradient(135deg, #000000, #333333);
}

.x-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}



.social-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  overflow: hidden;
  max-width: 600px;
  width: 100%;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.linkedin-card:hover {
  border-color: rgba(0, 119, 181, 0.3);
}

.social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.social-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.social-header i {
  font-size: 1.5rem;
}

.linkedin-card .social-header i {
  color: #0077b5;
}

.social-content {
  padding: 2rem;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blog Posts Section */
.blog-posts-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.subsection-title {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.subsection-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 3rem;
}

/* Visitor Summary Section */
.visitor-summary-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 40px 20px;
  padding: 3rem 0;
  transition: var(--transition);
}

.visitor-summary-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.visitor-summary-content {
  text-align: center;
}

.visitor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
}

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

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
}

.visitor-message {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-accent);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.visitor-message p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
  font-style: italic;
}

/* Responsive Visitor Summary */
@media (max-width: 768px) {
  .visitor-summary-section {
    margin: 20px 10px;
    padding: 2rem 0;
  }
  
  .visitor-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .stat-info {
    align-items: center;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/* Responsive LinkedIn Widget Display */
@media (max-width: 768px) {
  .linkedin-widget-container {
    margin: 0 10px;
  }
  
  .widget-header {
    padding: 0.75rem 1rem;
  }
  
  .widget-content {
    padding: 1rem;
    min-height: 150px;
  }
  
  .widget-actions {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .view-post-btn, .visit-profile-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    justify-content: center;
  }
}

/* Responsive Social Media Insights Grid */
@media (max-width: 768px) {
  .social-insights-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .social-insight-card {
    min-height: auto;
  }
  
  .social-insight-content {
    padding: 1.5rem;
    min-height: 350px;
  }
  
  .social-insight-header {
    padding: 1rem 1.5rem;
  }
  
  .embed-container {
    margin: 10px 0;
  }
  
  .embed-fallback {
    padding: 2rem;
    min-height: 300px;
  }
}

/* Responsive LinkedIn Activity */
@media (max-width: 768px) {
  .linkedin-activity-container {
    margin: 2rem 0;
  }
  
  .social-card {
    max-width: 100%;
  }
  
  .social-content {
    min-height: 350px;
    padding: 1.5rem;
  }
  
  .social-header {
    padding: 1rem 1.5rem;
  }
}

/* Responsive Publications */
@media (max-width: 768px) {
  .publications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .publication-card {
    padding: 1.5rem;
  }
  
  .publication-title {
    font-size: 1.2rem;
  }
  
  .publication-authors {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.contact-info:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.contact-item:hover {
  background: var(--bg-accent);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 40px;
  text-align: center;
}

.contact-text {
  color: var(--text-secondary);
}

.contact-text strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--bg-primary);
  text-align: center;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--bg-primary);
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Modern Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}



@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    padding: 1rem;
  }
  
  .social-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .social-btn {
    width: 100%;
    max-width: 280px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-image img {
    width: 250px;
    height: 250px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .about-image img {
    width: 200px;
    height: 200px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .social-buttons,
  .footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-section,
  .about-section,
  .skills-section,
  .contact-section {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}
