/* Modern Portfolio Styles - Fancy & Impressive */
:root {
  /* Modern Color Palette */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Neutral Colors */
  --background: #0a0a0a;
  --surface: #1a1a1a;
  --surface-light: #2a2a2a;
  --border: #333333;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  /* Gradients */
  --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%);
  --gradient-7: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --gradient-8: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  --gradient-9: linear-gradient(135deg, #a8caba 0%, #5d4e75 100%);
  --gradient-10: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
  --gradient-11: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
  z-index: -1;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  transition: var(--transition-slow);
}

.name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5)); }
  to { filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.8)); }
}

.header h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: var(--transition-slow);
}

/* Ensure response appears first */
.response-section {
  order: -1;
}

/* Action Buttons Section */
.action-buttons-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  transition: var(--transition-slow);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  width: 100%;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  transition: var(--transition);
  z-index: -1;
}

.action-btn:hover::before {
  left: 0;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.action-btn.active {
  background: var(--gradient-1);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.action-btn .material-icons {
  font-size: 1.1rem;
  transition: var(--transition);
}

.action-btn:hover .material-icons {
  transform: scale(1.1);
}

/* Search Section */
.search-section {
  margin: 2rem auto;
  max-width: 600px;
  width: 100%;
  transition: var(--transition-slow);
}

.search-container {
  position: relative;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  outline: none !important;
}

.search-form:focus {
  outline: none !important;
}

.search-form:focus-visible {
  outline: none !important;
}

.input-group {
  flex: 1;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  outline: none !important;
}

.input-group:focus {
  outline: none !important;
}

.input-group:focus-visible {
  outline: none !important;
}

#search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none !important;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

#search-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

#search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

#search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  outline: none !important;
}

#search-btn:focus {
  outline: none !important;
  box-shadow: var(--shadow-md) !important;
}

#search-btn:focus-visible {
  outline: none !important;
  box-shadow: var(--shadow-md) !important;
}

#search-input::placeholder {
  color: var(--text-muted);
}

/* Removed animated hint - now using rotating placeholders */

/* Response Section - Chat Style */
.response-section {
  margin: 0 auto 2rem auto;
  max-width: 700px; /* Reduced from 900px */
  width: 100%;
  transition: var(--transition-slow);
  order: -1; /* This moves it above other elements */
  z-index: 10;
}

.response-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem; /* Reduced from 2rem */
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.4s ease-out;
}

.response-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
}

.response-content {
  color: var(--text-primary);
  line-height: 1.6; /* Reduced from 1.8 */
  font-size: 0.95rem; /* Reduced from 1rem */
}

.response-content h1,
.response-content h2,
.response-content h3 {
  color: var(--primary);
  margin-bottom: 0.75rem; /* Reduced from 1rem */
  font-weight: 600;
}

.response-content h1 { font-size: 1.6rem; } /* Reduced from 1.8rem */
.response-content h2 { font-size: 1.3rem; } /* Reduced from 1.5rem */
.response-content h3 { font-size: 1.1rem; } /* Reduced from 1.3rem */

.response-content p {
  margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.response-content ul {
  margin: 0.75rem 0; /* Reduced from 1rem */
  padding-left: 1.25rem; /* Reduced from 1.5rem */
}

.response-content li {
  margin-bottom: 0.4rem; /* Reduced from 0.5rem */
}

.response-content code {
  background: var(--surface-light);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.85rem; /* Reduced from 0.9rem */
}

.response-content .code-block {
  display: block;
  background: var(--surface-light);
  padding: 0.75rem; /* Reduced from 1rem */
  border-radius: var(--radius-lg);
  margin: 0.75rem 0; /* Reduced from 1rem */
  overflow-x: auto;
  border: 1px solid var(--border);
}

/* Dynamic Response Layouts */

/* Me/About Layout */
.response-layout-me {
  text-align: center;
  max-width: 600px; /* Reduced from 800px */
  margin: 0 auto;
}

.me-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* Reduced from 2rem */
}

