@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #64ffda;
  --secondary-color: #0a192f;
  --dark-color: #172a45;
  --light-color: #ccd6f6;
  --text-color: #8892b0;
  --highlight-color: #fed700;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--secondary-color);
  color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/*--------------------------- Header ---------------------------*/
.header-area {
  padding: 10px 0;
  position: fixed;
  height: 115px; /* Fixed height for header */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.header-area.sticky {
  padding: 15px 0;
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color);
}

.signature {
  width: 120px;
  height: auto;
  margin-right: 10px;
}

.logo .fa-bolt {
  color: var(--highlight-color);
  font-size: 22px;
  margin-left: 5px;
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar li {
  margin: 0 15px;
}

.navbar li a {
  font-size: 14px;
  padding: 6px 0; /* Reduced padding */
  position: relative;
}


.navbar li a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 1px; /* Thinner underline */
  bottom: 4px; /* Positioned closer to text */
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.navbar li a:hover::before,
.navbar li a.active::before {
  width: 100%;
}

.navbar li a.active,
.navbar li a:hover {
  color: var(--primary-color);
}

/* Optional: Make the navbar items more compact */
.navbar li {
  margin: 0 10px; /* Reduced spacing between items */
}

.menu_icon {
  color: var(--light-color);
  font-size: 24px;
  cursor: pointer;
  display: none;
  z-index: 1001;
}

/*--------------------------- Home Page ---------------------------*/
.FirstElement {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  min-height: 100vh;
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-photo {
  width: 320px;
  height: 320px;
  min-width: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.profile-photo:hover {
  transform: translateY(-5px);
}

.profile-text {
  max-width: 600px;
}

.profile-text h5 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.profile-text h1 {
  color: var(--light-color);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
}

.profile-text p {
  color: var(--text-color);
  font-size: 1.05rem;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .FirstElement {
    flex-direction: column;
    padding: 100px 30px;
    gap: 40px;
    text-align: center;
  }
  
  .profile-photo {
    width: 280px;
    height: 280px;
    min-width: 280px;
  }
}

@media (max-width: 576px) {
  .FirstElement {
    padding: 90px 20px;
    gap: 30px;
  }
  
  .profile-photo {
    width: 240px;
    height: 240px;
    min-width: 240px;
  }
  
  .profile-text h1 {
    font-size: 2.2rem;
  }
  
  .profile-text p {
    font-size: 1rem;
  }
}

.btn-group {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.btn.active {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.btn:not(.active) {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px rgba(100, 255, 218, 0.3);
}

.social {
  display: flex;
  gap: 20px;
}

.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

/*--------------------------- About Section ---------------------------*/
.about-area {
  padding: 100px 0;
}

.about {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.about-content {
  flex: 1;
}

.about-content h4 {
  color: var(--light-color);
  font-size: 32px;
  margin-bottom: 30px;
  position: relative;
}

.about-content h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
}

.about-content ul {
  color: var(--text-color);
}

.about-content ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
  line-height: 1.7;
}

.about-content ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.about-skills {
  flex: 0 0 350px;
}

.about-skills ul li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(136, 146, 176, 0.3);
  display: flex;
}

.about-skills ul li span:first-child {
  font-weight: 600;
  color: var(--light-color);
  min-width: 120px;
}

.about-skills ul li span:last-child {
  color: var(--text-color);
}

.about-skills ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/*--------------------------- Education & Experience ---------------------------*/
.education-content {
  padding: 100px 0;
}

.education-content .row {
  display: flex;
  gap: 50px;
}

.education-content .title {
  color: var(--light-color);
  font-size: 32px;
  margin-bottom: 30px;
  position: relative;
}

.education-content .title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
}

.education,
.internship {
  flex: 1;
}

.timeline-box {
  width: 100%;
}

.timeline {
  background-color: var(--dark-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  width: 2px;
  position: absolute;
  height: 100%;
  left: 30px;
  top: 0;
  background-color: var(--primary-color);
}

.circle-dot {
  position: absolute;
  left: 25px;
  top: 5px;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: var(--primary-color);
  z-index: 1;
}

.timeline-title {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--light-color);
}

.timeline-text {
  color: var(--text-color);
  margin-top: 10px;
  font-size: 15px;
}

/*--------------------------- Projects ---------------------------*/
.project-content {
  padding: 100px 0;
}

.project-title {
  margin-bottom: 60px;
  text-align: center;
}

.project-title h4 {
  font-size: 32px;
  color: var(--light-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.project-title h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
}

.project-title p {
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
}

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

.project {
  background-color: var(--dark-color);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
  border-color: var(--primary-color);
}

.project i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
}

.project h4 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--light-color);
}

.project p {
  color: var(--text-color);
  font-size: 15px;
  margin-bottom: 15px;
}

/*--------------------------- Contact Me ---------------------------*/
.contact-content {
  padding: 100px 0;
  text-align: center;
}

.contact-title h4 {
  font-size: 32px;
  color: var(--light-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.contact-title h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
}

.contact-title p {
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto 40px;
}

.contact {
  max-width: 600px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(136, 146, 176, 0.3);
  background-color: var(--dark-color);
  color: var(--light-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact textarea {
  min-height: 150px;
  resize: vertical;
}

.submit {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  font-weight: 600;
  cursor: pointer;
  padding: 15px 40px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px rgba(100, 255, 218, 0.5);
}

#msg {
  color: var(--primary-color);
  margin-top: 20px;
  font-size: 16px;
  display: inline-block;
}

/*--------------------------- Footer ---------------------------*/
.footer {
  padding: 50px 0 30px;
  text-align: center;
}

.footer .message {
  color: var(--primary-color);
  font-size: 14px;
  margin-bottom: 10px;
}

.copyright {
  color: var(--text-color);
  font-size: 14px;
}

/*--------------------------- Responsive Design ---------------------------*/
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 800px;
  }

  .FirstElement {
    flex-direction: column;
    padding-top: 120px;
    text-align: center;
  }

  .profile-photo {
    margin-bottom: 50px;
  }

  .profile-text {
    max-width: 100%;
  }

  .btn-group,
  .social {
    justify-content: center;
  }

  .about {
    flex-direction: column;
  }

  .about-skills {
    flex: 1;
    width: 100%;
    margin-top: 50px;
  }

  .education-content .row {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 600px;
  }

  .menu_icon {
    display: block;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--dark-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 1000;
  }

  .navbar.active {
    right: 0;
  }

  .navbar li {
    margin: 12px 0;
  }

  .profile-text h1 {
    font-size: 2.5rem;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 100%;
  }

  .profile-photo {
    width: 250px;
    height: 250px;
  }

  .profile-text h1 {
    font-size: 2rem;
  }

  .btn-group {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
  }
}