/* Animals with Horns - Modern Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

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

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 18px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Section */
.content-section {
    padding: 60px 0;
    background: white;
    margin: -40px 20px 0;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
}

.main-content {
    padding: 0 20px;
}

/* Info Cards */
.info-card {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.info-card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.info-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* Category Section */
.category-section {
    margin-bottom: 40px;
}

.category-section h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.animal-category {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 15px;
    border: 1px solid #e1e8ff;
}

.category-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
}

.category-header h3 {
    color: #4a5568;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.category-icon {
    font-size: 4rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animal-category p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.animal-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.animal-item:hover {
    transform: translateY(-3px);
}

.animal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.animal-item h4 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.animal-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

/* Function Grid */
.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.function-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e1e8ff;
    transition: transform 0.3s ease;
}

.function-item:hover {
    transform: translateY(-3px);
}

.function-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.function-item h4 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.function-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid #667eea;
}

.sidebar-card h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.fact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-label {
    color: #666;
    font-weight: 500;
}

.fact-value {
    color: #667eea;
    font-weight: 600;
    background: #f8f9ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 18px;
}

.horn-type {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.horn-type:last-child {
    border-bottom: none;
}

.horn-type h4 {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.horn-type p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .content-section {
        margin: -20px 10px 0;
        border-radius: 15px;
    }
    
    .animal-grid {
        grid-template-columns: 1fr;
    }
    
    .function-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .animal-category {
        padding: 20px;
    }
}

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

.info-card, .animal-category, .sidebar-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}
