:root {
    --primary: #C00000;
    --secondary: #FFFFFF;
    --accent: #8B0000;
    --text: #333333;
    --bg: #F8F9FA;
    --light: #FFFFFF;
    --dark: #1A1A1A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Breadcrumb */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--light);
    padding: 20px 0;
}

.breadcrumb-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-section .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-section .breadcrumb-item.active {
    color: var(--light);
}

/* Sidebar */
.sidebar {
    background: var(--light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 20px;
}

.sidebar h5 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background: var(--primary);
    color: var(--light);
}

/* Header */
.header {
    background: var(--light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-top {
    background: var(--primary);
    color: var(--light);
    padding: 8px 0;
}

@media (max-width: 992px) {
    .header-top .row > div {
        text-align: center;
    }
    
    .header-top h1 {
        font-size: 20px !important;
    }
    
    .header-top p {
        font-size: 12px !important;
    }
    
    .header-top img {
        width: 50px !important;
    }
}

.header-main {
    padding: 15px 0; /* Increase padding a bit for breathing room */
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.2; /* Make sure line height is good */
}

.logo p {
    margin: 0;
    line-height: 1.2;
}

/* Navbar Customization */
.navbar {
    padding: 0;
    flex-wrap: nowrap; /* Prevent wrapping on desktop */
}

.navbar-nav .nav-link {
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 12px !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Active Link Indicator */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin-top: 0;
    transition: all 0.3s ease;
    min-width: 220px;
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--primary);
    color: var(--light);
    padding-left: 25px;
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .navbar {
        flex-wrap: wrap;
    }
    
    .navbar-collapse {
        background: var(--light);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding: 0 0 0 15px;
        background: #f9f9f9;
    }
    
    .dropdown-item {
        padding: 8px 15px;
        border-bottom: 1px solid #eee;
    }
    
    /* Mobile Logo adjustments */
    .logo h1 {
        font-size: 20px;
    }
    
    .logo p {
        font-size: 11px;
    }
}

/* Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--light);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--light);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    font-weight: 700;
}

/* Cards */
.card {
    background: var(--light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-body {
    padding: 25px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Related Pages */
.related-pages {
    background: var(--light);
    padding: 40px 0;
}

.related-pages h4 {
    color: var(--primary);
    margin-bottom: 20px;
}

/* Animation Enhancements */
.card-animated {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Image Animation */
img {
    transition: transform 0.4s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Faculty Profile Page Styles - New Animated Design */
.faculty-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    overflow-x: hidden;
}

/* Hero Section */
.faculty-hero {
    position: relative;
    padding: 60px 0 100px;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #fff;
    bottom: 0;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: var(--primary);
    bottom: -50px;
    right: 20%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(0, -50px) rotate(0deg);
    }
    75% {
        transform: translate(-30px, -30px) rotate(-5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Animated Breadcrumb */
.breadcrumb-animated {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    animation: slideDown 0.8s ease-out;
}

.breadcrumb-animated .crumb {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-animated .crumb:hover {
    color: #fff;
}

.breadcrumb-animated .crumb.active {
    color: #fff;
    font-weight: 600;
}

.breadcrumb-animated .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* Hero Main Content */
.hero-main {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-image-container {
    position: relative;
    flex-shrink: 0;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.image-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    border-radius: 50%;
    animation: rotate 4s linear infinite;
    opacity: 0.5;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.profile-image {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(192, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(192, 0, 0, 0);
    }
}

.profile-image-placeholder {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    animation: pulse 3s ease-in-out infinite;
}

.profile-image-placeholder i {
    font-size: 100px;
    color: rgba(255, 255, 255, 0.5);
}

.status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    z-index: 3;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.status-badge .pulse {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.status-badge .text {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
}

/* Profile Info */
.profile-info {
    flex: 1;
    min-width: 300px;
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.profile-name {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-role {
    font-size: 24px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.profile-dept {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 30px;
}

.profile-dept i {
    color: var(--primary);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, rgba(192,0,0,0.3) 0%, rgba(139,0,0,0.2) 100%);
    border-color: var(--primary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.stat-icon i {
    color: #fff;
    font-size: 22px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Section */
.faculty-content {
    position: relative;
    margin-top: -50px;
    padding-bottom: 100px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

/* Card Animations */
.card-animated {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 0.6s ease-out both;
}

.card-animated:nth-child(1) { animation-delay: 0.1s; }
.card-animated:nth-child(2) { animation-delay: 0.2s; }
.card-animated:nth-child(3) { animation-delay: 0.3s; }

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon i {
    color: #fff;
    font-size: 22px;
}

.card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.card-body {
    padding: 30px;
}

/* About Card */
.about-card {
    margin-bottom: 30px;
}

.about-text {
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    font-size: 16px;
}

.no-bio {
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 30px;
    font-style: italic;
}

/* Details Card */
.details-card-2 .details-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.detail-row:hover {
    background: rgba(192,0,0,0.1);
    transform: translateX(10px);
}

.detail-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.detail-left i {
    color: var(--primary);
    font-size: 18px;
}

.detail-right {
    color: #fff;
    font-weight: 600;
    text-align: right;
}

/* Contact Card */
.contact-card-2 {
    margin-bottom: 30px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-link:last-child {
    margin-bottom: 0;
}

.contact-link:hover {
    background: rgba(192,0,0,0.1);
    border-color: var(--primary);
    transform: translateX(10px);
}

.contact-link:hover .arrow {
    transform: translateX(5px);
}

.contact-icon-wrapper {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-wrapper i {
    color: #fff;
    font-size: 20px;
}

.contact-details {
    flex: 1;
}

.contact-details .label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-details .value {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.arrow {
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(192, 0, 0, 0.4);
}

.back-btn i {
    transition: all 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-5px);
}

/* Keyframe Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-main {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-name {
        font-size: 38px;
    }
    
    .profile-role {
        font-size: 20px;
    }
    
    .profile-dept {
        justify-content: center;
    }
    
    .quick-stats {
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .detail-right {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .faculty-hero {
        padding: 40px 0 80px;
    }
    
    .profile-image, .profile-image-placeholder {
        width: 220px;
        height: 220px;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .profile-role {
        font-size: 18px;
    }
    
    .stat-item {
        padding: 15px 20px;
    }
    
    .stat-value {
        font-size: 22px;
    }
}

/* Department Faculty Cards */
.faculty-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
}

.faculty-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 25px 50px -12px rgba(192, 0, 0, 0.25) !important;
}

.faculty-img-wrapper {
    width: 120px;
    height: 120px;
    position: relative;
}

.faculty-img-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    z-index: 0;
    animation: rotateGlow 3s linear infinite;
}

.faculty-img-wrapper img {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-img-wrapper img {
    transform: scale(1.1);
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }
    .nav-links {
        display: none;
    }
}

/* HOD Desk - New Animated Design */
.hod-desk-section {
    position: relative;
    overflow: hidden;
}

.hod-desk-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(192, 0, 0, 0.15);
    border: 1px solid rgba(192, 0, 0, 0.1);
    position: relative;
}

.hod-desk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.hod-desk-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
}

/* HOD Photo Section */
.hod-photo-section {
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hod-photo-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: floatCircle 8s ease-in-out infinite;
}

.hod-photo-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: floatCircle 10s ease-in-out infinite reverse;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

.hod-photo-wrapper {
    position: relative;
    z-index: 1;
}

.hod-photo-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    border-radius: 50%;
    animation: rotateHodGlow 4s linear infinite;
}

@keyframes rotateHodGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hod-photo {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255,255,255,0.4);
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: hodPhotoPulse 3s ease-in-out infinite;
}

.hod-photo-placeholder {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid rgba(255,255,255,0.4);
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: hodPhotoPulse 3s ease-in-out infinite;
}

.hod-photo-placeholder i {
    font-size: 90px;
    color: rgba(255,255,255,0.6);
}

@keyframes hodPhotoPulse {
    0%, 100% {
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 20px 70px rgba(0,0,0,0.4), 0 0 0 15px rgba(255,255,255,0.15);
    }
}

.hod-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.hod-badge .badge-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(192, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(192, 0, 0, 0);
    }
}

.hod-badge .badge-icon i {
    color: #fff;
    font-size: 12px;
}

.hod-badge .badge-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
}

.hod-info {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 30px;
}

.hod-name {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.hod-designation {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    margin-bottom: 15px;
}

.hod-qualification {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hod-qualification i {
    color: rgba(255,255,255,0.7);
}

/* HOD Message Section */
.hod-message-section {
    padding: 50px 50px;
    position: relative;
}

.hod-message-header {
    margin-bottom: 30px;
}

.hod-message-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(192, 0, 0, 0.1), rgba(139, 0, 0, 0.1));
    border-radius: 50px;
    margin-bottom: 20px;
}

.hod-message-label i {
    color: var(--primary);
    font-size: 14px;
}

.hod-message-label span {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hod-message-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hod-message-subtitle {
    font-size: 15px;
    color: #666;
}

.hod-message-text {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(192, 0, 0, 0.03), rgba(139, 0, 0, 0.02));
    border-left: 4px solid var(--primary);
    border-radius: 0 15px 15px 0;
}

.hod-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hod-stat-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid rgba(192, 0, 0, 0.1);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hod-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.hod-stat-item:hover::before {
    transform: scaleX(1);
}

.hod-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(192, 0, 0, 0.12);
    border-color: var(--primary);
}

.hod-stat-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.hod-stat-icon i {
    color: #fff;
    font-size: 24px;
}

.hod-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.hod-stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive HOD Desk */
@media (max-width: 991.98px) {
    .hod-desk-content {
        grid-template-columns: 1fr;
    }
    
    .hod-photo-section {
        padding: 40px 30px;
    }
    
    .hod-message-section {
        padding: 40px 30px;
    }
}

@media (max-width: 575.98px) {
    .hod-photo, .hod-photo-placeholder {
        width: 180px;
        height: 180px;
    }
    
    .hod-photo-placeholder i {
        font-size: 70px;
    }
    
    .hod-name {
        font-size: 22px;
    }
    
    .hod-designation {
        font-size: 15px;
    }
    
    .hod-message-title {
        font-size: 24px;
    }
    
    .hod-quick-stats {
        grid-template-columns: 1fr;
    }
}
