/* ===============================
   INDEX PAGE - PREMIUM 3D EFFECTS
   =============================== */

#heroSection {
    perspective: 1200px;
    animation: slideInUp 0.9s ease-out;
    position: relative;
}

#heroSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
    opacity: 0;
    z-index: -1;
}

#heroSection .display-4 {
    font-size: 3.75rem !important;
    font-weight: 950;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 0.9s ease-out 0.1s both;
}

#heroSection .lead {
    font-size: 1.4rem;
    color: var(--text-color);
    animation: slideInUp 0.9s ease-out 0.2s both;
    font-weight: 500;
}

#heroCTA {
    animation: slideInUp 0.9s ease-out 0.3s both;
}

#heroSection img {
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.9s ease-out 0.4s both;
    transform: translateZ(0);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#heroSection img:hover {
    transform: translateY(-16px) scale(1.03) translateZ(20px) rotateX(5deg);
    box-shadow: none;
}

.feature-card {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255,255,255,0.25) 100%);
    backdrop-filter: blur(15px);
    border: 1.5px solid var(--glass-border) !important;
    border-radius: 1.5rem !important;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.7s ease-out backwards;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6) !important;
    transform: translateZ(0) rotateX(0deg);
    perspective: 1200px;
}

.feature-card:nth-child(1) { animation-delay: 0.15s; }
.feature-card:nth-child(2) { animation-delay: 0.25s; }
.feature-card:nth-child(3) { animation-delay: 0.35s; }
.feature-card:nth-child(4) { animation-delay: 0.45s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.04;
    border-radius: 50%;
    transition: all 0.8s ease;
    transform: translateZ(-30px);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: -50%; left: -50%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.03;
    border-radius: 50%;
    transition: all 0.8s ease;
    transform: translateZ(-20px);
}

.feature-card:hover {
    transform: translateY(-16px) translateZ(30px) rotateX(4deg) scale(1.03);
    box-shadow: 0 30px 80px rgba(59, 130, 246, 0.28), inset 0 1px 0 rgba(255,255,255,0.8) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.feature-card:hover::before {
    transform: translate(30px, 30px) translateZ(-10px);
    opacity: 0.12;
}

.feature-card:hover::after {
    transform: translate(-20px, -20px) translateZ(-5px);
    opacity: 0.08;
}

.feature-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card:hover i {
    transform: rotateY(360deg) rotateX(180deg) scale(1.3) translateZ(15px);
    animation: spin3d 0.8s ease-out;
}

.disease-section {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.3) 100%);
    border: 2.5px solid var(--card-border) !important;
    border-radius: 1.75rem;
    padding: 3.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.5);
    position: relative;
    animation: slideInUp 0.8s ease-out;
}

.disease-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.02;
    border-radius: 50%;
    z-index: 0;
}

.disease-section > * {
    position: relative;
    z-index: 1;
}

.disease-item {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--body-bg) 100%);
    border: 1px solid var(--card-border) !important;
    border-radius: 1rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.6s ease-out backwards;
}

.disease-item:nth-child(1) { animation-delay: 0.1s; }
.disease-item:nth-child(2) { animation-delay: 0.2s; }
.disease-item:nth-child(3) { animation-delay: 0.3s; }
.disease-item:nth-child(4) { animation-delay: 0.4s; }
.disease-item:nth-child(5) { animation-delay: 0.5s; }

.disease-item:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.disease-item i {
    transition: all 0.3s ease;
    min-width: 50px;
}

.disease-item:hover i {
    transform: scale(1.3) rotate(-10deg);
}

#finalCTA {
    margin-top: 2rem;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

/* ===============================
   DARK MODE - PREMIUM COLORS
   =============================== */

[data-theme="dark"] #heroSection::before {
    background: radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(52, 211, 153, 0.12) 0%, transparent 50%);
}

[data-theme="dark"] #heroSection .display-4 {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] #heroSection .lead {
    color: rgba(232, 238, 247, 0.9);
}

[data-theme="dark"] #heroSection img {
    box-shadow: 0 40px 80px rgba(96, 165, 250, 0.25), 0 0 60px rgba(52, 211, 153, 0.15);
}

[data-theme="dark"] #heroSection img:hover {
    box-shadow: 0 50px 120px rgba(96, 165, 250, 0.35), 0 0 80px rgba(52, 211, 153, 0.25);
}

[data-theme="dark"] .feature-card {
    background: linear-gradient(135deg, rgba(26, 40, 71, 0.7) 0%, rgba(20, 27, 47, 0.5) 100%);
    border-color: rgba(96, 165, 250, 0.2) !important;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(96, 165, 250, 0.1) !important;
}

[data-theme="dark"] .feature-card:hover {
    background: linear-gradient(135deg, rgba(26, 40, 71, 0.9) 0%, rgba(20, 27, 47, 0.7) 100%);
    border-color: rgba(96, 165, 250, 0.4) !important;
    box-shadow: 0 30px 80px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(96, 165, 250, 0.15) !important;
}

[data-theme="dark"] .feature-card::before {
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    opacity: 0.06;
}

[data-theme="dark"] .feature-card::after {
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    opacity: 0.05;
}

[data-theme="dark"] .feature-card i {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .feature-card h5 {
    color: #f0f5ff;
}

[data-theme="dark"] .feature-card p {
    color: rgba(232, 238, 247, 0.8);
}

[data-theme="dark"] .disease-section {
    background: linear-gradient(135deg, rgba(26, 40, 71, 0.5) 0%, rgba(20, 27, 47, 0.3) 100%);
    border-color: rgba(96, 165, 250, 0.2) !important;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .disease-section::before {
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    opacity: 0.04;
}

[data-theme="dark"] .disease-section h3 {
    color: #f0f5ff;
}

[data-theme="dark"] .disease-item {
    background: linear-gradient(135deg, rgba(42, 58, 90, 0.6) 0%, rgba(20, 27, 47, 0.4) 100%);
    border-color: rgba(96, 165, 250, 0.15) !important;
    color: rgba(232, 238, 247, 0.9);
}

[data-theme="dark"] .disease-item:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: white;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}
