
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: "Segoe UI", Roboto, Arial, Sans-serif; background: #fff; color: #111; -webkit-font-smoothing:antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
 
.yyy{
  border-radius: 30%;
}
.container {
  max-width: 1180px;
  margin: 8px auto;
  padding: 12px 20px;
  display: flex;
  align-items: center; 
  justify-content: space-between;
  gap: 12px;
}

.projects-para3{
  font-size: 20px;
  font-weight: 700;
  margin-top: 25px;
  margin-left: 16px;
}
.download-btn{
  background-color: #1976d2;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 16px;

}
.service{
  width: 50%;
  margin-top: 10px;
}
.right {
  flex: 1 1 auto;
}
.left {
  flex: 0 0 auto;
}
.whats{
  width: 50%;
}
.local {
  font-weight: 800;
  font-size: clamp(18px, 2.8vw, 30px);
  letter-spacing: 0.2px;
  text-decoration: none;
  color: #111;
  display: inline-block;
  padding-left: 8px;
}

.container .left table { border-collapse: collapse; }
.container .left td { padding: 0 6px; vertical-align: middle; }
.container .left button {
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: transform .18s ease, color .18s;
}
.container .left button:hover { transform: translateY(-3px); color: #1976d2; }


hr { border: 0; border-top: 1px solid #e6e6e6; margin: 10px 0 20px; }


.body, .right-section {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
}


.body {
  width: 55%;
  padding: 0 24px;
  max-width: 720px;
}
.right-section {
  width: 40%;
  padding: 8px 24px;
  max-width: 420px;
}

.left-section {
  width: 100%;
}
.image {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  margin: 6px auto 18px;
  border-radius: 12px;
  object-fit: contain;
}
.para3 {
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 700;
  margin: 8px 0 10px;
}
.para4 {
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  margin-bottom: 6px;
  max-width: 720px;
}

.whats, .face, .you, .book-now, .see {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  transition:all 0.3s ease;
}
.whats { background: #25D366; }
.face  { background: #ff6b93; }
.you   { background: #ff0000; }
.book-now { background: #2f43ff; color: #fff; }
.see { background: #eee; color: #111; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.book-now:hover, .whats:hover, .face:hover, .you:hover{
  transform: scale(1.03)
}

.img-face, .img-what, #img-you { 
  width: 20px; height: 20px; object-fit: cover;

}
.para {
  font-size: medium;
  font-weight: 800;
  line-height: 1.02;
  margin: 6px 0 8px;
}
.para2 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}

iframe.location {
  width: 100%;
  max-width: 420px;
  height: 260px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
  display: block;
  margin-top: 8px;
}

.cat {
  width: 100%;
  max-width: 270px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  display: inline-block;
  margin: 8px 10px 0 0;
}

.para5 { font-size: 20px; font-weight: 700; margin-top: 12px; margin-bottom: 8px; }
.left-section .see { margin-top: 14px; }
button:focus, a:focus { outline: 3px solid #cfe3ff; outline-offset: 2px; }
.gallery-body, .about-body { 
  max-width: 1180px; 
  margin: 0 auto; 
  padding: 12px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: center;
  justify-items: center;
}

#para11{font-size: 40px;}
.about-para{
  text-align: center;
  font-size: 30px;
}
.about-para2{
  text-align: center;
}
#img-you{
  border-radius: 5px;
}
#img11, #img22, #img12 {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#img11:hover, #img22:hover, #img12:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-img1, .gallery-img2 {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.gallery-img1:hover, .gallery-img2:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Lightbox / modal for gallery images */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-content {
  max-width: 95%;
  max-height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.14); }

#para11{
  font-size: 36px;
}
#about-para4{
  text-align: center;
}
.projects-para{
  font-size: 30px;
  font-weight: 700;
  text-align: left;
  margin-top: 05px;
}
.youframe{
  width: 49%;
  margin-top: 5px;
  border-radius: 7px;
  float: left;
  margin-left: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}


