/* MegaCalcBox CSS - Calculator Theme */
:root {
    /* Calculator-inspired Color Palette */
    --calc-orange: #ff9f43;
    --calc-orange-light: #ffb366;
    --calc-orange-dark: #e6892b;
    --calc-blue: #0abde3;
    --calc-green: #00d2d3;
    --calc-purple: #5f27cd;
    --calc-red: #ff3838;
    --calc-yellow: #feca57;
    
    /* Pastel variants for softer touch */
    --pastel-purple: #d0b7ed;
    --pastel-purple-light: #e1d0f5;
    --pastel-purple-dark: #b998db;
    --pastel-blue: #b7dced;
    --pastel-green: #b7edcc;
    --pastel-yellow: #ede5b7;
    --pastel-pink: #edb7d2;
    --pastel-teal: #b7ede5;
    
    /* Text Colors */
    --text-dark: #2c2c54;
    --text-medium: #5d5d72;
    --text-light: #8a8a99;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    /* Shadows and Effects */
    --shadow-sm: 0 2px 10px rgba(44, 44, 84, 0.1);
    --shadow-md: 0 4px 16px rgba(44, 44, 84, 0.15);
    --shadow-lg: 0 8px 30px rgba(44, 44, 84, 0.2);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

.highlight {
    color: var(--calc-orange);
    position: relative;
}

/* Header Styles */
header {
    background-color: var(--bg-white);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--calc-orange);
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav a:hover {
    color: var(--calc-orange);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--calc-orange);
    transition: var(--transition-normal);
}

nav a:hover::after {
    width: 100%;
}

.download-btn {
    background-color: var(--calc-orange);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.download-btn:hover {
    background-color: var(--calc-orange-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 2;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 25px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--calc-orange);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-icon {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-app-icon {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.cta-button {
    display: inline-block;
    background-color: var(--calc-orange);
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background-color: var(--calc-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.features-section h2 {
    font-size: 2.3rem;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-top: 5px solid var(--feature-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--feature-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 1rem;
}

/* Calculator Categories Section */
.calculators-section {
    padding: 80px 0;
    background: var(--bg-gradient);
}

.calculators-section h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.category-header i {
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.financial .category-header i { background-color: var(--calc-green); }
.travel .category-header i { background-color: var(--calc-blue); }
.health .category-header i { background-color: var(--calc-red); }
.utilities .category-header i { background-color: var(--calc-purple); }
.education .category-header i { background-color: var(--calc-yellow); }
.lifestyle .category-header i { background-color: var(--calc-orange); }

.category-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
}

.calculator-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calculator-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.4;
}

/* Carousel Section */
.carousel-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.carousel-section h2 {
    font-size: 2.3rem;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.slide-content {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 0 20px;
}

.carousel-img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background-color: var(--bg-white);
    padding: 20px;
}

.slide-description {
    padding: 20px;
    text-align: center;
}

.slide-description h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--calc-orange);
}

.slide-description p {
    color: var(--text-medium);
}

.carousel-button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    color: var(--calc-orange);
}

.carousel-button:hover {
    background-color: var(--calc-orange);
    color: white;
    box-shadow: var(--shadow-md);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--pastel-purple-light);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.indicator.active {
    background-color: var(--calc-orange);
    transform: scale(1.2);
}

/* Freemium Section */
.freemium-section {
    padding: 80px 0;
    background: var(--bg-gradient);
    text-align: center;
}

.freemium-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.freemium-section h2 {
    font-size: 2.3rem;
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.pro {
    border: 3px solid var(--calc-orange);
    position: relative;
}

.pricing-card.pro::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--calc-orange);
    color: white;
    padding: 5px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--calc-orange);
    margin-bottom: 20px;
}

.pricing-card ul {
    text-align: left;
    margin-bottom: 30px;
}

.pricing-card li {
    padding: 8px 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 20px;
}

.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--calc-green);
    font-weight: 600;
}

.pricing-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-normal);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.pricing-btn.featured {
    background-color: var(--calc-orange);
    color: white;
}

.pricing-btn:hover {
    transform: translateY(-2px);
}

.pricing-btn.featured:hover {
    background-color: var(--calc-orange-dark);
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.download-container {
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
}

.download-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    margin: 0 auto 30px;
    box-shadow: var(--shadow-md);
}

.download-section h2 {
    font-size: 2.3rem;
    margin-bottom: 15px;
}

.download-section p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.download-cta {
    display: inline-block;
    background-color: #000;
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 40px;
    transition: var(--transition-normal);
}

.download-cta i {
    margin-right: 8px;
}

.download-cta:hover {
    background-color: var(--calc-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.perfect-for {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-medium);
}

/* Footer Styles */
footer {
    background-color: var(--bg-light);
    padding: 60px 0 20px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
}

.footer-logo span {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--calc-orange);
}

.footer-links ul {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--calc-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-app-icon {
        width: 150px;
        height: 150px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container, .hero-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-icon {
        order: 1;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }
    
    .prev {
        left: 5px;
    }
    
    .next {
        right: 5px;
    }
    
    .carousel-img {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: fit-content;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .carousel-img {
        height: 300px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}