/* General Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

/* Navbar style Start */
.logo img {
  width: 80px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.5);
  transition: all 0.3s ease-in-out;
}

.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.7);
}

.main-navv {
  background-color: #333;
  color: #fff;
  padding: 10px 0;
  position: relative;
  z-index: 1000;
}

.container-lg {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.navv {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  display: block;
}

.navv-links {
  display: flex;
  gap: 15px;
}

.navv-links a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
}

.navv-links a:hover,
.navv-links a.active {
  background: linear-gradient(90deg, rgba(0,123,255,1) 0%, rgba(0,123,255,0.1) 100%);;
  color: #fff;
}

.dropdown {
  display: none; /* Hide by default, shown on mobile */
}

.btn-secondary {
  background-color: #555;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.btn-secondary:hover {
  background-color: #666;
}

.dropdown-menu {
  display: none; /* Hide by default */
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #333;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px 15px;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navv-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #333;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .navv-links.active {
    display: flex;
  }

  .dropdown {
    display: block;
  }
}

@media (max-width: 576px) {
  .btn-secondary {
    padding: 8px 16px;
    font-size: 14px;
  }
}
/* Navbar style end */


/* Intro Section */
.main-intro {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  background-image: url('images/marfy.jpg'); /* Replace with your background image */
  background-size: cover; /* Ensures the image covers the entire section */
  /* background-position: center;  */
  background-attachment: fixed; /* Keeps the background image fixed while scrolling */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  padding: 20px;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6); /* Optional: Adds a dark overlay effect */
}

/* Intro Container */
.intro {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
  border-radius: 10px; /* Rounded corners */
  transform: translateX(-40%);
}

/* Text Styles */
.intro-pt1 h4,
.intro-pt1 h1,
.intro-pt1 p {
  margin: 0;
  padding: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.intro-pt1 h4 {
  animation-delay: 0.5s;
  font-size: 1.5rem;
  font-weight: 300;
}

.intro-pt1 h1 {
  animation-delay: 1s;
  font-size: 2.5rem;
  font-weight: bold;
}

.intro-pt1 p {
  display: inline-block;
  background: white;
  color: black;
  animation-delay: 1.5s;
  font-size: 1.25rem;
  font-weight: 300;
}

.icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.icons a {
  display: block;
  width: 50px;
  height: 50px;
}

.icons img {
  width: 100%;
  height: auto;
  transition: transform 0.3s, filter 0.3s;
}

.icons img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Animation Keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-intro{
    height: 60vh;
    background-position: 81%;
  }
  .intro{
    transform: translateX(0%);
    transform: translateY(40%);
  }
  .intro-pt1 h4, .intro-pt1 h1, .intro-pt1 p {
    font-size: 80%;
  }

  .icons {
    gap: 10px;
  }

  .icons a {
    width: 40px;
    height: 40px;
  }
  
}

/* @media (max-width: 480px) {
  .intro{
    transform: translateX(0%);
  }
  .intro-pt1 h4, .intro-pt1 h1, .intro-pt1 p {
    font-size: 70%;
  }

  .icons a {
    width: 30px;
    height: 30px;
  }
} */

/* Intro style end */

/* About me section start */

.about-me {
  padding: 60px 20px;
  background: #f4f4f9; /* Light background color for readability */
  color: #333; /* Dark text color for contrast */
  position: relative;
  overflow: hidden;
}

.about-me .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #fff; /* White background for the content */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  animation: fadeInUp 1s ease-out;
}

.about-me p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555; /* Slightly lighter color for text */
  text-align: justify; /* Justify text for better readability */
  margin: 0;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-me {
    padding: 40px 10px;
  }

  .about-me .container {
    padding: 15px;
  }

  .about-me h2 {
    font-size: 1.5rem;
  }

  .about-me p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .about-me h2 {
    font-size: 1.25rem;
  }

  .about-me p {
    font-size: 0.85rem;
  }
}

/* End */

/* My Skills Section */
.my-skills {
  padding: 25px 20px;
  background: #f9f9f9; /* Light background for the section */
  color: #333; /* Dark text color for contrast */
}

.my-skills .container {
  max-width: 1200px;
  margin: 0 auto;
}

.my-skills-pt-1 {
  text-align: center;
  margin-bottom: 40px;
}

/* Skills Container */
.my-skills-pt-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.skill-card {
  background: #fff; /* White background for the cards */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  padding: 20px;
  width: 100%;
  max-width: 350px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 1s ease-out;
}

.skill-card h4 {
  font-size: 1.5rem;
  color: #007bff; /* Primary color for headings */
  margin: 0 0 10px;
}

.skill-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555; /* Slightly lighter color for text */
}

