@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');

:root {
  --nav-bg: #f0f0f0;
  --text-color: #1a1a1a;
  --theme-color: #000000;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --background: #e3edf7;
  --contact-btn-color: #0a0a0a;
  --contact-icon-color: #f0f0f0;
  --box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.25);
  --card-box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15); 
  --input-color: #0a0a0a;
  --input-bg: #f5f5f5;
  --btn-bg-color: #000000;
  --btn-color: #f1eaea;
  --input-border: 1px solid #ccc;
  --project-bg: #ffffff;
  --theme-box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  --gradient-light: linear-gradient(
  135deg,
  #f5f6f7 0%,
  #e7eaed 40%,
  #d8dce0 70%,
  #cbd1d6 100%
);
  --gradient-dark: linear-gradient(
  135deg,
  #000000 0%,
  #0a0a0a 40%,
  #121212 70%,
  #1a1a1a 100%
);

}

html, body {
  width: 100%;
  overflow-x: hidden; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  border: none;
  outline: none;
  /* font-family: "Raleway", "Montserrat", sans-serif; */
  scroll-behavior: smooth;
  font-family: "Space Grotesk", sans-serif;
}

body {
      font-family: 'Poppins', sans-serif;
      background: var(--gradient-light);
      --contact-bg: #e7eaed;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      margin: 0;
      padding: 20px;
      flex-direction: column; 
      animation: gradient 15s ease infinite;
      transition: background 0.4s ease, color 0.4s ease;
      background-size: 200% 200%;
}

@keyframes gradient {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.dark-mode {
  --contact-bg: #1d1e1f;
  background: var(--gradient-dark);
  --input-border: none;
  color: #f5f5f5;
  --text-color: #f5f5f5;
  --box-shadow: 5px 3px 5px 5px rgba(71, 68, 71, 0.35);
  --contact-icon-color: #f0f0f0;
  --card-box-shadow: 5px 3px 5px 5px rgba(71, 68, 71, 0.35);  
  --input-color: #e3e3e3;
  --input-bg: #2e2e3e;
  --btn-bg-color: #f5f5f5;
  --btn-color: #1e1e2f;
  --project-bg: #1e1e2f;;
  --theme-box-shadow: 0px 2px 25px 0px rgba(0, 188, 212, 0.3);
}

.navbar {
    position: fixed;
    top: 15px;
    width: 90%;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur( 2px );
    border-radius: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.8s;
    z-index: 1;
}

.navbar:hover {
  box-shadow: var(--theme-box-shadow)
}

.navbar .nav-items {
    display: flex;
    align-items: center;
    flex-wrap:wrap;
    padding: 28px 22px;
    gap: 3rem;
}

.navbar .logo {
    text-align: center;
    color: var(--text-color);
    margin-left: 2rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo svg {
    margin-right: .3rem;
    vertical-align: middle;
    font-size: 1.5rem;
    border-radius: 30%;
    box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.25);
}

.logo:hover {
  color: #00bcd4; 
  transform: scale(1.1);
  transition: transform .8s ease-in;
}

.navbar .nav-items a {
    cursor: pointer;
    font-weight:500;
    font-size: 13px;
    font-family: 'Poppins', sans-serif !important;
}

.navbar .nav-items a:hover {
    color: #00bcd4;    
    transition: color 0.3s;
    border-radius: 3px;
    padding-bottom: 5px;
    transition: color 0.3s ease, color 0.3s ease;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
}

.navbar a {
  text-decoration: none;
  color: var(--nav-text);
  font-weight: bold;
  transition: color 0.3s;
}

.nav-items li:hover {
  transform: translateX(3px);
  transition: all .3s ease-in;
}


#theme-toggle {
  background: none;
  border: none;
  font-size: 23px;
  cursor: pointer;
  color: var(--text-color);
  width: 5rem;
  height: 5rem;
}

#darkMode-icon:hover {
  padding: 15%;
  color: #64748b;
  transition: all .5s ease;
  border-radius: 35%;
  box-shadow: 0 0 25px rgba(0, 188, 212, 0.3);
}

