/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color:linear-gradient(to right, #053455 0%, #75081f 100%); ;/* Dark blue background */
    color: #f8f8f8;
    animation: fadeIn 1s ease-in-out;
  }
html {
    scroll-behavior: smooth; /* Enable smooth scrolling */
}
body {
    font-family: 'Roboto', sans-serif; /* Fallback to sans-serif if Roboto is not available */
    font-weight: 200;}
   
/* Header Styles */
header {
    position: relative; /* Position relative for absolute positioning of nav */
    color: #ecf0f1; /* Light text color */
    display: flex; /* Use flexbox for centering */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    text-align: center; /* Center text */
}

header h1 {
    font-size: 10vw; /* Responsive font size based on viewport width */
    margin-bottom: 0; /* Remove margin below the name */
    z-index: 1; /* Ensure the name is above the background */
}

nav {
    position: fixed; /* Change to fixed to keep it at the top */
    top: 0px; /* Space from the top */
    left: 50; /* Align to the left */
    width: 100%; /* Set the width of the nav */
    z-index: 2; /* Higher z-index to be above other content */
    padding: 10px; /* Optional: Add padding for better spacing */
    background-color: black;
}

nav ul {
    list-style: none; /* Remove bullet points */
    display: flex; /* Use flexbox for horizontal layout */
    justify-content: center; /* Center the navigation items */
    padding: 10px; 
}

nav ul li {
    margin: 0 15px; /* Space between navigation items */
    position: relative; /* Position relative for the pseudo-element */
}

nav ul li a {
    color: #ffffff; /* Link color */
    text-decoration: none; /* Remove underline from links */
    font-weight: bold; /* Make links bold */
    transition: color 0.3s; /* Smooth transition for color change */
}

nav ul li a::after {
    content: ''; /* Create a pseudo-element */
    display: block; /* Make it a block element */
    height: 2px; /* Height of the underline */
    background: #ffffff; /* Color of the underline */
    width: 0; /* Start with width 0 */
    transition: width 0.3s ease; /* Smooth transition for width */
    position: absolute; /* Position it absolutely */
    left: 0; /* Align to the left */
    bottom: -5px; /* Position it below the text */
}

nav ul li a:hover::after {
    width: 100%; /* Expand to full width on hover */
}
/* Intro Section Styles */
#about {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space between left and right sides */
    align-items: center; /* Center items vertically */
    padding: 40px; /* Padding around the section */
    margin-top: 60px;
   
}
.left-side {
    flex: 1; /* Take up 1 part of the flex container */
    text-align: center; /* Center align text */
    background: linear-gradient(to right, #75081f 0%, #053455 100%);
    padding: 40px; /* Padding inside the div */
    border-radius: 10px; /* Rounded corners */
    margin-right: 50px; /* Space between left and right sides */
    margin-top: 50px; /* Space from the top */
    max-width: 400px; /* Set a maximum width for the left side */
    width: 100%; /* Allow it to be responsive */
}
.left-side .profile-pic {
    width: 250px; /* Set a fixed width for the profile picture */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10%; /* Make the image circular */
    margin-bottom: 20px; /* Space below the image */
}

.left-side h1 {
    font-size: 2.5em; /* Larger font size for the name */
    margin-bottom:0px; /* Space below the name */
    color: white;
    background: linear-gradient(to right, #75081f 0%, #053455 100%);    
    margin-top: 10px;
}

.left-side h2, .left-side h3 {
    margin: 5px 0; /* Space above and below subheadings */
    color:white;
    background-color:#ffffff;
}

.slideshow-container {
    position: relative; /* Position relative for absolute positioning of buttons */
    max-width: 200px; /* Limit the width of the slideshow */
    margin: auto; /* Center the slideshow */
    overflow: hidden; /* Hide overflow to show only one image */
    height: auto; /* Set a fixed height for the slideshow */
}

.slide {
    display: none; /* Hide all images by default */
    width: auto; /* Set image width to 250px */
    height: 350px; /* Set image height to 250px */
}

.active {
    display: block; /* Show the active image */
}

.right-side {
    flex: 2; /* Take up 2 parts of the flex container */
    padding-left: 10px; /* Space between left and right sides */
    text-align: center;
    max-height: 100px;
}

.right-side h2 {
    margin-top: 0;
    font-size: 8em; /* Font size for the title */
    margin-bottom: 10px; /* Space below the title */
    color:#ffffff;
}

.developer-titles {
    position: relative; /* Position relative for absolute positioning of titles */
    overflow: hidden; /* Hide overflow to create a sliding effect */
    width: 100%; /* Full width */
    height: 2.5em; /* Set a height to ensure titles are visible */
}

.frontend, .fullstack {
    font-size: 2.5em; /* Increase font size for both titles */
    margin: 0; /* Remove margin to avoid spacing issues */
    position: absolute; /* Position absolute for sliding effect */
    transition: transform 0.5s ease; /* Smooth transition for sliding */
    width: 100%; /* Ensure both titles take full width */
}

.frontend {
    transform: translateX(0); /* Start in view */
    color: #ffffff;
}

.fullstack {
    transform: translateX(100%); /* Start off-screen to the right */
    color: #ffffff;
}

.quotation {
    color: #ffffff; /* White text color */
    padding: 20px; /* Padding around the text */
    margin: 20px 0; /* Space above and below the quotation */
    font-style: italic; /* Italicize the text */
    text-align: center; /* Center align the text */
    font-size: 1.2em; /* Slightly larger font size */
    
}

.quotation p {
    margin: 20px; /* Remove default margin from paragraph */
    color: #ffffff;
}

/* General Section Styling */
#projects {
    padding: 60px 20px;
    background-color: #edecec; /* Light background */
}

/* Section Title */
#projects h2 {
    font-size: 8.5rem;
    color: #063463; /* Deep blue */
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Project Container */
.project {
    background:#edecec;
    border-radius: 12px;
    padding: 25px;
    margin: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Project Title */
.project a {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Keeps the default text color */
}

.project h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}


/* Project Description */
.project p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Hover Effects */
.project:hover {
    transform: translateY(-5px); /* Lifting effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Grid */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.project img {
    width: 100%;  /* Ensures the image takes full width of the container */
    height: 180px; /* Adjusted height for consistency */
    object-fit: cover; /* Ensures the image maintains its aspect ratio */
    border-radius: 8px; /* Keeps the rounded edges */
}


*, *:before, *:after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    background: linear-gradient(to right, #053455 0%, #75081f 100%);
    font-size: 15px;
  }
  
  body, button, input {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1.4px;
  }  /* General Styles */

  
  .contact-form-container {
    margin-left: 175px;
    background: #ffffff;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 1500px;
    width: 80%;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
  }
  
  h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
  }
  
  p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
  }
    
  /* Animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .resume-contact {
    display: flex;
    justify-content: center; /* Center items horizontally */
    gap: 200px; /* Spacing between buttons */
    margin: 15px;
}

