html {
  scroll-behavior: smooth;
}

/* Responsive Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.7rem 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 47, 62, 0.07);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #232f3e;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  /* transition: background 0.2s, color 0.2s; */
}

.nav-links li a:hover {
  background: #d2e5ee;
  color: #5113ed;
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0.7rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .logo-container {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.3rem;
  }

  .logo-container img {
    width: 38px;
    height: 38px;
  }

  .channel-name {
    font-size: 1.1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.3rem;
  }

  .nav-links li a {
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
  }
}

/* Floating Social Icons */
.floating-social-icons {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.floating-social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #4caf50;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

.floating-social-icons a:hover {
  background: #45a049;
}

/* Document-style Notes Cards */
.notes-docs-grid {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.notes-docs-grid::-webkit-scrollbar {
  height: 10px;
}
.notes-docs-grid::-webkit-scrollbar-track {
  background: transparent;
}
.notes-docs-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 20px;
}
.notes-docs-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.4);
}

.note-doc { scroll-snap-align: start; flex: 0 0 300px; }

.note-doc {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 2rem 1.5rem 3.5rem 1.5rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.note-doc h3 {
  margin: 0 0 0.7rem 0;
  font-size: 1.3rem;
  color: #232f3e;
  font-weight: 700;
}

.note-desc {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.doc-download {
  position: absolute;
  bottom: 18px;
  right: 18px;
  margin: 0;
}

.note-doc.locked {
  background: #f3f3f3;
  border: 2px dashed #ff9800;
  opacity: 0.8;
}

.note-doc.locked .download-btn.doc-download {
  background: #1976d2 !important;
  color: #fff !important;
  cursor: pointer !important;
  border: none;
  box-shadow: 0 2px 8px rgba(35, 47, 62, 0.12);
  font-weight: 600;
  border-radius: 7px;
  padding: 0.32rem 0.6rem;
  font-size: 0.88rem;
  position: absolute;
  bottom: 18px;
  right: 18px;
  transition: background 0.2s;
}

.note-doc.locked .download-btn.doc-download:hover {
  background: #0093c4 !important;
}

/* Notes Section Styles */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.note-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fafc;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

.download-btn {
  background: #232f3e;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  font-weight: 500;
}

.download-btn:hover:enabled {
  background: #ff9800;
}

.download-btn.doc-download {
  background: #1976d2 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(35, 47, 62, 0.12);
  font-weight: 600;
  border-radius: 7px;
  padding: 0.32rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  border: none;
  transition: background 0.2s;
}

.download-btn.doc-download:hover:not([disabled]) {
  background: #1976d2 !important;
  /* fallback to main blue if needed */
  background: #1976d2 !important;
  background: #1976d2 !important;
  background: #1976d2 !important;
  background: #1976d2 !important;
  background: #0093c4 !important;
  /* dark sky blue */
  color: #fff !important;
}

/* style.css for The Devops Rite - Responsive YouTube Channel Website */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6fa;
  color: #222;
}

header {
  background: #232f3e;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  position: relative;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px 0;
  background: #1976d2;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-links {
  transition: max-height 0.3s, opacity 0.3s;
}

.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 2px 12px rgba(35, 47, 62, 0.10);
  padding: 1rem 0.5rem;
  z-index: 1001;
  gap: 1rem;
  opacity: 1;
  max-height: 400px;
}

.nav-links {
  opacity: 1;
  max-height: 400px;
}

@media (max-width: 700px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 16px;
    right: 18px;
    margin: 0;
    z-index: 1101;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 2px 12px rgba(35, 47, 62, 0.10);
    padding: 1rem 0.5rem;
    z-index: 1001;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    max-height: 400px;
    display: flex !important;
  }
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 48px;
  width: 48px;
  margin-right: 12px;
  border-radius: 8px;
  object-fit: cover;
  background: none;
  display: block;
  box-shadow: none;
  padding: 0;
}

.channel-name {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #232f3e;
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  box-shadow: none;
}

.nav-links li a:hover {
  background: #d2e5ee;
  color: #5113ed;
}