.project-para2{
  font-size: 30px;
  font-weight: 700;
  text-align: left;
  margin-top: 180px;
}

.projects-page {
  max-width: 1100px;
  margin: 32px auto;
  padding: 28px 20px;
}

.projects-intro h1 {
  color: #111;
  margin: 0 0 12px 0;
  font-size: clamp(20px, 3.6vw, 28px);
}

.projects-intro p {
  color: #555;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: start;
}
.project-card {
  background-color: #ffffff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.project-card h3 {
  margin: 0 0 6px 0;
  color: #222;
  font-size: 18px;
}

.project-card p {
  color: #555;
  margin: 0;
  flex: 1 1 auto;
}
.project-card a:hover {
  text-decoration: underline;
}
.project-a{
    text-decoration: none;
}
/* Project image inside card */
.project-card .ard-imgg{ 
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}


.project-detail {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.project-header h1 {
  color: #111;
  margin-bottom: 10px;
}

.project-header p {
  color: #555;
  font-size: 17px;
  margin-bottom: 12px;
}
.project-section {
  margin-top: 40px;
}

.project-section h2 {
  color:red;
  margin-bottom: 14px;
}

.components-list {
  list-style: disc;
  padding-left: 20px;
  color: #555;
}

.components-list li {
  margin-bottom: 6px;
  font-size: 16px;
}
.project-section {
  margin-top: 40px;
  max-width: 800px;
}

.project-section h2 {
  margin-bottom: 10px;
}

.project-section p {
  color: #555;
  line-height: 1.6;
}

.project-section ol {
  padding-left: 20px;
  line-height: 1.8;
}
.circuit-image {
  display: block;
  max-width: 100%;
  width: 600px;
  margin: 25px auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}


.project-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.project-section h2 {
    color: #00979D;
    margin-bottom: 15px;
}

.code-container {
    position: relative;
    margin: 15px 0;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #00979D;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.copy-btn:hover {
    background-color: #007a81;
    transform: scale(1.05);
}

.copy-btn.copied {
    background-color: #4caf50;
}

.copy-btn.copied::after {
    content: " ✓";
}

.code-block {
    background: #0f172a;           /* dark code background */
    color: #e5e7eb;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.code-block code {
    font-family: "Fira Code", monospace;
    white-space: pre;
}

.project-section h3 {
  margin-top: 20px;
  margin-bottom: 6px;
  color: #333;
}

.project-section p {
  color: #555;
  line-height: 1.7;
  font-size: 16px;
}

.project-section code {
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 15px;
}
.mistakes-list {
  padding-left: 20px;
  color: #555;
  line-height: 1.7;
}

.mistakes-list li {
  margin-bottom: 10px;
}

.mistakes-list code {
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}
.project-section ul {
  list-style: disc;
  padding-left: 20px;
  line-height: 1.7;
  color: #555;
}

.project-section li {
  margin-bottom: 8px;
}
.button-exp{
    background-color: #00979D;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.button-exp:hover {
    box-shadow: 0 0 10px #00979D;
}

.coming-soon {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #e0f7f7;
    border-radius: 10px;
}
/* Slightly increase gap on larger screens */
@media (min-width: 1200px) {
  .projects-grid { gap: 28px; }
}

@media (max-width: 640px) {
  .projects-page { padding: 18px 12px; }
  .project-card .ard-imgg { height: 140px; }
}
@media (max-width: 980px) {
  
  .body, .right-section { display: block; width: 100%; max-width: 100%; padding: 0 16px; }
  .container { padding: 12px 16px; }
  .para { text-align: center; }
  .left-section .image { margin: 6px auto 16px; max-width: 320px; }

 
  .book-now, .whats, .face, .you, .see {
    width: 200px;
    max-width: 320px;
    margin: 10px auto;
    padding: 10px 14px;
    font-size: 15px;
    justify-content: center;
    display: inline-flex;
  }
  #project-para2{
    margin-top: 510px;
  }

  iframe.location { max-width: 100%; height: 300px; }
  .cat { max-width: 46%; margin: 8px 2%; }

  
  body > .container { order: 1; }
  body > hr { order: 2; }
  body > .right-section { order: 3; }
  body > .body { order: 4; }

 
  body { display: block; }

  .gallery-body {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 12px;
  }

  .gallery-img2 {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .gallery-img1 {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  #img11 {
    max-width: 100%;
    width: 100%;
    float: none;
    margin: 0;
    height: auto;
    object-fit: contain;
  }
  #img22 {
    max-width: 100%;
    width: 100%;
    float: none;
    margin: 0;
    height: auto;
    object-fit: contain;
  }
  #img12 {
    max-width: 100%;
    width: 100%;
    margin: 0;
    height: auto;
    object-fit: contain;
  }

  .para{font-size: 15px;}
  .cat{
    width: 250px;
  }
  .see{
    width: 100%;
  }
  #para11{
    font-size: 30px;
  }

}

