/* ==========================================================================
   Custom Enhancements for Juanxi Tian's Personal Website
   Modern, High-End Design Improvements
   ========================================================================== */

/* ==========================================================================
   Hero Section Enhancements
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(192, 0, 0, 0.8) 0%,
        rgba(31, 39, 73, 0.9) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particles-float 20s linear infinite;
    z-index: 3;
}

@keyframes particles-float {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(10px); }
    66% { transform: translateY(5px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.hero-main-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.hero-name-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-name-highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #c00000, #ff4757);
    border-radius: 2px;
    animation: highlight-glow 2s ease-in-out infinite alternate;
}

@keyframes highlight-glow {
    0% { box-shadow: 0 0 5px rgba(192, 0, 0, 0.5); }
    100% { box-shadow: 0 0 20px rgba(192, 0, 0, 0.8), 0 0 30px rgba(255, 71, 87, 0.4); }
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
    z-index: 10;
    position: relative;
}

.hero-affiliation {
    color: #c00000;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(192, 0, 0, 0.3);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Research Focus Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
    position: relative;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(192, 0, 0, 0.2);
    border-color: rgba(192, 0, 0, 0.5);
}

.hero-tag:hover::before {
    left: 100%;
}

/* CTA Buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, #c00000 0%, #ff4757 100%);
    border: none;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(192, 0, 0, 0.3);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(192, 0, 0, 0.4);
    background: linear-gradient(135deg, #d10000 0%, #ff5722 100%);
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* Social Links */
.hero-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    z-index: 10;
    position: relative;
}

.hero-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.hero-social-link:hover {
    background: rgba(192, 0, 0, 0.2);
    border-color: rgba(192, 0, 0, 0.5);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    text-decoration: none;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.scroll-down-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.scroll-down-animation {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
    margin-bottom: 1rem;
}

.scroll-down-animation span {
    display: block;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-down 2s infinite;
}

.scroll-down-animation span:nth-child(1) {
    top: 8px;
    animation-delay: 0s;
}

.scroll-down-animation span:nth-child(2) {
    top: 16px;
    animation-delay: 0.3s;
}

.scroll-down-animation span:nth-child(3) {
    top: 24px;
    animation-delay: 0.6s;
}

@keyframes scroll-down {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.scroll-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

/* ==========================================================================
   Responsive Design for Hero Section
   ========================================================================== */

@media (max-width: 1199.98px) {
    .hero-main-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 991.98px) {
    .hero-main-title {
        font-size: 3rem;
    }
    
    .hero-tags {
        gap: 0.75rem;
    }
    
    .hero-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-tags {
        gap: 0.5rem;
    }
    
    .hero-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        margin-bottom: 1rem !important;
    }
    
    .hero-social-links {
        gap: 1rem;
    }
    
    .hero-social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tags {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-cta-container .row {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   Enhanced Navigation Styles
   ========================================================================== */

.spyre-navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c00000, #ff4757);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #c00000 !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Enhanced About Section
   ========================================================================== */

#section-1 {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

#section-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(192, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(31, 39, 73, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Headers */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
}

/* Profile Image */
.profile-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #c00000, #ff4757, #c00000);
    border-radius: 50%;
    z-index: -1;
    animation: profile-glow 3s ease-in-out infinite alternate;
}

@keyframes profile-glow {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.02); }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.profile-image-wrapper:hover .profile-image {
    transform: scale(1.1);
}

.profile-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.profile-image-wrapper:hover .profile-image-overlay {
    transform: translateY(0);
}

.profile-status {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-status i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* About Card */
.about-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c00000, #ff4757);
}

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

/* About Header */
.about-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2749;
    margin-bottom: 0.5rem;
}

.chinese-name {
    font-size: 1.8rem;
    color: #6c757d;
    font-weight: 400;
}

.about-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-affiliation {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Info Cards */
.info-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(192, 0, 0, 0.1);
}

.info-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: rgba(192, 0, 0, 0.3);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c00000, #ff4757);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-content p {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2749;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Bio Section */
.about-bio p {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1rem;
}

.about-bio strong {
    color: #c00000;
    font-weight: 600;
}

/* Links Section */
.links-category {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2749;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c00000;
    display: inline-block;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.links-list a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.links-list a i {
    width: 20px;
    color: #c00000;
    transition: all 0.3s ease;
}

.links-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c00000, #ff4757);
    transition: width 0.3s ease;
}

.links-list a:hover {
    color: #c00000;
    text-decoration: none;
    transform: translateX(5px);
}

.links-list a:hover::after {
    width: 100%;
}

