/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Basic styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #1F2235;
  color: #fff;
}

/* Header styles */
header {
  background: #252947;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.logo {
  margin-right: auto;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-links {
  list-style-type: none;
  display: flex;
  margin: 0;
}

.nav-links li {
  margin-right: 20px;
  position: relative;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ffd700;
}

.nav-links li a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color:  #ffd700;
  visibility: hidden;
  transform: scaleX(0);
  transition: width 0.3s ease-in-out;
}

.nav-links li a:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

/* Links and hover styles */
a {
  color: #4C51BF;
  text-decoration: none;
}

a:hover {
  color: #ffd700
}

/* Button styles */
button {
  background-color: #4C51BF;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #3B41A8;
}

/* Heading styles */
h1, h2, h3 {
  color: #FFC857;
}

/* Main content styles */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

section {
  margin-bottom: 40px;
}

/* profile section styles */
.profile {
  text-align: center;
  padding: 80px 20px;
  background-color:  #1F2235;
}

.profile h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #fff;
}

.profile p {
  font-size: 18px;
  color: #fff;
  line-height: 1.6;
}

.social-links {
  margin-top: 40px;
}

.social-links a {
  color: #fff;
  font-size: 24px;
  margin: 0 15px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #007bff;
}

/* Portfolio animation styles */
.portfolio-animation {
  animation: pulse 2s infinite alternate;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.portfolio-static {
  color: #007bff;
}

/* Animation keyframes */
@keyframes pulse {
  0% {
    color: #ffcc00;
  }
  50% {
    color: #ff9933;
  }
  100% {
    color: #ffcc00;
  }
}

/* Tech stack section styles */
.tech-stack {
  margin-top: 40px;
  text-align: center;
}

.tech-stack h3::after {
  content: "";
  display: block;
  width: 100px;
  height: 2px;
  background-color: #303555;
  margin: 10px auto 0;
}

.tech-stack-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tech-stack-icons img {
  height: 50px;
  margin: 10px;
}

/* Project section styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  grid-gap: 20px;
}

.project-card {
  background-color: #252947;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  height: 300px;
  color: #fff;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  font-size: 20px;
  color: #fff;
  padding: 20px;
}

.project-card p {
  font-size: 16px;
  color: #fff;
  padding: 0 20px 20px;
}

.project-card .project-link {
  display: block;
  text-align: center;
  padding: 10px 0;
  background-color: #303555;
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
}

.project-card .project-link:hover {
  background-color: #3B41A8;
}

/* Animation style for "GET IN TOUCH FORM" */
.animate-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-in-out forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact section styles */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  flex: 1;
  max-width: 500px;
  background-color: #252947;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 20px;
  color: #fff;
}

.contact-form .section-title {
  margin-bottom: 20px;
}

.contact-form form {
  display: grid;
  grid-gap: 20px;
}

.contact-form .form-group {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
}

.contact-form label {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #fff;
}

.contact-form label i {
  margin-right: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  background-color: #1F2235;
  color:#fff ;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-image {
  flex: 1;
  width: 40%;
  margin-right: 40px;
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

/* Media Queries */
@media (max-width: 1200px) {
  .contact-container {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form,
  .contact-image {
    margin: 20px 0;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #151523;
    padding: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Timeline section styles */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
}

.timeline-item.right {
  flex-direction: row-reverse;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #343549;
}


.timeline-content h3 {
  margin-bottom: 5px;
  color: #fff;
}

.timeline-content p {
  margin-bottom: 10px;
  color: #fff;
}

.timeline-content ul {
  padding-left: 20px;
  color: #fff;
}

.timeline-content ul li {
  margin-bottom: 10px;
}

/* Footer styles */
footer {
  background-color: #252947;
  color: #fff;
  margin-top: auto;
}

.container {
  max-width: 1200px;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.text-sm {
  font-size: 0.875rem;
}

.text-gray-700 {
  color: #8C8C8C;
}

.text-gray-900 {
  color: #212529;
}

.text-yellow-500 {
  color: #FFC857;
}

.text-blue-700 {
  color: #4C51BF;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-6,
.my-6 {
  margin-top: 1.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

a:not(:last-child) {
  margin-right: 10px;
}

/* Form Related CSS */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: #252947;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 40px;
  color: #fff;
}

form {
  display: grid;
  grid-gap: 20px;
}

.form-group {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
}

label {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #fff;
}

label i {
  margin-right: 10px;
}

input,
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  background-color: #23243a;
  color: #fff;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  padding: 10px 20px;
  background-color: #343549;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #555;
}


/* CSS  for Tech stack icons to rotate*/
.tech-stack-icons img:hover {
  transform: rotate(10deg);
  transition: transform 0.3s ease-in-out;
}


@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.timeline-content {
  padding: 0 50px;
  width: 50%;
  color: #fff;
  animation-duration: 1s;
  animation-fill-mode: both;
}

.timeline-item:nth-child(odd) .timeline-content {
  animation-name: slideInLeft;
}

.timeline-item:nth-child(even) .timeline-content {
  animation-name: slideInRight;
}

.timeline-item:nth-child(1) .timeline-content {
  animation-delay: 0s;
}

.timeline-item:nth-child(2) .timeline-content {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) .timeline-content {
  animation-delay: 0.4s;
}


.timeline-circle-left {
  position: absolute;
  left:49%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(45deg, #FFC857, #FF6B6B);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  animation: pulse 1s infinite alternate;
}


.timeline-circle-right {
  position: absolute;
  right:48.5%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(45deg, #FFC857, #FF6B6B);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  animation: pulse 1s infinite alternate;
}

.timeline:before {
  height: 100%;
  width: 2px;
  background-color:#fff;

}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}




/* Toggle Button Styles */
.theme-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: absolute;
  top: 3%;
  right: 23%;
}

.theme-toggle-input {
  display: none;
}

.theme-toggle-label {
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 10px;
  position: relative;
}

.theme-toggle-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease-in-out;
}

.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-icon {
  transform: translateX(20px);
}