/* Hover Effect */
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .my-skills-pt-2 {
    flex-direction: column;
    align-items: center;
  }

  .skill-card {
    width: 100%;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .my-skills-pt-1 h2 {
    font-size: 1.5rem;
  }

  .skill-card {
    padding: 15px;
  }

  .skill-card h4 {
    font-size: 1.25rem;
  }

  .skill-card p {
    font-size: 0.9rem;
  }
}
/* End */

/* Currently Working With Section */
.current-working {
  padding: 60px 20px;
  background: #f4f4f9; /* Light background color for the section */
  color: #333; /* Dark text color for contrast */
  overflow: hidden; /* Hide overflow to prevent scrollbars */
}

.scroll-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.scroll-content {
  display: flex;
  gap: 20px; /* Add gap between grid items */
  animation: scrollAnimation 20s linear infinite;
  white-space: nowrap; /* Prevent items from wrapping to the next line */
}

.scroll-content::before, .scroll-content::after {
  content: '';
  display: inline-block;
  width: 100%; /* Ensure these pseudo-elements cover the container */
}

.grid-item {
  flex: 0 0 auto; /* Prevent items from shrinking or growing */
  width: 220px; /* Fixed width for the items */
  height: 150px; /* Fixed height to ensure a square aspect ratio */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Hide any overflow from the images */
  margin: 0 10px; /* Add horizontal margin for spacing between items */
  background: #fff; /* Optional: background color to contrast with images */
  border-radius: 8px; /* Optional: rounded corners for a polished look */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow for depth */
  padding: 6px 0px;
}

.grid-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensures the entire image is visible within the container */
  display: block; /* Removes any extra space below the image */
  border-radius: 8px; /* Matches border-radius for consistency */
  transition: transform 0.3s, filter 0.3s; /* Smooth transition for hover effects */
}

.grid-item img:hover {
  transform: scale(1.05); /* Slightly zoom the image on hover */
  filter: brightness(1.2); /* Slightly brighten the image on hover */
}


/* Animation Keyframes */
@keyframes scrollAnimation {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .scroll-content {
    gap: 15px; /* Adjust gap for smaller screens */
  }

  .grid-item {
    width: 100px; /* Adjusted width for smaller screens */
    height: 100px; /* Maintain aspect ratio */
  }
}

@media (max-width: 480px) {
  .scroll-content {
    gap: 10px; /* Adjust gap for mobile screens */
  }

  .grid-item {
    width: 80px; /* Smaller width for mobile screens */
    height: 80px; /* Maintain aspect ratio */
  }
}
/* End */

/* Current project section */

/* CSS */
.current-project {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 400px;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 10px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  font-size: 1.5rem;
  margin: 15px;
  color: #333;
}

.card .url {
  margin: 0 15px 15px;
  color: #007bff;
}

.card .description {
  padding: 0 15px 15px;
  color: #555;

}
.limited{
  text-align: justify;
}
.animated-heading {
  font-weight: 700;
  font-size: 2rem;
  color: #007bff;
  margin: 0;
  animation: fadeIn 1s ease-out;
  padding-bottom: 15px;

}
.description .more-content {
  display: none;
}

.see-more, .see-less {
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
}

.see-more:hover, .see-less:hover {
  text-decoration: none;
}


/* End */


/* CV Section */

/* CSS */
.cv-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
  position: relative;
  text-align: center;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
}

.cv-section.container {
  position: relative;
  z-index: 1;
}


.animated-container {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}
.animated-button {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.6s;
}
.btn {
  display: inline-block;
  padding: 12px 24px; /* Increased padding for better click area */
  font-size: 1.1rem; /* Slightly larger font size */
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-primary {
  background-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* End */

/* Contact Us Sectiom */

/* General section styling */
.main-contact {
  padding: 60px 20px;
  background-color: #f5f5f5; /* Light background for contrast */
  text-align: center;
}

/* Container styling */
.contact-map.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* Space between items */
}

/* Contact form styling */
.contact {
  flex: 1;
  max-width: 100%; /* Allow full width on smaller screens */
  background-color: #fff; /* White background for the form */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  padding: 30px;
}

/* Title styling */
.section-title {
  font-size: 2rem;
  color: #007bff; /* Accent color */
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

/* Underline effect for title */
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 5px;
  background-color: #007bff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: bottom right;
}

.section-title:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Form element styling */
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd; /* Light border */
  border-radius: 5px; /* Rounded corners */
  font-size: 1rem;
  box-sizing: border-box;
}

.form textarea {
  resize: vertical; /* Allow vertical resizing */
}

