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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated background */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(0.5deg); }
  66% { transform: translateY(5px) rotate(-0.5deg); }
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Clean card design */
.glass-header,
.glass-card,
.glass-footer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

/* Header */
header {
  padding: 2rem 0;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

nav a:hover {
  background: #2c3e50;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

/* Main content */
main {
  padding: 2rem 0;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-weight: 700;
}

section p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #4a5568;
  line-height: 1.7;
}

/* Slideshow */
.slideshow-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.slide {
  display: none;
  position: relative;
  animation: slideIn 0.5s ease-in-out;
}

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

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.slide-caption h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.slide-caption p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* Slideshow controls */
.slideshow-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.prev-btn,
.next-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #2c3e50;
  font-size: 1.5rem;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prev-btn:hover,
.next-btn:hover {
  background: #2c3e50;
  color: white;
  transform: scale(1.1);
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: #2c3e50;
  width: 0%;
  transition: width 0.1s linear;
}

/* Slideshow navigation */
.slideshow-nav {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: #2c3e50;
  transform: scale(1.2);
}

/* About section */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.tech-category {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.tech-category:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tech-category h5 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.tech-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-category li {
  color: #4a5568;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.tech-category li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #2c3e50;
  font-weight: bold;
}

/* Interests section */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.interest-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.interest-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.interest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #2c3e50;
  border-radius: 50%;
  color: white;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.interest-card:hover .interest-icon {
  transform: scale(1.1);
  background: #1a202c;
}

.interest-card h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.interest-card p {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.short-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 177.78%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.short-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Buttons */
.resume-btn {
  display: inline-block;
  background: #2c3e50;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
  background: #1a202c;
}

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

.contact-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #2c3e50;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
  background: #1a202c;
}

.contact-details h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details a {
  color: #4a5568;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-details a:hover {
  color: #2c3e50;
}

/* Blog */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post-preview {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog-post-preview:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-title {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.3s ease;
}

.post-title:hover {
  color: #1a202c;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

footer small {
  color: #718096;
  font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }
  
  nav {
    gap: 0.5rem;
  }
  
  nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  section h2 {
    font-size: 1.8rem;
  }
  
  .glass-header,
  .glass-card,
  .glass-footer {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .slide img {
    height: 350px;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 15px;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .slide img {
    height: 250px;
  }
  
  .glass-header,
  .glass-card,
  .glass-footer {
    padding: 1rem;
  }
  
  .shorts-grid {
    grid-template-columns: 1fr;
  }
  
  .interests-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}