/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo i {
    color: #ffd700;
    font-size: 3.5rem;
}

.header-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Calculator Categories */
.calculator-category {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(102,126,234,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f2f5;
}

.category-title i {
    color: #667eea;
    font-size: 1.5rem;
}

.calculator-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Calculator Links */
.calculator-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.calculator-link:hover {
    background: #e9ecef;
    color: #333;
    transform: translateX(5px);
}

.calculator-link i {
    color: #667eea;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.calculator-link.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.calculator-link.featured i {
    color: #ffd700;
}

.calculator-link.featured:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
    color: white;
}

.calculator-link.coming-soon {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.badge {
    background: #ffc107;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

/* All Calculators Section */
.all-calculators-section {
    text-align: center;
    margin: 3rem 0;
}

.all-calculators-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(40,167,69,0.3);
}

.all-calculators-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea680 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(40,167,69,0.4);
    color: white;
}

/* About Section */
.about-section {
    background: white;
    padding: 4rem 0;
    border-top: 1px solid #e9ecef;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .logo i {
        font-size: 3rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .calculator-category {
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .all-calculators-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo i {
        font-size: 2.5rem;
    }
    
    .calculator-category {
        padding: 1rem;
    }
    
    .calculator-link {
        padding: 0.75rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

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

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

.calculator-category {
    animation: fadeInUp 0.6s ease forwards;
}

.calculator-category:nth-child(1) { animation-delay: 0.1s; }
.calculator-category:nth-child(2) { animation-delay: 0.2s; }
.calculator-category:nth-child(3) { animation-delay: 0.3s; }
.calculator-category:nth-child(4) { animation-delay: 0.4s; }
.calculator-category:nth-child(5) { animation-delay: 0.5s; }
.calculator-category:nth-child(6) { animation-delay: 0.6s; }

/* Accessibility */
.calculator-link:focus,
.all-calculators-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .all-calculators-section {
        display: none;
    }
    
    .calculator-category {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
} 