.section {
  padding: 108px 20px;
  text-align: center;
  max-width: 800px;
}


    /* ABOUT SECTION STYLING STARTS HERE */

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 70px;
  padding: 3rem 0 0;
}

.about-image {
  padding-left: 40%;
}

.about-image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #00bcd4;
  box-shadow: 0 0 25px rgba(0, 188, 212, 0.5);
  transition: transform 0.4s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-content {
  flex: 1;
  word-spacing: .3rem;
  max-width: 100%;
}

.content-paragraph {
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
  line-height: 2.5rem;
}

.content-paragraph p {
  word-spacing: 10px;
  font-weight: 400;
}

.content-paragraph h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: "Raleway", "Montserrat", sans-serif;
  
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.typing {
  font-weight: 500;
  font-family: "Raleway", "Montserrat", sans-serif;
}

.name-typing {
  color: #00bcd4;
  font-family: 'Poppins', sans-serif !important
}

.typing-text {
  font-size: 32px;
  margin-bottom: 2px;
  color: #00bcd4;
  word-spacing: 2px;
  padding: 10px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

.about-icons {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 25px;
}

.about-icons a {
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
  background: #f5f5f5;
  border: 1px solid #cbd1d6;
  color: #333;
  padding: 10px 25px;
  margin: 0.23rem;
  border-radius: 2.25rem;
  font-size: 0.9rem;
}

.about-icons a:hover {
  color: #0097a7;
  transform: translateY(-3px);
  background: #101010;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #00bcd4;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

/* ABOUT SECTION STYLING ENDS HERE */



/* Project Styling Starts Here */

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

.section-title i {
    animation: icon-link-anime .5s infinite;
    margin-bottom: 3px;
    font-size: 1.5rem !important;
    font-weight: 600;
    color: #0097a7;
}

@keyframes icon-link-anime {
    100% {
        transform: rotateY(23deg);
    }

}

.projects-grid {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.project-card {
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--theme-box-shadow);
}

.project-info {
  padding: 15px;
}

.project-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-weight: 700; 
}

.project-title a i {
  color: var(--text-color);
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--description-color);
  font-weight: 600;
  font-family: "Raleway", sans-serif;
}

.tech-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap:wrap;
  margin-bottom: 5px;
  font-size: 1.4rem;
  color: #00bcd4;
}

.tech-stack i {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, transform 0.3s;
  color: #333;
  padding: 5px 15px;
  margin: 0.23rem;
  border-radius: 2.25rem;
  background: #f5f5f5;
  border: 1px solid #cbd1d6;
  font-size: 0.8rem;
  /* vertical-align: middle; */
}

.tech-stack i:hover {
  transform: translateX(8px);
}

svg {
    width: 15px;
    height: 15px;
    margin-bottom: .2rem;
  }

svg+label, i label {
  font-weight: 600 !important;
  font-family: 'Poppins', sans-serif;
  font-size: .5rem !important;
  font-style:normal;
}

svg+label {
  color: var(--contact-btn-color);
}

.project-links {
  display: flex;
  gap: 15px;
}

.icon-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--btn-bg-color);
  color: var(--project-bg);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  transition: background 0.3s ease;
  margin-top: 2rem;
}

.icon-link:hover {
  color: #07bbcf;
  transform: translate(-3px);
  border: 1px solid #858282;
  transition: transform .5s ease-in;
}

.icon-link i {
  font-size: 1rem;
}

      /* CAREER SECTION STARTS HERE*/

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 700;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 20px;
  border-left: 3px solid #00bcd4;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 40px;

}

.timeline-icon {
  position: absolute;
  left: -25px;
  top: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #00bcd4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
  font-size: 1.2rem;
}

.timeline-content {
  padding: 25px 30px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--box-shadow);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--theme-box-shadow);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.timeline-content h3 span {
  color: #00bcd4;
  font-weight: 500;
}

.timeline-content a {
  font-size: 16px;
  display: block;
}

