/* Modern 3D Effects and Enhanced Styling */

/* Base Page Styling */
body {
    overflow-x: hidden;
}

/* Enhanced Section Headers */
section h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 700;
}

section h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Left-aligned headers */
section .text-start h2:after,
.content-card h2:after,
.history-content h2:after {
    left: 0;
    transform: translateX(0);
}

/* Card Styling with 3D Effects */
.content-card {
    position: relative;
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateY(0deg);
    margin-bottom: 1.5rem;
}

.content-card:hover {
    transform: perspective(1000px) rotateY(-2deg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

/* Enhanced Images */
.enhanced-image img {
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    transform: perspective(1000px) rotateY(0deg);
}

.enhanced-image:hover img {
    transform: perspective(1000px) rotateY(2deg);
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.1);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transform-style: preserve-3d;
    position: relative;
    height: 100%;
    margin-bottom: 1.5rem;
}

.feature-card:hover {
    transform: perspective(1000px) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: #0d6efd;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    transition: all 0.5s;
    display: inline-block;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.feature-card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.feature-card h3:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.feature-card:hover h3:after {
    width: 80%;
}

/* Enhanced Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Enhanced Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Page Banner Styling */
.page-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

/* Section styling */
section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

section:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.1));
    top: -150px;
    right: -150px;
    z-index: -1;
}

section:after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.1));
    bottom: -100px;
    left: -100px;
    z-index: -1;
}

/* Timeline Styling */
.timeline-list {
    list-style: none;
    padding-left: 0;
    position: relative;
    margin-top: 30px;
}

.timeline-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.timeline-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.2);
}

.timeline-list li:hover {
    transform: translateX(5px);
}
