/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header and Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: #0f172a;
  padding: 10px 30px;
  transition: transform 0.3s ease;
}

header.hidden {
  transform: translateY(-100%);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5em;
  color: #22d3ee;
}

.nav-links a {
  color: #a0a0a0;
  text-decoration: none;
  margin-left: 30px;
  font-weight: 400;
  font-size: 0.9em;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px; /* Adjusts distance from text */
  width: 0%;
  height: 2px;
  background: #00ffcc;
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
  color: #00ffcc;
}

.nav-links a:hover::after {
  width: 100%; /* Expands underline on hover */
}

.banner-resume-btn {
  background: transparent;
  color: #22d3ee;
  padding: 6px 15px;
  border: 1px solid #22d3ee;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.banner-resume-btn:hover {
  background: #3b565a5d;
  color: #0f172a;
}

/* Social Links */
.social-links a {
  position: relative;
  display: inline-block;
  font-size: 2rem; /* Makes icons larger */
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  color: #fdfdfd; /* Default color */
  margin-left: 20px; /* Increased spacing */
  padding-top: 10px; /* Vertical padding */
}

.social-links a:hover {
  color: #00ffcc;
  transform: scale(1.3) rotate(8deg); /* Bigger and more tilted effect */
  text-shadow: 0 0 15px rgba(0, 255, 204, 0.8); /* Neon glow effect */
}

.social-links a::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ffcc, #0066ff); /* Gradient underline */
  transition: width 0.4s ease, left 0.4s ease;
  border-radius: 5px;
}

.social-links a:hover::before {
  width: 110%;
  left: -5%;
}

