.team-list img {
  width: 50%;
}

.team-list .content {
  width: 50%;
}

.team-list .content .follow {
  position: absolute;
  bottom: 24px;
}

.team-list:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

.team-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}


.team, .team-list {
  -webkit-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
}

.team .content .title, .team-list .content .title {
  font-size: 18px;
}

.team .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.team .member-position, .team .team-social {
  position: absolute;
  bottom: -35px;
  right: 0;
  left: 0;
  margin: auto 10%;
  z-index: 99;
}

.team .team-social {
  bottom: 40px;
  opacity: 0;
  -webkit-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
}

.team:hover {
  -webkit-transform: translateY(-7px);
          transform: translateY(-7px);
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

.team:hover .overlay {
  opacity: 0.6;
}

.team:hover .team-social {
  opacity: 1;
}

@media (max-width: 768px) {
  .team-list img,
  .team-list .content {
    width: 100%;
    float: none !important;
  }
  .team-list img .follow,
  .team-list .content .follow {
    position: relative;
    bottom: 0;
  }
}

.social-icon.social li a {
    color: #adb5bd;
    border-color: #adb5bd;
}
.social-icon li a {
    color: #35404e;
    border: 1px solid #35404e;
    display: inline-block;
    height: 32px;
    text-align: center;
    font-size: 15px;
    width: 32px;
    line-height: 30px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}
.rounded {
    border-radius: 5px !important;
}

.para-desc {
    max-width: 600px;
}
.text-muted {
    color: #8492a6 !important;
}

.section-title .title {
    letter-spacing: 0.5px;
    font-size: 30px;
}


/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero section styling */
#main-content {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Overview section */
.container > .row:first-of-type {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Headings enhancement */
h2 {
    color: #c8102e;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f1be48;
    display: inline-block;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

h3 {
    color: #333;
    margin-top: 30px;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: #c8102e;
    border-radius: 3px;
}

/* Enhanced lists */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding: 12px 0 12px 35px;
    position: relative;
    line-height: 1.8;
    transition: transform 0.3s ease;
}

ul li:hover {
    transform: translateX(10px);
}

ul li:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #c8102e;
    font-size: 12px;
    transition: transform 0.3s ease;
}

ul li:hover:before {
    transform: scale(1.3);
}

/* Team member cards enhancement */
.col-lg-2.col-md-2.col-sm-3 {
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.col-lg-2.col-md-2.col-sm-3:nth-child(1) { animation-delay: 0.1s; }
.col-lg-2.col-md-2.col-sm-3:nth-child(2) { animation-delay: 0.2s; }
.col-lg-2.col-md-2.col-sm-3:nth-child(3) { animation-delay: 0.3s; }
.col-lg-2.col-md-2.col-sm-3:nth-child(4) { animation-delay: 0.4s; }
.col-lg-2.col-md-2.col-sm-3:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col-lg-2.col-md-2.col-sm-3 .text-center {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.col-lg-2.col-md-2.col-sm-3 .text-center:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(200, 16, 46, 0.2);
}

.col-lg-2.col-md-2.col-sm-3 img {
    border-radius: 50%;
    border: 5px solid #f1be48;
    transition: all 0.4s ease;
    margin: 15px auto;
    display: block;
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    object-fit: cover;
    object-position: center;
}

.col-lg-2.col-md-2.col-sm-3:hover img {
    transform: rotate(5deg) scale(1.1);
    border-color: #c8102e;
}

.col-lg-2.col-md-2.col-sm-3 h4.title {
    color: #c8102e;
    font-weight: 600;
    margin-top: 15px;
    font-size: 18px;
}

/* Team Members section */
#teammembers {
    margin-top: 60px;
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.section-title .title {
    font-size: 42px;
    font-weight: 700;
    color: #c8102e;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title .title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c8102e, #f1be48);
    border-radius: 2px;
}

/* Document links styling */
#weeklyreports a, #designdocuments a {
    display: inline-block;
    background: white;
    padding: 15px 30px;
    margin: 10px 10px 10px 0;
    border-radius: 8px;
    color: #c8102e;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

#weeklyreports a:before, #designdocuments a:before {
    content: '📄';
    margin-right: 10px;
    font-size: 18px;
}

#weeklyreports a:after, #designdocuments a:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(241, 190, 72, 0.3), transparent);
    transition: left 0.5s ease;
}

#weeklyreports a:hover, #designdocuments a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
    color: #a00d26;
}

#weeklyreports a:hover:after, #designdocuments a:hover:after {
    left: 100%;
}

/* Document sections */
#weeklyreports, #designdocuments {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 1s ease-in;
}

/* Navbar animation */
.navbar-menu {
    animation: slideDown 0.5s ease-out;
}
.navbar-menu-button {
    content: none !important;
    border: none !important;
}


@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navbar link hover effects */
.navbar-nav li a {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f1be48;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav li a:hover:after {
    width: 80%;
}

/* Pulse animation for home icon */
.navbar-nav li:first-child a {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hide navigation arrows */
.navbar-nav li a:after,
.navbar-menu .navbar-nav > li > a:hover:before,
.navbar-menu .navbar-nav > li > a:focus:before,
.navbar-menu .navbar-nav > li.active > a:before {
    content: '' !important;
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title .title {
        font-size: 32px;
    }
    
    .container > .row:first-of-type {
        padding: 20px;
    }
    
    #weeklyreports a, #designdocuments a {
        display: block;
        margin: 10px 0;
    }
}
