/* iOS 26 Liquid Glass Design Language - Modern Tech Palette */
:root {
    /* Modern Tech Professional Color Palette */
    --primary-blue: #2563EB;        /* Deep Blue Primary */
    --neutral-dark: #111827;        /* Charcoal Black */
    --neutral-light: #F9FAFB;       /* Soft White */
    --accent-orange: #F97316;       /* Vibrant Orange */
    
    /* Glass Effects with Modern Tech Colors */
    --glass-primary: rgba(249, 250, 251, 0.12);
    --glass-secondary: rgba(249, 250, 251, 0.08);
    --glass-accent: rgba(37, 99, 235, 0.3);
    --glass-border: rgba(249, 250, 251, 0.25);
    --glass-shadow: rgba(17, 24, 39, 0.15);
    
    /* Modern Tech Dynamic Tints */
    --tint-blue: rgba(37, 99, 235, 0.9);
    --tint-deep-blue: rgba(37, 99, 235, 0.95);
    --tint-orange: rgba(249, 115, 22, 0.9);
    --tint-charcoal: rgba(17, 24, 39, 0.9);
    --tint-gray: rgba(107, 114, 128, 0.8);
    --tint-light-gray: rgba(229, 231, 235, 0.8);
    
    /* Modern Tech Typography */
    --text-primary: rgba(249, 250, 251, 0.95);
    --text-secondary: rgba(249, 250, 251, 0.8);
    --text-tertiary: rgba(249, 250, 251, 0.6);
    --text-dark: rgba(17, 24, 39, 0.95);
    --text-dark-secondary: rgba(17, 24, 39, 0.8);
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --glass-primary: rgba(255, 255, 255, 0.15);
    --glass-secondary: rgba(255, 255, 255, 0.08);
    --text-primary: rgba(255, 255, 255, 0.98);
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
  }
}

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

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.95) 0%, 
    rgba(17, 24, 39, 0.9) 30%,
    rgba(37, 99, 235, 0.85) 70%, 
    rgba(17, 24, 39, 0.95) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Liquid Container */
.liquid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
  position: relative;
}

/* Glass Surface Base */
.glass-surface {
  background: var(--glass-primary);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-surface::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%);
  opacity: 0.6;
}

.glass-surface:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-section {
  padding: var(--spacing-xxl) var(--spacing-lg);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  background: linear-gradient(135deg, 
    var(--glass-primary) 0%, 
    var(--glass-secondary) 100%);
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-lg);
  position: relative;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tint-blue), var(--tint-deep-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 
    0 8px 32px rgba(0, 122, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: avatarPulse 3s ease-in-out infinite;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, var(--text-primary), rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 2s ease-in-out infinite alternate;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes titleShimmer {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-icon {
  font-size: 1.2rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.glass-button {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--glass-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.glass-button:hover::before {
  left: 100%;
}

.glass-button:hover {
  transform: translateY(-2px);
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 
    0 8px 32px rgba(249, 115, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Section Headers */
.section-header {
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Skills Section */
.skills-section {
  margin-bottom: var(--spacing-xl);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.skill-category {
  padding: var(--spacing-lg);
}

.skill-category h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.skill-tag {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: linear-gradient(135deg, var(--tint-blue), var(--tint-orange));
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
  transition: all 0.3s ease;
}

.skill-tag:nth-child(6n+1) { background: var(--tint-blue); }
.skill-tag:nth-child(6n+2) { background: var(--tint-deep-blue); }
.skill-tag:nth-child(6n+3) { background: var(--tint-orange); }
.skill-tag:nth-child(6n+4) { background: var(--tint-charcoal); }
.skill-tag:nth-child(6n+5) { background: var(--tint-gray); }
.skill-tag:nth-child(6n+6) { background: var(--tint-light-gray); }

.skill-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Experience Section */
.experience-section {
  margin-bottom: var(--spacing-xl);
}

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.experience-item {
  padding: var(--spacing-lg);
  position: relative;
}

.experience-header {
  margin-bottom: var(--spacing-md);
}

.experience-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.company {
  display: block;
  font-size: 1.1rem;
  color: var(--tint-orange);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.duration {
  display: block;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

.experience-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

.experience-tasks {
  list-style: none;
  padding: 0;
}

.experience-tasks li {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
  position: relative;
  line-height: 1.6;
}

.experience-tasks li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--tint-blue);
  font-weight: bold;
}

/* Projects Section */
.projects-section {
  margin-bottom: var(--spacing-xl);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.project-card {
  padding: var(--spacing-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.project-duration {
  display: block;
  font-size: 0.9rem;
  color: var(--tint-orange);
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.project-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Open Source Section */
.opensource-section {
  margin-bottom: var(--spacing-xl);
}

.opensource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.opensource-item {
  padding: var(--spacing-lg);
}

.opensource-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.opensource-item .project-duration {
  color: var(--tint-green);
}

/* Education Section */
.education-section {
  margin-bottom: var(--spacing-xl);
}

.education-interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.education-card,
.interests-card {
  padding: var(--spacing-lg);
}

.interests-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 12px 40px rgba(37, 99, 235, 0.15),
    0 4px 20px rgba(249, 115, 22, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.interests-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(37, 99, 235, 0.6) 0%, 
    rgba(249, 115, 22, 0.6) 50%, 
    rgba(37, 99, 235, 0.6) 100%);
  opacity: 0.8;
}

.interests-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
}

.interests-card:hover::after {
  left: 100%;
}

.education-card h2,
.interests-card h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.education-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.institution {
  color: var(--tint-blue);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.course {
  color: var(--text-secondary);
  font-style: italic;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.interest-tag {
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, #2563EB, #1E40AF, #F97316);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

.interest-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .liquid-container {
    padding: var(--spacing-sm);
  }
  
  .hero-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .skills-grid,
  .projects-grid,
  .opensource-grid,
  .education-interests-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-info {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .glass-surface {
    border-radius: var(--radius-md);
  }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --glass-primary: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-primary: rgba(255, 255, 255, 1);
    --text-secondary: rgba(255, 255, 255, 0.9);
  }
}

/* Print Styles */
@media print {
  body {
    background: var(--text-primary);
        color: var(--primary-bg);
  }
  
  .glass-surface {
    background: var(--text-primary);
    border: 1px solid #ccc;
    box-shadow: none;
    backdrop-filter: none;
  }
  
  .hero-title,
  .section-header h2 {
    color: var(--primary-bg);
        -webkit-text-fill-color: var(--primary-bg);
  }
}