 @import url('https://fonts.googleapis.com/css2?family=Libertinus+Sans:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playwrite+AU+QLD:wght@100..400&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
 @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

 * {

     margin: 0;
     padding: 0;
     box-sizing: border-box;

 }

 html {
     scroll-behavior: smooth;
     scroll-padding-top: 70px;
 }

 body {
     background-color: #040404;
 }

 .nav-container {
     display: flex;
     justify-content: space-evenly;
 }


 
 nav {
     display: flex;
     justify-content: space-between;
     height: 70px;
     width: 100%;
     align-items: center;
     position: fixed;
     background-color: #0e0e0ebf;
     z-index: 999;

 }

 .nav-container li {
     list-style: none;
     font-size: 1.50rem;
     font-weight: 500;

 }

 .nav-container li a:hover {
     color: #ffffff;
     transition: color 0.3s ease;
 }

 .myname a:hover {
     color: #ffffff;
     transition: color 0.3s ease;
 }



 a {
     text-decoration: none;
     color: #119DA4;
 }


 .myname {
     width: 20%;
     margin-left: 40px;
     font-family: Playfair Display, sans-serif;
     font-size: 2rem;

 }

 .right-nav {
     width: 60%;
 }

 .hero {
     display: flex;
     justify-content: space-evenly;
     height: 100vh;
 }

 .lefthero {
     width: 50%;
     padding-top: 70px;
     padding-left: 16%;

 }

 .lefthero,
 .righthero {
     display: flex;
     align-items: center;
 }

 .righthero {
     width: 60%;
     display: flex;
     justify-content: center;
 }

 .imgcontainer {
     border: 3px solid #119DA4;
     border-radius: 50%;
     background: url("shivesh.JPG");
     height: 450px;
     width: 450px;
     background-size: cover;
     background-repeat: no-repeat;

 }

 h6 {
     color: #D7D9CE;
     font-size: 30px;
     font-weight: lighter;
 }

 h3 {
     color: #119DA4;
     font-size: 60px;
 }

 h3 p {
     font-size: 60px;
     color: #00A9A5;
 }

 p {
     color: #D7D9CE;
     font-size: 40px;
     font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
 }

 span {
     font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
 }



 .animated-text {
  font-size: 35px;
  font-weight: 600;
  font-family: 'Ubuntu', sans-serif;
  color: #119DA4;
  height: 42px;              
  position: relative;
  overflow: hidden;         
  text-align: left;

}

.animated-text span {
  position: absolute;
  width: 100%;
  opacity: 0;
  animation: fadeText 6s infinite;
}

.animated-text span:nth-child(1) {
  animation-delay: 0s;
}
.animated-text span:nth-child(2) {
  animation-delay: 2s;
}
.animated-text span:nth-child(3) {
  animation-delay: 4s;
}


@keyframes fadeText {
  0% { opacity: 0; transform: translateY(100%); }
  10% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(0); }
  40% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; }
}