.links-list a:hover i {
    transform: scale(1.2);
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.contact-email {
    font-size: 1.1rem;
    color: #1f2749;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-email i {
    font-size: 1.2rem;
}

.wechat-info {
    color: #495057;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wechat-info i {
    font-size: 1.2rem;
}

/* Responsive Design for About Section */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .profile-image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .about-card {
        padding: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .profile-image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .about-name {
        font-size: 2rem;
    }
    
    .chinese-name {
        font-size: 1.6rem;
    }
    
    .about-card {
        padding: 2rem;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .about-name {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .chinese-name {
        font-size: 1.4rem;
    }
    
    .about-title,
    .about-affiliation {
        text-align: center;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .contact-info .row {
        text-align: center;
    }
    
    .contact-info .col-md-4 {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .about-name {
        font-size: 1.6rem;
    }
    
    .chinese-name {
        font-size: 1.2rem;
        display: block;
        margin-top: 0.25rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .info-content {
        text-align: center;
    }
}

/* ==========================================================================
   Enhanced News & Timeline Section
   ========================================================================== */

#section-2 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

#section-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(192, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(31, 39, 73, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #c00000 0%, #ff4757 50%, #c00000 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #c00000;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(192, 0, 0, 0.2);
}

.timeline-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #c00000;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(192, 0, 0, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-right: 3rem;
    padding-left: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    padding-left: 3rem;
    padding-right: 0;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-marker-inner {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c00000, #ff4757);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(192, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-marker-inner::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #c00000, #ff4757);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-marker-inner {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(192, 0, 0, 0.4);
}

.timeline-item:hover .timeline-marker-inner::before {
    opacity: 0.3;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.3); opacity: 0; }
}

.timeline-content {
    flex: 1;
    max-width: calc(50% - 30px);
}

.timeline-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(192, 0, 0, 0.1);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c00000, #ff4757);
}

.timeline-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-card::after {
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent #ffffff;
}

.timeline-item:nth-child(even) .timeline-card::after {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent #ffffff transparent transparent;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(192, 0, 0, 0.3);
}

.timeline-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #c00000, #ff4757);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    width: fit-content;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(192, 0, 0, 0.3);
}

.timeline-date .month {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-date .year {
    font-size: 1.3rem;
    font-weight: 700;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2749;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.timeline-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1.5rem;
}

.timeline-text strong {
    color: #c00000;
    font-weight: 600;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tag {
    background: rgba(192, 0, 0, 0.1);
    color: #c00000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(192, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-tag:hover {
    background: rgba(192, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Call to Action Card */
.cta-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(192, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c00000, #ff4757);
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2749;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #c00000;
    color: #c00000;
}

.btn-outline-primary:hover {
    background: #c00000;
    border-color: #c00000;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(192, 0, 0, 0.3);
}

/* Responsive Timeline */
@media (max-width: 991.98px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-marker-inner {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-card::after {
        display: none;
    }
    
    .timeline-card {
        margin-left: 1rem;
    }
}

@media (max-width: 767.98px) {
    .timeline-container {
        padding: 1rem 0;
    }
    
    .timeline-item {
        margin-bottom: 3rem;
        padding-left: 70px;
    }
    
    .timeline-line {
        left: 25px;
    }
    
    .timeline-marker {
        left: 25px;
    }
    
    .timeline-marker-inner {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-card {
        padding: 1.5rem;
        margin-left: 0.5rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-text {
        font-size: 0.95rem;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 575.98px) {
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-marker-inner {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .timeline-card {
        padding: 1.25rem;
        margin-left: 0.25rem;
    }
    
    .timeline-date {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .timeline-date .month {
        font-size: 0.9rem;
    }
    
    .timeline-date .year {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   News Section Styles
   ========================================================================== */

#news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

#news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(192, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(31, 39, 73, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.news-container {
    max-width: 100%;
}

.news-item {
    background: #ffffff;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(192, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(192, 0, 0, 0.2);
}

.news-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.news-header:hover {
    background: rgba(192, 0, 0, 0.02);
}

.news-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #c00000, #ff4757);
    transition: width 0.3s ease;
}

.news-header:hover::before {
    width: 6px;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #c00000, #ff4757);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 12px;
    margin-right: 1.5rem;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(192, 0, 0, 0.3);
    flex-shrink: 0;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.news-title {
    flex: 1;
    margin-right: 1rem;
}

.news-title h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2749;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-category {
    display: inline-block;
    background: rgba(192, 0, 0, 0.1);
    color: #c00000;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-toggle {
    color: #6c757d;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.news-header[aria-expanded="true"] .news-toggle i {
    transform: rotate(180deg);
    color: #c00000;
}

.news-content {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-body {
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.5);
}

.news-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1.5rem;
}

.news-body strong {
    color: #c00000;
    font-weight: 600;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-tag {
    background: rgba(192, 0, 0, 0.1);
    color: #c00000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(192, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.news-tag:hover {
    background: rgba(192, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Animation for collapsing content */
.news-content.collapsing {
    transition: height 0.35s ease;
}

.news-content.show {
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive News Section */
@media (max-width: 767.98px) {
    .news-header {
        padding: 1.25rem;
        flex-wrap: wrap;
    }
    
    .news-date {
        margin-right: 1rem;
        margin-bottom: 1rem;
        min-width: 70px;
        padding: 0.6rem;
    }
    
    .date-day {
        font-size: 1.3rem;
    }
    
    .date-month {
        font-size: 0.75rem;
    }
    
    .news-title {
        margin-right: 0;
        flex: 1 1 100%;
        order: 2;
    }
    
    .news-toggle {
        order: 3;
        align-self: flex-start;
    }
    
    .news-title h5 {
        font-size: 1.1rem;
    }
    
    .news-body {
        padding: 1.25rem;
    }
    
    .news-body p {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .news-header {
        padding: 1rem;
    }
    
    .news-date {
        min-width: 60px;
        padding: 0.5rem;
        margin-right: 0.75rem;
    }
    
    .date-day {
        font-size: 1.2rem;
    }
    
    .date-month {
        font-size: 0.7rem;
    }
    
    .news-title h5 {
        font-size: 1rem;
    }
    
    .news-category {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .news-body {
        padding: 1rem;
    }
    
    .news-tags {
        gap: 0.4rem;
    }
    
    .news-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ==========================================================================
   Modern Footer Enhancements
   ========================================================================== */

.modern-footer {
    background: linear-gradient(135deg, #1f2749 0%, #343a40 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(192, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(192, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-main {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
}

/* Footer Profile Section */
.footer-profile {
    text-align: center;
    text-align: left;
}

.footer-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
    filter: brightness(1.2);
}

.footer-logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(192, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: logo-pulse 3s infinite;
}

@keyframes logo-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.footer-logo-container:hover .footer-logo {
    transform: scale(1.1) rotate(5deg);
}

.footer-logo-container:hover .footer-logo-glow {
    opacity: 1;
}

.footer-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-title {
    font-size: 1.1rem;
    color: #c00000;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-affiliation {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.footer-contact {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item i {
    width: 18px;
    color: #c00000;
    font-size: 1rem;
}

/* Footer Sections */
.footer-section {
    margin-bottom: 2rem;
}

.footer-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #c00000, #ff4757);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c00000;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #c00000;
    text-decoration: none;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.social-icon.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-icon.github:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
}

.social-icon.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
    color: #0077b5;
}

.social-icon.scholar:hover {
    background: rgba(66, 133, 244, 0.2);
    border-color: #4285f4;
    color: #4285f4;
}

.social-icon.zhihu:hover {
    background: rgba(0, 132, 255, 0.2);
    border-color: #0084ff;
    color: #0084ff;
}

.social-icon.xiaohongshu:hover {
    background: rgba(255, 45, 85, 0.2);
    border-color: #ff2d55;
    color: #ff2d55;
}

/* Research Stats */
.footer-stats {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c00000;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #c00000, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-credits {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.footer-credits a {
    color: #c00000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: #ff4757;
    text-decoration: none;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Floating Elements */
.footer-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(192, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-element.element-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.element-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element.element-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}

/* Responsive Footer */
@media (max-width: 991.98px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-stats {
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .footer-main {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-profile {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .footer-credits {
        justify-content: center;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo {
        width: 60px;
        height: 60px;
    }
    
    .footer-name {
        font-size: 1.5rem;
    }
    
    .footer-social {
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-stats {
        padding: 1rem 0.5rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
        justify-content: center;
    }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */

/* Focus indicators */
*:focus {
    outline: 2px solid #c00000;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #c00000;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-to-main:focus {
    top: 6px;
    color: #ffffff;
    text-decoration: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-gradient-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .timeline-card,
    .about-card,
    .cta-card {
        border: 2px solid #000000;
    }
    
    .text-white-75 {
        color: #ffffff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-particles {
        animation: none;
    }
    
    .floating-element {
        animation: none;
    }
    
    .profile-image-wrapper::before {
        animation: none;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Improved color contrast */
.text-muted {
    color: #495057 !important;
}

.timeline-text {
    color: #343a40;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Keyboard navigation improvements */
.navbar-nav .nav-link:focus,
.btn:focus,
.social-icon:focus,
.footer-links a:focus {
    outline: 2px solid #c00000;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(192, 0, 0, 0.2);
}

/* Touch target improvements */
@media (max-width: 767.98px) {
    .btn,
    .social-icon,
    .hero-social-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-gradient-primary {
    background: linear-gradient(135deg, #c00000 0%, #ff4757 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-modern {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.card-modern {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Animation Utilities
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }
.animate-delay-4 { animation-delay: 0.8s; }

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
