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

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --purple: #A8E6CF;
    --dark: #2C3E50;
    --light: #F7F9FC;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: bounce 2s ease-in-out infinite;
}

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

.tagline {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.95;
}

/* Main Content */
main {
    background: white;
    margin: 2rem auto;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.2rem;
    color: #555;
}

/* Category Sections */
.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
}

/* Calculator Cards Grid */
.calculator-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calc-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    border: 3px solid transparent;
}

.calc-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--secondary-color);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.calc-card:hover .card-icon {
    animation: spin 0.5s ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.calc-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.calc-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* Add fun colors to different categories */
.category-section:nth-child(1) .calc-card {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.category-section:nth-child(2) .calc-card {
    background: linear-gradient(135deg, #fab1a0 0%, #ff7675 100%);
}

.category-section:nth-child(3) .calc-card {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
}

.category-section:nth-child(3) .calc-card h4,
.category-section:nth-child(3) .calc-card p {
    color: white;
}

.category-section:nth-child(4) .calc-card {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
}

.category-section:nth-child(5) .calc-card {
    background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%);
}

.category-section:nth-child(6) .calc-card {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
}

.category-section:nth-child(6) .calc-card h4,
.category-section:nth-child(6) .calc-card p {
    color: white;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .intro h2 {
        font-size: 1.8rem;
    }

    .calculator-cards {
        grid-template-columns: 1fr;
    }

    main {
        margin: 1rem;
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .calc-card {
        padding: 1.5rem 1rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }
}
/* ==================================================
   GLOBAL FOOTER STYLES - BRIGHT GOLD LINKS
   ================================================== */

.global-footer {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 20, 0.98));
    border-top: 3px solid var(--accent);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
    text-align: center;
}

.footer-message {
    margin-bottom: 2rem;
}

.footer-message p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: #FFD700; /* Bright Gold - Best visibility! */
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: #FFA500; /* Orange hover */
    text-decoration: underline;
    transform: translateY(-2px);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    user-select: none;
}

.footer-copyright {
    margin: 1.5rem 0;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    font-size: 1.8rem;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.1);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-links a {
        display: block;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .global-footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-message p {
        font-size: 1rem;
    }
    
    .social-link {
        font-size: 1.5rem;
    }
}