.resume-btn, .lets-talk-btn {
    display: inline-block;
    background: #007bff; /* Blue color, change if needed */
    color: #fff;
    padding: 50px 80px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.resume-btn i, .lets-talk-btn i {
    margin-right: 8px;
    font-size: large;
}

.resume-btn:hover, .lets-talk-btn:hover {
    background:linear-gradient(to right, #053455 0%, #75081f 100%); ; /* Darker blue on hover */
}

  
  footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Card Container */
.card-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
/* Individual Cards */
.info-card {
  background: #9e9e9e; /* Dark grey for contrast */
  border-radius: 12px;
  padding: 20px;
  width: 520px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
}

/* Card Hover Effect */
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  background:#c80a0a ;
}

/* Titles inside Cards */
.card-title {
  font-size: 1.5rem;
  color:black;
  margin-bottom: 10px;
}

/* Paragraph Text */
.card-text {
  font-size: 1rem;
  color: black;
  line-height: 1.6;
}




/* Tablet styles */
@media (min-width: 768px) and (max-width: 1024px) {
  body {
      padding: 0 20px;
  }

  header {
      text-align: center;
  }

  .slideshow-container {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 500px; /* Adjust height for tablet */
  }

  .slide {
      max-width: 100%;
      height: auto;
      display: none; /* Hide all slides initially */
  }

  .active {
      display: block; /* Show the active slide */
  }

  #about {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .left-side, .right-side {
      width: 100%; /* Full width on tablet */
      text-align: center;
  }

  .developer-titles {
      display: flex;
      justify-content: center;
      margin-top: 10px;
  }

  .developer-titles h3 {
      margin: 0 10px;
      transition: transform 0.5s ease;
  }

  .card-container {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .info-card {
      width: 90%; /* Card width for tablet */
      margin: 10px 0;
      padding: 20px;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .projects-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* Two columns for tablet */
      gap: 20px;
  }

  .project {
      text-align: center;
  }

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

  #resume {
      text-align: center;
  }

  .resume-contact {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .resume-btn, .lets-talk-btn {
      margin: 10px 0;
      padding: 10px 20px;
      background: #007bff;
      color: #fff;
      text-decoration: none;
      border-radius: 5px;
      transition: background 0.3s;
  }

  .resume-btn:hover, .lets-talk-btn:hover {
      background: #007bff;
  }
}


@media (max-width: 767px) {
  body {
      padding: 0 10px;
  }
  #projects h2 {
    font-size: 4.5rem;
}
.right-side h2 {
    font-size: 4em;
}
  header {
      text-align: center;
  }

  .slideshow-container {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 200px; /* Adjust height for mobile */
  }

  .slide {
      max-width: 100%;
      height: auto;
      display: none; /* Hide all slides initially */
  }

  .active {
      display: block; /* Show the active slide */
  }

  #about {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .left-side, .right-side {
      width: 100%;
  }
  

  .developer-titles {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 10px;
      height: 50px;
  }

  .developer-titles h3 {
      margin: 5px 0;
      transition: transform 0.5s ease;
  }

  .card-container {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .info-card {
      width: 100%; /* Full width for mobile */
      margin: 10px 0;
      padding: 15px;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .projects-container {
      display: flex;
      flex-direction: column;
      gap: 15px;
  }

  .project {
      text-align: center;
  }

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

  #resume {
      text-align: center;
  }

  .resume-contact {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .resume-btn, .lets-talk-btn {
      width: 100%; /* Full width for buttons */
      margin: 10px 0;
      padding: 10px 15px;
      background: #007bff;
      color: #fff;
      text-decoration: none;
      border-radius: 5px;
      text-align: center;
      transition: background 0.3s;
  }

  .resume-btn:hover, .lets-talk-btn:hover {
      background: #0056b3;
  }
}