.timeline-date {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.timeline-content .icon-link {
  width: 6.8rem;
  padding: .6rem;
  border-radius: 16px;
}

/* CAREER SECTION ENDS HERE  */


/* CONTACT SECTION STARTS */

    #contactForm {
      padding: 30px 35px !important;
      border-radius: 12px;
      min-width: 600px;
      width: 100%;
      color: var(--input-color);
      box-shadow: var(--box-shadow);
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.8s forwards;  transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    h2, h3 {
      text-align: center;
      margin-bottom: 25px;
      font-weight: 600;
      opacity: 0;
      animation: fadeInUp 0.8s forwards;
      animation-delay: 0.1s;
    }

    .form-group {
      margin-bottom: 18px;
      opacity: 0;
      transform: translateY(10px);
      animation: fadeInUp 0.6s forwards;
    }

    .form-group:nth-child(1) { animation-delay: 0.2s; }
    .form-group:nth-child(2) { animation-delay: 0.3s; }
    .form-group:nth-child(3) { animation-delay: 0.4s; }
    .form-group:nth-child(4) { animation-delay: 0.5s; }

    label {
      display: block;
      margin-bottom: 6px;
      font-weight: 500;
      color: #333;
    }

    input[type="text"],
    input[type="email"],
    textarea {
      width: 100%;
      padding: 12px 14px !important;
      border-radius: 8px;
      border: var(--input-border);
      font-size: 16px !important;
      font-family: 'Poppins', sans-serif;
      box-sizing: border-box;
      transition: all 0.3s;
      background: #fff;
      box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
    }

    input:focus,
    textarea:focus {
      outline: none;
      border-color: #0097a7;
      box-shadow: 0 0 0 3px rgba(0,120,255,0.15);
    }

    textarea {
      min-height: 140px;
      resize: vertical;
    }

    .submit-btn {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 8px;
      background: var(--btn-bg-color);
      color: var(--input-bg);
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      opacity: 0;
      transform: translateY(10px);
      animation: fadeInUp 0.6s forwards;
      animation-delay: 0.6s;
    }

.submit-btn:hover {
    transform: translateY(-2px);
    }

.section-title i {
    animation: icon-link-anime .5s infinite;
    margin-bottom: 3px;
    font-size: 1.5rem !important;
    color: #0097a7;
}

@keyframes icon-link-anime {
    100% {
        transform: rotateY(23deg);
    }

}

.section-title span {
  color: #00bcd4;
}

.contact-section h3 {
  margin-bottom: 2rem;
  color: #0097a7;
  font-family: 'Kaushan Script', cursive;
}

span {
  font-weight: 900;
}

.required {
  color: red;
  margin-left: 4px;
}

label {
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: var(--input-color);
}

#contactForm:hover {
  box-shadow: var(--theme-box-shadow);
}

#contactForm input,
#contactForm textarea {
  padding: 1rem;
  border-radius: 1rem;
  resize: vertical;
  padding: 1.6rem;
  margin-bottom: 2rem;
  color: var(--input-color);
  font-size: 20px;
  background: var(--contact-bg) ;
  
}

/* Toast styling */
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  border-left: 4px solid #22c55e;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast i {
  /* color: #22c55e; */
  font-size: 1.3rem;
}


/* CONTACT FORM ENDs */


footer {
  margin-bottom: 35px;
  width: 90%;
  text-align: center;
  padding: 35px;
  font-size: 16px;
  backdrop-filter: blur(10px);
  transition: all .5s ease-in;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur( 2px );
  border-radius: 1em;
}

footer p {
  font-family: "Raleway", "Montserrat", sans-serif;
}

footer:hover {
  box-shadow: var(--theme-box-shadow);
}

/* FOOTER STYLING ENDS HERE */


/* RESPONSIVENESS */


