/* index.css - Estilos específicos para la página principal */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

/* Category Icons */
.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin: 0 auto 20px;
}

.geometry-icon { 
    background: linear-gradient(135deg, #ff6b6b, #ee5a24); 
}

.physics-icon { 
    background: linear-gradient(135deg, #4834d4, #686de0); 
}

.math-icon { 
    background: linear-gradient(135deg, #00d2d3, #54a0ff); 
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.calculator-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: block;
}

.calculator-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

.calculator-item img {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.calculator-item:hover img {
    transform: scale(1.1);
}

/* Demo Section */
.demo-section {
    background: #f8f9fa;
    padding: 60px 0;
}

/* Statistics Section */
.stats-section {
    background: #2c3e50;
    color: white;
    padding: 50px 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
    line-height: 1;
}

/* Value Proposition */
.value-prop {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin: 30px 0;
}

/* Testimonials */
.testimonial {
    background: white;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calculator-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .value-prop {
        padding: 30px 20px;
    }
    
    .demo-section,
    .stats-section {
        padding: 40px 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Images */
.calculator-item img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Enhanced Hover Effects */
.btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.gap-3 {
    gap: 1rem !important;
}


.text-start {
    text-align: left !important;
}

.me-2 {
    margin-right: .5rem !important;
}