html {
  scroll-behavior: smooth;
}

/* Make navbar fixed at the top */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: #fff;
  z-index: 1000;
  font-family: "Quicksand", sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header {
  font-size: 24px;
  font-weight: bold;
}

.nav {
  display: flex;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav ul li a,
.nav ul li button {
  color: rgb(10, 10, 10);
  font-size: 16px;
  background: none;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: "Quicksand", sans-serif;
}

/* Hamburger */
.hamburger {
  display: none; /* default hidden */
  font-size: 28px;
  cursor: pointer;
  margin-left: auto; /* pushes it to far right */
  color: rgb(10, 10, 10);
  background: none;
  border: none;
}

/* Mobile */
/* @media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1100;
    color: rgb(10, 10, 10);
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 40px;
    background: #fff;
    padding: 10px 20px;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    flex-direction: column;
  }

  .nav ul {
    flex-direction: column;
    gap: 20px;
  }
} */

h2{
    font-size: 40px;
    margin-top: 0px;
    padding-bottom:70px;
}

.card {
    /* color used to softly clip top and bottom of the .words container */
    --bg-color: none;
    background-color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 1.25rem;
  }
  .loader {
    font-family: "Quicksand", sans-serif;
    font-size: 40px;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    height: 60px;
    margin-top: -20px;
    margin-left: -35px;
    padding-bottom: 2em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-radius: 8px;
  }
  
  .words {
    overflow: hidden;
    position: relative;
  }

  .words::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      var(--bg-color) 10%,
      transparent 30%,
      transparent 70%,
      var(--bg-color) 90%
    );
    z-index: 20;
  }
  
  .word {
    display: block;
    padding-left: 6px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: spin_4991 8s infinite;
    font-size: 40px;
  }
  
  @keyframes spin_4991 {
    10% {
      -webkit-transform: translateY(-102%);
      transform: translateY(-102%);
    }
  
    25% {
      -webkit-transform: translateY(-100%);
      transform: translateY(-100%);
    }
  
    35% {
      -webkit-transform: translateY(-202%);
      transform: translateY(-202%);
    }
  
    50% {
      -webkit-transform: translateY(-200%);
      transform: translateY(-200%);
    }
  
    60% {
      -webkit-transform: translateY(-302%);
      transform: translateY(-302%);
    }
  
    75% {
      -webkit-transform: translateY(-300%);
      transform: translateY(-300%);
    }
  
    85% {
      -webkit-transform: translateY(-402%);
      transform: translateY(-402%);
    }
  
    100% {
      -webkit-transform: translateY(-400%);
      transform: translateY(-400%);
    }
  }
  

.intro{
    font-size:18px;
}

.intro, h2,.bio,.loader,.card {
  margin-bottom: 1em;
}

.bio{
    width: 70%;
    min-width: 300px;
    margin-bottom: 2%;
    padding-top: 2em;
    color: grey;
}

.aboutimg{
  padding: 40px;
}

.about {
  max-width: 1300px;       /* or whatever width you prefer */
  margin: 0 auto;         /* centers it horizontally */
  display: flex;          /* keep your flex layout */
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 80vh;
  overflow: visible;
  position: relative;
  z-index: 1;
  margin-top: -8em;
}

.about-me{
  padding-left: 3%;
}

.p1,.p2,.p3{
    display: flex;
    flex-direction: row;
    padding: 40px 0px;
}

@media (max-width: 1400px) {
  h2 {
    font-size: 35px; /* smaller mobile size */
  }
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    margin-top: 2em;
    padding: 0 1em;
  }

  .about-me {
    padding-left: 0;
  }

 .bio {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1em;
    text-align: center;  
 }

  .intro {
    font-size: 16px;
  }

  .loader {
    font-size: 24px;
    margin-left: 0;
    justify-content: center;
  }

  .card {
    padding: 1rem;
  }

  h2 {
    font-size: 28px;
    padding-bottom: 40px;
  }

  .interactive {
    margin-top: -3em;
  }

   .flip-card {
    margin-top: -1em; /* move card a bit higher */
    transform: scale(0.8); /* keep your scaling */
  }

  .aboutimg {
    padding: 20px;
  }

   h2,
  p {
    box-sizing: border-box;
  }
}