@media (max-width: 768px) {
  .animated-text {
    font-size: 20px;
    height: 28px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}


 .info {
     margin-top: 30px;
 }

 .btn {
     display: inline-block;
     padding: 10px 20px;
     margin: 5px 10px 0 0;
     background-color: #119DA4;
     color: black;
     font-size: 1.1rem;
     font-weight: 600;
     text-decoration: none;
     border-radius: 6px;
     transition: background-color 0.3s ease;
     margin-right: 20px;
 }

 .btn:hover {
     background-color: #13505B;
 }

 .about {
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     align-items: center;
     gap: 40px;
     padding: 0 10%;
     height: auto;
 }

 .left {
     flex: 1;
     padding: 0;
     max-width: 600px;
 }

 .right {
     flex: 1;
     display: flex;
     justify-content: center;
     
 }

 .imgcontainer2 {
     border: 3px solid #D7D9CE;
     border-radius: 10%;
     background: url("computer.jpg");
     height: 430px;
     width: 600px;
     background-size: cover;
     background-repeat: no-repeat;
 }


 .intro {
     font-family: 'Poppins', 'Montserrat', sans-serif;
     font-size: 21px;
     font-weight: 600;
     line-height: 1.7;
     color: #f5f5f5;
 }

 .about .aboutme {
     font-size: 25px;
     color: #0C7489;
     text-align: center;
     margin: 20px 0 10px;
     text-decoration: solid;
     font-family: 'Playfair Display', serif;

 }

 .about .aboutme::after {
     content: '';
     display: block;
     width: 80px;
     height: 3px;
     background-color: #119DA4;
     margin: 10px auto 0;
     border-radius: 2px;
 }

 .about-container {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 60px;
     margin-bottom: 20px;
 }

 .education {
     width: 80%;
     margin: 100px auto;
     padding: 20px;
     margin-top: 20px;
 }

 .section-title {
     font-size: 40px;
     color: #0C7489;
     text-align: center;
     margin-bottom: 50px;
     font-family: 'Playfair Display', serif;
     position: relative;
 }

 .section-title::after {
     content: '';
     display: block;
     width: 80px;
     height: 3px;
     background-color: #119DA4;
     margin: 10px auto 0;
     border-radius: 2px;
 }

 .education-contents {
     display: flex;
     flex-direction: column;
     gap: 30px;
 }

 .edu-box {
     background: #0E0E0E;
     border-left: 4px solid #119DA4;
     padding: 20px 25px;
     border-radius: 10px;
     transition: transform 0.3s ease background 0.3s ease;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
 }

 .edu-box:hover {
     transform: translateY(-5px);
     background: #141414;
 }

 .edu-box h4 {
     font-size: 20px;
     font-weight: 500;
     color: #119DA4;
     margin-bottom: 10px;
     font-family: 'Ubuntu', sans-serif;
 }

 .edu-box h3 {
     font-size: 26px;
     color: #D7D9CE;
     margin-bottom: 12px;
     font-family: 'Playfair Display', serif;
 }

 .edu-box p {
     font-size: 18px;
     line-height: 1.6;
     color: #CCCCCC;
     font-family: 'Ubuntu', sans-serif;
 }

 .edu-institute {
     font-weight: 700;
     color: #0C7489;
 }

 .section-heading {
     font-size: 40px;
     color: #0C7489;
     text-align: center;
     margin-bottom: 50px;
     font-family: 'Playfair Display', serif;
     position: relative;
     margin-top: 50px;
 }

 .section-heading::after {
     content: "";
     display: block;
     width: 80px;
     height: 3px;
     background: #119DA4;
     margin: 10px auto 0;
     border-radius: 2px;
 }

 .projects {
     width: 80%;
     margin: 80px auto;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
     gap: 40px;
 }

 .project-card {
     background: #1a1a1a;
     border-radius: 12px;
     overflow: hidden;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     display: flex;
     flex-direction: column;
     align-items: center;
     padding-bottom: 20px;
 }

 .project-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
 }

 .project-img {
     margin-top: 30px;
     width: 100%;
     height: 220px;
     border-radius: 8%;
     background-size: cover;
     background-repeat: no-repeat;
     object-fit: cover;
     cursor: pointer;
     transition: transform 0.3s ease;
 }

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

 .project-content {
     padding: 20px;
     text-align: center;
     
 }

 .project-content h3 {
     font-size: 22px;
     margin-bottom: 12px;
     color: #ffffff;
     font-family: 'Ubuntu', sans-serif;
 }

 .project-content p {
     color: #D7D9CE;
     line-height: 1.6;
     font-size: 16px;
     margin-bottom: 15px;
     font-family: 'Poppins', sans-serif;
 }

 .project-link {
     display: inline-block;
     padding: 8px 18px;
     background: #119DA4;
     color: #000;
     border-radius: 6px;
     font-weight: 600;
     text-decoration: none;
     transition: background 0.3s ease;
 }

 .project-link:hover {
     background: #0C7489;
     color: #fff;
 }

 .highlight {
     font-weight: 600;
     color: #119DA4;
 }

 .coming-soon {
     border: 2px dashed #119DA4;
     padding: 40px 20px;
     text-align: center;
 }

 .coming-soon h3 {
     color: #119DA4;
     font-size: 70px;
     margin-top: 40px;
 }

 .coming-soon p {
     font-size: 20px;

 }

 .projects-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
     gap: 40px;
     margin-top: 40px;
 }

 .projects {
     width: 80%;
     margin: 80px auto 0px auto;
     display: block;
     height: 100vh;
 }

 .projects .section-heading {
     text-align: center;
     font-weight: bold;
     margin-bottom: 40px;
 }

 .projects-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
     gap: 30px;
     margin-top: 40px;
 }

 .skills {
     display: flex;
     flex-direction: column;
     /* justify-content: center; */
     text-align: center;
     align-items: center;
     /* background-color: #1a1a1a; */
     height: 90vh;
 }

 .skills-heading {
     font-size: 40px;
     color: #0C7489;
     text-align: center;
     margin-bottom: 30px;
     font-family: 'Playfair Display', serif;
     position: relative;
     margin-top: 20px;

 }

 .skills-heading::after {
     content: "";
     display: block;
     width: 80px;
     height: 3px;
     background: #119DA4;
     margin: 10px auto 0;
     border-radius: 2px;
 }

 .skills-container {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 50px;
     margin-top: 40px;
 }

 .skill-card {
     background: #1a1a1a;
     border: 2px solid #0C7489;
     border-radius: 12px;
     padding: 20px;
     width: 180px;
     text-align: center;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .skill-card img {
     width: 60px;
     height: 60px;
     margin-bottom: 10px;
 }

 .skill-card p {
     font-size: 30px;
     font-weight: bold;
     color: #fff;
     margin: 0;
 }

 .skill-card:hover {
     transform: translateY(-5px);
     box-shadow: 0px 6px 15px rgb(106, 192, 246);
     cursor: grab;
 }

 .extra {
     height: 2000px;
 }

 .skills-container {
     width: 60vw;
 }
 .contact{
    /* height: 100vh; */
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 90vh;
 }

footer {
    text-align: center;
    background: #0a0a0a;      
    font-size: 14px;
    color: #aaa;
    margin-top: 200px;
    
}
.contact-card{
    height: 40vh;
    width: 60vw;
    border: 2px solid #0C7489;
    border-radius: 12px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 10px 20px;
}
.c-card{
    width: 25vw;
    background-color: #1a1a1a;
    height: 80%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
 }
 
 i {
  font-size: 30px;
  color: #00b3ff;
  margin: 10px;
}
.links a{
    display: flex;
    align-items: center;
    justify-content: center;
}
.links p{
    font-size: 24px;
    color: #0C7489;
}
.links p:hover{
    color: #CCCCCC;
}
.text a{
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* flex-wrap: wrap;    */
     white-space: nowrap;
    gap: 8px;  
}
.text a:hover{
    color: #CCCCCC;
}
.right-contact{
    display: flex;
    align-items: flex-start;
    /* margin: 12px 5px; */
    padding: 12px 5px;
    flex-wrap: wrap;        
  word-break: break-word;
}
.c-card:hover {
     transform: translateY(-5px);
     box-shadow: 0px 6px 15px rgb(106, 192, 246);
     cursor: grab;
 }
 footer {
  width: 100%;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0e0e0e;
  
}

footer p {
  font-size: 14px;
  color: #CCCCCC;
  text-align: center;
  margin: 0;
}



/* Hide the checkbox itself */
.nav-toggle {
    display: none; 
}

/* Hamburger hidden on desktop */
.hamburger {
    display: none;
}

/* Make hero content never sit under the navbar on small screens */
.hero {
    position: relative;
}

/* Improve link tap targets on touch */
.nav-container a {
    padding: 6px 8px;
}

/* ====== Responsive hamburger nav ====== */
@media (max-width: 900px) {
  /* Show hamburger */
  .hamburger {
    display: block;
    position: fixed;
    top: 18px;
    right: 16px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    color: #119DA4;
  }

  /* Stack nav brand + toggle */
  nav {
    flex-direction: row;
    align-items: center;
    height: 70px;
    padding: 0 8px;
  }

  .myname {
    width: auto;
    margin-left: 12px;
  }

  /* Turn right-nav into a slide-down panel */
  .right-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 70px;                        /* below the fixed header */
    height: calc(100vh - 70px);
    background: rgba(14,14,14,0.98);
    transform: translateY(-110%);
    transition: transform .28s ease;
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Vertical menu list */
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 0 40px;
  }

  .nav-container li { font-size: 1.2rem; }

  /* Toggle: show panel when checked */
  .nav-toggle:checked ~ .right-nav {
    transform: translateY(0);
  }

  /* Optional: toggle icon changes to X when open (font awesome) */
  .nav-toggle:checked + .hamburger i::before {
    content: "\f00d"; /* fa-xmark */
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
  }

  /* Hero spacing on mobile so image/text breathe */
  .hero {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 24px 14px 48px;
  }
  .lefthero{
    margin-top: 70px;}
  .lefthero, .righthero {
    width: 100%;
    padding: 0;
    justify-content: center;
    text-align: center;
    
  }
  .imgcontainer {
    height: 260px;
    width: 260px;
    margin: 12px auto 18px;
  }
  /* Global type scaling for small screens (keeps your look, avoids overflow) */
  h3 { font-size: 34px; }
  h6 { font-size: 20px; }
  p  { font-size: 18px; }

  .animated-text { font-size: 20px; width: 100%; }

  /* About section stacks */
  .about-container { flex-direction: column-reverse; gap: 24px; text-align: center;}
  .imgcontainer2 {
    border: 3px solid #D7D9CE;
    border-radius: 10%;
    background: url("computer.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;  /* center the image */
    width: 90%;
    max-width: 420px;
    height: 260px;
    margin: 0 auto;              /* center container */
    display: flex;
    justify-content: center;
    align-items: center;
}
.intro{
    font-size: 13px;
    font-weight: 450;
}

  /* Projects height should be auto on small to prevent clipping */
  .projects { width: 92%; margin: 40px auto; display: block; height: auto; }
  .project-img { height: 200px; }

  .coming-soon h3 { font-size: 36px; }

  /* Skills */
  .skills { height: auto; padding: 36px 0; }
  .skills-container { width: 92vw; gap: 18px; }
  .skill-card { width: 44%; max-width: 180px; min-width: 140px; }
  .skill-card p { font-size: 20px; }

  /* Contact */
  .contact { height: auto; /*padding: 40px 0;*/ }
  .contact-card {
    width: 92vw; height: auto; padding: 18px; gap: 16px;
    flex-direction: column;
  }
  .c-card { width: 100%; height: auto; padding: 14px; }
  .links p, .text a { font-size: 18px; }

  /* Prevent anything from sitting under the fixed nav on tiny screens */
  html { scroll-padding-top: 80px; }
  .right{
    width: 80vw;
  }
}
@media (max-width: 768px) {
  .text a {
    font-size: 14px;
  }
}


/* Super small phones */
@media (max-width: 480px) {
  .myname a { font-size: 1.4rem; }
  .nav-container li { font-size: 1rem; }
  .btn { font-size: .95rem; padding: 8px 16px; }
  .project-img { height: 170px; }
}