/* Vertical Email Link on the Right */
.mail-line {
  position: fixed;
  right: 40px; /* Distance from the right edge of the viewport */
  bottom: 60px; /* Distance from the bottom edge of the viewport */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

/* Email button container */
.mail-btn {
  color: #94a3b8;
  font-size: 1.2em;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Rotate the email text to be vertical */
.mail {
  margin: 110px 0;
  white-space: nowrap;
  transform: rotate(90deg);
  transform-origin: center;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 3px;
}

/* Email Icon Styling */
.mail-btn i {
  font-size: 1.5em;
  color: #94a3b8;
}

/* Hover effect */
.mail-btn:hover {
  color: #22d3ee;
  transform: translateY(-5px);
}

/* Vertical line after the email link */
.mail-line::after {
  content: "";
  display: block;
  width: 1px;
  height: 150px;
  margin-top: 10px;
  background-color: #94a3b8;
}

/* Mobile Responsiveness - Moves to Bottom Right */
@media screen and (max-width: 768px) {
  .mail-line {
    right: 10px; /* Move closer to the right edge */
    bottom: 20px; /* Move closer to the bottom */
    flex-direction: row; /* Change direction to horizontal */
  }

  .mail-btn {
    font-size: 1em; /* Reduce font size */
    gap: 5px;
    flex-direction: row; /* Change layout to horizontal */
  }

  .mail {
    transform: rotate(0deg); /* Remove rotation */
    font-size: 12px; /* Adjust text size */
    letter-spacing: 2px;
    margin: 0; /* Reset margin */
  }

  .mail-btn i {
    font-size: 1.2em;
  }

  .mail-line::after {
    height: 0; /* Remove the vertical line */
  }
}

@media screen and (max-width: 480px) {
  .mail-line {
    right: 5px;
    bottom: 10px;
  }

  .mail-btn {
    font-size: 0.9em;
    gap: 3px;
  }

  .mail {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .mail-btn i {
    font-size: 1em;
  }
}

/* Vertical Social Links on the Left */
.vertical-social-links {
  position: fixed;
  left: 150px; /* Distance from the left edge of the viewport */
  bottom: 60px; /* Distance from the bottom edge of the viewport */
  display: flex;
  flex-direction: column; /* Stack icons vertically */
  align-items: center; /* Center align */
  gap: 20px; /* Space between social icons */
  z-index: 1000; /* Ensure visibility over other elements */
}

/* Social Icons */
.vertical-social-links a {
  color: #94a3b8; /* Default icon color */
  font-size: 1.5em; /* Icon size */
  transition: color 0.3s ease, transform 0.3s ease; /* Smooth hover effects */
  text-decoration: none; /* Remove underlines */
  display: flex;
  flex-direction: column; /* Stack icon and text vertically */
  align-items: center; /* Center align text and icon */
}

/* Rotate the text to be vertical (90 degrees) */
.vertical-social-links .social-text {
  margin: 0;
  white-space: nowrap; /* Prevent text from wrapping */
  transform: rotate(90deg); /* Rotate the text 90 degrees */
  transform-origin: center; /* Keep rotation balanced */
  display: inline-block; /* Ensure text stays inline */
  font-size: 14px; /* Adjust font size */
  letter-spacing: 3px; /* Space out letters */
}

/* Hover Effect */
.vertical-social-links a:hover {
  color: #22d3ee; /* Color change on hover */
  transform: translateY(-5px); /* Slight upward movement */
}

/* Vertical Line starting from the last social icon */
.vertical-social-links::after {
  content: "";
  display: block;
  width: 1px; /* Width of the line */
  height: 150px; /* Make the line longer */
  background-color: #94a3b8; /* Line color */
  margin-top: 10%; /* Remove any extra margin */
}

/* Banner Section */
.banner {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background: #0f172a;
  text-align: left;
  padding: 50px 350px; /* Adjust left/right and top/bottom padding */
}

/* Container */
.banner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  width: 100%;
  max-width: 1200px;
  padding-left: 20px; /* Extra left padding if needed */
}

/* Animation */
.banner-content {
  animation: fadeInUp 1s ease-out;
}

/* Small Heading */
.banner-h1 {
  font-size: 1em;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: -40px;
}

/* Main Heading (No Glow) */
.banner-title {
  font-size: clamp(3em, 8vw, 4em);
  font-weight: 800;
  color: #00ffcc;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: none;
}

/* Subtitle */
.banner-subtitle {
  font-size: clamp(1.8em, 4vw, 2.5em);
  font-weight: 600;
  color: #8892b0;
  margin-bottom: 15px;
}
#element {
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* Use rem for better scaling */
  font-weight: 600;
  color: #fa85b2;
  margin-top: -40px;
  display: inline-block; /* Ensures proper inline behavior */
  white-space: nowrap; /* Prevents line breaks in the animation */
}

/* Description */
.banner-description {
  font-size: 1.1em;
  color: #94a3b8;
  max-width: 700px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.course-btn {
  display: inline-block;
  background: transparent;
  color: #22d3ee;
  padding: 12px 30px;
  border: 1px solid #22d3ee;
  border-radius: 5px;
  font-weight: 500;
  font-size: 1em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.course-btn:hover {
  background: #22d3ee;
  color: #0f172a;
}

/* About Me Section */
.about-me {
  padding: 80px 50px;
  background: #0f172a;
  margin: 20px auto;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-me h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #22d3ee;
  position: relative;
  width: 100%;
}

.about-me h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 4px;
  background: #22d3ee;
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

.about-me h2 i {
  margin-right: 10px;
  color: #22d3ee;
}

.about-me p {
  font-size: 1.1em;
  color: #94a3b8;
  flex: 1;
  min-width: 300px;
}

.profile-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.profile-image img {
  width: 500px;
  height: 400px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #22d3ee;
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  transform: rotate(-90deg);
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.3);
}

.profile-image img:hover {
  transform: rotate(-90deg) scale(1.1);
  box-shadow: 0 15px 35px rgba(34, 211, 238, 0.5);
  border-color: #00ffa6;
}

/* Education Section */
.education {
  padding: 80px 50px;
  background: #0f172a;
  margin: 40px auto;
  max-width: 1200px;
}

.education-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.education-item {
  background: #1e293b;
  padding: 25px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
  flex: 1;
  min-width: 300px;
  margin: 10px 0;
}

.education-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

.education-item i {
  font-size: 2em;
  color: #22d3ee;
}

.education-item h3 {
  color: #e2e8f0;
}

.education-item p {
  color: #94a3b8;
}

/* Skills Section */
.skills {
  padding: 80px 50px;
  background: #0f172a;
  margin: 40px auto;
  max-width: 1200px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.skill-item {
  background: #1e293b;
  padding: 25px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
  flex: 1;
  min-width: 300px;
  margin: 10px 0;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

.skill-item i {
  font-size: 2em;
  color: #22d3ee;
}

.skill-item h3 {
  color: #e2e8f0;
}

.skill-item p {
  color: #94a3b8;
}

/* Projects Section */
.projects {
  padding: 80px 50px;
  background: #0f172a;
  margin: 40px auto;
  max-width: 1200px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-item {
  background: #1e293b;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

.project-item .folder-icon {
  font-size: 1.5em;
  color: #22d3ee;
  position: absolute;
  top: 20px;
  left: 20px;
}

.project-item .external-link {
  font-size: 1.2em;
  color: #94a3b8;
  position: absolute;
  top: 20px;
  right: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-item .external-link:hover {
  color: #22d3ee;
  transform: scale(1.2);
}

.project-item div {
  margin-top: 40px;
}

.project-item h3 {
  font-size: 1.5em;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.project-item p {
  font-size: 1em;
  color: #94a3b8;
  margin: 5px 0;
}

.project-item .tech-stack {
  font-size: 0.9em;
  color: #94a3b8;
  margin-top: 15px;
}

/* Experience Section */
.experience {
  padding: 80px 50px;
  background: #0f172a;
  margin: 40px auto;
  max-width: 1200px;
}

.experience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.experience-item {
  background: #1e293b;
  padding: 25px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
  flex: 1;
  min-width: 300px;
  margin: 10px 0;
}

.experience-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

.experience-item i {
  font-size: 2em;
  color: #22d3ee;
}

.experience-item h3 {
  color: #e2e8f0;
}

.experience-item p {
  color: #94a3b8;
}

/* Parent container for Hobbies and Contact */
.hobbies-contact-container {
  display: flex;
  justify-content: space-between; /* Space between hobbies and contact */
  align-items: flex-start; /* Align at the top */
  gap: 40px; /* Space between sections */
  max-width: 1200px; /* Adjust width */
  margin: 40px auto; /* Center it */
  padding: 20px;
}

/* Common styles for both sections */
.hobies,
.contact {
  flex: 1; /* Equal width */
  background: #0f172a; /* Default background */
  padding: 40px;
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow */
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease; /* Smooth hover effect */
}

/* Hover effect: Slight lift and background color change */
.hobies:hover,
.contact:hover {
  transform: translateY(-5px); /* Moves up slightly */
  background: #1e293b; /* Darker background on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Increase shadow for depth */
}

/* Section headings */
.hobies h2,
.contact h2 {
  color: #22d3ee;
  margin-bottom: 15px;
}

/* Icons and text formatting */
.hobies p,
.contact p {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between icon and text */
  margin: 15px 0;
  color: #94a3b8;
  transition: color 0.3s ease; /* Smooth text color transition */
}

/* Font Awesome icons */
.hobies i,
.contact i {
  font-size: 1.5em;
  color: #22d3ee;
  transition: color 0.3s ease;
}

/* Hover effect on text and icons */
.hobies:hover p,
.contact:hover p {
  color: #e2e8f0; /* Lighten text on hover */
}

.hobies:hover i,
.contact:hover i {
  color: #38bdf8; /* Change icon color on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  .hobbies-contact-container {
    flex-direction: column; /* Stack on small screens */
    gap: 20px;
  }
}

/* Contact Section */
.contact-section {
  text-align: center;
  background: #0f172a; /* Dark theme background */
  padding: 100px 20px;
}

/* Subtitle */
.contact-section h4 {
  font-size: 1em;
  font-weight: 600;
  color: #22d3ee; /* Neon blue */
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Main Heading */
.contact-section h3 {
  font-size: 2.5em;
  font-weight: 700;
  color: #cbd5e1; /* Light grayish-blue */
  margin-bottom: 15px;
}

/* Description */
.contact-section p {
  font-size: 1.1em;
  color: #94a3b8; /* Soft gray */
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Contact Button */
.contact-btn {
  display: inline-block;
  font-size: 1em;
  font-weight: 600;
  color: #22d3ee; /* Neon blue text */
  padding: 12px 30px;
  border: 2px solid #22d3ee;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #22d3ee;
  color: #0f172a;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-section {
    padding: 60px 20px;
  }

  .contact-section h3 {
    font-size: 2em;
  }

  .contact-section p {
    font-size: 1em;
  }
}

/* Send a Message (Contact Form) */
.contact-form {
  padding: 80px 50px;
  background: #0f172a;
  margin: 40px auto;
  max-width: 1200px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 15px;
  border-radius: 5px;
  color: #e2e8f0;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #22d3ee;
}

.contact-form button {
  background: transparent;
  color: #22d3ee;
  padding: 12px 30px;
  border: 1px solid #22d3ee;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-form button i {
  font-size: 1.2em;
}

.contact-form button:hover {
  background: #22d3ee;
  color: #0f172a;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.9em;
  flex-shrink: 0;
}

/* General Styling */
h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #22d3ee;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 4px;
  background: #22d3ee;
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

h2 i {
  margin-right: 10px;
  color: #22d3ee;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 8px 20px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 10px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    margin: 5px 15px 5px 0;
    font-size: 0.8em;
  }

  .banner-resume-btn {
    margin-top: 10px;
    padding: 5px 12px;
    font-size: 0.8em;
  }

  .banner {
    padding: 0 20px;
    min-height: 80vh;
  }

  .banner-title {
    font-size: clamp(2em, 6vw, 3.5em);
  }

  .banner-subtitle {
    font-size: clamp(1.2em, 3vw, 2em);
  }

  .banner-description {
    font-size: 0.9em;
  }

  .course-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .vertical-social-links {
    left: 10px;
    gap: 15px;
    bottom: 40px;
  }

  .about-me {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
  }

  .profile-image img {
    width: 300px;
    height: 300px;
  }

  .education,
  .skills,
  .projects,
  .experience,
  .hobies,
  .contact,
  .contact-form {
    padding: 50px 20px;
    margin: 20px auto;
  }

  .education-details,
  .skills-list,
  .project-list,
  .experience-list {
    gap: 20px;
  }

  .education-item,
  .skill-item,
  .project-item,
  .experience-item {
    flex-direction: column;
    text-align: center;
    margin: 5px 0;
  }
}
