/* =====================================================
    tcet_nccdomains.css - Custom styles for TCET NCC Domains page
    ===================================================== */

/* ========== Additional Visual Enhancements ========== */

/* Add rank badges for different positions */
/* .profile-card::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #f39c12, #e67e22);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 3; 
}*
/* Animation for section appearances - fade in from bottom */
.team-section > * {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation delays for profile cards */
.profile-card:nth-child(odd) {
  animation-delay: 0.1s;
}

.profile-card:nth-child(even) {
  animation-delay: 0.2s;
}

/* Enhanced focus states for accessibility - blue outline */
.profile-card:focus-within {
  outline: 3px solid #007bff;
  outline-offset: 2px;
}

/* Smooth scrolling behavior for anchor links */
html {
  scroll-behavior: smooth;
}

/* ========== General Layout ========== */

/* Main team section container with gradient background and shadow */
.team-section {
  padding: 60px 20px;
  max-width: 85vw;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  margin: 20px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Team container max width constraint */
.team-container {
  max-width: 85vw;
  margin: 0 auto;
}

/* Team heading styling with shadow effect */
.team-heading {
  font-weight: bold;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========== Profile Cards ========== */

/* Base profile card styling with rounded corners and gradient background */
.profile-card {
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  text-align: center;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Shimmer effect overlay on hover */
.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.15), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

/* Army wing specific shimmer effect - red */
.army-wing .profile-card::before {
  background: linear-gradient(90deg, transparent, rgba(194, 44, 61, 0.15), transparent);
}

.profile-card:hover::before {
  left: 100%;
}

/* Enhanced shadow and border on hover */
.profile-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-color: #007bff;
}

/* Army wing specific styling - red accent border */
.army-wing .profile-card:hover {
  border: 2px solid #dc3545;
}

.army-wing .profile-card:hover {
  border-color: #dc3545;
  box-shadow: 0 15px 35px rgba(220, 53, 69, 0.3);
}

/* Navy wing specific styling - blue accent border */
.wing-heading-navy + .row .profile-card {
  border-left: 4px solid #007bff;
}

.wing-heading-navy + .row .profile-card:hover {
  border-color: #007bff;
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3);
}

/* Profile image styling with scale animation on hover */
.profile-img {
  border-radius: 15px;
  width: auto;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid #fff;
  position: relative;
  z-index: 2;
}

.profile-card:hover .profile-img {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Cadet name styling - bold and prominent */
.cadet-name {
  font-weight: 900;
  font-size: 1.2rem;
  margin-top: 15px;
  color: #2c3e50;
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 2;
}

/* Cadet role styling - gradient text effect */
.cadet-role {
  font-size: 0.95rem;
  color: #be32be;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #3498db, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

/* ========== Development Section ========== */
/* Container for design and development content */
.dd-container {
  max-width: 80vw;
  margin: 0 auto;
  /* background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%); */
  padding: 40px 20px;
  border-radius: 25px;
  /* box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); */
}

/* Image styling in development section */
.dd-image img {
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dd-img{
  height: auto;
  width: 100%;
  object-fit: cover;
}

/* Rounded corners for Bootstrap elements */
.rounded {
  border-radius: var(--bs-border-radius) !important;
  height: auto;
  width: 100vw;
  padding: 2px;
}

/* Custom gutter spacing for Bootstrap grid in DD section */
.g-4, .gy-4 {
  --bs-gutter-y: 4.5rem;
}

.g-4, .gx-4 {
  --bs-gutter-x: 1.5rem;
}

/* ========== Wing Section Layout ========== */

/* Flex layout for wing sections - responsive wrapping */
.wing-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========== Section Headings ========== */

/* Background heading for domain sections - dark gradient */
.bg-heading-domain {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Army wing heading with red accent and gradient background */
.wing-heading-army {
  display: inline-block;
  padding: 12px 25px;
  margin: 25px 0 15px;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 6px solid #e74c3c;
  background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
  color: #c0392b;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.2);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.wing-heading-army:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Navy wing heading with blue accent and gradient background */
.wing-heading-navy {
  display: inline-block;
  padding: 12px 25px;
  margin: 25px 0 15px;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 6px solid #3498db;
  background: linear-gradient(135deg, #a8e6cf 0%, #74b9ff 100%);
  color: #2c3e50;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.2);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.wing-heading-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* ========== Profile Cards Flex Container ========== */

/* Flex container for profile cards - responsive grid */
.profile-cards-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 100%;
}

.profile-cards-flex .profile-card {
  flex: 0 0 auto;
  width: 280px;
  margin: 0;
}
/* ========== Modal Styles ========== */

/* Full-screen modal overlay for image viewing */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

/* Modal content image styling */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Modal close button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Flex containers for tank and ship images */
.tank-images-flex, .ship-images-flex {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Image styling for tank and ship galleries */
.tank-images-flex img, .ship-images-flex img {
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: contain !important;
  max-width: 49%;
  max-height: 500px;
  width: 100%;
  height: auto;
}

.tank-images-flex img:hover, .ship-images-flex img:hover {
  transform: scale(1.05);
}

/* ========== Responsive Design ========== */

/* Medium screens and up: adjust container max width */
@media (min-width: 768px) {
  .container-md, .container-sm {
    max-width: 80vw;
  }
  .team-section {
    padding: 80px 30px;
  }
  .profile-cards-flex {
    gap: 2rem;
  }
  .profile-cards-flex .profile-card {
    width: 300px;
  }
}

/* Tablet and mobile: adjust profile card sizes */
@media (max-width: 768px) {
  .profile-card {
    padding: 20px;
    border-radius: 15px;
  }
  .profile-img {
    height: 260px;
    border-radius: 12px;
  }
  .cadet-name {
    font-size: 1.1rem;
  }
  .cadet-role {
    font-size: 0.85rem;
  }
  .bg-heading-domain {
    font-size: 1.6rem;
    padding: 12px 20px;
  }
  .wing-heading-army, .wing-heading-navy {
    font-size: 1.2rem;
    padding: 10px 20px;
  }
  .team-section {
    padding: 40px 15px;
    max-width: 95vw;
  }
  .profile-cards-flex {
    gap: 1rem;
  }
  .profile-cards-flex .profile-card {
    width: 250px;
  }
}

/* Small mobile: further reduce sizes */
@media (max-width: 576px) {
  .profile-card {
    padding: 15px;
    border-radius: 12px;
  }
  .profile-img {
    height: 140px;
    border-radius: 10px;
  }
  .cadet-name {
    font-size: 1rem;
  }
  .cadet-role {
    font-size: 0.8rem;
  }
  .bg-heading-domain {
    font-size: 1.4rem;
    padding: 10px 15px;
  }
  .wing-heading-army, .wing-heading-navy {
    font-size: 1.1rem;
    padding: 8px 15px;
  }
  .team-section {
    padding: 30px 10px;
  }
  .profile-cards-flex {
    gap: 0.75rem;
  }
  .profile-cards-flex .profile-card {
    width: 200px;
  }
}

/* Extra small screens - minimal sizing */
@media (max-width: 480px) {
  .profile-card {
    padding: 12px;
  }
  .profile-img {
    height: 120px;
  }
  .cadet-name {
    font-size: 0.9rem;
  }
  .cadet-role {
    font-size: 0.75rem;
  }
  .bg-heading-domain {
    font-size: 1.2rem;
  }
  .wing-heading-army, .wing-heading-navy {
    font-size: 1rem;
  }
  .profile-cards-flex {
    gap: 0.5rem;
  }
  .profile-cards-flex .profile-card {
    width: 180px;
  }
}

