/* =========================================
   CALCULATOR HUB - MAIN STYLES
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    color: #2563eb;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.main-nav a:hover {
    color: #2563eb;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    padding: 85px 20px 90px;
    text-align: center;
}

.hero-content {
    max-width: 850px;
}

.hero-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 19px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.search-wrapper {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
}

#searchBox {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 12px;
    padding: 0 20px 0 52px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#searchBox:focus {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
}


/* =========================================
   SECTIONS
   ========================================= */

.calculator-section {
    padding: 70px 0;
}

.calculator-section.alternate {
    background: #eef2ff;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

.section-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 14px;
    font-size: 27px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.section-heading h2 {
    font-size: 30px;
    margin-bottom: 3px;
}

.section-heading p {
    color: #6b7280;
    font-size: 15px;
}


/* =========================================
   CALCULATOR GRID
   ========================================= */

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* =========================================
   CALCULATOR CARD
   ========================================= */

.calculator-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.09);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 22px;
    margin-bottom: 18px;
    font-weight: 700;
}

.calculator-card h3 {
    font-size: 19px;
    margin-bottom: 9px;
    color: #111827;
}

.calculator-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 20px;
}

.calculator-card a:not(.coming-link) {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
    transition: 0.2s;
}

.calculator-card a:not(.coming-link):hover {
    background: #1d4ed8;
}

.coming-link {
    color: #9ca3af !important;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    background: #111827;
    color: #ffffff;
    padding: 45px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-content p {
    color: #9ca3af;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d1d5db;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 25px;
    border-top: 1px solid #374151;
}


/* =========================================
   SEARCH - NO RESULTS
   ========================================= */

.no-results {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    display: none;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1000px) {

    .calculator-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-nav {
        gap: 12px;
    }

    .hero h1 {
        font-size: 44px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 750px) {

    .header-inner {
        flex-direction: column;
        padding: 15px 0;
    }

    .main-nav {
        justify-content: center;
        gap: 10px 15px;
    }

    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 60px 15px 65px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-text {
        font-size: 17px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .copyright {
        grid-column: auto;
    }
}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 500px) {

    .container {
        width: 94%;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero-text {
        font-size: 16px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .calculator-card {
        min-height: auto;
    }
}
/* =========================
   Vedicaly Calculator Pages
   ========================= */

.calculator-page {
    padding: 48px 20px;
}

.calculator-page > .container {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.calculator-page h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.calculator-page h2 {
    margin-top: 28px;
    margin-bottom: 14px;
}

.calculator-page label {
    display: block;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 6px;
}

.calculator-page input,
.calculator-page select,
.calculator-page textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
}

.calculator-page input:focus,
.calculator-page select:focus,
.calculator-page textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.calculate-btn {
    width: 100%;
    margin-top: 22px;
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.calculate-btn:hover {
    opacity: 0.92;
}

.site-footer {
    margin-top: 48px;
}

@media (max-width: 600px) {
    .calculator-page {
        padding: 24px 14px;
    }

    .calculator-page > .container {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .calculator-page h1 {
        font-size: 28px;
    }
}
/* =========================
   Vedicaly Premium Theme
   ========================= */

:root {
    --vedi-primary: #2563eb;
    --vedi-secondary: #06b6d4;
    --vedi-accent: #14b8a6;
    --vedi-dark: #0f172a;
    --vedi-text: #1e293b;
    --vedi-muted: #64748b;
    --vedi-bg: #f8fafc;
    --vedi-card: #ffffff;
}

/* Smooth page feel */
html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(6,182,212,0.08), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--vedi-text);
}

/* Header */
.site-header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(15,23,42,0.06);
}

.site-brand,
.logo {
    color: var(--vedi-primary);
}

.site-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: var(--vedi-secondary);
    transform: translateY(-1px);
}

/* Calculator cards / general cards */
.calculator-card,
.tool-card,
.card,
.calculator-page > .container {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.calculator-card:hover,
.tool-card:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(15,23,42,0.12);
}

/* Buttons */
button,
.calculate-btn,
.btn,
a.button {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

button:hover,
.calculate-btn:hover,
.btn:hover,
a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.20);
}

button:active,
.calculate-btn:active,
.btn:active,
a.button:active {
    transform: translateY(0) scale(0.98);
}

/* Primary buttons */
.calculate-btn,
.btn-primary,
button[type="submit"] {
    background: linear-gradient(
        135deg,
        var(--vedi-primary),
        var(--vedi-secondary)
    );
}

/* Inputs */
input,
select,
textarea {
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--vedi-secondary);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}

/* Result boxes */
.result,
.result-box,
.calculator-result {
    background: linear-gradient(
        135deg,
        rgba(37,99,235,0.06),
        rgba(6,182,212,0.08)
    );
}

/* Headings */
h1,
h2 {
    color: var(--vedi-dark);
}

h1 {
    letter-spacing: -0.02em;
}

/* Subtle entrance animation */
@keyframes vediFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main,
.calculator-page,
.hero,
section {
    animation: vediFadeUp 0.45s ease both;
}

/* Respect accessibility preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* =========================
   Vedicaly Homepage Motion
   ========================= */

/* Hero entrance */
.hero h1,
.hero p,
.hero .search-box,
.hero input {
    opacity: 0;
    animation: homeFadeUp 0.7s ease forwards;
}

.hero h1 {
    animation-delay: 0.10s;
}

.hero p {
    animation-delay: 0.22s;
}

.hero .search-box,
.hero input {
    animation-delay: 0.34s;
}

@keyframes homeFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tool/category cards */
.tool-card,
.category-card,
.calculator-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.tool-card:hover,
.category-card:hover,
.calculator-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

/* Category icon */
.category-icon {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.category-icon:hover {
    transform: translateY(-3px) rotate(-2deg);
}

/* Search bar */
.hero input:focus,
.search-box:focus-within {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.14);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero h1,
    .hero p,
    .hero .search-box,
    .hero input {
        opacity: 1;
        animation: none;
    }

    .tool-card,
    .category-card,
    .calculator-card,
    .category-icon {
        transition: none;
    }
}