/* Components Styles */

/* Navigation */
.cyber-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-text {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* Introduction Section */
.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}

.intro-description {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
  /* Reserve permanent space for typing effect */
  min-height: 2em; /* Reserve space for 2 lines of text */
  height: 2em; /* Fixed height to prevent layout shift */
  display: flex;
  align-items: center;
  line-height: 1.3;
  overflow: hidden; /* Hide any overflow */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .intro-description {
    font-size: 1.2rem;
    height: 2.5rem; /* Adjust for smaller font */
  }
}

@media (max-width: 480px) {
  .intro-description {
    font-size: 1rem;
    height: 2rem; /* Adjust for mobile */
  }
}

.intro-details p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-lighter);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-color);
  color: var(--bg-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-frame {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--bg-lighter);
  border: 3px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.avatar-frame::before {
  display: none;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-light);
}



/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 159, 0.1);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

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

.blog-category {
  background: var(--accent-color);
  color: var(--bg-light);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: 500;
  font-size: 0.8rem;
}

.blog-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 1rem;
}

/* YouTube Section */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.youtube-card {
  overflow: hidden;
  transition: transform 0.3s ease;
}

.youtube-card:hover {
  transform: translateY(-10px);
}

.youtube-thumbnail {
  position: relative;
  width: 100%;
  height: 225px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.youtube-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.youtube-card:hover .youtube-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.youtube-card:hover .play-overlay {
  opacity: 1;
}

.youtube-info {
  padding: 1.5rem;
}

.youtube-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.youtube-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.youtube-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.youtube-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.cyber-footer {
  background: var(--bg-lighter);
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  margin-top: 4rem;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    border-right: 1px solid var(--border-light);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .intro-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .avatar-frame {
    width: 200px;
    height: 200px;
  }

  .avatar-image {
    font-size: 2.5rem;
  }

  .blog-grid,
  .youtube-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
