/* SECTION SPACING */
#about-section{
    padding:50px 8%;
}

/* =========================
   PRINCIPAL SECTION
========================= */

.principal-card{
    display:flex;
    gap:50px;
    align-items:center;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding:50px;
    border-radius:24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideInFromLeft 0.8s ease-out forwards, subtlePulse 3s ease-in-out infinite 1s;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient accent */
.principal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #db1a1a, #ff6b6b);
    border-radius: 24px 0 0 24px;
}

.principal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 25px 70px rgba(219, 26, 26, 0.15);
  }
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Principal Image */
.principal-img {
    position: relative;
    flex-shrink: 0;
    animation: floatUpDown 4s ease-in-out infinite;
}

.principal-img img{
    width:300px;
    height: 350px;
    border-radius:20px;
    object-fit:cover;
    border: 5px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.principal-card:hover .principal-img img {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Animated border glow */
.principal-img::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid transparent;
    border-radius: 28px;
    background: linear-gradient(45deg, #db1a1a, #ff6b6b, #3b82f6, #db1a1a) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.principal-card:hover .principal-img::after {
    opacity: 1;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Decorative frame around image */
.principal-img::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid #db1a1a;
    border-radius: 28px;
    opacity: 0.3;
    z-index: -1;
}

/* Principal Content */
.principal-content{
    flex:1;
}

.principal-content h2{
    font-size:36px;
    margin-bottom:15px;
    font-weight:700;
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
}

.principal-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #db1a1a, #ff6b6b);
    border-radius: 2px;
}

.principal-content h3{
    font-size:24px;
    color:#2563eb;
    margin-top: 20px;
    font-weight: 600;
}

.designation{
    font-weight:600;
    margin-bottom:20px;
    color:#666;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.principal-text{
    line-height:1.9;
    color:#555;
    font-size: 16px;
    margin-top: 25px;
}


/* =========================
   FEATURED SECTION
========================= */

#about-section h3{
    text-align:center;
    font-size:32px;
    margin-bottom:40px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* Cards Layout */
.about-card{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

/* Individual Card */
.info-card{
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding:30px;
    border-radius:16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Top accent line */
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #2563eb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

/* Hover Effect */
.info-card:hover{
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.info-card h3{
    margin-bottom:15px;
    color:#2563eb;
    font-size: 22px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding-left: 35px;
}

/* Icon before heading */
.info-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 6px;
}

.info-card p{
    font-size:15px;
    line-height:1.8;
    color:#555;
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width:1100px){
    .principal-card {
        padding: 40px;
        gap: 35px;
    }
    
    .principal-img img {
        width: 260px;
        height: 300px;
    }
}

@media(max-width:900px){

.principal-card{
    flex-direction:column;
    text-align:center;
    padding: 40px 30px;
}

.principal-card::before {
    width: 100%;
    height: 5px;
    top: 0;
    left: 0;
    border-radius: 24px 24px 0 0;
}

.principal-img img{
    width: 220px;
    height: 260px;
}

.principal-content h2 {
    font-size: 30px;
}

.principal-content h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.principal-content h3 {
    font-size: 20px;
}

.about-card {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

}

@media(max-width:600px){
    .principal-card {
        padding: 30px 25px;
        gap: 30px;
    }
    
    .principal-img img {
        width: 180px;
        height: 220px;
        border-radius: 16px;
    }
    
    .principal-content h2 {
        font-size: 26px;
    }
    
    .principal-content h3 {
        font-size: 18px;
    }
    
    .principal-text {
        font-size: 14px;
    }
    
    .info-card {
        padding: 25px;
    }
    
    .info-card h3 {
        font-size: 20px;
    }
}

@media(max-width:400px){
    .principal-img img {
        width: 150px;
        height: 180px;
    }
    
    .principal-content h2 {
        font-size: 22px;
    }
}