/* Base Styling */
body {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #0d1117;
  color: #c9d1d9;
}

.p-class {
  padding-top: 12px;
}

html {
  scroll-behavior: smooth;
}

/* Header + Navigation */
header {
  background: #161b22;
  padding: 1rem 0;
}

header nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #c9d1d9;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: #58a6ff;
  text-decoration: none;
}

nav a:hover {
  color: #1f6feb;
  transition: color 0.3s ease;
}

/* Section Styling */
.hero, .projects, .contact {
  padding: 2rem;
  text-align: center;
}

.myintro {
  padding: 2rem;
  text-align: center;  
}

.cta {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  margin-top: 1rem;
  background-color: #238636;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

/* Project Cards */
.project-card {
  background-color: #161b22;
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 10px;
  max-width: 800px;
  text-align: left;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.02);
}

.project-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.project-info {
  margin-top: 1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #161b22;
  color: #c9d1d9;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #58a6ff;
  cursor: pointer;
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    flex-direction: column;
    background-color: #161b22;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
    padding: 1rem;
    border-radius: 0 0 0 10px;
    z-index: 1000;
  }

  nav ul.show {
    display: flex;
  }
}

/* Fade-in Animation */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.projects-section {
  background-color: #161b22;
  padding: 60px 20px;
  text-align: center;
}

.product-section {
  background-color: #161b22;
  padding: 60px 20px;
  text-align: center;
}

.projects-section h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
}

.project-card {
  background-color: #0d1117;
  border: 1px solid #30363d;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(88, 166, 255, 0.3);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #30363d;
}

.project-content {
  padding: 20px;
  color: #c9d1d9;
}

.project-content h3 {
  margin-top: 0;
  color: #58a6ff;
}

.project-content p {
  font-size: 0.95rem;
  margin: 10px 0 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tags span {
  background-color: #21262d;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #8b949e;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #238636;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}



.btn:hover {
  background-color: #2ea043;
}


@media screen and (max-width: 480px) {
  .project-card {
    margin: 0 10px;
  }
}


/* Product Section Styling */
.product-section {
    background-color: #161b22;
    padding: 60px 20px;
    text-align: center;
}

.product-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.product-section p {
    font-size: 1rem;
    color: #c9d1d9;
    margin-bottom: 40px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(88, 166, 255, 0.3);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #30363d;
}

.product-content {
    padding: 20px;
    color: #c9d1d9;
}

.product-content h3 {
    margin-top: 0;
    color: #58a6ff;
}

.product-content p {
    font-size: 0.95rem;
    margin: 10px 0 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tags span {
    background-color: #21262d;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #8b949e;
}

@media screen and (max-width: 480px) {
    .projects-section, .projects-grid, .product-card {
        margin: 0 10px;
        grid-template-columns: 1fr !important;
    }
}

.product-info img {
  width: 100%;
  max-width: 600px; /* Limit maximum width */
  height: auto;
  display: block;
  margin: 20px auto; /* Center the image */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Soft shadow */
}
/* Center product-description content but align text nicely */
.product-description {
  max-width: 700px; /* Keep content readable */
  margin: 0 auto; /* Center horizontally */
  text-align: left; /* Make text (and list bullets) aligned properly */
}

/* Optional: add a little margin to ul */
.product-description ul {
  padding-left: 20px; /* Proper left padding for bullets */
}

.product-description ul li {
  margin-bottom: 10px; /* Space between list items */
}

.product-info img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.product-section {
  background-color: #161b22;
  padding: 60px 20px;
  text-align: center;
}

pre {
  background-color: #0d1117; /* Dark background */
  color: #c9d1d9; /* Light text */
  padding: 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  white-space: pre-wrap; /* Important to wrap text nicely */
  border: 1px solid #30363d;
  margin-top: 20px;
}

.product-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 2rem;
  background-color: #0d1117;
  padding: 2rem;
  border: 1px solid #30363d;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

@media screen and (max-width: 768px) {
  .product-info {
    flex-direction: column;
    align-items: center;
  }
}
.product-description ul li::before {
  content: "✅ ";
  margin-right: 6px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.product-info {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 2rem;
  background-color: #0d1117;
  padding: 2rem;
  border: 1px solid #30363d;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  justify-content: center; /* Add this */
  align-items: center; /* Add this */
}

.product-info img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  flex: 1 1 300px;
}

.product-description {
  flex: 1 1 400px;
  max-width: 600px;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .product-info {
    flex-direction: column;
    align-items: center;
  }

  .product-info img, .product-description {
    max-width: 100%;
  }
}

.video-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px;
}

.video-container iframe {
  width: 100%;
  height: 340px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.no-video {
  background-color: #21262d;
  color: #c9d1d9;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.social-links {
  margin-top: 10px;
  font-size: 0.95rem;
}

.social-links a {
  color: #58a6ff;
  text-decoration: none;
  margin: 0 5px;
}

.social-links a:hover {
  color: #1f6feb;
}


/* === INDEX.HTML: center all paragraphs on home page === */
.index-page p {
  text-align: center;
}

/* === PROJECT.HTML: force exactly 3 cards per row === */
.projects-section .projects-grid {
  /* override the auto-fit behavior */
  grid-template-columns: repeat(3, 1fr);
}

/* === PROJECT.HTML: 1 card per row on narrow screens === */
@media screen and (max-width: 600px) {
  .projects-section .projects-grid {
    grid-template-columns: 1fr !important;
  }
}

/* === INDEX.HTML: confine paragraph width and center text === */
.index-page p {
  max-width: 800px;       /* or whatever width feels best */
  margin: 0 auto;         /* center the block */
  text-align: center;     /* ensure the text is centered */
  word-wrap: break-word;  /* prevent overflow */
}

/* === PROJECT.HTML: 2 cards per row on medium screens === */
@media screen and (min-width: 601px) and (max-width: 900px) {
  .projects-section .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}









