/* #region Hero Section */
.hero-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes animate-wght {
    to {
        font-weight: 500;
        color: var(--color-gray-800);
    }
}

.main-heading {
    font-size: var(--fs-4xl);
    font-weight: 100;
    margin-bottom: var(--spacing-lg);
    color: var(--color-gray-300);
    animation: animate-wght 1s ease forwards;
    transition: all 0.8s ease-in;
}

.logo-text {
    font-weight: 900;
}

.main-description {
    font-size: var(--fs-lg);
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 0;
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: var(--radius-full);
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    bottom: 30%;
    right: 25%;
    animation-delay: 3s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}
/* #endregion Hero Section */

/* #region Segment Structure */
.segment {
    padding: var(--spacing-2xl) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.segment-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
    margin-bottom: var(--spacing-md);
}

.segment-header:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.segment-header .text h2 {
    margin-bottom: var(--spacing-xs);
    color: var(--color-gray-800);
}

.segment-header .text p {
    color: var(--color-gray-600);
    margin: 0;
    font-size: var(--fs-sm);
}

.collapse-icon {
    font-size: var(--fs-xl);
    color: var(--color-primary);
    transition: var(--transition-base);
    width: 24px;
    text-align: center;
}

/* Icon rotation states */
.segment-header.collapsed .collapse-icon {
    transform: rotate(0deg);
}

.segment-header:not(.collapsed) .collapse-icon {
    transform: rotate(180deg);
}
/* #endregion Segment Structure */

/* #region Profile Area */
.profile-area {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2xl);
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-20px);
    padding: 0;
}

.profile-area.active {
    max-height: 2000px; /* Large enough to accommodate all profiles */
    opacity: 1;
    transform: translateY(0);
    padding: var(--spacing-lg) 0;
}
/* #endregion Profile Area */

/* #region Profile Cards */
.profile {
    --profile-height: 300px;
    max-width: 420px;
    width: 100%;
    min-width: 320px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.profile.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.profile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 2;
}

.profile-image {
    position: relative;
    height: calc(var(--profile-height) * 0.65);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image .vector-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 1;
}

.profile-image .bg-polygon {
    fill: var(--color-primary);
    opacity: 0.9;
}

.profile-image img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: center;
    z-index: 4;
    transition: var(--transition-base);
    opacity: 0;
}

.profile-image img.loaded {
    opacity: 1;
}

.profile:hover .profile-image img {
    transform: translateX(-50%) scale(1.05);
}
/* #endregion Profile Cards */

/* #region Profile Text Content */
.profile-text {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.profile-text .main {
    text-align: center;
}

.profile-text .name {
    color: var(--color-gray-800);
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.profile-text .designation {
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.profile-text .bio {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.profile-text .bio p {
    color: var(--color-gray-600);
    line-height: 1.5;
    font-size: var(--fs-sm);
    margin: 0;
    text-align: center;
}
/* #endregion Profile Text Content */

/* #region Image Placeholder */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gray-300), var(--color-gray-400));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-600);
    font-size: var(--fs-2xl);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    border-radius: 0;
}

.image-placeholder i {
    font-size: var(--fs-3xl);
}
/* #endregion Image Placeholder */

/* #region Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-4xl) var(--spacing-lg);
    color: var(--color-gray-500);
    width: 100%;
}

.empty-state i {
    font-size: var(--fs-4xl);
    margin-bottom: var(--spacing-lg);
    color: var(--color-gray-400);
}

.empty-state h3 {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
}

.empty-state p {
    color: var(--color-gray-500);
    font-size: var(--fs-base);
}
/* #endregion Empty State */

/* #region Loading States */
.profile-skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-profile {
    opacity: 0.6;
    pointer-events: none;
}

.loading-profile .profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 5;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
/* #endregion Loading States */

/* #region Responsive Design */
@media (max-width: 768px) {
    .segment {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .segment-header {
        padding: var(--spacing-md);
    }
    
    .profile-area {
        gap: var(--spacing-lg);
        justify-content: center;
    }
    
    .profile {
        --profile-height: 260px;
        min-width: 280px;
        max-width: 100%;
    }
    
    .profile-text {
        padding: var(--spacing-md);
    }

    .hero-container {
        min-height: 50vh;
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .segment {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .profile {
        --profile-height: 240px;
        min-width: 260px;
    }
    
    .segment-header .text h2 {
        font-size: var(--fs-xl);
    }

    .profile-area {
        gap: var(--spacing-md);
    }

    .main-heading {
        font-size: var(--fs-3xl);
    }

    .main-description {
        font-size: var(--fs-base);
    }
}
/* #endregion Responsive Design */

/* #region Accessibility & Focus States */
.segment-header:focus,
.profile:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.segment-header:focus-visible,
.profile:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .profile {
        border: 2px solid var(--color-gray-800);
    }
    
    .segment-header {
        border: 2px solid var(--color-gray-600);
    }
    
    .collapse-icon,
    .profile-text .designation {
        color: var(--color-primary-dark);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .profile,
    .profile-area,
    .segment-header,
    .floating-shape,
    .hero-content {
        animation: none;
        transition: none;
    }
    
    .profile:hover {
        transform: none;
    }
}
/* #endregion Accessibility & Focus States */