/*About section*/

.interactive{
padding: 70px;
display: flex;
  justify-content: center;
  align-items: center;
    max-width: 320px;
}

.flip-card {
  background-color: transparent;
  width: 293px;
  height: 380px;
  perspective: 1000px;
    padding-left: 50px;
  font-family: "Quicksand", sans-serif;
}


.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1rem;
}

.flip-card-back {
  transform: rotateY(180deg);
}



.tiniersubheading{
  font-size: 12px;
  font-weight: 300;
  margin-bottom: -25px;
}

.Subheading{
  font-size: 30px;
  font-weight: 600;
  font-family: "Quicksand", sans-serif;
}

.headingText{
  font-size: 20px;
  font-weight: 600;
  font-family: "Quicksand", sans-serif;
}

.Text{
  width: 70%;
  font-size: 14px;
}

.title {
  font-size: 1.5em;
  font-weight: 900;
  text-align: center;
  margin: 0;
}
.aboutParent {
   background-color:#eceffa5d;  /* full blue background */
  width: 100vw;               /* full viewport width */
  margin-left: calc(-50vw + 50%); /* stretch full width even if parent is centered */
  padding: 2em 1em;           /* vertical padding + small horizontal padding */
  color:#182653;
}

.about2 {
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  display: flex;
  flex-direction: row;
  width: 100%;
}

.aboutimg {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 7em;
}

.aboutimg #meimg {
  width: 220px;
  border-radius: 12px;
  margin-top: 20px;
}

.about-me2 {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: -2em;
}

@media (max-width: 768px) {
   .aboutParent {
    padding-left: 1.5em;
    padding-right: 1.5em;
  }
  
  .about2 {
    flex-direction: column;  
    align-items: center;    
    gap: 20px;               
    width: 100%;            
    max-width: 100%;         
    padding: 0 1.5em;
  }

  .aboutParent, .about2 {
  box-sizing: border-box;
}

  .aboutimg {
    padding: 0;             
    align-items: center;    
    text-align: center;     
    width: 100%;            
  }

  .about-me2 {
    width: 100%;            
    margin-left: 0;        
    padding: 0 1em;        
    text-align: center;    
  }

  .aboutimg,
  .about-me2 {
    width: 100%;            
    align-items: center;    
    text-align: center;    
  }
 
  .aboutimg #meimg {
    width: 180px;            
    margin-top: 10px;   
  }

  .Text {
    min-width: auto;
    width: 100%;
  }
}


/*About section ends*/
.cssbuttons-io2 {
 font-family: "Quicksand", sans-serif;
  font-size: 16px;
  border-radius: 30px;
  margin-top: -8px;
  cursor: pointer;
  border: none;
  color: rgb(10, 10, 10);
  padding: 8px 0px;
  transition: transform 0.2s ease, background 0.3s ease;
}

.cssbuttons-io {
  position: relative;
 font-family: "Quicksand", sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  border-radius: 30px;
  cursor: pointer;
  color: #182653;
  background: #ECEFFA;
  overflow: hidden;
  transition: transform 0.3s ease;
  padding: 10px 20px;
  margin-top: 10px;
  margin-right:10px;
  font-weight: 500; 
  border: none;
}

.cssbuttons-io span {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
}

.cssbuttons-io:hover{
    cursor: pointer;
    background-color: #ffffff;
    border: solid 1px #182653;
 transition: background-color 0.3s ease-in-out;
}

.image {
    flex-shrink: 0; /* Prevents shrinking */
    width: 50%; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.hedge{
    width: 100%; /* Make it responsive within its container */
    height: auto; /* Maintain aspect ratio */
    max-height: 300px; /* Prevent it from becoming too large */
    object-fit: cover; /* Ensures it fills the container */
    object-position: center; /* Keeps focus centered */
    display: block;
    border-radius: 20px;
}
/* Container holding each project block */
.p1, .p2, .p3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
  background-color: #fcfcfc; /* light grey background */
  border: 1px solid #f1f1f1; /* light grey border */
  border-radius: 12px;
  margin-bottom: 40px;
}

h3{
  font-size: 30px;
}

/* Image/video styling */
.image {
  flex: 1;
  min-width: 280px;
}