.me-avatar {
  font-size: 3rem; /* Reduced from 4rem */
  margin-bottom: 0.75rem; /* Reduced from 1rem */
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.me-content {
  text-align: left;
  width: 100%;
}

.me-content h3 {
  text-align: center;
  margin-bottom: 1rem; /* Reduced from 1.5rem */
  font-size: 1.5rem; /* Reduced from 1.8rem */
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Projects Layout */
.response-layout-projects {
  max-width: 800px; /* Reduced from 1000px */
  margin: 0 auto;
}

.projects-header {
  text-align: center;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.projects-header h3 {
  font-size: 1.5rem; /* Reduced from 1.8rem */
  margin-bottom: 0.4rem; /* Reduced from 0.5rem */
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-header p {
  color: var(--text-secondary);
  font-size: 0.9rem; /* Reduced from 1rem */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced from 300px */
  gap: 1rem; /* Reduced from 1.5rem */
  margin-top: 1.5rem; /* Reduced from 2rem */
}

.project-card {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem; /* Reduced from 1.5rem */
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-3);
}

.project-card:hover {
  transform: translateY(-3px); /* Reduced from -5px */
  box-shadow: var(--shadow-xl);
}

.project-icon {
  font-size: 1.5rem; /* Reduced from 2rem */
  margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.project-content h4 {
  font-size: 1.1rem; /* Reduced from 1.2rem */
  font-weight: 600;
  margin-bottom: 0.5rem; /* Reduced from 0.75rem */
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem; /* Reduced from 1rem */
  line-height: 1.5; /* Reduced from 1.6 */
  font-size: 0.9rem; /* Added smaller font size */
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem; /* Reduced from 0.5rem */
}

.tech-badge {
  background: #2d3748;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #4a5568;
}

/* Experience Layout */
.response-layout-experience {
  max-width: 700px; /* Reduced from 900px */
  margin: 0 auto;
}

.experience-header {
  text-align: center;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.experience-header h3 {
  font-size: 1.5rem; /* Reduced from 1.8rem */
  margin-bottom: 0.4rem; /* Reduced from 0.5rem */
  background: var(--gradient-5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experience-header p {
  color: var(--text-secondary);
  font-size: 0.9rem; /* Reduced from 1rem */
}

.experience-timeline {
  position: relative;
  padding-left: 1.5rem; /* Reduced from 2rem */
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem; /* Reduced from 1rem */
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-5);
}

.experience-item {
  position: relative;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
  padding-left: 1.5rem; /* Reduced from 2rem */
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -0.4rem; /* Reduced from -0.5rem */
  top: 0.4rem; /* Reduced from 0.5rem */
  width: 0.8rem; /* Reduced from 1rem */
  height: 0.8rem; /* Reduced from 1rem */
  background: var(--gradient-5);
  border-radius: 50%;
  border: 3px solid var(--surface);
}

.experience-icon {
  position: absolute;
  left: -2rem; /* Reduced from -2.5rem */
  top: 0;
  font-size: 1.25rem; /* Reduced from 1.5rem */
  background: var(--surface);
  padding: 0.2rem; /* Reduced from 0.25rem */
  border-radius: var(--radius-md);
}

.experience-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem; /* Reduced from 1rem */
  margin-bottom: 0.5rem; /* Reduced from 0.75rem */
}

.experience-header h4 {
  font-size: 1.1rem; /* Reduced from 1.3rem */
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.experience-role {
  background: #2d3748;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #4a5568;
}

.experience-duration {
  color: var(--text-secondary);
  font-size: 0.8rem; /* Reduced from 0.9rem */
  font-weight: 500;
}

.experience-content p {
  color: var(--text-secondary);
  line-height: 1.5; /* Reduced from 1.6 */
  font-size: 0.9rem; /* Added smaller font size */
}

/* Skills Layout */
.response-layout-skills {
  max-width: 800px; /* Reduced from 1000px */
  margin: 0 auto;
}

.skills-header {
  text-align: center;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.skills-header h3 {
  font-size: 1.5rem; /* Reduced from 1.8rem */
  margin-bottom: 0.4rem; /* Reduced from 0.5rem */
  background: var(--gradient-7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-header p {
  color: var(--text-secondary);
  font-size: 0.9rem; /* Reduced from 1rem */
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduced from 250px */
  gap: 1.5rem; /* Reduced from 2rem */
  margin-top: 1.5rem; /* Reduced from 2rem */
}

.skill-category {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem; /* Reduced from 1.5rem */
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-2px); /* Reduced from -3px */
  box-shadow: var(--shadow-lg);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.6rem; /* Reduced from 0.75rem */
  margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.category-icon {
  font-size: 1.25rem; /* Reduced from 1.5rem */
}

.category-header h4 {
  font-size: 1rem; /* Reduced from 1.1rem */
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem; /* Reduced from 0.5rem */
}

.skill-badge {
  background: #2d3748;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #4a5568;
  transition: var(--transition);
}

.skill-badge:hover {
  transform: scale(1.03); /* Reduced from 1.05 */
  box-shadow: var(--shadow-md);
}

/* Contact Layout */
.response-layout-contact {
  max-width: 600px; /* Reduced from 800px */
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.contact-header h3 {
  font-size: 1.5rem; /* Reduced from 1.8rem */
  margin-bottom: 0.4rem; /* Reduced from 0.5rem */
  background: var(--gradient-9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header p {
  color: var(--text-secondary);
  font-size: 0.9rem; /* Reduced from 1rem */
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduced from 250px */
  gap: 0.75rem; /* Reduced from 1rem */
  margin-top: 1.5rem; /* Reduced from 2rem */
}

.contact-item {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  overflow: hidden;
}

.contact-item:hover {
  transform: translateY(-2px); /* Reduced from -3px */
  box-shadow: var(--shadow-lg);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Reduced from 1rem */
  padding: 1.25rem; /* Reduced from 1.5rem */
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.contact-link:hover {
  background: var(--surface-light);
  color: var(--text-primary);
}

.contact-icon {
  font-size: 1.25rem; /* Reduced from 1.5rem */
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem; /* Reduced from 0.25rem */
}

.contact-type {
  font-size: 0.75rem; /* Reduced from 0.8rem */
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-value {
  font-size: 0.9rem; /* Reduced from 1rem */
  font-weight: 600;
  color: var(--text-primary);
}

/* Default Layout */
.response-layout-default {
  max-width: 600px; /* Reduced from 800px */
  margin: 0 auto;
}

.chat-message {
  padding: 0;
  background: transparent;
  border-radius: 0;
  border-left: none;
}

/* Loading Animation */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem; /* Reduced from 1rem */
  padding: 1.5rem; /* Reduced from 2rem */
}

.loading-dots {
  display: flex;
  gap: 0.4rem; /* Reduced from 0.5rem */
}

.dot {
  width: 6px; /* Reduced from 8px */
  height: 6px; /* Reduced from 8px */
  background: var(--primary);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.85rem; /* Reduced from 0.9rem */
  font-weight: 500;
}

/* Error Container */
.error-container {
  text-align: center;
  padding: 1.5rem; /* Reduced from 2rem */
}

.error-icon {
  font-size: 2.5rem; /* Reduced from 3rem */
  margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.error-container h3 {
  color: var(--error);
  margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.error-container p {
  color: var(--text-secondary);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Card Section */
.card-section {
  display: none;
  animation: fadeInUp 0.5s ease-out;
  margin-top: 2rem;
}

.card-section.active {
  display: block;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: var(--transition);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h3 .card-icon {
  font-size: 1.5rem;
}

.card h4 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.card .company-logo {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  margin-left: auto;
}

.card .date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.card .skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--gradient-1);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-tag:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--surface-light);
  color: var(--text-primary);
}

.contact-item .material-icons {
  font-size: 1.5rem;
  transition: var(--transition);
}

.contact-item:hover .material-icons {
  transform: scale(1.1);
}

/* Social Links - Hidden by default */
.social-links {
  display: none;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-1);
  color: white;
}

.social-link .material-icons {
  font-size: 1.2rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--surface);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: slideInUp 0.3s ease-out;
}

.modal-header {
  background: var(--gradient-1);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.card {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.modal-section ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.modal-section li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.modal-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal-tech-item {
  background: var(--gradient-1);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
}

.modal-expertise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.modal-expertise-item {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.modal-expertise-item h5 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.modal-expertise-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .header {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }
  
  .main-content {
    gap: 1.5rem;
  }
  
  .action-buttons-section {
    margin: 1.5rem 0;
  }
  
  .search-section {
    margin: 1.5rem auto;
    max-width: 500px; /* Reduced from 600px */
  }
  
  .action-buttons {
    gap: 0.75rem;
  }
  
  .action-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .action-btn .material-icons {
    font-size: 1rem;
  }
  
  .search-container {
    margin: 0 0.5rem; /* Reduced from 1rem */
  }
  
  .search-form {
    gap: 0.4rem;
  }
  
  .input-group {
    padding: 0.4rem;
  }
  
  #search-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card {
    padding: 1.2rem;
  }
  
  .response-container {
    padding: 1.25rem; /* Reduced from 1.5rem */
  }
  
  .response-content {
    font-size: 0.9rem; /* Reduced from 0.95rem */
  }
  
  .response-content h1 { font-size: 1.4rem; } /* Reduced from 1.5rem */
  .response-content h2 { font-size: 1.2rem; } /* Reduced from 1.3rem */
  .response-content h3 { font-size: 1rem; } /* Reduced from 1.1rem */
  
  .social-links {
    margin-top: 1.5rem;
  }
  
  .social-link {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .skills-list {
    gap: 0.4rem;
  }
  
  .skill-tag {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  
  .action-btn .material-icons {
    font-size: 1.1rem;
  }
  
  .search-form {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .input-group {
    width: 100%;
    padding: 0.5rem; /* Added padding */
  }
  
  #search-input {
    font-size: 0.95rem;
  }
  
  #search-btn {
    width: 100%;
    height: 2.5rem; /* Reduced from 3rem */
  }
  
  .name {
    font-size: 2.5rem;
  }
  
  .header h2 {
    font-size: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .response-container {
    padding: 1rem;
  }
  
  .card-grid {
    gap: 0.75rem;
  }
  
  .card h3 {
    font-size: 1.1rem;
  }
  
  .card h4 {
    font-size: 0.9rem;
  }
  
  .card p {
    font-size: 0.9rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-section h3 {
    font-size: 1.1rem;
  }
  
  .modal-expertise {
    grid-template-columns: 1fr;
  }
  
  .modal-tech-list {
    gap: 0.4rem;
  }
  
  .modal-tech-item {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .action-btn {
    padding: 0.6rem 0.8rem;
  }
  
  .action-btn .material-icons {
    font-size: 1rem;
  }
  
  .name {
    font-size: 2.2rem;
  }
  
  .card {
    padding: 0.8rem;
  }
  
  .response-container {
    padding: 0.8rem;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0.5rem;
  }
  
  .action-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .header h2 {
    font-size: 0.9rem;
  }
}

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

.action-btn:focus,
#search-input:focus,
#search-btn:focus,
.modal-close:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border: #666666;
    --text-secondary: #cccccc;
    --text-muted: #999999;
  }
}

/* Dark Mode (already dark by default) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Already optimized for dark mode */
  }
} 