/* =========================================
   PREMIUM INDEX PAGE STYLES WITH ANIMATION
========================================= */

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* --- STATIC HERO SECTION --- */
.static-hero {
    position: relative;
    background-color: #ffffff;
    padding: 120px 0 80px 0;
    overflow: hidden;
}
.static-hero::after {
    content: ''; position: absolute;
    bottom: -10%; right: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.hero-title { 
    font-size: 4rem; font-weight: 800; line-height: 1.15; 
    margin-bottom: 1.5rem; letter-spacing: -1px; color: var(--dark);
}
.hero-subtitle { font-size: 1.2rem; color: #64748b; margin-bottom: 2.5rem; line-height: 1.7; }

/* Hero Image & Carousel Wrapper */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}
.hero-main-img { 
    width: 100%; 
    max-width: 450px; 
    border-radius: 24px; 
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1); 
    animation: floatSmooth 6s ease-in-out infinite; 
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden; 
    background-color: #fff;
}
.hero-main-img img {
    width: 100%; height: auto; object-fit: cover;
}

@keyframes floatSmooth {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 991px) {
    .static-hero { padding: 80px 0 60px 0; text-align: center; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { margin: 0 auto 2rem auto; }
    .hero-btn-group { justify-content: center; }
    .hero-image-wrapper { margin-top: 3rem; }
}

/* --- STATS SECTION --- */
.stat-item { border-right: 1px solid #f1f5f9; padding: 20px 0; }
.stat-item:last-child { border-right: none; }
@media (max-width: 768px) {
    .stat-item { border-right: none; border-bottom: 1px solid #f1f5f9; }
    .stat-item:last-child { border-bottom: none; }
}

/* =========================================
   NEW MODERN 3D CARDS & ICONS
========================================= */

/* The Card Body */
.card-3d-modern {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 30px;
    padding: 50px 40px; /* Increased Height/Padding */
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}
.card-3d-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

/* The 3D Floating Icons */
.icon-3d-box {
    width: 85px;
    height: 85px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    /* 3D Bevel & Shadow Base */
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
.card-3d-modern:hover .icon-3d-box {
    transform: scale(1.08) rotate(-5deg);
}

/* 3D Color Variants */
.icon-3d-purple {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: #ffffff;
    box-shadow: 
        inset 2px 2px 4px rgba(255,255,255,0.4), 
        inset -4px -4px 8px rgba(0,0,0,0.2), 
        0 15px 25px rgba(126, 34, 206, 0.3);
}
.icon-3d-green {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #ffffff;
    box-shadow: 
        inset 2px 2px 4px rgba(255,255,255,0.4), 
        inset -4px -4px 8px rgba(0,0,0,0.2), 
        0 15px 25px rgba(16, 185, 129, 0.3);
}
.icon-3d-light {
    background: linear-gradient(135deg, #ffffff, #f3e8ff);
    color: var(--primary);
    box-shadow: 
        inset 2px 2px 6px rgba(255,255,255,1), 
        inset -4px -4px 8px rgba(126, 34, 206, 0.1), 
        0 15px 25px rgba(126, 34, 206, 0.15);
}
.icon-3d-grey {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #64748b;
    box-shadow: 
        inset 2px 2px 6px rgba(255,255,255,1), 
        inset -4px -4px 8px rgba(0,0,0,0.05), 
        0 10px 20px rgba(0,0,0,0.06);
}

/* Subtle Top Borders for Brand Identity on hover */
.border-hover-purple:hover { border-top: 4px solid var(--primary); }
.border-hover-green:hover { border-top: 4px solid var(--secondary); }

/* --- TECH STACK GRID --- */
.tech-box { 
    background: #ffffff; border: 1px solid #f1f5f9; border-radius: 16px; padding: 25px 20px; 
    text-align: center; transition: all 0.2s; box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.tech-box:hover { border-color: var(--secondary); background: #f8fafc; transform: translateY(-3px); }
.tech-box i { font-size: 2.5rem; margin-bottom: 10px; color: #94a3b8; transition: color 0.3s ease;}
.tech-box:hover i { color: var(--primary); }
.tech-box span { font-size: 0.9rem; font-weight: 600; color: #475569; display: block; }