/* ---------- Small Mobile (max 480px) ---------- */
@media (max-width: 480px) {

  body {
    padding: 10px;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px;
    width: 95%;
  }

  .navbar .nav-items {
    flex-direction: row;
    gap: 10px;
    padding: 10px 0;
  }

  .navbar .logo {
    margin-left: 0;
    font-size: 1.2rem;
  }

  #theme-toggle {
    width: auto;
    height: auto;
    font-size: 1.5rem;
  }

  .about-container {
    flex-direction: column;
    margin: 2rem 1rem;
    padding: 2rem 1rem;
    text-align: center;
  }

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

  .about-image img {
    width: 140px;
    height: 140px;
  }

  .about-content h2 {
    font-size: 28px;
  }

  .about-content h3 {
    font-size: 15px;
  }

  .typing-text {
    font-size: 1.2rem;
  }

  .content-paragraph {
    padding: 1rem;
    line-height: 1.8rem;
  }

  .about-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .projects-grid {
    display: block;
  }

  /* .dark-mode {
    box-shadow: var(--theme-box-shadow);
  } */

  .project-card {
    margin-top: 3rem;
  }

  svg {
    width: 13px;
    height: 13px;
  }

svg+label, i label {
  font-size: .3rem !important;
}


  .about-image img:hover {
  transform: none !important;
}

#darkMode-icon:hover {
  padding: none;
  color: none;
  transition: all .5s ease;
  border-radius: 35%;
  box-shadow: none;
}

  form {
    min-width: 300px !important;
    padding: 20px !important;
  }

  input, textarea {
    font-size: 14px;
  }

  ::placeholder {
    font-size: 13px;
  }

  .submit-btn {
    font-size: 14px;
    padding: 12px;
  }
  

  footer {
    padding: 20px;
    font-size: 13px;
  }

   .section {
    padding-top: 160px;
  }
}



@media (min-width: 480px) {

  body {
    padding: 0px;
  }

  .about-container {
    flex-direction: column;
    margin: 2rem 1rem;
    padding: 2rem 1rem;
    text-align: center;
  }

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

  .about-image img {
    width: 140px;
    height: 140px;
  }

  .about-content h2 {
    font-size: 1.6rem;
  }

  .typing-text {
    font-size: 1.2rem;
  }

  .content-paragraph {
    padding: 1rem;
    line-height: 1.8rem;
  }

  .about-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .projects-grid {
    display: block;
  }

  .project-card {
    margin-bottom: 25px;
  }

}

  
/* ---------- Tablets (min 481px and max 768px) ---------- */
@media (min-width: 481px) and (max-width: 768px) {

  .navbar {
    width: 95%;
    padding: 10px 20px;
  }

  .navbar .nav-items {
    gap: 1.5rem;
  }

  .about-container {
    flex-direction: column;
    margin: 3rem 2rem;
    padding-top: 5rem;
  }

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

  .about-content h2 {
    font-size: 2rem;
  }

  .typing-text {
    font-size: 1.8rem;
  }

  .content-paragraph {
    padding: 1.5rem;
    line-height: 2rem;
  }

  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .timeline {
    padding-left: 10px;
  }

  form {
    min-width: 100%;
    padding: 125px !important;
  }
  ::placeholder {
    font-size: 14px;
  }

  footer {
    font-size: 14px;
    padding: 25px;
  }
}

/* ---------- Small Laptops (min 769px and max 1024px) ---------- */
@media (min-width: 769px) and (max-width: 1024px) {

  .navbar {
    width: 90%;
  }

  .navbar .nav-items {
    gap: 2rem;
  }

  .about-container {
    flex-direction: column;
    margin: 2rem 3rem;
  }

  .about-image {
  padding-left: 7%;
}

  .about-image img {
    width: 160px;
    height: 160px;
  }

  .content-paragraph {
    padding: 1.8rem;
    line-height: 2.3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  form {
    min-width: 80%;
  }

  footer {
    font-size: 15px;
  }
  
}



/* ---------- Large Screens (min 1025px) ---------- */
@media (min-width: 1025px) {

  .navbar {
    width: 85%;
    top: 20px;
  }

  .about-container {
    max-width: 885px;
  }

  form {
    max-width: 700px;
  }

  footer {
    width: 80%;
    font-size: 16px;
  }
}

@media (max-width: 997px) {
  svg {
    width: 10px;
    height: 10px;
    vertical-align: middle;
  }

  svg+label, i label {
    font-size: .3rem;
  }

  .tech-stack i {
    padding: 3px 8px !important;
  }
}


@media (max-width: 589px) {
  #contactForm {
    min-width: 300px !important;
  }
}