/* Submit button styling */
/* Submit button styling */
.form button {
  background: linear-gradient(135deg, #007bff, #0056b3); /* Gradient background */
  color: #fff;
  border: none;
  padding: 15px 25px; /* Adjusted padding for better size */
  border-radius: 5px;
  font-size: 1.1rem; /* Slightly larger font size */
  font-weight: 700; /* Bold font weight */
  cursor: pointer;
  transition: all 0.3s ease; /* Smooth transition */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
}

.form button:hover {
  background: linear-gradient(135deg, #0056b3, #003d7a); /* Darker gradient on hover */
  transform: translateY(-3px); /* Lift effect on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.form button:focus {
  outline: none; /* Remove default outline */
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); /* Focus ring */
}


/* Map container styling */
.map {
  flex: 1;
  max-width: 1000px; /* Limit map width */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
  overflow: hidden; /* Ensure iframe fits within rounded corners */
}

.map iframe {
  width: 100%;
  border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-map.container {
    flex-direction: column; /* Stack form and map vertically */
  }

  .contact {
    max-width: 100%;
    margin-bottom: 30px; /* Space between form and map */
  }

  .map {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem; /* Smaller font size on very small screens */
  }

  .form input[type="text"],
  .form input[type="email"],
  .form input[type="tel"],
  .form textarea {
    padding: 12px; /* Adjust padding for smaller screens */
  }

  .form button {
    padding: 12px 15px; /* Adjust button size for smaller screens */
    font-size: 0.9rem; /* Adjust font size for smaller screens */
  }

  .map iframe {
    height: 300px; /* Adjust map height for smaller screens */
  }
}


/* End */

/* Footer Section */

/* General footer styling */
footer {
  background-color: #222; /* Dark background for contrast */
  color: #f5f5f5; /* Light text for readability */
  padding: 40px 20px;
  text-align: center; /* Center text */
}

/* Container for footer content */
.container.footer {
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer content layout */
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-column {
  flex: 1;
  min-width: 200px; /* Ensure columns don't get too narrow */
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #007bff; /* Accent color */
}

.footer-column .contact-item {
  display: flex;
  /* align-items: center; */
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-column .contact-item i {
  font-size: 1.2rem; /* Icon size */
  color: #007bff; /* Accent color for icons */
  margin-right: 10px;
}

.footer-column .contact-item a {
  text-decoration: none;
  color: #f5f5f5;
  font-size: 0.9rem; /* Clear, readable font size */
}

.footer-column .contact-item a:hover {
  color: #007bff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: #007bff; /* Accent color on hover */
}

.social-media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-media .social-link {
  display: flex;
  align-items: center;
  color: #f5f5f5;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.social-media .social-link:hover {
  color: #007bff; /* Accent color on hover */
}

.social-icon {
  width: 30px; /* Standard icon size */
  height: 30px;
  margin-right: 10px;
}

/* Copyright section */
/* Enhanced copyright section */
.copyright {
  margin-top: 30px;
  font-size: 0.9rem;
  background: linear-gradient(90deg, rgba(0,123,255,1) 0%, rgba(0,123,255,0.1) 100%); /* Gradient background */
  padding: 10px 20px;
  border-radius: 8px; /* Rounded corners */
  color: white; /* Darker text for contrast */
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.copyright p {
  margin: 0;
  font-weight: 500; /* Slightly bolder text */
}

.copyright::before {
  content: "\u00A9"; /* Copyright symbol */
  font-size: 1.5rem; /* Larger symbol */
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #007bff; /* Accent color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .footer-column {
    text-align: center;
  }

  .social-media .social-link {
    font-size: 0.9rem;
  }

  .social-icon {
    width: 25px; /* Smaller icon size on smaller screens */
    height: 25px;
  }
  .copyright {
    padding: 10px;
    font-size: 0.8rem;
  }
}


/* End */

/* Underline effect for headings */

.section-title {
  text-align: center !important;
  font-weight: 700;
  font-size: 2rem;
  color: #007bff;
  margin: 0;
  animation: fadeIn 1s ease-out;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif; /* Modern, professional font */
  position: relative; /* For shadow positioning */
  display: inline-block;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 5px;
  background-color: #007bff; /* Accent color */
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: bottom right;
}

.section-title:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* End */

/* Form success message */

.success-message-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotateX(-15deg);
  transition: opacity 0.7s ease, transform 0.7s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  background: #ffffff;
  color: #000000;
  padding: 40px 60px;
  border-radius: 20px;
  text-align: center;
  z-index: 10;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  width: 80%;
  max-width: 500px;
  font-family: 'Poppins', sans-serif;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.success-message-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotateX(0deg);
  animation: float 3s ease-in-out infinite;
}

.success-message-visible h2 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #000000, #434343);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.success-message-visible p {
  font-size: 20px;
  margin-bottom: 0;
  font-weight: 500;
  letter-spacing: 1px;
  color: #333333;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background: linear-gradient(90deg, #000000, #434343);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translate(0%, 5%) translateY(-10px);
  }
  50% {
    transform: translate(10%, 10%) translateY(10px);
  }
}

/* End */