.image iframe {
  width: 100%;
  height: 315px;
  border-radius: 10px;
}

/* Project text section */

h4{
  color: grey;
  font-weight: 400;
}

.project {
  flex: 1;
  min-width: 280px;
}

/* Optional: add background or card-like appearance */
.projects {
  padding: 20px 50px;
  max-width: 1200px;
  margin: auto;
}

/* Divider line */
.projectHr {
  background-color: white;
  opacity: 5%;
  margin: 40px 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .p1, .p2, .p3 {
    flex-direction: column;
    gap: 20px;
  }

  .image iframe {
    height: 200px;
    margin-top: 1em; 
  }
}

#bold{
  font-weight: 600;
}

body {
    margin: 100px 0 0 0;  /* keep top margin if you want */
    background-color: #ffffff;
    color: rgb(10, 10, 10);
    font-family: "Quicksand", sans-serif;

}
/* Left-aligned title */
.header h1 {
    margin: 0;
    font-size: 1.5rem;
    margin-top: -6px;
}

.skills i{
    color: #e0e0e0;  /* blue color for all icons */
    font-size:40px;
    padding: 0px 30px;
    opacity: 100%;
}

.skills{
    margin-top: -5em;
    width:100%;
    text-align: center;
}

@keyframes slide {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-100%);
    }
  }
  
  .skills {
    overflow: hidden;
    padding: 60px 0;
    white-space: nowrap;
    position: relative;
  }
  
.skills:before,
.skills:after {
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  content: "";
  z-index: 2;
  pointer-events: none; /* so it doesn’t block mouse */
  background: linear-gradient(to right, rgba(255, 255, 255, 1), transparent);
}

.skills:after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), transparent);
}

.skills:before {
  left: 0;
  /* already set above */
}
  
  .skills:hover .skills-slide {
    animation-play-state: paused;
  }
  
  .skills-slide {
    display: inline-block;
    animation: 35s slide infinite linear;
  }
  
  .skills-slide img {
    height: 50px;
    margin: 0 40px;
  }


@media (max-width: 1100px) {
    .word{
      font-size: 40px;
    } 

    .words{
      height: 80px; /* Match font-size for proper clipping */
    }

    .p1, .p2, .p3 {
        flex-direction: column; /* Stack items vertically */
    }

    .image {
        width: 100%; /* Make the image full-width */
    }

    .hedge {
        width: 100%; /* Ensure it takes full width */
        max-height: 300px; /* Adjust height for mobile */
    }

    .project {
        width: 90%; /* Adjust width for better readability */
        padding: 0px 0px;
    }

    .cssbuttons-io{
      padding: 8px 10px;
      font-size: 14px;
  }
}


@media (max-width: 950px) {
  .word{
    font-size: 40px;
  } 

  h3{
    font-size: 25px;
  }

  .bio{
    margin-top: -3em;
  }

  .words{
    height: 50px; /* Match font-size for proper clipping */
  }
}


@media (max-width: 700px) {
  .word{
    font-size: 25px;
  }
  
  h3{
    font-size: 25px;
  }

  .bio{
    margin-top: -5em;
  }

  p, .project-description{
    font-size: 14px;
  }

  .words{
    height: 30px; /* Match font-size for proper clipping */
  }
}

footer{
    text-align:center;
    padding-top: 5em;
    font-size: 13px;
}

#contact{
  font-size: 30px;
  font-weight: bold;
  font-family: "Quicksand", sans-serif;
}

#contactMsg{
  font-size: 14px;
  padding-bottom: 20px;
}


input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: rgb(10, 10, 10);
  font-size: 0.875em;
}

input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder {
  color: rgb(10, 10, 10);
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: rgb(10, 10, 10);
  font-size: 0.875em;
}

input:focus::-moz-placeholder, textarea:focus::-moz-placeholder {
  color: rgb(10, 10, 10);
}

input::placeholder, textarea::placeholder {
  color: rgb(10, 10, 10);
  font-size: 0.875em;
}

input:focus::placeholder, textarea:focus::placeholder {
  color: rgb(10, 10, 10);
}

input::-ms-placeholder, textarea::-ms-placeholder {
  color: rgb(10, 10, 10);
  font-size: 0.875em;
}

