/* Algorithm Cards with Cloud Theme Styling */

.algo-section {
  margin: 40px 0;
}

.algo-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,248,255,0.95) 100%);
  padding: 25px;
  border-radius: 12px;
  margin: 25px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.algo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Color-coded algorithm cards */
.algo-card.aws {
  border-left: 6px solid #FF9900;
  background: linear-gradient(135deg, rgba(255,153,0,0.05) 0%, rgba(255,153,0,0.1) 100%);
}

.algo-card.azure {
  border-left: 6px solid #0078D4;
  background: linear-gradient(135deg, rgba(0,120,212,0.05) 0%, rgba(0,120,212,0.1) 100%);
}

.algo-card.gcp {
  border-left: 6px solid #4285F4;
  background: linear-gradient(135deg, rgba(66,133,244,0.05) 0%, rgba(66,133,244,0.1) 100%);
}

.algo-card.kubernetes {
  border-left: 6px solid #326CE5;
  background: linear-gradient(135deg, rgba(50,108,229,0.05) 0%, rgba(50,108,229,0.1) 100%);
}

.algo-card.multi {
  border-left: 6px solid #EA4335;
  background: linear-gradient(135deg, rgba(255,153,0,0.05) 0%, rgba(0,120,212,0.05) 50%, rgba(66,133,244,0.05) 100%);
}

/* Expertise cards for bio page */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.expertise-card {
  padding: 25px;
  border-radius: 12px;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.expertise-card h3 {
  margin-top: 0;
  font-size: 1.3em;
  margin-bottom: 15px;
}

.expertise-card p {
  margin: 0;
  opacity: 0.95;
  line-height: 1.6;
}

/* Cloud header styling */
.cloud-header {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #FF9900 0%, #0078D4 50%, #4285F4 100%);
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
}

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

.cloud-header h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin: 20px 0 10px 0;
}

.cloud-header h2 {
  color: rgba(255,255,255,0.95);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  margin: 0;
}

/* Cloud badges */
.cloud-badges {
  text-align: center;
  margin: 25px 0;
}

.cloud-badges img {
  margin: 5px;
  transition: transform 0.2s ease;
}

.cloud-badges img:hover {
  transform: scale(1.1);
}

/* YouTube header */
.youtube-header {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #FF0000 0%, #FF4444 50%, #FF6666 100%);
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(255,0,0,0.3);
}

.youtube-header h1 {
  color: white;
  font-size: 3em;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.youtube-header a {
  display: inline-block;
  background: white;
  color: #FF0000;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-header a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Channel stats grid */
.channel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.channel-stats > div {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  color: white;
  transition: transform 0.3s ease;
}

.channel-stats > div:hover {
  transform: translateY(-5px);
}

/* Algorithm header */
.algo-header {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(102,126,234,0.3);
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
}

.algo-header h1 {
  color: white;
  font-size: 2.5em;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.algo-header p {
  color: rgba(255,255,255,0.95);
  font-size: 1.2em;
  margin: 15px 0 0 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  .channel-stats {
    grid-template-columns: 1fr;
  }
  
  .cloud-header h1 {
    font-size: 2em;
  }
  
  .youtube-header h1 {
    font-size: 2em;
  }
  
  .algo-header h1 {
    font-size: 1.8em;
  }
}

/* Smooth transitions for all interactive elements */
* {
  transition: all 0.3s ease;
}