@media (max-width: 600px) {
  .nav-links li a {
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    background: transparent;
    color: #232f3e;
  }
}

main {
  max-width: 1100px;
  margin: 5.5rem auto 2rem auto;
  padding: 0 1rem;
}

.section {
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 0.7rem 0.6rem;
}

.video-grid {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.2rem;
}

.video-grid::-webkit-scrollbar {
  height: 10px;
}
.video-grid::-webkit-scrollbar-track {
  background: transparent;
}
.video-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 20px;
}
.video-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.32);
}

.video-card { scroll-snap-align: start; flex: 0 0 300px; }

.video-card {
  background: #f9fafc;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(35, 47, 62, 0.07);
}

.video-card:hover {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.18);
  transform: translateY(-4px) scale(1.03);
}

.video-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

form#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 30px;
}
iframe{
  border-radius: 10px;
}

form input,
form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
}

form button {
  background: #5ba0f4;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

form button:hover {
  background: #1c50fc;

}

#formMessage {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

footer {
  background: #232f3e;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 1rem;
  letter-spacing: 1px;
  border-radius: 0 0 12px 12px;
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }

  main {
    padding: 0 0.5rem;
    margin-top: 6.5rem;
  }

  .section {
    padding: 1rem;
  }
}

/* Contact section flex and logo */

.contact-flex {
  display: flex;
  gap: 2.2rem;
  align-items: stretch;
  justify-content: center;
  margin-top: 1.2rem;
}

.contact-flex form,
.contact-details-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(35, 47, 62, 0.07);
  padding: 1.2rem 1.5rem;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-flex form {
  border-right: 1px solid #eaeaea;
}

.contact-details-box {
  border-left: 1px solid #eaeaea;
}

@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }

  .contact-flex form,
  .contact-details-box {
    /* max-width: 100%; */
    width: 80%;
    position: relative;
    left: -45px;
    min-width: 0;
    border-radius: 12px;
    border: none;
  }
}

/* Floating Social Icons */
.floating-social-icons {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1000;
}

.floating-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #90caf9;
  color: #fff;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(144, 202, 249, 0.18);
  transition: box-shadow 0.2s, transform 0.2s;
}

.floating-social-icons a:nth-child(1) {
  background: #1976d2;
  /* Email: blue */
}

.floating-social-icons a:nth-child(2) {
  background: #0a66c2;
  /* LinkedIn: LinkedIn blue */
}

.floating-social-icons a:nth-child(3) {
  background: #e1306c;
  /* Instagram: Instagram pink */
}

.floating-social-icons a:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transform: scale(1.10);
}

.floating-promotion {
  position: fixed;
  left: 20px;
  bottom: 40px;
  width: 270px;
  min-height: 60px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px 10px 10px;
  box-shadow: 0 4px 18px rgba(44, 62, 80, 0.10);
  z-index: 1000;
  color: #222;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  border: 1px solid #e6e8ec;
  display: flex;
  align-items: center;
}


.floating-promotion .logo {
  width: 38px;
  height: 46px;
  background: #f5f6fa;
  border-radius: 8px;
  margin: 0 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #2b6cb0;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #e6e8ec;
}

.floating-promotion .promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.floating-promotion h3 {
  margin: 0 0 2px 0;
  font-size: 14px;
  text-align: left;
  font-weight: 600;
  color: #2b6cb0;
  letter-spacing: 0.01em;
}

.floating-promotion .description {
  font-size: 11px;
  line-height: 1.3;
  margin-bottom: 4px;
  text-align: left;
  color: #444;
  opacity: 0.95;
}

/* Close button for floating promotion */
.floating-promotion .close-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  background: #f5f6fa;
  border: none;
  color: #888;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
  border: 1px solid #e6e8ec;
}

.floating-promotion .close-btn:hover {
  background: #e6e8ec;
}

@media (max-width: 600px) {
  .floating-promotion{
    width: 40px;
  }
  .promo-content{
    display: none;
   }
  .promo-content a{
    display: none;
  } 
  .description{
    display: none;
  } 
}