@media (max-width: 480px) {
  .container { padding: 10px 12px; }
  .local { font-size: 15px; text-align: left; padding-left: 6px; }
  .para { font-size: 28px; }
  .para3 { font-size: 20px; margin-left: 0; }
  .para4 { font-size: 15px; margin-left: 0; }
  .image { max-width: 260px; }
  .left-section .see { height: auto; }

  
  .book-now, .whats, .face, .you, .see {
    width: 100%;
    max-width: none;
    margin: 8px 0;
    padding: 10px 12px;
    font-size: 14px;
  }

  .cat {width: 200px; margin-left: 8px 0; display: block; float: left; }
  iframe.location { height: 220px; }

  .gallery-body {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 8px;
  }

  .gallery-img2 {
    max-width: 100%;
    width: 100%;
    max-height: 120px;
    object-fit: cover;
  }
  .gallery-img1 {
    max-width: 100%;
    width: 100%;
    max-height: 120px;
    object-fit: cover;
  }

  #img11 {
    max-width: 100%;
    width: 100%;
    float: none;
    margin: 0;
    max-height: 120px;
    object-fit: cover;
  }
  #img22 {
    max-width: 100%;
    width: 100%;
    float: none;
    margin: 0;
    max-height: 120px;
    object-fit: cover;
  }
  #img12 {
    max-width: 100%;
    width: 100%;
    margin: 0;
    max-height: 120px;
    object-fit: cover;
  }

  .left-section, .right-section, .left, .right, .gallery-left, .gallery-right { float: none !important; }
  #para11{
    font-size: 26px;
  }
  .youframe{
    width: 45%;
    margin-top: 5px;
    border-radius: 7px;
  }
  .projects-para{
    font-size: 18px;
  }
  #projects-para2{
    font-size: 0px;
  }
}

@media(max-width:330px){
  #img11 {
    max-width: 100%;
    width: 100%;
    float: none;
    margin: 0;
    max-height: 100px;
    object-fit: cover;
  }
  #img22 {
    max-width: 100%;
    width: 100%;
    float: none;
    margin: 0;
    max-height: 100px;
    object-fit: cover;
  }
  #img12 {
    max-width: 100%;
    width: 100%;
    margin: 0;
    max-height: 100px;
    object-fit: cover;
  }

  .gallery-body {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px 6px;
  }

  .youframe{
    width: 80%;
    margin-top: 5px;
    border-radius: 7px;
  }
  .project-para2{
    margin-top: 790px;
  }
    /* Make header nav buttons slightly smaller and closer together on phones only */
  .container .left td { padding: 0 4px; }
  .container .left button {
    padding: 1px 5px;
    font-size: 13px;
    line-height: 1;
  }
}

/* Prevent horizontal overflow on small screens which can trigger mobile auto-zoom */
@media (max-width: 480px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
    /* Make header nav buttons slightly smaller and closer together on phones only */
  .container .left td { padding: 0 4px; }
  .container .left button {
    padding: 5px 8px;
    font-size: 13px;
    line-height: 1;
  }

}

