/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  background-color: #2b2b2b; /* Unique background color */
  min-height: 100vh; /* Ensure body takes full height */
  display: flex;
  flex-direction: column; /* Allow footer to stay at bottom */
}

html {
  scroll-behavior: smooth; /* This ensures smooth scrolling */
}

section {
  scroll-margin-top: 100px; /* Adjust this value based on your header's height */
}


/* General Navigation Bar Styles */
.navbar {
  width: 100%;
  padding: 20px 0;
  background-color: #333;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000; /* Ensure the navbar stays above the content */
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand Styles */
.brand a {
  color: #fff;
  font-size: 2em;
  text-decoration: none;
  padding-left: 35px;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding-right: 40px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #0cadec;
}

/* Hamburger Menu (Hidden by Default) */
.hamburger-menu {
  display: none;
  cursor: pointer;
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px;
  background-color: #f5f1f1;
}
 

/* Side Navigation Styles */
.side-nav {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #333131;
  overflow-x: hidden;
  transition: width 0.5s ease;
  z-index: 2000; /* Ensure side-nav appears above everything */
  padding-top: 60px;
}

/* Side navigation links */
.side-nav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #fafafa;
  display: block;
  transition: 0.3s;
}

.side-nav a:hover {
  color: #fa4903;
}

/* Close button */
.side-nav .closebtn {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 36px;
  color: #fafafa;
}

/* Side Navigation Open */
.side-nav.open {
  width: 250px; /* Open the side nav */
}

/* Prevent body scroll when side-nav is open */
body.side-nav-open {
  overflow: hidden;
}

/* Media Query for Devices Below 1280px */
@media screen and (max-width: 1280px) {
  .nav-links {
    display: none; /* Hide nav links for smaller screens */
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu on smaller screens */
    padding-right: 35px;
  }

  .brand {
    text-align: center;
    width: 100%;
  }
}
/* Prevent horizontal scroll */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
}
/* Side Navigation Styles */
.side-nav {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #474646;
  overflow-x: hidden;
  transition: width 0.5s ease;
  z-index: 2000; /* Ensure side-nav appears above everything */
  padding-top: 60px;
}

/* Side navigation open */
.side-nav.open {
  width: 250px; /* Open the side nav */
}



/* Home Section Styles */
.home-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 60px; /* Adjust for navbar */
  background-color: #2b2b2b; /* Same background color */
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  max-width: 1200px;
  margin: auto;
}

.info {
  flex: 1;
  color: #fff;
  animation: fadeInLeft 1s ease-in-out;
}

.info h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.info p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.info h2 span {
  color: aqua;
}

.btn {
  padding: 10px 20px;
  background-color: #f8522c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #ff1c03;
}

/* Social Media Icons */
.social-icons {
  margin-top: 20px;
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center icons vertically */
}

.social-link {
  color: #fff;
  font-size: 1.2em; /* Increase size for better visibility */
  margin-right: 20px;
  transition: color 0.3s;
}

.social-link:hover {
  color: #07f4fc; /* Change color on hover */
}

.social-link:last-child {
  margin-right: 0; /* Remove margin from the last icon */
}

/* Image Container */
.image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-in-out;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 5px solid #fff;
  animation: glow 2s infinite alternate, float 4s ease-in-out infinite;
}

