body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f4f8;
  color: #333;
  line-height: 1.6;
}
.skills {
  font-weight:bold;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  padding: 40px 20px;
  background-color: #1a237e;
  color: #ffffff;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.header h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 700;
}
.header p {
  font-size: 1.2em;
  font-weight: 400;
  opacity: 0.8;
}

.nav {
  background-color: #283593;
  padding: 10px 0;
  text-align: center;
  border-radius: 8px;
  margin-top: -20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.nav a:hover {
  background-color: #3949ab;
  border-radius: 8px;
}
.intlink{
  color:#283593;
  font-weight:bold;
}
.float-container {
  margin: 40px auto;
  
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.section {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.section h2 {
  color: #1a237e;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  margin-top: 0;
}
.img-container{
  width:25%;
  height:auto;
  float:left;
}
.profile {
  width:100%;
  height:auto;
  float:left;
  margin:0px;
}
.text-container{
  width:65%;
  float:left;
  height:auto;
  margin-left:2rem;
  margin-top:0.5rem;
}
.about-message {
  width:100%;
  height:auto;
}
.portfolio-item {
  float: left;
  width: 31%; /* For a 3-column layout, leaving space for margins */
  margin:1%;
  box-sizing: border-box; /* Includes padding and border in the element's total width */
  background-color: #f8f9fa;
  padding: 0px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

p{
margin-bottom:0px;
margin-top:0px;
padding:10px;
}

.portfolio-item img {
  float:left;
width:100%;
height:100%;
margin:0px;
box-sizing:border-box;
padding-bottom:15px;
border-radius:8px;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-item h3 {
  color: #3949ab;
  font-weight: 600;
  margin-top: 0;
  margin-bottom:0px;
  padding-left:10px;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* The clearfix hack to contain the floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Lightbox styles (same as before) */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 16px;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

#prev-btn {
    left: 0;
}

#next-btn {
    right: 0;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ccc;
}

/*styling for form*/

.form-group {
    float: left;
    width: 48%;
    margin-right: 4%;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.form-group:nth-child(2n) {
    margin-right: 0;
}

.form-group.full-width {
    width: 100%;
    margin-right: 0;
    /* float: right; */
}
.form-container {
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    overflow: hidden; /* Clearfix for the container */
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color:#3949ab;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

textarea {
    resize: vertical;
    height: 120px;
}
#message{
  width:75%;
}
button {
    width: 50%;
    padding: 12px;
    background-color: #1a237e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3949ab;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #1a237e;
  color: #ffffff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-top: 30px;
}

/* Responsive Design with Media Queries */
/* Tablet view */
@media (max-width: 768px) {
  .nav a {
      padding: 8px 15px;
  }
  .portfolio-item {
      width: 48%; /* Adjust to 2 columns */
      margin: 1%;
  }
      .gallery-item {
        width: 50%; /* 2 items per row on tablets */
    }
      .slider-btn {
        font-size: 35px;
        color:#f8f9fa;
        padding: 10px;
    }
    .img-container{
      width:40%;
      height:auto;
      float:left;
    }
    .profile {
      width:80%;
      float:left;
      height:auto;
    }
    .text-container{
      float:left;
      width:40%;
      padding:0px;
    }
    .about-message{
      padding:0px;
    }

}
/* Responsive adjustments */
@media (max-width: 500px) {
    .form-group {
        width: 100%;
        margin-right: 0;
        float: none;
    }
    #message{
      width:100%;
      float:none;
      text-align:left;
    }
    .text-container{
      width:100%;
      float:none;
      text-align:left;
      margin:0px;
      
    }
    .img-container{
      width:100%;
      float:none;
    }
    .profile {
      float:none;
      margin:10px;
    }

  }

/* Mobile view */
@media (max-width: 480px) {
  .header h1 {
      font-size: 2em;
  }
  .header p {
      font-size: 1em;
  }
  .nav a {
      display: block;
      margin: 5px 0;
  }
  .portfolio-item {
      width: 98%; /* Full width for a single column layout */
      margin: 1%;
  }
  .gallery-item {
        width: 100%; /* 1 item per row on mobile phones */
    }

    /* Adjust lightbox for smaller screens */
    #lightbox-image {
        max-width: 95%;
        max-height: 85%;
    }

    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .slider-btn {
        font-size: 35px;
        color:#1a237e;
        padding: 10px;
    }
}