/* Footer Styles */
footer {
  background: #6c757d;
  color: #fff;
  padding: 5px 20px 5px;
  margin-top: 60px;
  text-align: center;
}

footer .footer-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

footer .footer-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

footer .footer-section p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

footer .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-section ul li {
  margin-bottom: 8px;
}

footer .footer-section ul li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-section ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 05px;
}

footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
}

footer .footer-social a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  padding-bottom: 0%;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

footer .footer-bottom p {
  margin: 4px 0;
}

@media (max-width: 768px) {
  footer {
    padding: 20px 15px 15px;
    margin-top: 40px;
  }

  footer .footer-container {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }

  footer .footer-section h3 {
    font-size: 14px;
  }

  footer .footer-section p {
    font-size: 12px;
  }
}

/* About page: force single-column centered layout (override site grid) */
  .about-body {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 820px;
    margin: 40px auto;
    text-align: center;
    padding: 24px 20px;
  }
  .about-body .about-para, .about-body .about-para2, .about-body #about-para4 {
    justify-self: center;
    width: 100%;
    max-width: 720px;
    margin: 8px auto;
  }


/* Background Animation Styles */
        body {
            position: relative;
            overflow-x: hidden;
            min-height: 100vh;
            margin: 0;
            background-color: #fff !important; 
        }

        /* Transparency Reset for containers */
        html, body, .container, .body, .left-section, .right-section, .left, .right {
            background-color: transparent !important;
        }

        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1; 
            pointer-events: none;
            overflow: hidden;
        }

        .arduino-board {
            position: absolute;
            width: 180px; 
            height: auto;
            opacity: 1;
            filter: drop-shadow(6px 8px 15px rgba(0,0,0,0.25));
        }

        /* Forward path animation */
        @keyframes boardRolling2D {
            0% { transform: translate(-300px, 10vh) rotate(0deg); }
            33% { transform: translate(30vw, 55vh) rotate(120deg); }
            66% { transform: translate(70vw, 15vh) rotate(240deg); }
            100% { transform: translate(120vw, 60vh) rotate(360deg); }
        }

        /* Reverse path animation */
        @keyframes boardRolling2DReverse {
            0% { transform: translate(120vw, 25vh) rotate(360deg); }
            50% { transform: translate(45vw, 70vh) rotate(180deg); }
            100% { transform: translate(-300px, 5vh) rotate(0deg); }
        }

        /* Board 1: Starts at the beginning */
        .board-1 {
            animation: boardRolling2D 25s infinite linear;
        }

        /* Board 2: Heavy delay to create distance */
        .board-2 {
            width: 140px;
            animation: boardRolling2DReverse 35s infinite linear;
            animation-delay: -12s; 
        }

        /* Board 3: New board moving forward with a delay */
        .board-3 {
            width: 160px;
            animation: boardRolling2D 28s infinite linear;
            animation-delay: -15s; 
        }

        /* Ensure main content stays above the background */
        .container, .body, .right-section {
            position: relative;
            z-index: 2;
        }


/* Instruction styling */
        .gallery-instruction {
            text-align: center;
            font-size: 0.9rem;
            color: #333;
            margin: 10px 0;
            font-style: italic;
        }

        /* Minimal lightbox styles to ensure overlay works even if main CSS lacks them */
        .lightbox-overlay {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,0.85);
            z-index: 9999;
            padding: 20px;
        }

        .lightbox-overlay[aria-hidden="false"] {
            display: flex;
        }

        .lightbox-content {
            max-width: 100%;
            max-height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-content img {
            max-width: 90vw;
            max-height: 80vh;
            object-fit: contain;
            box-shadow: 0 8px 30px rgba(0,0,0,0.6);
            border-radius: 6px;
        }

        .lightbox-close {
            position: absolute;
            top: 18px;
            right: 18px;
            background: transparent;
            color: #fff;
            border: none;
            font-size: 28px;
            cursor: pointer;
            line-height: 1;
        }

        .gallery-body img { cursor: pointer; }        