/* Glow effect */
@keyframes glow {
  from {
    box-shadow: 0 0 15px #ff5733;
  }
  to {
    box-shadow: 0 0 25px #ff5733, 0 0 35px #ff5733, 0 0 45px #ff5733;
  }
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Fade in animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Media Query for devices below 1280px */
@media screen and (max-width: 1280px) {
  .home-section {
    height: auto; /* Allow the section to grow with content */
    padding-top: 120px; /* Ensure space for the header */
    padding: 20px; /* Add padding to adjust layout */
  }

  .home-content {
    flex-direction: column; /* Stack logo and information vertically */
    width: 100%; /* Use full width of the container */
    align-items: center; /* Center items horizontally */
  }

  .image-container {
    order: -1; /* Move the image container to the top */
    margin-bottom: 20px; /* Space between the image and info */
    animation: none; /* Disable animation for better performance on smaller screens */
  }

  .profile-image {
    width: 200px; /* Adjust image size for smaller screens */
    height: 200px;
  }

  .info {
    text-align: center; /* Center-align text */
    animation: none; /* Disable animation for better performance on smaller screens */
  }

  .info h1 {
    font-size: 2em; /* Adjust font size for smaller screens */
  }

  .info p {
    font-size: 1em; /* Adjust font size for smaller screens */
  }

  .social-icons {
    justify-content: center; /* Center the social media icons */
    margin-top: 20px; /* Adjust spacing if needed */
  }

  .social-link {
    margin-right: 15px; /* Adjust spacing between icons */
  }
  
  .social-link:last-child {
    margin-right: 0; /* Remove margin from the last icon */
  }
}





/* About Section Styles */
.about-section {
  padding: 60px 20px;
  background-color: #2b2b2b; /* Same background color as home section */
  opacity: 0; /* Initially hidden for animation */
  transition: opacity 1s ease-out;
  color:  white ;
}

.about-section.visible {
  opacity: 1; /* Make section visible */
}

/* About Section */
.about-section {
  padding: 60px 20px;
 
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-right: 100px;
}

.about-image {
  flex: 1;
  width: 200px;
  height: 100px;
  padding-left: 200px;
  padding-bottom:200px;
}

.about-image img {
 
  width: 200px;
  height: 100px;
  height: auto;
  border-radius: 8px;
  padding-left: 1cm;
}

.about-text {
  flex: 1;
  padding-left: 10px;
}

.about-text h2 {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1em;
  line-height: 1.6;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-image {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.8s ease;
}

.about-text {
  font-size: 18px;
  font-family: Arial, sans-serif;
}

/* Animation when the section comes into view */
.about-section.show .about-image {
  opacity: 1;
  transform: translateX(0);
}

/* Typing effect */
@keyframes typing {
  from {
      width: 0;
  }
  to {
      width: 100%;
  }
}

@keyframes blink {
  0% {
      border-right-color: transparent;
  }
  50% {
      border-right-color: black;
  }
  100% {
      border-right-color: transparent;
  }
}

#about-text {
  display: inline-block;
  border-right: 2px solid black;
  white-space: nowrap;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 18px;
  animation: blink 0.7s infinite;
}
/* Media Query for devices below 1280px */
@media screen and (max-width: 1280px) {
  .about-content {
    flex-direction: column; /* Stack text and image vertically */
    padding-right: 0; /* Remove right padding */
  }

  .about-image {
    display: none; /* Hide the image */
  }

  .about-text {
    text-align: center; /* Center the text */
    padding: 0 20px; /* Add some padding for better readability */
  }

  .about-text h2 {
    font-size: 1.8em; /* Adjust heading size */
  }

  .about-text p {
    font-size: 1em; /* Adjust paragraph size for smaller screens */
  }
}





/* Projects Section */
.projects-section {
  padding: 60px 0;
  background-color: #2b2b2b;
  text-align: center;
}

.projects-section h2 {
  font-size: xx-large;
  margin-bottom: 40px;
  color: #f7f0f0;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Project Card */
.project-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  width: 30%;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 1s ease-in-out;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-domain {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.9em;
  z-index: 1;
}

.project-card img {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover; /* Ensures the image covers the space without distortion */
  display: block;
}


.project-info {
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-info h3 {
  margin-bottom: 10px;
  color: #333;
}

/* Read More Button */
.read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff5733;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.read-more-btn:hover {
  background-color: #e74c3c;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Query for devices below 1280px */
@media screen and (max-width: 1280px) {
  .projects-grid {
    flex-direction: column; /* Stack projects vertically */
    align-items: center; /* Center projects horizontally */
  }

  .project-card {
    width: 100%; /* Make each project take full width */
    max-width: 600px; /* Adjust max width to fit screen */
    margin-bottom: 20px; /* Add space between projects */
  }
}


/* Skills Section */
.skills-section {
  padding: 60px 0;
  background-color:#2b2b2b;
  text-align: center;
}

.skills-section h2 {
  margin-bottom: 40px;
  color: #fcf9f9;
}

.skills-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.skills-column {
  width: 45%;
  text-align: left;
  animation: fadeInUp 1s ease-in-out;
}

.skills-column h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #fcf9f8;
}

.skill {
  display: flex;
  align-items: left;
  margin-bottom: 20px;
  padding: 10px;
  transition: background-color 0.3s, transform 0.3s;
}

.skill-icon {
  font-size: 2em;
  color: #ff5733;
  margin-right: 15px;
  transition: transform 0.3s;
}

.skill span {
  font-size: 1.2em;
  color: #09c9e2;
}

.skill:hover {
  background-color: #080808;
  transform: translateX(10px);
  border-radius: 5px;
}

.skill:hover .skill-icon {
  transform: scale(1.2);
  color: #e74c3c;
}

/* Fade-in-up animation */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
/* Media Query for devices below 1280px */
@media screen and (max-width: 1280px) {
  .skills-content {
    flex-direction: column; /* Stack skills columns vertically */
    align-items: center; /* Center columns */
  }

  .skills-column {
    width: 100%; /* Make each column take full width */
    max-width: 600px; /* Limit the maximum width */
    margin-bottom: 20px; /* Add space between the columns */
  }

  /* Ensure soft skills are displayed first */
  .skills-column.soft-skills {
    order: -1; /* Show soft skills first */
  }

  .skills-column.technical-skills {
    order: 1; /* Show technical skills second */
  }
}


/* Contact Section */
.contact-section {
  padding: 60px 20px;
  background-color: #2b2b2b;
  color: #fff;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 40px;
  color: #f1eeed;
  font-size: 2.5em;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 600px;
  width: 100%; /* Adjusts to device width */
  margin: 0 auto;
  padding: 0 20px;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-group label {
  margin-bottom: 5px;
  font-size: 1.1em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
}

.form-group textarea {
  height: 150px;
}

.submit-btn {
  padding: 12px 25px;
  background-color: #ff5733;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #e74c3c;
}

/* Media Queries */
@media screen and (max-width: 1280px) {
  .contact-section h2 {
    font-size: 2em;
  }

  .contact-form {
    max-width: 90%; /* Wider form on smaller screens */
    padding: 0 10px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9em;
  }

  .submit-btn {
    font-size: 1em;
    padding: 10px 20px;
  }
}

@media screen and (max-width: 880px) {
  .contact-section h2 {
    font-size: 1.8em;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 0.85em;
  }

  .submit-btn {
    font-size: 0.9em;
    padding: 8px 18px;
  }
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-left,
.contact-right {
    flex: 1;
    min-width: 300px;
}

.contact-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.submit-btn {
    padding: 10px 20px;
    background-color: #007BFF; /* Customize color */
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.submit-btn:hover {
    background-color: #0056b3;
}


/* Footer Styles */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  position: relative;
  width: 100%;
  margin-top: auto; /* Push footer to the bottom */
}