input:focus::-ms-placeholder, textarea:focus::-ms-placeholder {
  color: rgb(10, 10, 10);
}

/* on hover placeholder */

input:hover::-webkit-input-placeholder, textarea:hover::-webkit-input-placeholder {
  color: rgb(10, 10, 10);
  font-size: 0.875em;
}

input:hover:focus::-webkit-input-placeholder, textarea:hover:focus::-webkit-input-placeholder {
  color: rgb(10, 10, 10);
}

input:hover::-moz-placeholder, textarea:hover::-moz-placeholder {
  color: rgb(10, 10, 10);
  font-size: 0.875em;
}

input:hover:focus::-moz-placeholder, textarea:hover:focus::-moz-placeholder {
  color: rgb(10, 10, 10);
}

input:hover::placeholder, textarea:hover::placeholder {
  color: rgb(10, 10, 10);
  font-size: 0.875em;
}

input:hover:focus::placeholder, textarea:hover:focus::placeholder {
  color: rgb(10, 10, 10);
}

input:hover::placeholder, textarea:hover::placeholder {
  color: rgb(10, 10, 10);
  font-size: 0.875em;
}

input:hover:focus::-ms-placeholder, textarea:hover::focus:-ms-placeholder {
  color:rgb(10, 10, 10);
}

#form {
  position: relative;
  width: 500px;
}

input {
  font-family: "Quicksand", sans-serif;
  font-size: 0.875em;
  width: 470px;
  height: 50px;
  padding: 0px 15px 0px 15px;
  margin-bottom: 5px;
  border-radius: 20px;
  
  background: transparent;
  outline: none;
  color:rgb(10, 10, 10);
  
  border: solid 1px rgb(10, 10, 10);
  
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
}

input:hover {
  background: #ffffff;
  color: rgb(10, 10, 10);
}

textarea {
  width: 470px;
  max-width: 470px;
  height: 110px;
  max-height: 110px;
  padding: 15px;
  border-radius: 20px;
  
  background: transparent;
  outline: none;
  
  color: rgb(10, 10, 10);
  font-family: "Quicksand", sans-serif;
  font-size: 0.875em;
  
  border: solid 1px rgb(10, 10, 10);
  
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
}

textarea:hover {
  background: #ffffff;
  color: rgb(10, 10, 10);
}

#submit {
  width: 470px;
  padding: 0;
  margin-top: 25px;

  font-family: "Quicksand", sans-serif;
  font-size: 0.875em;
  font-weight: 500;
  color: rgb(10, 10, 10);
  background: #ffffff;
  outline: none;
  cursor: pointer;
  border: solid 1px transparent;
  transition: transform 0.2s ease, background 0.3s ease;
}

#submit:hover {
  background: #ffffff; /* slightly darker on hover */
  transform: scale(1.01);
}

#submit:active {
  transform: scale(0.98);
}

.contact-container {
 text-align: center;
  margin: 0 auto;
  max-width: 500px;
}

.contact-left {
  text-align: center;
  margin-top: -15px;
}

.contact-icons {
  margin-top: 20px;
}

a i.fa-github {
  color: #171e35; /* GitHub dark gray */
}

a i.fa-linkedin {
  color: #171e35; /* LinkedIn blue */
}

a i.fa-envelope {
  color: #171e35; /* Gmail red */
}

/* Optional: add hover effects */
a:hover i {
  color: #000000; /* highlight color on hover */
  cursor: pointer;
  transition: color 0.3s ease;
}

footer i{
    font-size: 30px;
    padding: 0px 15px;
    color: rgb(10, 10, 10);
    transition: background-color 0.3s ease-in-out;
}

footer i:hover{
    cursor: pointer;
    color: rgb(10, 10, 10);
}

#logomark{
  margin-top: 10em;
}

#logomark p{
  color: rgb(10, 10, 10);
  font-weight: bold;
  font-size: 16px;
}

@media (max-width: 700px) {
  #form {
    width: 90%;  /* Reduce the form width to 90% on mobile */
    margin: 50px auto;  /* Keep form centered */
  }

  input, textarea, #submit {
    width: 100%;  /* Full width for inputs and submit button */
    max-width: 100%;  /* Allow full width without restriction */
  }
}