/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #121212;
  color: #f0f0f0;
  line-height: 1.6;
}
a {
  color: #4faaff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* Header */
header {
  background: #1e1e1e;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
}
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}
nav li {
  margin: 0 20px;
}
nav a {
  color: #f0f0f0;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #1abc9c;
}

/* Hero Section */
#hero {
  text-align: center;
  padding: 120px 20px;
  background-color: transparent;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
#hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background: none !important;
  pointer-events: none;
}
#hero h1, #hero p, .skills-list {
  position: relative;
  z-index: 2;
  background: none !important;
}
#hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: none !important;
}
#hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  background: none !important;
}
.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.skills-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Blog Section */
.blog-section {
  margin: 60px auto;
  max-width: 1000px;
  padding: 0 20px;
}
.blog-post {
  background: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}
.blog-post img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.blog-content {
  padding: 25px 30px;
}
.blog-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
}
.blog-content p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.7;
}

/* Video List */
.video-list { padding: 40px 0; }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.video-card {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.2s ease;
}
.video-card:hover {
  transform: scale(1.02);
}
.video-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.video-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.video-info h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #ffffff;
}
.video-info p {
  font-size: 0.95rem;
  color: #cccccc;
}

/* Contact Section */
#contact {
  background: #1e1e1e;
  padding: 60px 20px;
  border-radius: 8px;
  margin-top: 60px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
}
.contact-form label {
  margin: 15px 0 5px;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #555;
  border-radius: 6px;
  font-size: 1rem;
  background: #2c2c2c;
  color: #f0f0f0;
}
.contact-form button {
  margin-top: 20px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  background: #3498db;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-form button:hover {
  background: #2980b9;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
  color: #aaa;
  background: #1a1a1a;
  margin-top: 60px;
  border-top: 1px solid #333;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

#hero {
  position: relative;
  overflow: hidden;
}

#hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}


.videos-list .video-card {
  margin-bottom: 30px;
}

.about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.about-block.reverse {
  flex-direction: row-reverse;
}

.text-block {
  flex: 1 1 300px;
  padding: 10px;
}

.about-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 10px 0;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .about-block {
    flex-direction: column;
    align-items: center;
  }

  .about-block.reverse {
    flex-direction: column;
  }

  .text-block {
    padding: 0;
    text-align: center;
  }

  .about-img {
    max-width: 90%;
  }
}

/* Hamburger Menu */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-bottom: 10px;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background: #f0f0f0;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
}

.nav-list li {
  margin: 0 15px;
}

.nav-list a {
  color: #f0f0f0;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #1abc9c;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    margin: 10px 0;
  }

  .menu-toggle.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Responsive Video Fixes */
.video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: auto;
  text-align: center;
}

.video-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 768px) {
  .video-card {
    padding: 10px;
  }

  .video-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

  .video-info h3 {
    font-size: 1rem;
  }

  .video-info p {
    font-size: 0.9rem;
  }
}

.video-title {
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.videos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: stretch;
  align-items: stretch;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  background-color: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.video-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.video-info {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.about-section {
  padding: 40px 20px;
}

.about-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
  gap: 20px;
}

.about-img-wrap img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.about-text-wrap {
  max-width: 800px;
  text-align: left;
  padding: 0 10px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-entry:nth-child(even) {
  flex-direction: column-reverse;
}

@media screen and (min-width: 900px) {
  .about-entry {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }

  .about-entry:nth-child(even) {
    flex-direction: row-reverse;
  }

  .about-text-wrap {
    flex: 1;
    text-align: left;
  }

  .about-img-wrap {
    flex: 1;
  }
}
